Chronosphere v0.9.2 published on Monday, Sep 9, 2024 by Chronosphere
chronosphere.TraceTailSamplingRules
Explore with Pulumi AI
Chronosphere v0.9.2 published on Monday, Sep 9, 2024 by Chronosphere
Create TraceTailSamplingRules Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TraceTailSamplingRules(name: string, args?: TraceTailSamplingRulesArgs, opts?: CustomResourceOptions);
@overload
def TraceTailSamplingRules(resource_name: str,
args: Optional[TraceTailSamplingRulesArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def TraceTailSamplingRules(resource_name: str,
opts: Optional[ResourceOptions] = None,
default_sample_rate: Optional[TraceTailSamplingRulesDefaultSampleRateArgs] = None,
rules: Optional[Sequence[TraceTailSamplingRulesRuleArgs]] = None)
func NewTraceTailSamplingRules(ctx *Context, name string, args *TraceTailSamplingRulesArgs, opts ...ResourceOption) (*TraceTailSamplingRules, error)
public TraceTailSamplingRules(string name, TraceTailSamplingRulesArgs? args = null, CustomResourceOptions? opts = null)
public TraceTailSamplingRules(String name, TraceTailSamplingRulesArgs args)
public TraceTailSamplingRules(String name, TraceTailSamplingRulesArgs args, CustomResourceOptions options)
type: chronosphere:TraceTailSamplingRules
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TraceTailSamplingRulesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TraceTailSamplingRulesArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TraceTailSamplingRulesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TraceTailSamplingRulesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TraceTailSamplingRulesArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var traceTailSamplingRulesResource = new Pulumi.TraceTailSamplingRules("traceTailSamplingRulesResource", new()
{
DefaultSampleRate = new Pulumi.Inputs.TraceTailSamplingRulesDefaultSampleRateArgs
{
SampleRate = 0,
Enabled = false,
},
Rules = new[]
{
new Pulumi.Inputs.TraceTailSamplingRulesRuleArgs
{
Filter = new Pulumi.Inputs.TraceTailSamplingRulesRuleFilterArgs
{
Spans = new[]
{
new Pulumi.Inputs.TraceTailSamplingRulesRuleFilterSpanArgs
{
Duration = new Pulumi.Inputs.TraceTailSamplingRulesRuleFilterSpanDurationArgs
{
MaxSecs = 0,
MinSecs = 0,
},
Error = new Pulumi.Inputs.TraceTailSamplingRulesRuleFilterSpanErrorArgs
{
Value = false,
},
MatchType = "string",
Operation = new Pulumi.Inputs.TraceTailSamplingRulesRuleFilterSpanOperationArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
ParentOperation = new Pulumi.Inputs.TraceTailSamplingRulesRuleFilterSpanParentOperationArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
ParentService = new Pulumi.Inputs.TraceTailSamplingRulesRuleFilterSpanParentServiceArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
Service = new Pulumi.Inputs.TraceTailSamplingRulesRuleFilterSpanServiceArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
SpanCount = new Pulumi.Inputs.TraceTailSamplingRulesRuleFilterSpanSpanCountArgs
{
Max = 0,
Min = 0,
},
Tags = new[]
{
new Pulumi.Inputs.TraceTailSamplingRulesRuleFilterSpanTagArgs
{
Key = "string",
NumericValue = new Pulumi.Inputs.TraceTailSamplingRulesRuleFilterSpanTagNumericValueArgs
{
Comparison = "string",
Value = 0,
},
Value = new Pulumi.Inputs.TraceTailSamplingRulesRuleFilterSpanTagValueArgs
{
InValues = new[]
{
"string",
},
Match = "string",
Value = "string",
},
},
},
},
},
Trace = new Pulumi.Inputs.TraceTailSamplingRulesRuleFilterTraceArgs
{
Duration = new Pulumi.Inputs.TraceTailSamplingRulesRuleFilterTraceDurationArgs
{
MaxSecs = 0,
MinSecs = 0,
},
Error = new Pulumi.Inputs.TraceTailSamplingRulesRuleFilterTraceErrorArgs
{
Value = false,
},
},
},
SampleRate = 0,
Name = "string",
SystemName = "string",
},
},
});
example, err := chronosphere.NewTraceTailSamplingRules(ctx, "traceTailSamplingRulesResource", &chronosphere.TraceTailSamplingRulesArgs{
DefaultSampleRate: &chronosphere.TraceTailSamplingRulesDefaultSampleRateArgs{
SampleRate: pulumi.Float64(0),
Enabled: pulumi.Bool(false),
},
Rules: chronosphere.TraceTailSamplingRulesRuleArray{
&chronosphere.TraceTailSamplingRulesRuleArgs{
Filter: &chronosphere.TraceTailSamplingRulesRuleFilterArgs{
Spans: chronosphere.TraceTailSamplingRulesRuleFilterSpanArray{
&chronosphere.TraceTailSamplingRulesRuleFilterSpanArgs{
Duration: &chronosphere.TraceTailSamplingRulesRuleFilterSpanDurationArgs{
MaxSecs: pulumi.Float64(0),
MinSecs: pulumi.Float64(0),
},
Error: &chronosphere.TraceTailSamplingRulesRuleFilterSpanErrorArgs{
Value: pulumi.Bool(false),
},
MatchType: pulumi.String("string"),
Operation: &chronosphere.TraceTailSamplingRulesRuleFilterSpanOperationArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
ParentOperation: &chronosphere.TraceTailSamplingRulesRuleFilterSpanParentOperationArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
ParentService: &chronosphere.TraceTailSamplingRulesRuleFilterSpanParentServiceArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
Service: &chronosphere.TraceTailSamplingRulesRuleFilterSpanServiceArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
SpanCount: &chronosphere.TraceTailSamplingRulesRuleFilterSpanSpanCountArgs{
Max: pulumi.Int(0),
Min: pulumi.Int(0),
},
Tags: chronosphere.TraceTailSamplingRulesRuleFilterSpanTagArray{
&chronosphere.TraceTailSamplingRulesRuleFilterSpanTagArgs{
Key: pulumi.String("string"),
NumericValue: &chronosphere.TraceTailSamplingRulesRuleFilterSpanTagNumericValueArgs{
Comparison: pulumi.String("string"),
Value: pulumi.Float64(0),
},
Value: &chronosphere.TraceTailSamplingRulesRuleFilterSpanTagValueArgs{
InValues: pulumi.StringArray{
pulumi.String("string"),
},
Match: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
},
},
Trace: &chronosphere.TraceTailSamplingRulesRuleFilterTraceArgs{
Duration: &chronosphere.TraceTailSamplingRulesRuleFilterTraceDurationArgs{
MaxSecs: pulumi.Float64(0),
MinSecs: pulumi.Float64(0),
},
Error: &chronosphere.TraceTailSamplingRulesRuleFilterTraceErrorArgs{
Value: pulumi.Bool(false),
},
},
},
SampleRate: pulumi.Float64(0),
Name: pulumi.String("string"),
SystemName: pulumi.String("string"),
},
},
})
var traceTailSamplingRulesResource = new TraceTailSamplingRules("traceTailSamplingRulesResource", TraceTailSamplingRulesArgs.builder()
.defaultSampleRate(TraceTailSamplingRulesDefaultSampleRateArgs.builder()
.sampleRate(0)
.enabled(false)
.build())
.rules(TraceTailSamplingRulesRuleArgs.builder()
.filter(TraceTailSamplingRulesRuleFilterArgs.builder()
.spans(TraceTailSamplingRulesRuleFilterSpanArgs.builder()
.duration(TraceTailSamplingRulesRuleFilterSpanDurationArgs.builder()
.maxSecs(0)
.minSecs(0)
.build())
.error(TraceTailSamplingRulesRuleFilterSpanErrorArgs.builder()
.value(false)
.build())
.matchType("string")
.operation(TraceTailSamplingRulesRuleFilterSpanOperationArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.parentOperation(TraceTailSamplingRulesRuleFilterSpanParentOperationArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.parentService(TraceTailSamplingRulesRuleFilterSpanParentServiceArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.service(TraceTailSamplingRulesRuleFilterSpanServiceArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.spanCount(TraceTailSamplingRulesRuleFilterSpanSpanCountArgs.builder()
.max(0)
.min(0)
.build())
.tags(TraceTailSamplingRulesRuleFilterSpanTagArgs.builder()
.key("string")
.numericValue(TraceTailSamplingRulesRuleFilterSpanTagNumericValueArgs.builder()
.comparison("string")
.value(0)
.build())
.value(TraceTailSamplingRulesRuleFilterSpanTagValueArgs.builder()
.inValues("string")
.match("string")
.value("string")
.build())
.build())
.build())
.trace(TraceTailSamplingRulesRuleFilterTraceArgs.builder()
.duration(TraceTailSamplingRulesRuleFilterTraceDurationArgs.builder()
.maxSecs(0)
.minSecs(0)
.build())
.error(TraceTailSamplingRulesRuleFilterTraceErrorArgs.builder()
.value(false)
.build())
.build())
.build())
.sampleRate(0)
.name("string")
.systemName("string")
.build())
.build());
trace_tail_sampling_rules_resource = chronosphere.TraceTailSamplingRules("traceTailSamplingRulesResource",
default_sample_rate=chronosphere.TraceTailSamplingRulesDefaultSampleRateArgs(
sample_rate=0,
enabled=False,
),
rules=[chronosphere.TraceTailSamplingRulesRuleArgs(
filter=chronosphere.TraceTailSamplingRulesRuleFilterArgs(
spans=[chronosphere.TraceTailSamplingRulesRuleFilterSpanArgs(
duration=chronosphere.TraceTailSamplingRulesRuleFilterSpanDurationArgs(
max_secs=0,
min_secs=0,
),
error=chronosphere.TraceTailSamplingRulesRuleFilterSpanErrorArgs(
value=False,
),
match_type="string",
operation=chronosphere.TraceTailSamplingRulesRuleFilterSpanOperationArgs(
in_values=["string"],
match="string",
value="string",
),
parent_operation=chronosphere.TraceTailSamplingRulesRuleFilterSpanParentOperationArgs(
in_values=["string"],
match="string",
value="string",
),
parent_service=chronosphere.TraceTailSamplingRulesRuleFilterSpanParentServiceArgs(
in_values=["string"],
match="string",
value="string",
),
service=chronosphere.TraceTailSamplingRulesRuleFilterSpanServiceArgs(
in_values=["string"],
match="string",
value="string",
),
span_count=chronosphere.TraceTailSamplingRulesRuleFilterSpanSpanCountArgs(
max=0,
min=0,
),
tags=[chronosphere.TraceTailSamplingRulesRuleFilterSpanTagArgs(
key="string",
numeric_value=chronosphere.TraceTailSamplingRulesRuleFilterSpanTagNumericValueArgs(
comparison="string",
value=0,
),
value=chronosphere.TraceTailSamplingRulesRuleFilterSpanTagValueArgs(
in_values=["string"],
match="string",
value="string",
),
)],
)],
trace=chronosphere.TraceTailSamplingRulesRuleFilterTraceArgs(
duration=chronosphere.TraceTailSamplingRulesRuleFilterTraceDurationArgs(
max_secs=0,
min_secs=0,
),
error=chronosphere.TraceTailSamplingRulesRuleFilterTraceErrorArgs(
value=False,
),
),
),
sample_rate=0,
name="string",
system_name="string",
)])
const traceTailSamplingRulesResource = new chronosphere.TraceTailSamplingRules("traceTailSamplingRulesResource", {
defaultSampleRate: {
sampleRate: 0,
enabled: false,
},
rules: [{
filter: {
spans: [{
duration: {
maxSecs: 0,
minSecs: 0,
},
error: {
value: false,
},
matchType: "string",
operation: {
inValues: ["string"],
match: "string",
value: "string",
},
parentOperation: {
inValues: ["string"],
match: "string",
value: "string",
},
parentService: {
inValues: ["string"],
match: "string",
value: "string",
},
service: {
inValues: ["string"],
match: "string",
value: "string",
},
spanCount: {
max: 0,
min: 0,
},
tags: [{
key: "string",
numericValue: {
comparison: "string",
value: 0,
},
value: {
inValues: ["string"],
match: "string",
value: "string",
},
}],
}],
trace: {
duration: {
maxSecs: 0,
minSecs: 0,
},
error: {
value: false,
},
},
},
sampleRate: 0,
name: "string",
systemName: "string",
}],
});
type: chronosphere:TraceTailSamplingRules
properties:
defaultSampleRate:
enabled: false
sampleRate: 0
rules:
- filter:
spans:
- duration:
maxSecs: 0
minSecs: 0
error:
value: false
matchType: string
operation:
inValues:
- string
match: string
value: string
parentOperation:
inValues:
- string
match: string
value: string
parentService:
inValues:
- string
match: string
value: string
service:
inValues:
- string
match: string
value: string
spanCount:
max: 0
min: 0
tags:
- key: string
numericValue:
comparison: string
value: 0
value:
inValues:
- string
match: string
value: string
trace:
duration:
maxSecs: 0
minSecs: 0
error:
value: false
name: string
sampleRate: 0
systemName: string
TraceTailSamplingRules Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The TraceTailSamplingRules resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the TraceTailSamplingRules resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing TraceTailSamplingRules Resource
Get an existing TraceTailSamplingRules resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TraceTailSamplingRulesState, opts?: CustomResourceOptions): TraceTailSamplingRules
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
default_sample_rate: Optional[TraceTailSamplingRulesDefaultSampleRateArgs] = None,
rules: Optional[Sequence[TraceTailSamplingRulesRuleArgs]] = None) -> TraceTailSamplingRules
func GetTraceTailSamplingRules(ctx *Context, name string, id IDInput, state *TraceTailSamplingRulesState, opts ...ResourceOption) (*TraceTailSamplingRules, error)
public static TraceTailSamplingRules Get(string name, Input<string> id, TraceTailSamplingRulesState? state, CustomResourceOptions? opts = null)
public static TraceTailSamplingRules get(String name, Output<String> id, TraceTailSamplingRulesState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
Supporting Types
TraceTailSamplingRulesDefaultSampleRate, TraceTailSamplingRulesDefaultSampleRateArgs
- Sample
Rate double - Enabled bool
- Sample
Rate float64 - Enabled bool
- sample
Rate Double - enabled Boolean
- sample
Rate number - enabled boolean
- sample_
rate float - enabled bool
- sample
Rate Number - enabled Boolean
TraceTailSamplingRulesRule, TraceTailSamplingRulesRuleArgs
- Filter
Trace
Tail Sampling Rules Rule Filter - Sample
Rate float64 - Name string
- System
Name string
- filter
Trace
Tail Sampling Rules Rule Filter - sample
Rate Double - name String
- system
Name String
- filter
Trace
Tail Sampling Rules Rule Filter - sample
Rate number - name string
- system
Name string
- filter Property Map
- sample
Rate Number - name String
- system
Name String
TraceTailSamplingRulesRuleFilter, TraceTailSamplingRulesRuleFilterArgs
TraceTailSamplingRulesRuleFilterSpan, TraceTailSamplingRulesRuleFilterSpanArgs
- Duration
Chronosphere.
Pulumi. Inputs. Trace Tail Sampling Rules Rule Filter Span Duration - Error
Chronosphere.
Pulumi. Inputs. Trace Tail Sampling Rules Rule Filter Span Error - Match
Type string - Operation
Chronosphere.
Pulumi. Inputs. Trace Tail Sampling Rules Rule Filter Span Operation - Parent
Operation Chronosphere.Pulumi. Inputs. Trace Tail Sampling Rules Rule Filter Span Parent Operation - Parent
Service Chronosphere.Pulumi. Inputs. Trace Tail Sampling Rules Rule Filter Span Parent Service - Service
Chronosphere.
Pulumi. Inputs. Trace Tail Sampling Rules Rule Filter Span Service - Span
Count Chronosphere.Pulumi. Inputs. Trace Tail Sampling Rules Rule Filter Span Span Count - List<Chronosphere.
Pulumi. Inputs. Trace Tail Sampling Rules Rule Filter Span Tag>
- Duration
Trace
Tail Sampling Rules Rule Filter Span Duration - Error
Trace
Tail Sampling Rules Rule Filter Span Error - Match
Type string - Operation
Trace
Tail Sampling Rules Rule Filter Span Operation - Parent
Operation TraceTail Sampling Rules Rule Filter Span Parent Operation - Parent
Service TraceTail Sampling Rules Rule Filter Span Parent Service - Service
Trace
Tail Sampling Rules Rule Filter Span Service - Span
Count TraceTail Sampling Rules Rule Filter Span Span Count - []Trace
Tail Sampling Rules Rule Filter Span Tag
- duration
Trace
Tail Sampling Rules Rule Filter Span Duration - error
Trace
Tail Sampling Rules Rule Filter Span Error - match
Type String - operation
Trace
Tail Sampling Rules Rule Filter Span Operation - parent
Operation TraceTail Sampling Rules Rule Filter Span Parent Operation - parent
Service TraceTail Sampling Rules Rule Filter Span Parent Service - service
Trace
Tail Sampling Rules Rule Filter Span Service - span
Count TraceTail Sampling Rules Rule Filter Span Span Count - List<Trace
Tail Sampling Rules Rule Filter Span Tag>
- duration
Trace
Tail Sampling Rules Rule Filter Span Duration - error
Trace
Tail Sampling Rules Rule Filter Span Error - match
Type string - operation
Trace
Tail Sampling Rules Rule Filter Span Operation - parent
Operation TraceTail Sampling Rules Rule Filter Span Parent Operation - parent
Service TraceTail Sampling Rules Rule Filter Span Parent Service - service
Trace
Tail Sampling Rules Rule Filter Span Service - span
Count TraceTail Sampling Rules Rule Filter Span Span Count - Trace
Tail Sampling Rules Rule Filter Span Tag[]
- duration
Trace
Tail Sampling Rules Rule Filter Span Duration - error
Trace
Tail Sampling Rules Rule Filter Span Error - match_
type str - operation
Trace
Tail Sampling Rules Rule Filter Span Operation - parent_
operation TraceTail Sampling Rules Rule Filter Span Parent Operation - parent_
service TraceTail Sampling Rules Rule Filter Span Parent Service - service
Trace
Tail Sampling Rules Rule Filter Span Service - span_
count TraceTail Sampling Rules Rule Filter Span Span Count - Sequence[Trace
Tail Sampling Rules Rule Filter Span Tag]
TraceTailSamplingRulesRuleFilterSpanDuration, TraceTailSamplingRulesRuleFilterSpanDurationArgs
TraceTailSamplingRulesRuleFilterSpanError, TraceTailSamplingRulesRuleFilterSpanErrorArgs
- Value bool
- Value bool
- value Boolean
- value boolean
- value bool
- value Boolean
TraceTailSamplingRulesRuleFilterSpanOperation, TraceTailSamplingRulesRuleFilterSpanOperationArgs
TraceTailSamplingRulesRuleFilterSpanParentOperation, TraceTailSamplingRulesRuleFilterSpanParentOperationArgs
TraceTailSamplingRulesRuleFilterSpanParentService, TraceTailSamplingRulesRuleFilterSpanParentServiceArgs
TraceTailSamplingRulesRuleFilterSpanService, TraceTailSamplingRulesRuleFilterSpanServiceArgs
TraceTailSamplingRulesRuleFilterSpanSpanCount, TraceTailSamplingRulesRuleFilterSpanSpanCountArgs
TraceTailSamplingRulesRuleFilterSpanTag, TraceTailSamplingRulesRuleFilterSpanTagArgs
TraceTailSamplingRulesRuleFilterSpanTagNumericValue, TraceTailSamplingRulesRuleFilterSpanTagNumericValueArgs
- Comparison string
- Value double
- Comparison string
- Value float64
- comparison String
- value Double
- comparison string
- value number
- comparison str
- value float
- comparison String
- value Number
TraceTailSamplingRulesRuleFilterSpanTagValue, TraceTailSamplingRulesRuleFilterSpanTagValueArgs
TraceTailSamplingRulesRuleFilterTrace, TraceTailSamplingRulesRuleFilterTraceArgs
TraceTailSamplingRulesRuleFilterTraceDuration, TraceTailSamplingRulesRuleFilterTraceDurationArgs
TraceTailSamplingRulesRuleFilterTraceError, TraceTailSamplingRulesRuleFilterTraceErrorArgs
- Value bool
- Value bool
- value Boolean
- value boolean
- value bool
- value Boolean
Package Details
- Repository
- chronosphere chronosphereio/pulumi-chronosphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
chronosphere
Terraform Provider.
Chronosphere v0.9.2 published on Monday, Sep 9, 2024 by Chronosphere