1. Packages
  2. Chronosphere
  3. API Docs
  4. TraceTailSamplingRules
Chronosphere v0.9.3 published on Tuesday, Oct 8, 2024 by Chronosphere

chronosphere.TraceTailSamplingRules

Explore with Pulumi AI

chronosphere logo
Chronosphere v0.9.3 published on Tuesday, Oct 8, 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={
            "sample_rate": 0,
            "enabled": False,
        },
        rules=[{
            "filter": {
                "spans": [{
                    "duration": {
                        "max_secs": 0,
                        "min_secs": 0,
                    },
                    "error": {
                        "value": False,
                    },
                    "match_type": "string",
                    "operation": {
                        "in_values": ["string"],
                        "match": "string",
                        "value": "string",
                    },
                    "parent_operation": {
                        "in_values": ["string"],
                        "match": "string",
                        "value": "string",
                    },
                    "parent_service": {
                        "in_values": ["string"],
                        "match": "string",
                        "value": "string",
                    },
                    "service": {
                        "in_values": ["string"],
                        "match": "string",
                        "value": "string",
                    },
                    "span_count": {
                        "max": 0,
                        "min": 0,
                    },
                    "tags": [{
                        "key": "string",
                        "numeric_value": {
                            "comparison": "string",
                            "value": 0,
                        },
                        "value": {
                            "in_values": ["string"],
                            "match": "string",
                            "value": "string",
                        },
                    }],
                }],
                "trace": {
                    "duration": {
                        "max_secs": 0,
                        "min_secs": 0,
                    },
                    "error": {
                        "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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    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

    SampleRate double
    Enabled bool
    SampleRate float64
    Enabled bool
    sampleRate Double
    enabled Boolean
    sampleRate number
    enabled boolean
    sampleRate Number
    enabled Boolean

    TraceTailSamplingRulesRule, TraceTailSamplingRulesRuleArgs

    TraceTailSamplingRulesRuleFilter, TraceTailSamplingRulesRuleFilterArgs

    TraceTailSamplingRulesRuleFilterSpan, TraceTailSamplingRulesRuleFilterSpanArgs

    TraceTailSamplingRulesRuleFilterSpanDuration, TraceTailSamplingRulesRuleFilterSpanDurationArgs

    MaxSecs double
    MinSecs double
    MaxSecs float64
    MinSecs float64
    maxSecs Double
    minSecs Double
    maxSecs number
    minSecs number
    max_secs float
    min_secs float
    maxSecs Number
    minSecs Number

    TraceTailSamplingRulesRuleFilterSpanError, TraceTailSamplingRulesRuleFilterSpanErrorArgs

    Value bool
    Value bool
    value Boolean
    value boolean
    value bool
    value Boolean

    TraceTailSamplingRulesRuleFilterSpanOperation, TraceTailSamplingRulesRuleFilterSpanOperationArgs

    InValues List<string>
    Match string
    Value string
    InValues []string
    Match string
    Value string
    inValues List<String>
    match String
    value String
    inValues string[]
    match string
    value string
    in_values Sequence[str]
    match str
    value str
    inValues List<String>
    match String
    value String

    TraceTailSamplingRulesRuleFilterSpanParentOperation, TraceTailSamplingRulesRuleFilterSpanParentOperationArgs

    InValues List<string>
    Match string
    Value string
    InValues []string
    Match string
    Value string
    inValues List<String>
    match String
    value String
    inValues string[]
    match string
    value string
    in_values Sequence[str]
    match str
    value str
    inValues List<String>
    match String
    value String

    TraceTailSamplingRulesRuleFilterSpanParentService, TraceTailSamplingRulesRuleFilterSpanParentServiceArgs

    InValues List<string>
    Match string
    Value string
    InValues []string
    Match string
    Value string
    inValues List<String>
    match String
    value String
    inValues string[]
    match string
    value string
    in_values Sequence[str]
    match str
    value str
    inValues List<String>
    match String
    value String

    TraceTailSamplingRulesRuleFilterSpanService, TraceTailSamplingRulesRuleFilterSpanServiceArgs

    InValues List<string>
    Match string
    Value string
    InValues []string
    Match string
    Value string
    inValues List<String>
    match String
    value String
    inValues string[]
    match string
    value string
    in_values Sequence[str]
    match str
    value str
    inValues List<String>
    match String
    value String

    TraceTailSamplingRulesRuleFilterSpanSpanCount, TraceTailSamplingRulesRuleFilterSpanSpanCountArgs

    Max int
    Min int
    Max int
    Min int
    max Integer
    min Integer
    max number
    min number
    max int
    min int
    max Number
    min Number

    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

    InValues List<string>
    Match string
    Value string
    InValues []string
    Match string
    Value string
    inValues List<String>
    match String
    value String
    inValues string[]
    match string
    value string
    in_values Sequence[str]
    match str
    value str
    inValues List<String>
    match String
    value String

    TraceTailSamplingRulesRuleFilterTrace, TraceTailSamplingRulesRuleFilterTraceArgs

    TraceTailSamplingRulesRuleFilterTraceDuration, TraceTailSamplingRulesRuleFilterTraceDurationArgs

    MaxSecs double
    MinSecs double
    MaxSecs float64
    MinSecs float64
    maxSecs Double
    minSecs Double
    maxSecs number
    minSecs number
    max_secs float
    min_secs float
    maxSecs Number
    minSecs Number

    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 logo
    Chronosphere v0.9.3 published on Tuesday, Oct 8, 2024 by Chronosphere