1. Packages
  2. Statsig Provider
  3. API Docs
  4. Metric
Statsig v0.0.1 published on Friday, Jun 6, 2025 by Statsig

statsig.Metric

Explore with Pulumi AI

statsig logo
Statsig v0.0.1 published on Friday, Jun 6, 2025 by Statsig

    This resource allows you to configure metrics for your Statsig project.

    To learn more about metrics, see Metrics Documentation

    To learn more about the API powering this resource, see Metrics API Documentation

    Note: Warehouse Native metrics can only be used in Warehouse Native projects

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    resources:
      customEventCountMetric:
        type: statsig:Metric
        properties:
          customRollUpEnd: 14
          customRollUpStart: 0
          description: A short description of this metric.
          directionality: decrease
          isPermanent: false
          isReadOnly: false
          isVerified: false
          metricEvents:
            - criteria: []
              name: test_event_1
          rollupTimeWindow: custom
          tags:
            - test-tag
          type: event_count_custom
          unitTypes:
            - userID
      warehouseNativeMetric:
        type: statsig:Metric
        properties:
          description: A short description of this metric.
          directionality: increase
          isPermanent: false
          isReadOnly: false
          isVerified: false
          tags:
            - test-tag
          type: user_warehouse
          unitTypes:
            - userID
          warehouseNative:
            aggregation: count
            cap: 150
            criteria:
              - column: event
                condition: =
                type: metadata
                values:
                  - add_to_cart
            cuped_attribution_window: 7
            metric_source_name: shoppy_events
    

    Create Metric Resource

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

    Constructor syntax

    new Metric(name: string, args: MetricArgs, opts?: CustomResourceOptions);
    @overload
    def Metric(resource_name: str,
               args: MetricArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Metric(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               type: Optional[str] = None,
               metric_component_metrics: Optional[Sequence[MetricMetricComponentMetricArgs]] = None,
               metric_events: Optional[Sequence[MetricMetricEventArgs]] = None,
               directionality: Optional[str] = None,
               custom_roll_up_end: Optional[float] = None,
               funnel_count_distinct: Optional[str] = None,
               funnel_event_lists: Optional[Sequence[MetricFunnelEventListArgs]] = None,
               is_permanent: Optional[bool] = None,
               is_read_only: Optional[bool] = None,
               description: Optional[str] = None,
               is_verified: Optional[bool] = None,
               dry_run: Optional[bool] = None,
               name: Optional[str] = None,
               rollup_time_window: Optional[str] = None,
               tags: Optional[Sequence[str]] = None,
               team: Optional[str] = None,
               team_id: Optional[str] = None,
               custom_roll_up_start: Optional[float] = None,
               unit_types: Optional[Sequence[str]] = None,
               warehouse_native: Optional[MetricWarehouseNativeArgs] = None)
    func NewMetric(ctx *Context, name string, args MetricArgs, opts ...ResourceOption) (*Metric, error)
    public Metric(string name, MetricArgs args, CustomResourceOptions? opts = null)
    public Metric(String name, MetricArgs args)
    public Metric(String name, MetricArgs args, CustomResourceOptions options)
    
    type: statsig:Metric
    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 MetricArgs
    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 MetricArgs
    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 MetricArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MetricArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MetricArgs
    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 metricResource = new Pulumi.Metric("metricResource", new()
    {
        Type = "string",
        MetricComponentMetrics = new[]
        {
            new Pulumi.Inputs.MetricMetricComponentMetricArgs
            {
                Name = "string",
                Type = "string",
            },
        },
        MetricEvents = new[]
        {
            new Pulumi.Inputs.MetricMetricEventArgs
            {
                Name = "string",
                Criterias = new[]
                {
                    new Pulumi.Inputs.MetricMetricEventCriteriaArgs
                    {
                        Condition = "string",
                        Type = "string",
                        Column = "string",
                        NullVacuousOverride = false,
                        Values = new[]
                        {
                            "string",
                        },
                    },
                },
                MetadataKey = "string",
                Type = "string",
            },
        },
        Directionality = "string",
        CustomRollUpEnd = 0,
        FunnelCountDistinct = "string",
        FunnelEventLists = new[]
        {
            new Pulumi.Inputs.MetricFunnelEventListArgs
            {
                Name = "string",
                Type = "string",
            },
        },
        IsPermanent = false,
        IsReadOnly = false,
        Description = "string",
        IsVerified = false,
        DryRun = false,
        Name = "string",
        RollupTimeWindow = "string",
        Tags = new[]
        {
            "string",
        },
        Team = "string",
        TeamId = "string",
        CustomRollUpStart = 0,
        UnitTypes = new[]
        {
            "string",
        },
        WarehouseNative = new Pulumi.Inputs.MetricWarehouseNativeArgs
        {
            Aggregation = "string",
            AllowNullRatioDenominator = false,
            Cap = 0,
            Criterias = new[]
            {
                new Pulumi.Inputs.MetricWarehouseNativeCriteriaArgs
                {
                    Condition = "string",
                    Type = "string",
                    Column = "string",
                    NullVacuousOverride = false,
                    Values = new[]
                    {
                        "string",
                    },
                },
            },
            CupedAttributionWindow = 0,
            CustomRollUpEnd = 0,
            CustomRollUpStart = 0,
            DenominatorAggregation = "string",
            DenominatorCriterias = new[]
            {
                new Pulumi.Inputs.MetricWarehouseNativeDenominatorCriteriaArgs
                {
                    Condition = "string",
                    Type = "string",
                    Column = "string",
                    NullVacuousOverride = false,
                    Values = new[]
                    {
                        "string",
                    },
                },
            },
            DenominatorCustomRollupEnd = 0,
            DenominatorCustomRollupStart = 0,
            DenominatorMetricSourceName = "string",
            DenominatorRollupTimeWindow = "string",
            DenominatorValueColumn = "string",
            FunnelCalculationWindow = 0,
            FunnelCountDistinct = "string",
            FunnelEvents = new[]
            {
                new Pulumi.Inputs.MetricWarehouseNativeFunnelEventArgs
                {
                    Criterias = new[]
                    {
                        new Pulumi.Inputs.MetricWarehouseNativeFunnelEventCriteriaArgs
                        {
                            Condition = "string",
                            Type = "string",
                            Column = "string",
                            NullVacuousOverride = false,
                            Values = new[]
                            {
                                "string",
                            },
                        },
                    },
                    MetricSourceName = "string",
                    Name = "string",
                    SessionIdentifierField = "string",
                },
            },
            FunnelStartCriteria = "string",
            MetricBakeDays = 0,
            MetricDimensionColumns = new[]
            {
                "string",
            },
            MetricSourceName = "string",
            NumeratorAggregation = "string",
            OnlyIncludeUsersWithConversionEvent = false,
            Percentile = 0,
            RollupTimeWindow = "string",
            ValueColumn = "string",
            ValueThreshold = 0,
            WaitForCohortWindow = false,
            WinsorizationHigh = 0,
            WinsorizationLow = 0,
        },
    });
    
    example, err := statsig.NewMetric(ctx, "metricResource", &statsig.MetricArgs{
    	Type: pulumi.String("string"),
    	MetricComponentMetrics: statsig.MetricMetricComponentMetricArray{
    		&statsig.MetricMetricComponentMetricArgs{
    			Name: pulumi.String("string"),
    			Type: pulumi.String("string"),
    		},
    	},
    	MetricEvents: statsig.MetricMetricEventArray{
    		&statsig.MetricMetricEventArgs{
    			Name: pulumi.String("string"),
    			Criterias: statsig.MetricMetricEventCriteriaArray{
    				&statsig.MetricMetricEventCriteriaArgs{
    					Condition:           pulumi.String("string"),
    					Type:                pulumi.String("string"),
    					Column:              pulumi.String("string"),
    					NullVacuousOverride: pulumi.Bool(false),
    					Values: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    				},
    			},
    			MetadataKey: pulumi.String("string"),
    			Type:        pulumi.String("string"),
    		},
    	},
    	Directionality:      pulumi.String("string"),
    	CustomRollUpEnd:     pulumi.Float64(0),
    	FunnelCountDistinct: pulumi.String("string"),
    	FunnelEventLists: statsig.MetricFunnelEventListArray{
    		&statsig.MetricFunnelEventListArgs{
    			Name: pulumi.String("string"),
    			Type: pulumi.String("string"),
    		},
    	},
    	IsPermanent:      pulumi.Bool(false),
    	IsReadOnly:       pulumi.Bool(false),
    	Description:      pulumi.String("string"),
    	IsVerified:       pulumi.Bool(false),
    	DryRun:           pulumi.Bool(false),
    	Name:             pulumi.String("string"),
    	RollupTimeWindow: pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Team:              pulumi.String("string"),
    	TeamId:            pulumi.String("string"),
    	CustomRollUpStart: pulumi.Float64(0),
    	UnitTypes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	WarehouseNative: &statsig.MetricWarehouseNativeArgs{
    		Aggregation:               pulumi.String("string"),
    		AllowNullRatioDenominator: pulumi.Bool(false),
    		Cap:                       pulumi.Float64(0),
    		Criterias: statsig.MetricWarehouseNativeCriteriaArray{
    			&statsig.MetricWarehouseNativeCriteriaArgs{
    				Condition:           pulumi.String("string"),
    				Type:                pulumi.String("string"),
    				Column:              pulumi.String("string"),
    				NullVacuousOverride: pulumi.Bool(false),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    		CupedAttributionWindow: pulumi.Float64(0),
    		CustomRollUpEnd:        pulumi.Float64(0),
    		CustomRollUpStart:      pulumi.Float64(0),
    		DenominatorAggregation: pulumi.String("string"),
    		DenominatorCriterias: statsig.MetricWarehouseNativeDenominatorCriteriaArray{
    			&statsig.MetricWarehouseNativeDenominatorCriteriaArgs{
    				Condition:           pulumi.String("string"),
    				Type:                pulumi.String("string"),
    				Column:              pulumi.String("string"),
    				NullVacuousOverride: pulumi.Bool(false),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    		DenominatorCustomRollupEnd:   pulumi.Float64(0),
    		DenominatorCustomRollupStart: pulumi.Float64(0),
    		DenominatorMetricSourceName:  pulumi.String("string"),
    		DenominatorRollupTimeWindow:  pulumi.String("string"),
    		DenominatorValueColumn:       pulumi.String("string"),
    		FunnelCalculationWindow:      pulumi.Float64(0),
    		FunnelCountDistinct:          pulumi.String("string"),
    		FunnelEvents: statsig.MetricWarehouseNativeFunnelEventArray{
    			&statsig.MetricWarehouseNativeFunnelEventArgs{
    				Criterias: statsig.MetricWarehouseNativeFunnelEventCriteriaArray{
    					&statsig.MetricWarehouseNativeFunnelEventCriteriaArgs{
    						Condition:           pulumi.String("string"),
    						Type:                pulumi.String("string"),
    						Column:              pulumi.String("string"),
    						NullVacuousOverride: pulumi.Bool(false),
    						Values: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    					},
    				},
    				MetricSourceName:       pulumi.String("string"),
    				Name:                   pulumi.String("string"),
    				SessionIdentifierField: pulumi.String("string"),
    			},
    		},
    		FunnelStartCriteria: pulumi.String("string"),
    		MetricBakeDays:      pulumi.Float64(0),
    		MetricDimensionColumns: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		MetricSourceName:                    pulumi.String("string"),
    		NumeratorAggregation:                pulumi.String("string"),
    		OnlyIncludeUsersWithConversionEvent: pulumi.Bool(false),
    		Percentile:                          pulumi.Float64(0),
    		RollupTimeWindow:                    pulumi.String("string"),
    		ValueColumn:                         pulumi.String("string"),
    		ValueThreshold:                      pulumi.Float64(0),
    		WaitForCohortWindow:                 pulumi.Bool(false),
    		WinsorizationHigh:                   pulumi.Float64(0),
    		WinsorizationLow:                    pulumi.Float64(0),
    	},
    })
    
    var metricResource = new Metric("metricResource", MetricArgs.builder()
        .type("string")
        .metricComponentMetrics(MetricMetricComponentMetricArgs.builder()
            .name("string")
            .type("string")
            .build())
        .metricEvents(MetricMetricEventArgs.builder()
            .name("string")
            .criterias(MetricMetricEventCriteriaArgs.builder()
                .condition("string")
                .type("string")
                .column("string")
                .nullVacuousOverride(false)
                .values("string")
                .build())
            .metadataKey("string")
            .type("string")
            .build())
        .directionality("string")
        .customRollUpEnd(0.0)
        .funnelCountDistinct("string")
        .funnelEventLists(MetricFunnelEventListArgs.builder()
            .name("string")
            .type("string")
            .build())
        .isPermanent(false)
        .isReadOnly(false)
        .description("string")
        .isVerified(false)
        .dryRun(false)
        .name("string")
        .rollupTimeWindow("string")
        .tags("string")
        .team("string")
        .teamId("string")
        .customRollUpStart(0.0)
        .unitTypes("string")
        .warehouseNative(MetricWarehouseNativeArgs.builder()
            .aggregation("string")
            .allowNullRatioDenominator(false)
            .cap(0.0)
            .criterias(MetricWarehouseNativeCriteriaArgs.builder()
                .condition("string")
                .type("string")
                .column("string")
                .nullVacuousOverride(false)
                .values("string")
                .build())
            .cupedAttributionWindow(0.0)
            .customRollUpEnd(0.0)
            .customRollUpStart(0.0)
            .denominatorAggregation("string")
            .denominatorCriterias(MetricWarehouseNativeDenominatorCriteriaArgs.builder()
                .condition("string")
                .type("string")
                .column("string")
                .nullVacuousOverride(false)
                .values("string")
                .build())
            .denominatorCustomRollupEnd(0.0)
            .denominatorCustomRollupStart(0.0)
            .denominatorMetricSourceName("string")
            .denominatorRollupTimeWindow("string")
            .denominatorValueColumn("string")
            .funnelCalculationWindow(0.0)
            .funnelCountDistinct("string")
            .funnelEvents(MetricWarehouseNativeFunnelEventArgs.builder()
                .criterias(MetricWarehouseNativeFunnelEventCriteriaArgs.builder()
                    .condition("string")
                    .type("string")
                    .column("string")
                    .nullVacuousOverride(false)
                    .values("string")
                    .build())
                .metricSourceName("string")
                .name("string")
                .sessionIdentifierField("string")
                .build())
            .funnelStartCriteria("string")
            .metricBakeDays(0.0)
            .metricDimensionColumns("string")
            .metricSourceName("string")
            .numeratorAggregation("string")
            .onlyIncludeUsersWithConversionEvent(false)
            .percentile(0.0)
            .rollupTimeWindow("string")
            .valueColumn("string")
            .valueThreshold(0.0)
            .waitForCohortWindow(false)
            .winsorizationHigh(0.0)
            .winsorizationLow(0.0)
            .build())
        .build());
    
    metric_resource = statsig.Metric("metricResource",
        type="string",
        metric_component_metrics=[{
            "name": "string",
            "type": "string",
        }],
        metric_events=[{
            "name": "string",
            "criterias": [{
                "condition": "string",
                "type": "string",
                "column": "string",
                "null_vacuous_override": False,
                "values": ["string"],
            }],
            "metadata_key": "string",
            "type": "string",
        }],
        directionality="string",
        custom_roll_up_end=0,
        funnel_count_distinct="string",
        funnel_event_lists=[{
            "name": "string",
            "type": "string",
        }],
        is_permanent=False,
        is_read_only=False,
        description="string",
        is_verified=False,
        dry_run=False,
        name="string",
        rollup_time_window="string",
        tags=["string"],
        team="string",
        team_id="string",
        custom_roll_up_start=0,
        unit_types=["string"],
        warehouse_native={
            "aggregation": "string",
            "allow_null_ratio_denominator": False,
            "cap": 0,
            "criterias": [{
                "condition": "string",
                "type": "string",
                "column": "string",
                "null_vacuous_override": False,
                "values": ["string"],
            }],
            "cuped_attribution_window": 0,
            "custom_roll_up_end": 0,
            "custom_roll_up_start": 0,
            "denominator_aggregation": "string",
            "denominator_criterias": [{
                "condition": "string",
                "type": "string",
                "column": "string",
                "null_vacuous_override": False,
                "values": ["string"],
            }],
            "denominator_custom_rollup_end": 0,
            "denominator_custom_rollup_start": 0,
            "denominator_metric_source_name": "string",
            "denominator_rollup_time_window": "string",
            "denominator_value_column": "string",
            "funnel_calculation_window": 0,
            "funnel_count_distinct": "string",
            "funnel_events": [{
                "criterias": [{
                    "condition": "string",
                    "type": "string",
                    "column": "string",
                    "null_vacuous_override": False,
                    "values": ["string"],
                }],
                "metric_source_name": "string",
                "name": "string",
                "session_identifier_field": "string",
            }],
            "funnel_start_criteria": "string",
            "metric_bake_days": 0,
            "metric_dimension_columns": ["string"],
            "metric_source_name": "string",
            "numerator_aggregation": "string",
            "only_include_users_with_conversion_event": False,
            "percentile": 0,
            "rollup_time_window": "string",
            "value_column": "string",
            "value_threshold": 0,
            "wait_for_cohort_window": False,
            "winsorization_high": 0,
            "winsorization_low": 0,
        })
    
    const metricResource = new statsig.Metric("metricResource", {
        type: "string",
        metricComponentMetrics: [{
            name: "string",
            type: "string",
        }],
        metricEvents: [{
            name: "string",
            criterias: [{
                condition: "string",
                type: "string",
                column: "string",
                nullVacuousOverride: false,
                values: ["string"],
            }],
            metadataKey: "string",
            type: "string",
        }],
        directionality: "string",
        customRollUpEnd: 0,
        funnelCountDistinct: "string",
        funnelEventLists: [{
            name: "string",
            type: "string",
        }],
        isPermanent: false,
        isReadOnly: false,
        description: "string",
        isVerified: false,
        dryRun: false,
        name: "string",
        rollupTimeWindow: "string",
        tags: ["string"],
        team: "string",
        teamId: "string",
        customRollUpStart: 0,
        unitTypes: ["string"],
        warehouseNative: {
            aggregation: "string",
            allowNullRatioDenominator: false,
            cap: 0,
            criterias: [{
                condition: "string",
                type: "string",
                column: "string",
                nullVacuousOverride: false,
                values: ["string"],
            }],
            cupedAttributionWindow: 0,
            customRollUpEnd: 0,
            customRollUpStart: 0,
            denominatorAggregation: "string",
            denominatorCriterias: [{
                condition: "string",
                type: "string",
                column: "string",
                nullVacuousOverride: false,
                values: ["string"],
            }],
            denominatorCustomRollupEnd: 0,
            denominatorCustomRollupStart: 0,
            denominatorMetricSourceName: "string",
            denominatorRollupTimeWindow: "string",
            denominatorValueColumn: "string",
            funnelCalculationWindow: 0,
            funnelCountDistinct: "string",
            funnelEvents: [{
                criterias: [{
                    condition: "string",
                    type: "string",
                    column: "string",
                    nullVacuousOverride: false,
                    values: ["string"],
                }],
                metricSourceName: "string",
                name: "string",
                sessionIdentifierField: "string",
            }],
            funnelStartCriteria: "string",
            metricBakeDays: 0,
            metricDimensionColumns: ["string"],
            metricSourceName: "string",
            numeratorAggregation: "string",
            onlyIncludeUsersWithConversionEvent: false,
            percentile: 0,
            rollupTimeWindow: "string",
            valueColumn: "string",
            valueThreshold: 0,
            waitForCohortWindow: false,
            winsorizationHigh: 0,
            winsorizationLow: 0,
        },
    });
    
    type: statsig:Metric
    properties:
        customRollUpEnd: 0
        customRollUpStart: 0
        description: string
        directionality: string
        dryRun: false
        funnelCountDistinct: string
        funnelEventLists:
            - name: string
              type: string
        isPermanent: false
        isReadOnly: false
        isVerified: false
        metricComponentMetrics:
            - name: string
              type: string
        metricEvents:
            - criterias:
                - column: string
                  condition: string
                  nullVacuousOverride: false
                  type: string
                  values:
                    - string
              metadataKey: string
              name: string
              type: string
        name: string
        rollupTimeWindow: string
        tags:
            - string
        team: string
        teamId: string
        type: string
        unitTypes:
            - string
        warehouseNative:
            aggregation: string
            allowNullRatioDenominator: false
            cap: 0
            criterias:
                - column: string
                  condition: string
                  nullVacuousOverride: false
                  type: string
                  values:
                    - string
            cupedAttributionWindow: 0
            customRollUpEnd: 0
            customRollUpStart: 0
            denominatorAggregation: string
            denominatorCriterias:
                - column: string
                  condition: string
                  nullVacuousOverride: false
                  type: string
                  values:
                    - string
            denominatorCustomRollupEnd: 0
            denominatorCustomRollupStart: 0
            denominatorMetricSourceName: string
            denominatorRollupTimeWindow: string
            denominatorValueColumn: string
            funnelCalculationWindow: 0
            funnelCountDistinct: string
            funnelEvents:
                - criterias:
                    - column: string
                      condition: string
                      nullVacuousOverride: false
                      type: string
                      values:
                        - string
                  metricSourceName: string
                  name: string
                  sessionIdentifierField: string
            funnelStartCriteria: string
            metricBakeDays: 0
            metricDimensionColumns:
                - string
            metricSourceName: string
            numeratorAggregation: string
            onlyIncludeUsersWithConversionEvent: false
            percentile: 0
            rollupTimeWindow: string
            valueColumn: string
            valueThreshold: 0
            waitForCohortWindow: false
            winsorizationHigh: 0
            winsorizationLow: 0
    

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

    Type string
    The type of the metric. Allowed values include sum, ratio, mean, eventcountsum, composite, compositesum, undefined, funnel, userwarehouse.
    CustomRollUpEnd double
    Custom time window end date in days since exposure.
    CustomRollUpStart double
    Custom time window start date in days since exposure.
    Description string
    A description of the new metric, providing context and purpose.
    Directionality string
    Indicates the desired change direction for the metric. Use "increase" for positive changes and "decrease" for negative changes.
    DryRun bool
    Skips persisting the metric (used to validate that inputs are correct)
    FunnelCountDistinct string
    Specifies whether to count events or distinct users for the funnel metric.
    FunnelEventLists List<Statsig.Pulumi.Inputs.MetricFunnelEventList>
    List of events used to create funnel metrics.
    IsPermanent bool
    Indicates whether the metric is permanent and should not be deleted.
    IsReadOnly bool
    Set to true to make the metric definition editable only from the Console API.
    IsVerified bool
    Marks the metric as verified for internal trustworthiness.
    MetricComponentMetrics List<Statsig.Pulumi.Inputs.MetricMetricComponentMetric>
    List of input metrics used to calculate the new metric for composite types.
    MetricEvents List<Statsig.Pulumi.Inputs.MetricMetricEvent>
    An array of event definitions used to compute the metric.
    Name string
    The name of the new metric, which identifies it within the system.
    RollupTimeWindow string
    Time window for the metric rollup. Specify "custom" for a customized time window.
    Tags List<string>
    Tags associated with the metric for categorization and searchability.
    Team string
    The team associated with the metric, applicable for enterprise environments.
    TeamId string
    The team ID associated with the metric, applicable for enterprise environments.
    UnitTypes List<string>
    Array of unit types associated with the metric, such as stableID or userID.
    WarehouseNative Statsig.Pulumi.Inputs.MetricWarehouseNative
    Defines warehouse native metrics for advanced configurations.
    Type string
    The type of the metric. Allowed values include sum, ratio, mean, eventcountsum, composite, compositesum, undefined, funnel, userwarehouse.
    CustomRollUpEnd float64
    Custom time window end date in days since exposure.
    CustomRollUpStart float64
    Custom time window start date in days since exposure.
    Description string
    A description of the new metric, providing context and purpose.
    Directionality string
    Indicates the desired change direction for the metric. Use "increase" for positive changes and "decrease" for negative changes.
    DryRun bool
    Skips persisting the metric (used to validate that inputs are correct)
    FunnelCountDistinct string
    Specifies whether to count events or distinct users for the funnel metric.
    FunnelEventLists []MetricFunnelEventListArgs
    List of events used to create funnel metrics.
    IsPermanent bool
    Indicates whether the metric is permanent and should not be deleted.
    IsReadOnly bool
    Set to true to make the metric definition editable only from the Console API.
    IsVerified bool
    Marks the metric as verified for internal trustworthiness.
    MetricComponentMetrics []MetricMetricComponentMetricArgs
    List of input metrics used to calculate the new metric for composite types.
    MetricEvents []MetricMetricEventArgs
    An array of event definitions used to compute the metric.
    Name string
    The name of the new metric, which identifies it within the system.
    RollupTimeWindow string
    Time window for the metric rollup. Specify "custom" for a customized time window.
    Tags []string
    Tags associated with the metric for categorization and searchability.
    Team string
    The team associated with the metric, applicable for enterprise environments.
    TeamId string
    The team ID associated with the metric, applicable for enterprise environments.
    UnitTypes []string
    Array of unit types associated with the metric, such as stableID or userID.
    WarehouseNative MetricWarehouseNativeArgs
    Defines warehouse native metrics for advanced configurations.
    type String
    The type of the metric. Allowed values include sum, ratio, mean, eventcountsum, composite, compositesum, undefined, funnel, userwarehouse.
    customRollUpEnd Double
    Custom time window end date in days since exposure.
    customRollUpStart Double
    Custom time window start date in days since exposure.
    description String
    A description of the new metric, providing context and purpose.
    directionality String
    Indicates the desired change direction for the metric. Use "increase" for positive changes and "decrease" for negative changes.
    dryRun Boolean
    Skips persisting the metric (used to validate that inputs are correct)
    funnelCountDistinct String
    Specifies whether to count events or distinct users for the funnel metric.
    funnelEventLists List<MetricFunnelEventList>
    List of events used to create funnel metrics.
    isPermanent Boolean
    Indicates whether the metric is permanent and should not be deleted.
    isReadOnly Boolean
    Set to true to make the metric definition editable only from the Console API.
    isVerified Boolean
    Marks the metric as verified for internal trustworthiness.
    metricComponentMetrics List<MetricMetricComponentMetric>
    List of input metrics used to calculate the new metric for composite types.
    metricEvents List<MetricMetricEvent>
    An array of event definitions used to compute the metric.
    name String
    The name of the new metric, which identifies it within the system.
    rollupTimeWindow String
    Time window for the metric rollup. Specify "custom" for a customized time window.
    tags List<String>
    Tags associated with the metric for categorization and searchability.
    team String
    The team associated with the metric, applicable for enterprise environments.
    teamId String
    The team ID associated with the metric, applicable for enterprise environments.
    unitTypes List<String>
    Array of unit types associated with the metric, such as stableID or userID.
    warehouseNative MetricWarehouseNative
    Defines warehouse native metrics for advanced configurations.
    type string
    The type of the metric. Allowed values include sum, ratio, mean, eventcountsum, composite, compositesum, undefined, funnel, userwarehouse.
    customRollUpEnd number
    Custom time window end date in days since exposure.
    customRollUpStart number
    Custom time window start date in days since exposure.
    description string
    A description of the new metric, providing context and purpose.
    directionality string
    Indicates the desired change direction for the metric. Use "increase" for positive changes and "decrease" for negative changes.
    dryRun boolean
    Skips persisting the metric (used to validate that inputs are correct)
    funnelCountDistinct string
    Specifies whether to count events or distinct users for the funnel metric.
    funnelEventLists MetricFunnelEventList[]
    List of events used to create funnel metrics.
    isPermanent boolean
    Indicates whether the metric is permanent and should not be deleted.
    isReadOnly boolean
    Set to true to make the metric definition editable only from the Console API.
    isVerified boolean
    Marks the metric as verified for internal trustworthiness.
    metricComponentMetrics MetricMetricComponentMetric[]
    List of input metrics used to calculate the new metric for composite types.
    metricEvents MetricMetricEvent[]
    An array of event definitions used to compute the metric.
    name string
    The name of the new metric, which identifies it within the system.
    rollupTimeWindow string
    Time window for the metric rollup. Specify "custom" for a customized time window.
    tags string[]
    Tags associated with the metric for categorization and searchability.
    team string
    The team associated with the metric, applicable for enterprise environments.
    teamId string
    The team ID associated with the metric, applicable for enterprise environments.
    unitTypes string[]
    Array of unit types associated with the metric, such as stableID or userID.
    warehouseNative MetricWarehouseNative
    Defines warehouse native metrics for advanced configurations.
    type str
    The type of the metric. Allowed values include sum, ratio, mean, eventcountsum, composite, compositesum, undefined, funnel, userwarehouse.
    custom_roll_up_end float
    Custom time window end date in days since exposure.
    custom_roll_up_start float
    Custom time window start date in days since exposure.
    description str
    A description of the new metric, providing context and purpose.
    directionality str
    Indicates the desired change direction for the metric. Use "increase" for positive changes and "decrease" for negative changes.
    dry_run bool
    Skips persisting the metric (used to validate that inputs are correct)
    funnel_count_distinct str
    Specifies whether to count events or distinct users for the funnel metric.
    funnel_event_lists Sequence[MetricFunnelEventListArgs]
    List of events used to create funnel metrics.
    is_permanent bool
    Indicates whether the metric is permanent and should not be deleted.
    is_read_only bool
    Set to true to make the metric definition editable only from the Console API.
    is_verified bool
    Marks the metric as verified for internal trustworthiness.
    metric_component_metrics Sequence[MetricMetricComponentMetricArgs]
    List of input metrics used to calculate the new metric for composite types.
    metric_events Sequence[MetricMetricEventArgs]
    An array of event definitions used to compute the metric.
    name str
    The name of the new metric, which identifies it within the system.
    rollup_time_window str
    Time window for the metric rollup. Specify "custom" for a customized time window.
    tags Sequence[str]
    Tags associated with the metric for categorization and searchability.
    team str
    The team associated with the metric, applicable for enterprise environments.
    team_id str
    The team ID associated with the metric, applicable for enterprise environments.
    unit_types Sequence[str]
    Array of unit types associated with the metric, such as stableID or userID.
    warehouse_native MetricWarehouseNativeArgs
    Defines warehouse native metrics for advanced configurations.
    type String
    The type of the metric. Allowed values include sum, ratio, mean, eventcountsum, composite, compositesum, undefined, funnel, userwarehouse.
    customRollUpEnd Number
    Custom time window end date in days since exposure.
    customRollUpStart Number
    Custom time window start date in days since exposure.
    description String
    A description of the new metric, providing context and purpose.
    directionality String
    Indicates the desired change direction for the metric. Use "increase" for positive changes and "decrease" for negative changes.
    dryRun Boolean
    Skips persisting the metric (used to validate that inputs are correct)
    funnelCountDistinct String
    Specifies whether to count events or distinct users for the funnel metric.
    funnelEventLists List<Property Map>
    List of events used to create funnel metrics.
    isPermanent Boolean
    Indicates whether the metric is permanent and should not be deleted.
    isReadOnly Boolean
    Set to true to make the metric definition editable only from the Console API.
    isVerified Boolean
    Marks the metric as verified for internal trustworthiness.
    metricComponentMetrics List<Property Map>
    List of input metrics used to calculate the new metric for composite types.
    metricEvents List<Property Map>
    An array of event definitions used to compute the metric.
    name String
    The name of the new metric, which identifies it within the system.
    rollupTimeWindow String
    Time window for the metric rollup. Specify "custom" for a customized time window.
    tags List<String>
    Tags associated with the metric for categorization and searchability.
    team String
    The team associated with the metric, applicable for enterprise environments.
    teamId String
    The team ID associated with the metric, applicable for enterprise environments.
    unitTypes List<String>
    Array of unit types associated with the metric, such as stableID or userID.
    warehouseNative Property Map
    Defines warehouse native metrics for advanced configurations.

    Outputs

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

    Get an existing Metric 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?: MetricState, opts?: CustomResourceOptions): Metric
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            custom_roll_up_end: Optional[float] = None,
            custom_roll_up_start: Optional[float] = None,
            description: Optional[str] = None,
            directionality: Optional[str] = None,
            dry_run: Optional[bool] = None,
            funnel_count_distinct: Optional[str] = None,
            funnel_event_lists: Optional[Sequence[MetricFunnelEventListArgs]] = None,
            is_permanent: Optional[bool] = None,
            is_read_only: Optional[bool] = None,
            is_verified: Optional[bool] = None,
            metric_component_metrics: Optional[Sequence[MetricMetricComponentMetricArgs]] = None,
            metric_events: Optional[Sequence[MetricMetricEventArgs]] = None,
            name: Optional[str] = None,
            rollup_time_window: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            team: Optional[str] = None,
            team_id: Optional[str] = None,
            type: Optional[str] = None,
            unit_types: Optional[Sequence[str]] = None,
            warehouse_native: Optional[MetricWarehouseNativeArgs] = None) -> Metric
    func GetMetric(ctx *Context, name string, id IDInput, state *MetricState, opts ...ResourceOption) (*Metric, error)
    public static Metric Get(string name, Input<string> id, MetricState? state, CustomResourceOptions? opts = null)
    public static Metric get(String name, Output<String> id, MetricState state, CustomResourceOptions options)
    resources:  _:    type: statsig:Metric    get:      id: ${id}
    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.
    The following state arguments are supported:
    CustomRollUpEnd double
    Custom time window end date in days since exposure.
    CustomRollUpStart double
    Custom time window start date in days since exposure.
    Description string
    A description of the new metric, providing context and purpose.
    Directionality string
    Indicates the desired change direction for the metric. Use "increase" for positive changes and "decrease" for negative changes.
    DryRun bool
    Skips persisting the metric (used to validate that inputs are correct)
    FunnelCountDistinct string
    Specifies whether to count events or distinct users for the funnel metric.
    FunnelEventLists List<Statsig.Pulumi.Inputs.MetricFunnelEventList>
    List of events used to create funnel metrics.
    IsPermanent bool
    Indicates whether the metric is permanent and should not be deleted.
    IsReadOnly bool
    Set to true to make the metric definition editable only from the Console API.
    IsVerified bool
    Marks the metric as verified for internal trustworthiness.
    MetricComponentMetrics List<Statsig.Pulumi.Inputs.MetricMetricComponentMetric>
    List of input metrics used to calculate the new metric for composite types.
    MetricEvents List<Statsig.Pulumi.Inputs.MetricMetricEvent>
    An array of event definitions used to compute the metric.
    Name string
    The name of the new metric, which identifies it within the system.
    RollupTimeWindow string
    Time window for the metric rollup. Specify "custom" for a customized time window.
    Tags List<string>
    Tags associated with the metric for categorization and searchability.
    Team string
    The team associated with the metric, applicable for enterprise environments.
    TeamId string
    The team ID associated with the metric, applicable for enterprise environments.
    Type string
    The type of the metric. Allowed values include sum, ratio, mean, eventcountsum, composite, compositesum, undefined, funnel, userwarehouse.
    UnitTypes List<string>
    Array of unit types associated with the metric, such as stableID or userID.
    WarehouseNative Statsig.Pulumi.Inputs.MetricWarehouseNative
    Defines warehouse native metrics for advanced configurations.
    CustomRollUpEnd float64
    Custom time window end date in days since exposure.
    CustomRollUpStart float64
    Custom time window start date in days since exposure.
    Description string
    A description of the new metric, providing context and purpose.
    Directionality string
    Indicates the desired change direction for the metric. Use "increase" for positive changes and "decrease" for negative changes.
    DryRun bool
    Skips persisting the metric (used to validate that inputs are correct)
    FunnelCountDistinct string
    Specifies whether to count events or distinct users for the funnel metric.
    FunnelEventLists []MetricFunnelEventListArgs
    List of events used to create funnel metrics.
    IsPermanent bool
    Indicates whether the metric is permanent and should not be deleted.
    IsReadOnly bool
    Set to true to make the metric definition editable only from the Console API.
    IsVerified bool
    Marks the metric as verified for internal trustworthiness.
    MetricComponentMetrics []MetricMetricComponentMetricArgs
    List of input metrics used to calculate the new metric for composite types.
    MetricEvents []MetricMetricEventArgs
    An array of event definitions used to compute the metric.
    Name string
    The name of the new metric, which identifies it within the system.
    RollupTimeWindow string
    Time window for the metric rollup. Specify "custom" for a customized time window.
    Tags []string
    Tags associated with the metric for categorization and searchability.
    Team string
    The team associated with the metric, applicable for enterprise environments.
    TeamId string
    The team ID associated with the metric, applicable for enterprise environments.
    Type string
    The type of the metric. Allowed values include sum, ratio, mean, eventcountsum, composite, compositesum, undefined, funnel, userwarehouse.
    UnitTypes []string
    Array of unit types associated with the metric, such as stableID or userID.
    WarehouseNative MetricWarehouseNativeArgs
    Defines warehouse native metrics for advanced configurations.
    customRollUpEnd Double
    Custom time window end date in days since exposure.
    customRollUpStart Double
    Custom time window start date in days since exposure.
    description String
    A description of the new metric, providing context and purpose.
    directionality String
    Indicates the desired change direction for the metric. Use "increase" for positive changes and "decrease" for negative changes.
    dryRun Boolean
    Skips persisting the metric (used to validate that inputs are correct)
    funnelCountDistinct String
    Specifies whether to count events or distinct users for the funnel metric.
    funnelEventLists List<MetricFunnelEventList>
    List of events used to create funnel metrics.
    isPermanent Boolean
    Indicates whether the metric is permanent and should not be deleted.
    isReadOnly Boolean
    Set to true to make the metric definition editable only from the Console API.
    isVerified Boolean
    Marks the metric as verified for internal trustworthiness.
    metricComponentMetrics List<MetricMetricComponentMetric>
    List of input metrics used to calculate the new metric for composite types.
    metricEvents List<MetricMetricEvent>
    An array of event definitions used to compute the metric.
    name String
    The name of the new metric, which identifies it within the system.
    rollupTimeWindow String
    Time window for the metric rollup. Specify "custom" for a customized time window.
    tags List<String>
    Tags associated with the metric for categorization and searchability.
    team String
    The team associated with the metric, applicable for enterprise environments.
    teamId String
    The team ID associated with the metric, applicable for enterprise environments.
    type String
    The type of the metric. Allowed values include sum, ratio, mean, eventcountsum, composite, compositesum, undefined, funnel, userwarehouse.
    unitTypes List<String>
    Array of unit types associated with the metric, such as stableID or userID.
    warehouseNative MetricWarehouseNative
    Defines warehouse native metrics for advanced configurations.
    customRollUpEnd number
    Custom time window end date in days since exposure.
    customRollUpStart number
    Custom time window start date in days since exposure.
    description string
    A description of the new metric, providing context and purpose.
    directionality string
    Indicates the desired change direction for the metric. Use "increase" for positive changes and "decrease" for negative changes.
    dryRun boolean
    Skips persisting the metric (used to validate that inputs are correct)
    funnelCountDistinct string
    Specifies whether to count events or distinct users for the funnel metric.
    funnelEventLists MetricFunnelEventList[]
    List of events used to create funnel metrics.
    isPermanent boolean
    Indicates whether the metric is permanent and should not be deleted.
    isReadOnly boolean
    Set to true to make the metric definition editable only from the Console API.
    isVerified boolean
    Marks the metric as verified for internal trustworthiness.
    metricComponentMetrics MetricMetricComponentMetric[]
    List of input metrics used to calculate the new metric for composite types.
    metricEvents MetricMetricEvent[]
    An array of event definitions used to compute the metric.
    name string
    The name of the new metric, which identifies it within the system.
    rollupTimeWindow string
    Time window for the metric rollup. Specify "custom" for a customized time window.
    tags string[]
    Tags associated with the metric for categorization and searchability.
    team string
    The team associated with the metric, applicable for enterprise environments.
    teamId string
    The team ID associated with the metric, applicable for enterprise environments.
    type string
    The type of the metric. Allowed values include sum, ratio, mean, eventcountsum, composite, compositesum, undefined, funnel, userwarehouse.
    unitTypes string[]
    Array of unit types associated with the metric, such as stableID or userID.
    warehouseNative MetricWarehouseNative
    Defines warehouse native metrics for advanced configurations.
    custom_roll_up_end float
    Custom time window end date in days since exposure.
    custom_roll_up_start float
    Custom time window start date in days since exposure.
    description str
    A description of the new metric, providing context and purpose.
    directionality str
    Indicates the desired change direction for the metric. Use "increase" for positive changes and "decrease" for negative changes.
    dry_run bool
    Skips persisting the metric (used to validate that inputs are correct)
    funnel_count_distinct str
    Specifies whether to count events or distinct users for the funnel metric.
    funnel_event_lists Sequence[MetricFunnelEventListArgs]
    List of events used to create funnel metrics.
    is_permanent bool
    Indicates whether the metric is permanent and should not be deleted.
    is_read_only bool
    Set to true to make the metric definition editable only from the Console API.
    is_verified bool
    Marks the metric as verified for internal trustworthiness.
    metric_component_metrics Sequence[MetricMetricComponentMetricArgs]
    List of input metrics used to calculate the new metric for composite types.
    metric_events Sequence[MetricMetricEventArgs]
    An array of event definitions used to compute the metric.
    name str
    The name of the new metric, which identifies it within the system.
    rollup_time_window str
    Time window for the metric rollup. Specify "custom" for a customized time window.
    tags Sequence[str]
    Tags associated with the metric for categorization and searchability.
    team str
    The team associated with the metric, applicable for enterprise environments.
    team_id str
    The team ID associated with the metric, applicable for enterprise environments.
    type str
    The type of the metric. Allowed values include sum, ratio, mean, eventcountsum, composite, compositesum, undefined, funnel, userwarehouse.
    unit_types Sequence[str]
    Array of unit types associated with the metric, such as stableID or userID.
    warehouse_native MetricWarehouseNativeArgs
    Defines warehouse native metrics for advanced configurations.
    customRollUpEnd Number
    Custom time window end date in days since exposure.
    customRollUpStart Number
    Custom time window start date in days since exposure.
    description String
    A description of the new metric, providing context and purpose.
    directionality String
    Indicates the desired change direction for the metric. Use "increase" for positive changes and "decrease" for negative changes.
    dryRun Boolean
    Skips persisting the metric (used to validate that inputs are correct)
    funnelCountDistinct String
    Specifies whether to count events or distinct users for the funnel metric.
    funnelEventLists List<Property Map>
    List of events used to create funnel metrics.
    isPermanent Boolean
    Indicates whether the metric is permanent and should not be deleted.
    isReadOnly Boolean
    Set to true to make the metric definition editable only from the Console API.
    isVerified Boolean
    Marks the metric as verified for internal trustworthiness.
    metricComponentMetrics List<Property Map>
    List of input metrics used to calculate the new metric for composite types.
    metricEvents List<Property Map>
    An array of event definitions used to compute the metric.
    name String
    The name of the new metric, which identifies it within the system.
    rollupTimeWindow String
    Time window for the metric rollup. Specify "custom" for a customized time window.
    tags List<String>
    Tags associated with the metric for categorization and searchability.
    team String
    The team associated with the metric, applicable for enterprise environments.
    teamId String
    The team ID associated with the metric, applicable for enterprise environments.
    type String
    The type of the metric. Allowed values include sum, ratio, mean, eventcountsum, composite, compositesum, undefined, funnel, userwarehouse.
    unitTypes List<String>
    Array of unit types associated with the metric, such as stableID or userID.
    warehouseNative Property Map
    Defines warehouse native metrics for advanced configurations.

    Supporting Types

    MetricFunnelEventList, MetricFunnelEventListArgs

    Name string
    The name of the funnel event used in the metric.
    Type string
    The type of funnel event, specifying how the event is tracked.
    Name string
    The name of the funnel event used in the metric.
    Type string
    The type of funnel event, specifying how the event is tracked.
    name String
    The name of the funnel event used in the metric.
    type String
    The type of funnel event, specifying how the event is tracked.
    name string
    The name of the funnel event used in the metric.
    type string
    The type of funnel event, specifying how the event is tracked.
    name str
    The name of the funnel event used in the metric.
    type str
    The type of funnel event, specifying how the event is tracked.
    name String
    The name of the funnel event used in the metric.
    type String
    The type of funnel event, specifying how the event is tracked.

    MetricMetricComponentMetric, MetricMetricComponentMetricArgs

    Name string
    Type string
    Name string
    Type string
    name String
    type String
    name string
    type string
    name str
    type str
    name String
    type String

    MetricMetricEvent, MetricMetricEventArgs

    Name string
    The name of the metric event.
    Criterias List<Statsig.Pulumi.Inputs.MetricMetricEventCriteria>
    Filtering criteria for the metric event, including conditions and values to refine the event data.
    MetadataKey string
    The key for associated metadata, if applicable.
    Type string
    The type of metric event. Allowed values include: count, count_distinct, value, and metadata.
    Name string
    The name of the metric event.
    Criterias []MetricMetricEventCriteria
    Filtering criteria for the metric event, including conditions and values to refine the event data.
    MetadataKey string
    The key for associated metadata, if applicable.
    Type string
    The type of metric event. Allowed values include: count, count_distinct, value, and metadata.
    name String
    The name of the metric event.
    criterias List<MetricMetricEventCriteria>
    Filtering criteria for the metric event, including conditions and values to refine the event data.
    metadataKey String
    The key for associated metadata, if applicable.
    type String
    The type of metric event. Allowed values include: count, count_distinct, value, and metadata.
    name string
    The name of the metric event.
    criterias MetricMetricEventCriteria[]
    Filtering criteria for the metric event, including conditions and values to refine the event data.
    metadataKey string
    The key for associated metadata, if applicable.
    type string
    The type of metric event. Allowed values include: count, count_distinct, value, and metadata.
    name str
    The name of the metric event.
    criterias Sequence[MetricMetricEventCriteria]
    Filtering criteria for the metric event, including conditions and values to refine the event data.
    metadata_key str
    The key for associated metadata, if applicable.
    type str
    The type of metric event. Allowed values include: count, count_distinct, value, and metadata.
    name String
    The name of the metric event.
    criterias List<Property Map>
    Filtering criteria for the metric event, including conditions and values to refine the event data.
    metadataKey String
    The key for associated metadata, if applicable.
    type String
    The type of metric event. Allowed values include: count, count_distinct, value, and metadata.

    MetricMetricEventCriteria, MetricMetricEventCriteriaArgs

    Condition string
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    Type string
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    Column string
    Optional column specifying which data attribute to filter on.
    NullVacuousOverride bool
    If true, overrides null values in criterion evaluation.
    Values List<string>
    Optional array of values for the criterion to match against.
    Condition string
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    Type string
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    Column string
    Optional column specifying which data attribute to filter on.
    NullVacuousOverride bool
    If true, overrides null values in criterion evaluation.
    Values []string
    Optional array of values for the criterion to match against.
    condition String
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    type String
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    column String
    Optional column specifying which data attribute to filter on.
    nullVacuousOverride Boolean
    If true, overrides null values in criterion evaluation.
    values List<String>
    Optional array of values for the criterion to match against.
    condition string
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    type string
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    column string
    Optional column specifying which data attribute to filter on.
    nullVacuousOverride boolean
    If true, overrides null values in criterion evaluation.
    values string[]
    Optional array of values for the criterion to match against.
    condition str
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    type str
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    column str
    Optional column specifying which data attribute to filter on.
    null_vacuous_override bool
    If true, overrides null values in criterion evaluation.
    values Sequence[str]
    Optional array of values for the criterion to match against.
    condition String
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    type String
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    column String
    Optional column specifying which data attribute to filter on.
    nullVacuousOverride Boolean
    If true, overrides null values in criterion evaluation.
    values List<String>
    Optional array of values for the criterion to match against.

    MetricWarehouseNative, MetricWarehouseNativeArgs

    Aggregation string
    Allowed: count┃sum┃mean┃dailyparticipation┃ratio┃funnel┃countdistinct┃percentile
    AllowNullRatioDenominator bool
    Include units which do not have a denominator. Only applicable to ratios.
    Cap double
    Maximum cap for metric values.
    Criterias List<Statsig.Pulumi.Inputs.MetricWarehouseNativeCriteria>
    Filtering criteria for the metric source
    CupedAttributionWindow double
    Attribution window for CUPED adjustments in days.
    CustomRollUpEnd double
    Custom end date for rollup in days since exposure.
    CustomRollUpStart double
    Custom start date for rollup in days since exposure.
    DenominatorAggregation string
    Allowed: count┃sum┃mean┃dailyparticipation┃ratio┃funnel┃countdistinct┃percentile
    DenominatorCriterias List<Statsig.Pulumi.Inputs.MetricWarehouseNativeDenominatorCriteria>
    Filtering criteria for the denominator metric source, if this metric is a ratio
    DenominatorCustomRollupEnd double
    Custom end date for rollup in days since exposure.
    DenominatorCustomRollupStart double
    Custom start date for rollup in days since exposure.
    DenominatorMetricSourceName string
    Name of the metric source for the denominator.
    DenominatorRollupTimeWindow string
    Time window for the denominator metric. Specify "custom" for a custom window.
    DenominatorValueColumn string
    Column name for the denominator’s value.
    FunnelCalculationWindow double
    Duration for counting funnel events in days.
    FunnelCountDistinct string
    Allowed: users┃sessions for distinct count method in funnel events.
    FunnelEvents List<Statsig.Pulumi.Inputs.MetricWarehouseNativeFunnelEvent>
    List of funnel events with associated criteria and identifiers.
    FunnelStartCriteria string
    Allowed: start_event┃exposure to determine funnel start criteria.
    MetricBakeDays double
    Number of days for metric baking; specify duration for analysis.
    MetricDimensionColumns List<string>
    Specify metadata columns for breaking down metric analysis.
    MetricSourceName string
    For Count, Sum, Mean, User Count aggregation types: the name of metric source
    NumeratorAggregation string
    Aggregation type for numerator; Allowed: count┃sum┃mean┃dailyparticipation┃ratio┃funnel┃countdistinct┃percentile.
    OnlyIncludeUsersWithConversionEvent bool
    Flag to include only users with a conversion event in the metric.
    Percentile double
    Percentile value for statistical calculations.
    RollupTimeWindow string
    General time window for rollup; can specify custom settings.
    ValueColumn string
    Column name representing the metric’s value.
    ValueThreshold double
    Threshold value for filtering metrics.
    WaitForCohortWindow bool
    WinsorizationHigh double
    High threshold for winsorization; must be between 0 and 1.
    WinsorizationLow double
    Low threshold for winsorization; must be between 0 and 1.
    Aggregation string
    Allowed: count┃sum┃mean┃dailyparticipation┃ratio┃funnel┃countdistinct┃percentile
    AllowNullRatioDenominator bool
    Include units which do not have a denominator. Only applicable to ratios.
    Cap float64
    Maximum cap for metric values.
    Criterias []MetricWarehouseNativeCriteria
    Filtering criteria for the metric source
    CupedAttributionWindow float64
    Attribution window for CUPED adjustments in days.
    CustomRollUpEnd float64
    Custom end date for rollup in days since exposure.
    CustomRollUpStart float64
    Custom start date for rollup in days since exposure.
    DenominatorAggregation string
    Allowed: count┃sum┃mean┃dailyparticipation┃ratio┃funnel┃countdistinct┃percentile
    DenominatorCriterias []MetricWarehouseNativeDenominatorCriteria
    Filtering criteria for the denominator metric source, if this metric is a ratio
    DenominatorCustomRollupEnd float64
    Custom end date for rollup in days since exposure.
    DenominatorCustomRollupStart float64
    Custom start date for rollup in days since exposure.
    DenominatorMetricSourceName string
    Name of the metric source for the denominator.
    DenominatorRollupTimeWindow string
    Time window for the denominator metric. Specify "custom" for a custom window.
    DenominatorValueColumn string
    Column name for the denominator’s value.
    FunnelCalculationWindow float64
    Duration for counting funnel events in days.
    FunnelCountDistinct string
    Allowed: users┃sessions for distinct count method in funnel events.
    FunnelEvents []MetricWarehouseNativeFunnelEvent
    List of funnel events with associated criteria and identifiers.
    FunnelStartCriteria string
    Allowed: start_event┃exposure to determine funnel start criteria.
    MetricBakeDays float64
    Number of days for metric baking; specify duration for analysis.
    MetricDimensionColumns []string
    Specify metadata columns for breaking down metric analysis.
    MetricSourceName string
    For Count, Sum, Mean, User Count aggregation types: the name of metric source
    NumeratorAggregation string
    Aggregation type for numerator; Allowed: count┃sum┃mean┃dailyparticipation┃ratio┃funnel┃countdistinct┃percentile.
    OnlyIncludeUsersWithConversionEvent bool
    Flag to include only users with a conversion event in the metric.
    Percentile float64
    Percentile value for statistical calculations.
    RollupTimeWindow string
    General time window for rollup; can specify custom settings.
    ValueColumn string
    Column name representing the metric’s value.
    ValueThreshold float64
    Threshold value for filtering metrics.
    WaitForCohortWindow bool
    WinsorizationHigh float64
    High threshold for winsorization; must be between 0 and 1.
    WinsorizationLow float64
    Low threshold for winsorization; must be between 0 and 1.
    aggregation String
    Allowed: count┃sum┃mean┃dailyparticipation┃ratio┃funnel┃countdistinct┃percentile
    allowNullRatioDenominator Boolean
    Include units which do not have a denominator. Only applicable to ratios.
    cap Double
    Maximum cap for metric values.
    criterias List<MetricWarehouseNativeCriteria>
    Filtering criteria for the metric source
    cupedAttributionWindow Double
    Attribution window for CUPED adjustments in days.
    customRollUpEnd Double
    Custom end date for rollup in days since exposure.
    customRollUpStart Double
    Custom start date for rollup in days since exposure.
    denominatorAggregation String
    Allowed: count┃sum┃mean┃dailyparticipation┃ratio┃funnel┃countdistinct┃percentile
    denominatorCriterias List<MetricWarehouseNativeDenominatorCriteria>
    Filtering criteria for the denominator metric source, if this metric is a ratio
    denominatorCustomRollupEnd Double
    Custom end date for rollup in days since exposure.
    denominatorCustomRollupStart Double
    Custom start date for rollup in days since exposure.
    denominatorMetricSourceName String
    Name of the metric source for the denominator.
    denominatorRollupTimeWindow String
    Time window for the denominator metric. Specify "custom" for a custom window.
    denominatorValueColumn String
    Column name for the denominator’s value.
    funnelCalculationWindow Double
    Duration for counting funnel events in days.
    funnelCountDistinct String
    Allowed: users┃sessions for distinct count method in funnel events.
    funnelEvents List<MetricWarehouseNativeFunnelEvent>
    List of funnel events with associated criteria and identifiers.
    funnelStartCriteria String
    Allowed: start_event┃exposure to determine funnel start criteria.
    metricBakeDays Double
    Number of days for metric baking; specify duration for analysis.
    metricDimensionColumns List<String>
    Specify metadata columns for breaking down metric analysis.
    metricSourceName String
    For Count, Sum, Mean, User Count aggregation types: the name of metric source
    numeratorAggregation String
    Aggregation type for numerator; Allowed: count┃sum┃mean┃dailyparticipation┃ratio┃funnel┃countdistinct┃percentile.
    onlyIncludeUsersWithConversionEvent Boolean
    Flag to include only users with a conversion event in the metric.
    percentile Double
    Percentile value for statistical calculations.
    rollupTimeWindow String
    General time window for rollup; can specify custom settings.
    valueColumn String
    Column name representing the metric’s value.
    valueThreshold Double
    Threshold value for filtering metrics.
    waitForCohortWindow Boolean
    winsorizationHigh Double
    High threshold for winsorization; must be between 0 and 1.
    winsorizationLow Double
    Low threshold for winsorization; must be between 0 and 1.
    aggregation string
    Allowed: count┃sum┃mean┃dailyparticipation┃ratio┃funnel┃countdistinct┃percentile
    allowNullRatioDenominator boolean
    Include units which do not have a denominator. Only applicable to ratios.
    cap number
    Maximum cap for metric values.
    criterias MetricWarehouseNativeCriteria[]
    Filtering criteria for the metric source
    cupedAttributionWindow number
    Attribution window for CUPED adjustments in days.
    customRollUpEnd number
    Custom end date for rollup in days since exposure.
    customRollUpStart number
    Custom start date for rollup in days since exposure.
    denominatorAggregation string
    Allowed: count┃sum┃mean┃dailyparticipation┃ratio┃funnel┃countdistinct┃percentile
    denominatorCriterias MetricWarehouseNativeDenominatorCriteria[]
    Filtering criteria for the denominator metric source, if this metric is a ratio
    denominatorCustomRollupEnd number
    Custom end date for rollup in days since exposure.
    denominatorCustomRollupStart number
    Custom start date for rollup in days since exposure.
    denominatorMetricSourceName string
    Name of the metric source for the denominator.
    denominatorRollupTimeWindow string
    Time window for the denominator metric. Specify "custom" for a custom window.
    denominatorValueColumn string
    Column name for the denominator’s value.
    funnelCalculationWindow number
    Duration for counting funnel events in days.
    funnelCountDistinct string
    Allowed: users┃sessions for distinct count method in funnel events.
    funnelEvents MetricWarehouseNativeFunnelEvent[]
    List of funnel events with associated criteria and identifiers.
    funnelStartCriteria string
    Allowed: start_event┃exposure to determine funnel start criteria.
    metricBakeDays number
    Number of days for metric baking; specify duration for analysis.
    metricDimensionColumns string[]
    Specify metadata columns for breaking down metric analysis.
    metricSourceName string
    For Count, Sum, Mean, User Count aggregation types: the name of metric source
    numeratorAggregation string
    Aggregation type for numerator; Allowed: count┃sum┃mean┃dailyparticipation┃ratio┃funnel┃countdistinct┃percentile.
    onlyIncludeUsersWithConversionEvent boolean
    Flag to include only users with a conversion event in the metric.
    percentile number
    Percentile value for statistical calculations.
    rollupTimeWindow string
    General time window for rollup; can specify custom settings.
    valueColumn string
    Column name representing the metric’s value.
    valueThreshold number
    Threshold value for filtering metrics.
    waitForCohortWindow boolean
    winsorizationHigh number
    High threshold for winsorization; must be between 0 and 1.
    winsorizationLow number
    Low threshold for winsorization; must be between 0 and 1.
    aggregation str
    Allowed: count┃sum┃mean┃dailyparticipation┃ratio┃funnel┃countdistinct┃percentile
    allow_null_ratio_denominator bool
    Include units which do not have a denominator. Only applicable to ratios.
    cap float
    Maximum cap for metric values.
    criterias Sequence[MetricWarehouseNativeCriteria]
    Filtering criteria for the metric source
    cuped_attribution_window float
    Attribution window for CUPED adjustments in days.
    custom_roll_up_end float
    Custom end date for rollup in days since exposure.
    custom_roll_up_start float
    Custom start date for rollup in days since exposure.
    denominator_aggregation str
    Allowed: count┃sum┃mean┃dailyparticipation┃ratio┃funnel┃countdistinct┃percentile
    denominator_criterias Sequence[MetricWarehouseNativeDenominatorCriteria]
    Filtering criteria for the denominator metric source, if this metric is a ratio
    denominator_custom_rollup_end float
    Custom end date for rollup in days since exposure.
    denominator_custom_rollup_start float
    Custom start date for rollup in days since exposure.
    denominator_metric_source_name str
    Name of the metric source for the denominator.
    denominator_rollup_time_window str
    Time window for the denominator metric. Specify "custom" for a custom window.
    denominator_value_column str
    Column name for the denominator’s value.
    funnel_calculation_window float
    Duration for counting funnel events in days.
    funnel_count_distinct str
    Allowed: users┃sessions for distinct count method in funnel events.
    funnel_events Sequence[MetricWarehouseNativeFunnelEvent]
    List of funnel events with associated criteria and identifiers.
    funnel_start_criteria str
    Allowed: start_event┃exposure to determine funnel start criteria.
    metric_bake_days float
    Number of days for metric baking; specify duration for analysis.
    metric_dimension_columns Sequence[str]
    Specify metadata columns for breaking down metric analysis.
    metric_source_name str
    For Count, Sum, Mean, User Count aggregation types: the name of metric source
    numerator_aggregation str
    Aggregation type for numerator; Allowed: count┃sum┃mean┃dailyparticipation┃ratio┃funnel┃countdistinct┃percentile.
    only_include_users_with_conversion_event bool
    Flag to include only users with a conversion event in the metric.
    percentile float
    Percentile value for statistical calculations.
    rollup_time_window str
    General time window for rollup; can specify custom settings.
    value_column str
    Column name representing the metric’s value.
    value_threshold float
    Threshold value for filtering metrics.
    wait_for_cohort_window bool
    winsorization_high float
    High threshold for winsorization; must be between 0 and 1.
    winsorization_low float
    Low threshold for winsorization; must be between 0 and 1.
    aggregation String
    Allowed: count┃sum┃mean┃dailyparticipation┃ratio┃funnel┃countdistinct┃percentile
    allowNullRatioDenominator Boolean
    Include units which do not have a denominator. Only applicable to ratios.
    cap Number
    Maximum cap for metric values.
    criterias List<Property Map>
    Filtering criteria for the metric source
    cupedAttributionWindow Number
    Attribution window for CUPED adjustments in days.
    customRollUpEnd Number
    Custom end date for rollup in days since exposure.
    customRollUpStart Number
    Custom start date for rollup in days since exposure.
    denominatorAggregation String
    Allowed: count┃sum┃mean┃dailyparticipation┃ratio┃funnel┃countdistinct┃percentile
    denominatorCriterias List<Property Map>
    Filtering criteria for the denominator metric source, if this metric is a ratio
    denominatorCustomRollupEnd Number
    Custom end date for rollup in days since exposure.
    denominatorCustomRollupStart Number
    Custom start date for rollup in days since exposure.
    denominatorMetricSourceName String
    Name of the metric source for the denominator.
    denominatorRollupTimeWindow String
    Time window for the denominator metric. Specify "custom" for a custom window.
    denominatorValueColumn String
    Column name for the denominator’s value.
    funnelCalculationWindow Number
    Duration for counting funnel events in days.
    funnelCountDistinct String
    Allowed: users┃sessions for distinct count method in funnel events.
    funnelEvents List<Property Map>
    List of funnel events with associated criteria and identifiers.
    funnelStartCriteria String
    Allowed: start_event┃exposure to determine funnel start criteria.
    metricBakeDays Number
    Number of days for metric baking; specify duration for analysis.
    metricDimensionColumns List<String>
    Specify metadata columns for breaking down metric analysis.
    metricSourceName String
    For Count, Sum, Mean, User Count aggregation types: the name of metric source
    numeratorAggregation String
    Aggregation type for numerator; Allowed: count┃sum┃mean┃dailyparticipation┃ratio┃funnel┃countdistinct┃percentile.
    onlyIncludeUsersWithConversionEvent Boolean
    Flag to include only users with a conversion event in the metric.
    percentile Number
    Percentile value for statistical calculations.
    rollupTimeWindow String
    General time window for rollup; can specify custom settings.
    valueColumn String
    Column name representing the metric’s value.
    valueThreshold Number
    Threshold value for filtering metrics.
    waitForCohortWindow Boolean
    winsorizationHigh Number
    High threshold for winsorization; must be between 0 and 1.
    winsorizationLow Number
    Low threshold for winsorization; must be between 0 and 1.

    MetricWarehouseNativeCriteria, MetricWarehouseNativeCriteriaArgs

    Condition string
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    Type string
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    Column string
    Optional column specifying which data attribute to filter on.
    NullVacuousOverride bool
    If true, overrides null values in criterion evaluation.
    Values List<string>
    Optional array of values for the criterion to match against.
    Condition string
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    Type string
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    Column string
    Optional column specifying which data attribute to filter on.
    NullVacuousOverride bool
    If true, overrides null values in criterion evaluation.
    Values []string
    Optional array of values for the criterion to match against.
    condition String
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    type String
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    column String
    Optional column specifying which data attribute to filter on.
    nullVacuousOverride Boolean
    If true, overrides null values in criterion evaluation.
    values List<String>
    Optional array of values for the criterion to match against.
    condition string
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    type string
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    column string
    Optional column specifying which data attribute to filter on.
    nullVacuousOverride boolean
    If true, overrides null values in criterion evaluation.
    values string[]
    Optional array of values for the criterion to match against.
    condition str
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    type str
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    column str
    Optional column specifying which data attribute to filter on.
    null_vacuous_override bool
    If true, overrides null values in criterion evaluation.
    values Sequence[str]
    Optional array of values for the criterion to match against.
    condition String
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    type String
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    column String
    Optional column specifying which data attribute to filter on.
    nullVacuousOverride Boolean
    If true, overrides null values in criterion evaluation.
    values List<String>
    Optional array of values for the criterion to match against.

    MetricWarehouseNativeDenominatorCriteria, MetricWarehouseNativeDenominatorCriteriaArgs

    Condition string
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    Type string
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    Column string
    Optional column specifying which data attribute to filter on.
    NullVacuousOverride bool
    If true, overrides null values in criterion evaluation.
    Values List<string>
    Optional array of values for the criterion to match against.
    Condition string
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    Type string
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    Column string
    Optional column specifying which data attribute to filter on.
    NullVacuousOverride bool
    If true, overrides null values in criterion evaluation.
    Values []string
    Optional array of values for the criterion to match against.
    condition String
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    type String
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    column String
    Optional column specifying which data attribute to filter on.
    nullVacuousOverride Boolean
    If true, overrides null values in criterion evaluation.
    values List<String>
    Optional array of values for the criterion to match against.
    condition string
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    type string
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    column string
    Optional column specifying which data attribute to filter on.
    nullVacuousOverride boolean
    If true, overrides null values in criterion evaluation.
    values string[]
    Optional array of values for the criterion to match against.
    condition str
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    type str
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    column str
    Optional column specifying which data attribute to filter on.
    null_vacuous_override bool
    If true, overrides null values in criterion evaluation.
    values Sequence[str]
    Optional array of values for the criterion to match against.
    condition String
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    type String
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    column String
    Optional column specifying which data attribute to filter on.
    nullVacuousOverride Boolean
    If true, overrides null values in criterion evaluation.
    values List<String>
    Optional array of values for the criterion to match against.

    MetricWarehouseNativeFunnelEvent, MetricWarehouseNativeFunnelEventArgs

    Criterias List<Statsig.Pulumi.Inputs.MetricWarehouseNativeFunnelEventCriteria>
    Optional array of criteria to filter the funnel events, defined by various types and conditions.
    MetricSourceName string
    Optional name of the metric source associated with the funnel event.
    Name string
    Optional step name for the funnel event, can be null if not specified.
    SessionIdentifierField string
    Name of column which being used as session identifier. Funnel event with the same metric source
    Criterias []MetricWarehouseNativeFunnelEventCriteria
    Optional array of criteria to filter the funnel events, defined by various types and conditions.
    MetricSourceName string
    Optional name of the metric source associated with the funnel event.
    Name string
    Optional step name for the funnel event, can be null if not specified.
    SessionIdentifierField string
    Name of column which being used as session identifier. Funnel event with the same metric source
    criterias List<MetricWarehouseNativeFunnelEventCriteria>
    Optional array of criteria to filter the funnel events, defined by various types and conditions.
    metricSourceName String
    Optional name of the metric source associated with the funnel event.
    name String
    Optional step name for the funnel event, can be null if not specified.
    sessionIdentifierField String
    Name of column which being used as session identifier. Funnel event with the same metric source
    criterias MetricWarehouseNativeFunnelEventCriteria[]
    Optional array of criteria to filter the funnel events, defined by various types and conditions.
    metricSourceName string
    Optional name of the metric source associated with the funnel event.
    name string
    Optional step name for the funnel event, can be null if not specified.
    sessionIdentifierField string
    Name of column which being used as session identifier. Funnel event with the same metric source
    criterias Sequence[MetricWarehouseNativeFunnelEventCriteria]
    Optional array of criteria to filter the funnel events, defined by various types and conditions.
    metric_source_name str
    Optional name of the metric source associated with the funnel event.
    name str
    Optional step name for the funnel event, can be null if not specified.
    session_identifier_field str
    Name of column which being used as session identifier. Funnel event with the same metric source
    criterias List<Property Map>
    Optional array of criteria to filter the funnel events, defined by various types and conditions.
    metricSourceName String
    Optional name of the metric source associated with the funnel event.
    name String
    Optional step name for the funnel event, can be null if not specified.
    sessionIdentifierField String
    Name of column which being used as session identifier. Funnel event with the same metric source

    MetricWarehouseNativeFunnelEventCriteria, MetricWarehouseNativeFunnelEventCriteriaArgs

    Condition string
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    Type string
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    Column string
    Optional column specifying which data attribute to filter on.
    NullVacuousOverride bool
    If true, overrides null values in criterion evaluation.
    Values List<string>
    Optional array of values for the criterion to match against.
    Condition string
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    Type string
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    Column string
    Optional column specifying which data attribute to filter on.
    NullVacuousOverride bool
    If true, overrides null values in criterion evaluation.
    Values []string
    Optional array of values for the criterion to match against.
    condition String
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    type String
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    column String
    Optional column specifying which data attribute to filter on.
    nullVacuousOverride Boolean
    If true, overrides null values in criterion evaluation.
    values List<String>
    Optional array of values for the criterion to match against.
    condition string
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    type string
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    column string
    Optional column specifying which data attribute to filter on.
    nullVacuousOverride boolean
    If true, overrides null values in criterion evaluation.
    values string[]
    Optional array of values for the criterion to match against.
    condition str
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    type str
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    column str
    Optional column specifying which data attribute to filter on.
    null_vacuous_override bool
    If true, overrides null values in criterion evaluation.
    values Sequence[str]
    Optional array of values for the criterion to match against.
    condition String
    sqlfilter, startwiths, endswith, and afterexposure are only applicable in Warehouse Native
    type String
    Type of event criterion for filtering metrics. Options include value, metadata, user, and user_custom; in Warehouse Native, this should always be metadata.
    column String
    Optional column specifying which data attribute to filter on.
    nullVacuousOverride Boolean
    If true, overrides null values in criterion evaluation.
    values List<String>
    Optional array of values for the criterion to match against.

    Package Details

    Repository
    statsig statsig-io/pulumi-statsig
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the statsig Terraform Provider.
    statsig logo
    Statsig v0.0.1 published on Friday, Jun 6, 2025 by Statsig