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

chronosphere.TraceJaegerRemoteSamplingStrategy

Explore with Pulumi AI

chronosphere logo
Chronosphere v0.9.3 published on Tuesday, Oct 8, 2024 by Chronosphere

    Create TraceJaegerRemoteSamplingStrategy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TraceJaegerRemoteSamplingStrategy(name: string, args: TraceJaegerRemoteSamplingStrategyArgs, opts?: CustomResourceOptions);
    @overload
    def TraceJaegerRemoteSamplingStrategy(resource_name: str,
                                          args: TraceJaegerRemoteSamplingStrategyArgs,
                                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def TraceJaegerRemoteSamplingStrategy(resource_name: str,
                                          opts: Optional[ResourceOptions] = None,
                                          applied_strategy: Optional[TraceJaegerRemoteSamplingStrategyAppliedStrategyArgs] = None,
                                          name: Optional[str] = None,
                                          service_name: Optional[str] = None,
                                          slug: Optional[str] = None)
    func NewTraceJaegerRemoteSamplingStrategy(ctx *Context, name string, args TraceJaegerRemoteSamplingStrategyArgs, opts ...ResourceOption) (*TraceJaegerRemoteSamplingStrategy, error)
    public TraceJaegerRemoteSamplingStrategy(string name, TraceJaegerRemoteSamplingStrategyArgs args, CustomResourceOptions? opts = null)
    public TraceJaegerRemoteSamplingStrategy(String name, TraceJaegerRemoteSamplingStrategyArgs args)
    public TraceJaegerRemoteSamplingStrategy(String name, TraceJaegerRemoteSamplingStrategyArgs args, CustomResourceOptions options)
    
    type: chronosphere:TraceJaegerRemoteSamplingStrategy
    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 TraceJaegerRemoteSamplingStrategyArgs
    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 TraceJaegerRemoteSamplingStrategyArgs
    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 TraceJaegerRemoteSamplingStrategyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TraceJaegerRemoteSamplingStrategyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TraceJaegerRemoteSamplingStrategyArgs
    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 traceJaegerRemoteSamplingStrategyResource = new Pulumi.TraceJaegerRemoteSamplingStrategy("traceJaegerRemoteSamplingStrategyResource", new()
    {
        AppliedStrategy = new Pulumi.Inputs.TraceJaegerRemoteSamplingStrategyAppliedStrategyArgs
        {
            PerOperationStrategies = new Pulumi.Inputs.TraceJaegerRemoteSamplingStrategyAppliedStrategyPerOperationStrategiesArgs
            {
                DefaultSamplingRate = 0,
                DefaultLowerBoundTracesPerSecond = 0,
                DefaultUpperBoundTracesPerSecond = 0,
                PerOperationStrategies = new[]
                {
                    new Pulumi.Inputs.TraceJaegerRemoteSamplingStrategyAppliedStrategyPerOperationStrategiesPerOperationStrategyArgs
                    {
                        Operation = "string",
                        ProbabilisticStrategy = new Pulumi.Inputs.TraceJaegerRemoteSamplingStrategyAppliedStrategyPerOperationStrategiesPerOperationStrategyProbabilisticStrategyArgs
                        {
                            SamplingRate = 0,
                        },
                    },
                },
            },
            ProbabilisticStrategy = new Pulumi.Inputs.TraceJaegerRemoteSamplingStrategyAppliedStrategyProbabilisticStrategyArgs
            {
                SamplingRate = 0,
            },
            RateLimitingStrategy = new Pulumi.Inputs.TraceJaegerRemoteSamplingStrategyAppliedStrategyRateLimitingStrategyArgs
            {
                MaxTracesPerSecond = 0,
            },
        },
        Name = "string",
        ServiceName = "string",
        Slug = "string",
    });
    
    example, err := chronosphere.NewTraceJaegerRemoteSamplingStrategy(ctx, "traceJaegerRemoteSamplingStrategyResource", &chronosphere.TraceJaegerRemoteSamplingStrategyArgs{
    	AppliedStrategy: &chronosphere.TraceJaegerRemoteSamplingStrategyAppliedStrategyArgs{
    		PerOperationStrategies: &chronosphere.TraceJaegerRemoteSamplingStrategyAppliedStrategyPerOperationStrategiesArgs{
    			DefaultSamplingRate:              pulumi.Float64(0),
    			DefaultLowerBoundTracesPerSecond: pulumi.Float64(0),
    			DefaultUpperBoundTracesPerSecond: pulumi.Float64(0),
    			PerOperationStrategies: chronosphere.TraceJaegerRemoteSamplingStrategyAppliedStrategyPerOperationStrategiesPerOperationStrategyArray{
    				&chronosphere.TraceJaegerRemoteSamplingStrategyAppliedStrategyPerOperationStrategiesPerOperationStrategyArgs{
    					Operation: pulumi.String("string"),
    					ProbabilisticStrategy: &chronosphere.TraceJaegerRemoteSamplingStrategyAppliedStrategyPerOperationStrategiesPerOperationStrategyProbabilisticStrategyArgs{
    						SamplingRate: pulumi.Float64(0),
    					},
    				},
    			},
    		},
    		ProbabilisticStrategy: &chronosphere.TraceJaegerRemoteSamplingStrategyAppliedStrategyProbabilisticStrategyArgs{
    			SamplingRate: pulumi.Float64(0),
    		},
    		RateLimitingStrategy: &chronosphere.TraceJaegerRemoteSamplingStrategyAppliedStrategyRateLimitingStrategyArgs{
    			MaxTracesPerSecond: pulumi.Int(0),
    		},
    	},
    	Name:        pulumi.String("string"),
    	ServiceName: pulumi.String("string"),
    	Slug:        pulumi.String("string"),
    })
    
    var traceJaegerRemoteSamplingStrategyResource = new TraceJaegerRemoteSamplingStrategy("traceJaegerRemoteSamplingStrategyResource", TraceJaegerRemoteSamplingStrategyArgs.builder()
        .appliedStrategy(TraceJaegerRemoteSamplingStrategyAppliedStrategyArgs.builder()
            .perOperationStrategies(TraceJaegerRemoteSamplingStrategyAppliedStrategyPerOperationStrategiesArgs.builder()
                .defaultSamplingRate(0)
                .defaultLowerBoundTracesPerSecond(0)
                .defaultUpperBoundTracesPerSecond(0)
                .perOperationStrategies(TraceJaegerRemoteSamplingStrategyAppliedStrategyPerOperationStrategiesPerOperationStrategyArgs.builder()
                    .operation("string")
                    .probabilisticStrategy(TraceJaegerRemoteSamplingStrategyAppliedStrategyPerOperationStrategiesPerOperationStrategyProbabilisticStrategyArgs.builder()
                        .samplingRate(0)
                        .build())
                    .build())
                .build())
            .probabilisticStrategy(TraceJaegerRemoteSamplingStrategyAppliedStrategyProbabilisticStrategyArgs.builder()
                .samplingRate(0)
                .build())
            .rateLimitingStrategy(TraceJaegerRemoteSamplingStrategyAppliedStrategyRateLimitingStrategyArgs.builder()
                .maxTracesPerSecond(0)
                .build())
            .build())
        .name("string")
        .serviceName("string")
        .slug("string")
        .build());
    
    trace_jaeger_remote_sampling_strategy_resource = chronosphere.TraceJaegerRemoteSamplingStrategy("traceJaegerRemoteSamplingStrategyResource",
        applied_strategy={
            "per_operation_strategies": {
                "default_sampling_rate": 0,
                "default_lower_bound_traces_per_second": 0,
                "default_upper_bound_traces_per_second": 0,
                "per_operation_strategies": [{
                    "operation": "string",
                    "probabilistic_strategy": {
                        "sampling_rate": 0,
                    },
                }],
            },
            "probabilistic_strategy": {
                "sampling_rate": 0,
            },
            "rate_limiting_strategy": {
                "max_traces_per_second": 0,
            },
        },
        name="string",
        service_name="string",
        slug="string")
    
    const traceJaegerRemoteSamplingStrategyResource = new chronosphere.TraceJaegerRemoteSamplingStrategy("traceJaegerRemoteSamplingStrategyResource", {
        appliedStrategy: {
            perOperationStrategies: {
                defaultSamplingRate: 0,
                defaultLowerBoundTracesPerSecond: 0,
                defaultUpperBoundTracesPerSecond: 0,
                perOperationStrategies: [{
                    operation: "string",
                    probabilisticStrategy: {
                        samplingRate: 0,
                    },
                }],
            },
            probabilisticStrategy: {
                samplingRate: 0,
            },
            rateLimitingStrategy: {
                maxTracesPerSecond: 0,
            },
        },
        name: "string",
        serviceName: "string",
        slug: "string",
    });
    
    type: chronosphere:TraceJaegerRemoteSamplingStrategy
    properties:
        appliedStrategy:
            perOperationStrategies:
                defaultLowerBoundTracesPerSecond: 0
                defaultSamplingRate: 0
                defaultUpperBoundTracesPerSecond: 0
                perOperationStrategies:
                    - operation: string
                      probabilisticStrategy:
                        samplingRate: 0
            probabilisticStrategy:
                samplingRate: 0
            rateLimitingStrategy:
                maxTracesPerSecond: 0
        name: string
        serviceName: string
        slug: string
    

    TraceJaegerRemoteSamplingStrategy 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 TraceJaegerRemoteSamplingStrategy resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TraceJaegerRemoteSamplingStrategy 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 TraceJaegerRemoteSamplingStrategy Resource

    Get an existing TraceJaegerRemoteSamplingStrategy 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?: TraceJaegerRemoteSamplingStrategyState, opts?: CustomResourceOptions): TraceJaegerRemoteSamplingStrategy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            applied_strategy: Optional[TraceJaegerRemoteSamplingStrategyAppliedStrategyArgs] = None,
            name: Optional[str] = None,
            service_name: Optional[str] = None,
            slug: Optional[str] = None) -> TraceJaegerRemoteSamplingStrategy
    func GetTraceJaegerRemoteSamplingStrategy(ctx *Context, name string, id IDInput, state *TraceJaegerRemoteSamplingStrategyState, opts ...ResourceOption) (*TraceJaegerRemoteSamplingStrategy, error)
    public static TraceJaegerRemoteSamplingStrategy Get(string name, Input<string> id, TraceJaegerRemoteSamplingStrategyState? state, CustomResourceOptions? opts = null)
    public static TraceJaegerRemoteSamplingStrategy get(String name, Output<String> id, TraceJaegerRemoteSamplingStrategyState 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

    TraceJaegerRemoteSamplingStrategyAppliedStrategy, TraceJaegerRemoteSamplingStrategyAppliedStrategyArgs

    TraceJaegerRemoteSamplingStrategyAppliedStrategyPerOperationStrategies, TraceJaegerRemoteSamplingStrategyAppliedStrategyPerOperationStrategiesArgs

    TraceJaegerRemoteSamplingStrategyAppliedStrategyPerOperationStrategiesPerOperationStrategy, TraceJaegerRemoteSamplingStrategyAppliedStrategyPerOperationStrategiesPerOperationStrategyArgs

    TraceJaegerRemoteSamplingStrategyAppliedStrategyPerOperationStrategiesPerOperationStrategyProbabilisticStrategy, TraceJaegerRemoteSamplingStrategyAppliedStrategyPerOperationStrategiesPerOperationStrategyProbabilisticStrategyArgs

    SamplingRate float64

    TraceJaegerRemoteSamplingStrategyAppliedStrategyProbabilisticStrategy, TraceJaegerRemoteSamplingStrategyAppliedStrategyProbabilisticStrategyArgs

    SamplingRate float64

    TraceJaegerRemoteSamplingStrategyAppliedStrategyRateLimitingStrategy, TraceJaegerRemoteSamplingStrategyAppliedStrategyRateLimitingStrategyArgs

    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