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

statsig.Experiment

Explore with Pulumi AI

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

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

    To learn more about experiments, see Experiments Documentation

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

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    resources:
      simple:
        type: statsig:Experiment
        properties:
          allocation: 10
          description: A short description of what this Experiment is used for.
          groups:
            - name: Test
              parameter_values:
                - aString: test
              size: 50
            - name: Control
              parameter_values:
                - aString: control
              size: 50
          idType: userID
    

    Create Experiment Resource

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

    Constructor syntax

    new Experiment(name: string, args?: ExperimentArgs, opts?: CustomResourceOptions);
    @overload
    def Experiment(resource_name: str,
                   args: Optional[ExperimentArgs] = None,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Experiment(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   allocation: Optional[float] = None,
                   allocation_duration: Optional[int] = None,
                   analysis_end_time: Optional[str] = None,
                   analytics_type: Optional[str] = None,
                   assignment_source_experiment_name: Optional[str] = None,
                   assignment_source_name: Optional[str] = None,
                   benjamini_hochberg_per_metric: Optional[bool] = None,
                   benjamini_hochberg_per_variant: Optional[bool] = None,
                   benjamini_primary_metrics_only: Optional[bool] = None,
                   bonferroni_correction: Optional[bool] = None,
                   bonferroni_correction_per_metric: Optional[bool] = None,
                   cohort_wait_until_end_to_include: Optional[bool] = None,
                   cohorted_analysis_duration: Optional[int] = None,
                   cohorted_metrics_mature_after_end: Optional[bool] = None,
                   control_group_id: Optional[str] = None,
                   creator_email: Optional[str] = None,
                   creator_id: Optional[str] = None,
                   default_confidence_interval: Optional[str] = None,
                   description: Optional[str] = None,
                   duration: Optional[int] = None,
                   fixed_analysis_duration: Optional[int] = None,
                   groups: Optional[Sequence[ExperimentGroupArgs]] = None,
                   hypothesis: Optional[str] = None,
                   id_type: Optional[str] = None,
                   is_analysis_only: Optional[bool] = None,
                   launched_group_id: Optional[str] = None,
                   layer_id: Optional[str] = None,
                   links: Optional[Sequence[ExperimentLinkArgs]] = None,
                   name: Optional[str] = None,
                   primary_metric_tags: Optional[Sequence[str]] = None,
                   primary_metrics: Optional[Sequence[ExperimentPrimaryMetricArgs]] = None,
                   scheduled_reload_hour: Optional[int] = None,
                   scheduled_reload_type: Optional[str] = None,
                   secondary_idtype: Optional[str] = None,
                   secondary_metric_tags: Optional[Sequence[str]] = None,
                   secondary_metrics: Optional[Sequence[ExperimentSecondaryMetricArgs]] = None,
                   sequential_testing: Optional[bool] = None,
                   status: Optional[str] = None,
                   tags: Optional[Sequence[str]] = None,
                   target_apps: Optional[Sequence[str]] = None,
                   target_exposures: Optional[int] = None,
                   targeting_gate_id: Optional[str] = None,
                   team: Optional[str] = None)
    func NewExperiment(ctx *Context, name string, args *ExperimentArgs, opts ...ResourceOption) (*Experiment, error)
    public Experiment(string name, ExperimentArgs? args = null, CustomResourceOptions? opts = null)
    public Experiment(String name, ExperimentArgs args)
    public Experiment(String name, ExperimentArgs args, CustomResourceOptions options)
    
    type: statsig:Experiment
    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 ExperimentArgs
    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 ExperimentArgs
    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 ExperimentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ExperimentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ExperimentArgs
    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 experimentResource = new Pulumi.Experiment("experimentResource", new()
    {
        Allocation = 0,
        AllocationDuration = 0,
        AnalysisEndTime = "string",
        AnalyticsType = "string",
        AssignmentSourceExperimentName = "string",
        AssignmentSourceName = "string",
        BenjaminiHochbergPerMetric = false,
        BenjaminiHochbergPerVariant = false,
        BenjaminiPrimaryMetricsOnly = false,
        BonferroniCorrection = false,
        BonferroniCorrectionPerMetric = false,
        CohortWaitUntilEndToInclude = false,
        CohortedAnalysisDuration = 0,
        CohortedMetricsMatureAfterEnd = false,
        ControlGroupId = "string",
        CreatorEmail = "string",
        CreatorId = "string",
        DefaultConfidenceInterval = "string",
        Description = "string",
        Duration = 0,
        FixedAnalysisDuration = 0,
        Groups = new[]
        {
            new Pulumi.Inputs.ExperimentGroupArgs
            {
                Name = "string",
                ParameterValues = 
                {
                    { "string", "string" },
                },
                Size = 0,
                Description = "string",
                Disabled = false,
                ForeignGroupId = "string",
                Id = "string",
            },
        },
        Hypothesis = "string",
        IdType = "string",
        IsAnalysisOnly = false,
        LaunchedGroupId = "string",
        LayerId = "string",
        Links = new[]
        {
            new Pulumi.Inputs.ExperimentLinkArgs
            {
                Url = "string",
                Title = "string",
            },
        },
        Name = "string",
        PrimaryMetricTags = new[]
        {
            "string",
        },
        PrimaryMetrics = new[]
        {
            new Pulumi.Inputs.ExperimentPrimaryMetricArgs
            {
                Direction = "string",
                HypothesizedValue = 0,
                Name = "string",
                Type = "string",
            },
        },
        ScheduledReloadHour = 0,
        ScheduledReloadType = "string",
        SecondaryIdtype = "string",
        SecondaryMetricTags = new[]
        {
            "string",
        },
        SecondaryMetrics = new[]
        {
            new Pulumi.Inputs.ExperimentSecondaryMetricArgs
            {
                Direction = "string",
                HypothesizedValue = 0,
                Name = "string",
                Type = "string",
            },
        },
        SequentialTesting = false,
        Status = "string",
        Tags = new[]
        {
            "string",
        },
        TargetApps = new[]
        {
            "string",
        },
        TargetExposures = 0,
        TargetingGateId = "string",
        Team = "string",
    });
    
    example, err := statsig.NewExperiment(ctx, "experimentResource", &statsig.ExperimentArgs{
    	Allocation:                     pulumi.Float64(0),
    	AllocationDuration:             pulumi.Int(0),
    	AnalysisEndTime:                pulumi.String("string"),
    	AnalyticsType:                  pulumi.String("string"),
    	AssignmentSourceExperimentName: pulumi.String("string"),
    	AssignmentSourceName:           pulumi.String("string"),
    	BenjaminiHochbergPerMetric:     pulumi.Bool(false),
    	BenjaminiHochbergPerVariant:    pulumi.Bool(false),
    	BenjaminiPrimaryMetricsOnly:    pulumi.Bool(false),
    	BonferroniCorrection:           pulumi.Bool(false),
    	BonferroniCorrectionPerMetric:  pulumi.Bool(false),
    	CohortWaitUntilEndToInclude:    pulumi.Bool(false),
    	CohortedAnalysisDuration:       pulumi.Int(0),
    	CohortedMetricsMatureAfterEnd:  pulumi.Bool(false),
    	ControlGroupId:                 pulumi.String("string"),
    	CreatorEmail:                   pulumi.String("string"),
    	CreatorId:                      pulumi.String("string"),
    	DefaultConfidenceInterval:      pulumi.String("string"),
    	Description:                    pulumi.String("string"),
    	Duration:                       pulumi.Int(0),
    	FixedAnalysisDuration:          pulumi.Int(0),
    	Groups: statsig.ExperimentGroupArray{
    		&statsig.ExperimentGroupArgs{
    			Name: pulumi.String("string"),
    			ParameterValues: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    			Size:           pulumi.Float64(0),
    			Description:    pulumi.String("string"),
    			Disabled:       pulumi.Bool(false),
    			ForeignGroupId: pulumi.String("string"),
    			Id:             pulumi.String("string"),
    		},
    	},
    	Hypothesis:      pulumi.String("string"),
    	IdType:          pulumi.String("string"),
    	IsAnalysisOnly:  pulumi.Bool(false),
    	LaunchedGroupId: pulumi.String("string"),
    	LayerId:         pulumi.String("string"),
    	Links: statsig.ExperimentLinkArray{
    		&statsig.ExperimentLinkArgs{
    			Url:   pulumi.String("string"),
    			Title: pulumi.String("string"),
    		},
    	},
    	Name: pulumi.String("string"),
    	PrimaryMetricTags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	PrimaryMetrics: statsig.ExperimentPrimaryMetricArray{
    		&statsig.ExperimentPrimaryMetricArgs{
    			Direction:         pulumi.String("string"),
    			HypothesizedValue: pulumi.Float64(0),
    			Name:              pulumi.String("string"),
    			Type:              pulumi.String("string"),
    		},
    	},
    	ScheduledReloadHour: pulumi.Int(0),
    	ScheduledReloadType: pulumi.String("string"),
    	SecondaryIdtype:     pulumi.String("string"),
    	SecondaryMetricTags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SecondaryMetrics: statsig.ExperimentSecondaryMetricArray{
    		&statsig.ExperimentSecondaryMetricArgs{
    			Direction:         pulumi.String("string"),
    			HypothesizedValue: pulumi.Float64(0),
    			Name:              pulumi.String("string"),
    			Type:              pulumi.String("string"),
    		},
    	},
    	SequentialTesting: pulumi.Bool(false),
    	Status:            pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TargetApps: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TargetExposures: pulumi.Int(0),
    	TargetingGateId: pulumi.String("string"),
    	Team:            pulumi.String("string"),
    })
    
    var experimentResource = new Experiment("experimentResource", ExperimentArgs.builder()
        .allocation(0.0)
        .allocationDuration(0)
        .analysisEndTime("string")
        .analyticsType("string")
        .assignmentSourceExperimentName("string")
        .assignmentSourceName("string")
        .benjaminiHochbergPerMetric(false)
        .benjaminiHochbergPerVariant(false)
        .benjaminiPrimaryMetricsOnly(false)
        .bonferroniCorrection(false)
        .bonferroniCorrectionPerMetric(false)
        .cohortWaitUntilEndToInclude(false)
        .cohortedAnalysisDuration(0)
        .cohortedMetricsMatureAfterEnd(false)
        .controlGroupId("string")
        .creatorEmail("string")
        .creatorId("string")
        .defaultConfidenceInterval("string")
        .description("string")
        .duration(0)
        .fixedAnalysisDuration(0)
        .groups(ExperimentGroupArgs.builder()
            .name("string")
            .parameterValues(Map.of("string", "string"))
            .size(0.0)
            .description("string")
            .disabled(false)
            .foreignGroupId("string")
            .id("string")
            .build())
        .hypothesis("string")
        .idType("string")
        .isAnalysisOnly(false)
        .launchedGroupId("string")
        .layerId("string")
        .links(ExperimentLinkArgs.builder()
            .url("string")
            .title("string")
            .build())
        .name("string")
        .primaryMetricTags("string")
        .primaryMetrics(ExperimentPrimaryMetricArgs.builder()
            .direction("string")
            .hypothesizedValue(0.0)
            .name("string")
            .type("string")
            .build())
        .scheduledReloadHour(0)
        .scheduledReloadType("string")
        .secondaryIdtype("string")
        .secondaryMetricTags("string")
        .secondaryMetrics(ExperimentSecondaryMetricArgs.builder()
            .direction("string")
            .hypothesizedValue(0.0)
            .name("string")
            .type("string")
            .build())
        .sequentialTesting(false)
        .status("string")
        .tags("string")
        .targetApps("string")
        .targetExposures(0)
        .targetingGateId("string")
        .team("string")
        .build());
    
    experiment_resource = statsig.Experiment("experimentResource",
        allocation=0,
        allocation_duration=0,
        analysis_end_time="string",
        analytics_type="string",
        assignment_source_experiment_name="string",
        assignment_source_name="string",
        benjamini_hochberg_per_metric=False,
        benjamini_hochberg_per_variant=False,
        benjamini_primary_metrics_only=False,
        bonferroni_correction=False,
        bonferroni_correction_per_metric=False,
        cohort_wait_until_end_to_include=False,
        cohorted_analysis_duration=0,
        cohorted_metrics_mature_after_end=False,
        control_group_id="string",
        creator_email="string",
        creator_id="string",
        default_confidence_interval="string",
        description="string",
        duration=0,
        fixed_analysis_duration=0,
        groups=[{
            "name": "string",
            "parameter_values": {
                "string": "string",
            },
            "size": 0,
            "description": "string",
            "disabled": False,
            "foreign_group_id": "string",
            "id": "string",
        }],
        hypothesis="string",
        id_type="string",
        is_analysis_only=False,
        launched_group_id="string",
        layer_id="string",
        links=[{
            "url": "string",
            "title": "string",
        }],
        name="string",
        primary_metric_tags=["string"],
        primary_metrics=[{
            "direction": "string",
            "hypothesized_value": 0,
            "name": "string",
            "type": "string",
        }],
        scheduled_reload_hour=0,
        scheduled_reload_type="string",
        secondary_idtype="string",
        secondary_metric_tags=["string"],
        secondary_metrics=[{
            "direction": "string",
            "hypothesized_value": 0,
            "name": "string",
            "type": "string",
        }],
        sequential_testing=False,
        status="string",
        tags=["string"],
        target_apps=["string"],
        target_exposures=0,
        targeting_gate_id="string",
        team="string")
    
    const experimentResource = new statsig.Experiment("experimentResource", {
        allocation: 0,
        allocationDuration: 0,
        analysisEndTime: "string",
        analyticsType: "string",
        assignmentSourceExperimentName: "string",
        assignmentSourceName: "string",
        benjaminiHochbergPerMetric: false,
        benjaminiHochbergPerVariant: false,
        benjaminiPrimaryMetricsOnly: false,
        bonferroniCorrection: false,
        bonferroniCorrectionPerMetric: false,
        cohortWaitUntilEndToInclude: false,
        cohortedAnalysisDuration: 0,
        cohortedMetricsMatureAfterEnd: false,
        controlGroupId: "string",
        creatorEmail: "string",
        creatorId: "string",
        defaultConfidenceInterval: "string",
        description: "string",
        duration: 0,
        fixedAnalysisDuration: 0,
        groups: [{
            name: "string",
            parameterValues: {
                string: "string",
            },
            size: 0,
            description: "string",
            disabled: false,
            foreignGroupId: "string",
            id: "string",
        }],
        hypothesis: "string",
        idType: "string",
        isAnalysisOnly: false,
        launchedGroupId: "string",
        layerId: "string",
        links: [{
            url: "string",
            title: "string",
        }],
        name: "string",
        primaryMetricTags: ["string"],
        primaryMetrics: [{
            direction: "string",
            hypothesizedValue: 0,
            name: "string",
            type: "string",
        }],
        scheduledReloadHour: 0,
        scheduledReloadType: "string",
        secondaryIdtype: "string",
        secondaryMetricTags: ["string"],
        secondaryMetrics: [{
            direction: "string",
            hypothesizedValue: 0,
            name: "string",
            type: "string",
        }],
        sequentialTesting: false,
        status: "string",
        tags: ["string"],
        targetApps: ["string"],
        targetExposures: 0,
        targetingGateId: "string",
        team: "string",
    });
    
    type: statsig:Experiment
    properties:
        allocation: 0
        allocationDuration: 0
        analysisEndTime: string
        analyticsType: string
        assignmentSourceExperimentName: string
        assignmentSourceName: string
        benjaminiHochbergPerMetric: false
        benjaminiHochbergPerVariant: false
        benjaminiPrimaryMetricsOnly: false
        bonferroniCorrection: false
        bonferroniCorrectionPerMetric: false
        cohortWaitUntilEndToInclude: false
        cohortedAnalysisDuration: 0
        cohortedMetricsMatureAfterEnd: false
        controlGroupId: string
        creatorEmail: string
        creatorId: string
        defaultConfidenceInterval: string
        description: string
        duration: 0
        fixedAnalysisDuration: 0
        groups:
            - description: string
              disabled: false
              foreignGroupId: string
              id: string
              name: string
              parameterValues:
                string: string
              size: 0
        hypothesis: string
        idType: string
        isAnalysisOnly: false
        launchedGroupId: string
        layerId: string
        links:
            - title: string
              url: string
        name: string
        primaryMetricTags:
            - string
        primaryMetrics:
            - direction: string
              hypothesizedValue: 0
              name: string
              type: string
        scheduledReloadHour: 0
        scheduledReloadType: string
        secondaryIdtype: string
        secondaryMetricTags:
            - string
        secondaryMetrics:
            - direction: string
              hypothesizedValue: 0
              name: string
              type: string
        sequentialTesting: false
        status: string
        tags:
            - string
        targetApps:
            - string
        targetExposures: 0
        targetingGateId: string
        team: string
    

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

    Allocation double
    Percent of layer allocated to this experiment
    AllocationDuration int
    Warehouse Native Only - Allocation duration in days
    AnalysisEndTime string
    Warehouse Native only - end time for analysis only experiments
    AnalyticsType string
    The mode of analysis for the experiment, e.g frequentist, bayesian, sprt
    AssignmentSourceExperimentName string
    Name of the source experiment for assignment
    AssignmentSourceName string
    Source name of the assignment
    BenjaminiHochbergPerMetric bool
    Is Benjamini-Hochberg procedure applied per metric?
    BenjaminiHochbergPerVariant bool
    Is Benjamini-Hochberg procedure applied per variant?
    BenjaminiPrimaryMetricsOnly bool
    Is Benjamini-Hochberg procedure applied for primary metrics only?
    BonferroniCorrection bool
    Is Bonferroni correction applied per variant?
    BonferroniCorrectionPerMetric bool
    Is Bonferroni correction applied per metric?
    CohortWaitUntilEndToInclude bool
    Warehouse Native Only - Whether to filter to units whose experiment cohort analysis duration is complete, if cohortedAnalysisDuration exists
    CohortedAnalysisDuration int
    Warehouse Native Only - Cohorted analysis duration in days
    CohortedMetricsMatureAfterEnd bool
    Warehouse Native Only - Allow cohort metrics to mature after experiment end
    ControlGroupId string
    Optional control group ID
    CreatorEmail string
    The email of the creator of this experiment
    CreatorId string
    The Statsig ID of the creator of this experiment
    DefaultConfidenceInterval string
    Default error margin used for results
    Description string
    A description of the new experiment
    Duration int
    How long the experiment is expected to last in days
    FixedAnalysisDuration int
    Fixed analysis duration in days
    Groups List<Statsig.Pulumi.Inputs.ExperimentGroup>
    The test groups for your experiment
    Hypothesis string
    A statement that will be tested by this experiment
    IdType string
    The idType the experiment will be performed on
    IsAnalysisOnly bool
    For Warehouse Native
    LaunchedGroupId string
    ID of the launched group, null otherwise
    LayerId string
    Which layer to place the experiment into.
    Links List<Statsig.Pulumi.Inputs.ExperimentLink>
    Links to relevant documentation or resources
    Name string
    The name of the new experiment
    PrimaryMetricTags List<string>
    Primary metric tags for the experiment
    PrimaryMetrics List<Statsig.Pulumi.Inputs.ExperimentPrimaryMetric>
    Main metrics needed to evaluate your hypothesis
    ScheduledReloadHour int
    Warehouse Native only - UTC hour at which to run scheduled pulse loads
    ScheduledReloadType string
    Warehouse Native only - reload type for scheduled reloads
    SecondaryIdtype string
    The secondary ID type for the experiment used in WHN for ID resolution
    SecondaryMetricTags List<string>
    Secondary metric tags for the experiment
    SecondaryMetrics List<Statsig.Pulumi.Inputs.ExperimentSecondaryMetric>
    Additional metrics to monitor that might impact the analysis or final decision of the experiment
    SequentialTesting bool
    Apply sequential testing?
    Status string
    The current status of the experiment
    Tags List<string>
    Tags associated with the experiment
    TargetApps List<string>
    Target apps assigned to this experiment
    TargetExposures int
    Target exposures for the experiment
    TargetingGateId string
    Restrict your experiment to users passing the selected feature gate
    Team string
    Enterprise only
    Allocation float64
    Percent of layer allocated to this experiment
    AllocationDuration int
    Warehouse Native Only - Allocation duration in days
    AnalysisEndTime string
    Warehouse Native only - end time for analysis only experiments
    AnalyticsType string
    The mode of analysis for the experiment, e.g frequentist, bayesian, sprt
    AssignmentSourceExperimentName string
    Name of the source experiment for assignment
    AssignmentSourceName string
    Source name of the assignment
    BenjaminiHochbergPerMetric bool
    Is Benjamini-Hochberg procedure applied per metric?
    BenjaminiHochbergPerVariant bool
    Is Benjamini-Hochberg procedure applied per variant?
    BenjaminiPrimaryMetricsOnly bool
    Is Benjamini-Hochberg procedure applied for primary metrics only?
    BonferroniCorrection bool
    Is Bonferroni correction applied per variant?
    BonferroniCorrectionPerMetric bool
    Is Bonferroni correction applied per metric?
    CohortWaitUntilEndToInclude bool
    Warehouse Native Only - Whether to filter to units whose experiment cohort analysis duration is complete, if cohortedAnalysisDuration exists
    CohortedAnalysisDuration int
    Warehouse Native Only - Cohorted analysis duration in days
    CohortedMetricsMatureAfterEnd bool
    Warehouse Native Only - Allow cohort metrics to mature after experiment end
    ControlGroupId string
    Optional control group ID
    CreatorEmail string
    The email of the creator of this experiment
    CreatorId string
    The Statsig ID of the creator of this experiment
    DefaultConfidenceInterval string
    Default error margin used for results
    Description string
    A description of the new experiment
    Duration int
    How long the experiment is expected to last in days
    FixedAnalysisDuration int
    Fixed analysis duration in days
    Groups []ExperimentGroupArgs
    The test groups for your experiment
    Hypothesis string
    A statement that will be tested by this experiment
    IdType string
    The idType the experiment will be performed on
    IsAnalysisOnly bool
    For Warehouse Native
    LaunchedGroupId string
    ID of the launched group, null otherwise
    LayerId string
    Which layer to place the experiment into.
    Links []ExperimentLinkArgs
    Links to relevant documentation or resources
    Name string
    The name of the new experiment
    PrimaryMetricTags []string
    Primary metric tags for the experiment
    PrimaryMetrics []ExperimentPrimaryMetricArgs
    Main metrics needed to evaluate your hypothesis
    ScheduledReloadHour int
    Warehouse Native only - UTC hour at which to run scheduled pulse loads
    ScheduledReloadType string
    Warehouse Native only - reload type for scheduled reloads
    SecondaryIdtype string
    The secondary ID type for the experiment used in WHN for ID resolution
    SecondaryMetricTags []string
    Secondary metric tags for the experiment
    SecondaryMetrics []ExperimentSecondaryMetricArgs
    Additional metrics to monitor that might impact the analysis or final decision of the experiment
    SequentialTesting bool
    Apply sequential testing?
    Status string
    The current status of the experiment
    Tags []string
    Tags associated with the experiment
    TargetApps []string
    Target apps assigned to this experiment
    TargetExposures int
    Target exposures for the experiment
    TargetingGateId string
    Restrict your experiment to users passing the selected feature gate
    Team string
    Enterprise only
    allocation Double
    Percent of layer allocated to this experiment
    allocationDuration Integer
    Warehouse Native Only - Allocation duration in days
    analysisEndTime String
    Warehouse Native only - end time for analysis only experiments
    analyticsType String
    The mode of analysis for the experiment, e.g frequentist, bayesian, sprt
    assignmentSourceExperimentName String
    Name of the source experiment for assignment
    assignmentSourceName String
    Source name of the assignment
    benjaminiHochbergPerMetric Boolean
    Is Benjamini-Hochberg procedure applied per metric?
    benjaminiHochbergPerVariant Boolean
    Is Benjamini-Hochberg procedure applied per variant?
    benjaminiPrimaryMetricsOnly Boolean
    Is Benjamini-Hochberg procedure applied for primary metrics only?
    bonferroniCorrection Boolean
    Is Bonferroni correction applied per variant?
    bonferroniCorrectionPerMetric Boolean
    Is Bonferroni correction applied per metric?
    cohortWaitUntilEndToInclude Boolean
    Warehouse Native Only - Whether to filter to units whose experiment cohort analysis duration is complete, if cohortedAnalysisDuration exists
    cohortedAnalysisDuration Integer
    Warehouse Native Only - Cohorted analysis duration in days
    cohortedMetricsMatureAfterEnd Boolean
    Warehouse Native Only - Allow cohort metrics to mature after experiment end
    controlGroupId String
    Optional control group ID
    creatorEmail String
    The email of the creator of this experiment
    creatorId String
    The Statsig ID of the creator of this experiment
    defaultConfidenceInterval String
    Default error margin used for results
    description String
    A description of the new experiment
    duration Integer
    How long the experiment is expected to last in days
    fixedAnalysisDuration Integer
    Fixed analysis duration in days
    groups List<ExperimentGroup>
    The test groups for your experiment
    hypothesis String
    A statement that will be tested by this experiment
    idType String
    The idType the experiment will be performed on
    isAnalysisOnly Boolean
    For Warehouse Native
    launchedGroupId String
    ID of the launched group, null otherwise
    layerId String
    Which layer to place the experiment into.
    links List<ExperimentLink>
    Links to relevant documentation or resources
    name String
    The name of the new experiment
    primaryMetricTags List<String>
    Primary metric tags for the experiment
    primaryMetrics List<ExperimentPrimaryMetric>
    Main metrics needed to evaluate your hypothesis
    scheduledReloadHour Integer
    Warehouse Native only - UTC hour at which to run scheduled pulse loads
    scheduledReloadType String
    Warehouse Native only - reload type for scheduled reloads
    secondaryIdtype String
    The secondary ID type for the experiment used in WHN for ID resolution
    secondaryMetricTags List<String>
    Secondary metric tags for the experiment
    secondaryMetrics List<ExperimentSecondaryMetric>
    Additional metrics to monitor that might impact the analysis or final decision of the experiment
    sequentialTesting Boolean
    Apply sequential testing?
    status String
    The current status of the experiment
    tags List<String>
    Tags associated with the experiment
    targetApps List<String>
    Target apps assigned to this experiment
    targetExposures Integer
    Target exposures for the experiment
    targetingGateId String
    Restrict your experiment to users passing the selected feature gate
    team String
    Enterprise only
    allocation number
    Percent of layer allocated to this experiment
    allocationDuration number
    Warehouse Native Only - Allocation duration in days
    analysisEndTime string
    Warehouse Native only - end time for analysis only experiments
    analyticsType string
    The mode of analysis for the experiment, e.g frequentist, bayesian, sprt
    assignmentSourceExperimentName string
    Name of the source experiment for assignment
    assignmentSourceName string
    Source name of the assignment
    benjaminiHochbergPerMetric boolean
    Is Benjamini-Hochberg procedure applied per metric?
    benjaminiHochbergPerVariant boolean
    Is Benjamini-Hochberg procedure applied per variant?
    benjaminiPrimaryMetricsOnly boolean
    Is Benjamini-Hochberg procedure applied for primary metrics only?
    bonferroniCorrection boolean
    Is Bonferroni correction applied per variant?
    bonferroniCorrectionPerMetric boolean
    Is Bonferroni correction applied per metric?
    cohortWaitUntilEndToInclude boolean
    Warehouse Native Only - Whether to filter to units whose experiment cohort analysis duration is complete, if cohortedAnalysisDuration exists
    cohortedAnalysisDuration number
    Warehouse Native Only - Cohorted analysis duration in days
    cohortedMetricsMatureAfterEnd boolean
    Warehouse Native Only - Allow cohort metrics to mature after experiment end
    controlGroupId string
    Optional control group ID
    creatorEmail string
    The email of the creator of this experiment
    creatorId string
    The Statsig ID of the creator of this experiment
    defaultConfidenceInterval string
    Default error margin used for results
    description string
    A description of the new experiment
    duration number
    How long the experiment is expected to last in days
    fixedAnalysisDuration number
    Fixed analysis duration in days
    groups ExperimentGroup[]
    The test groups for your experiment
    hypothesis string
    A statement that will be tested by this experiment
    idType string
    The idType the experiment will be performed on
    isAnalysisOnly boolean
    For Warehouse Native
    launchedGroupId string
    ID of the launched group, null otherwise
    layerId string
    Which layer to place the experiment into.
    links ExperimentLink[]
    Links to relevant documentation or resources
    name string
    The name of the new experiment
    primaryMetricTags string[]
    Primary metric tags for the experiment
    primaryMetrics ExperimentPrimaryMetric[]
    Main metrics needed to evaluate your hypothesis
    scheduledReloadHour number
    Warehouse Native only - UTC hour at which to run scheduled pulse loads
    scheduledReloadType string
    Warehouse Native only - reload type for scheduled reloads
    secondaryIdtype string
    The secondary ID type for the experiment used in WHN for ID resolution
    secondaryMetricTags string[]
    Secondary metric tags for the experiment
    secondaryMetrics ExperimentSecondaryMetric[]
    Additional metrics to monitor that might impact the analysis or final decision of the experiment
    sequentialTesting boolean
    Apply sequential testing?
    status string
    The current status of the experiment
    tags string[]
    Tags associated with the experiment
    targetApps string[]
    Target apps assigned to this experiment
    targetExposures number
    Target exposures for the experiment
    targetingGateId string
    Restrict your experiment to users passing the selected feature gate
    team string
    Enterprise only
    allocation float
    Percent of layer allocated to this experiment
    allocation_duration int
    Warehouse Native Only - Allocation duration in days
    analysis_end_time str
    Warehouse Native only - end time for analysis only experiments
    analytics_type str
    The mode of analysis for the experiment, e.g frequentist, bayesian, sprt
    assignment_source_experiment_name str
    Name of the source experiment for assignment
    assignment_source_name str
    Source name of the assignment
    benjamini_hochberg_per_metric bool
    Is Benjamini-Hochberg procedure applied per metric?
    benjamini_hochberg_per_variant bool
    Is Benjamini-Hochberg procedure applied per variant?
    benjamini_primary_metrics_only bool
    Is Benjamini-Hochberg procedure applied for primary metrics only?
    bonferroni_correction bool
    Is Bonferroni correction applied per variant?
    bonferroni_correction_per_metric bool
    Is Bonferroni correction applied per metric?
    cohort_wait_until_end_to_include bool
    Warehouse Native Only - Whether to filter to units whose experiment cohort analysis duration is complete, if cohortedAnalysisDuration exists
    cohorted_analysis_duration int
    Warehouse Native Only - Cohorted analysis duration in days
    cohorted_metrics_mature_after_end bool
    Warehouse Native Only - Allow cohort metrics to mature after experiment end
    control_group_id str
    Optional control group ID
    creator_email str
    The email of the creator of this experiment
    creator_id str
    The Statsig ID of the creator of this experiment
    default_confidence_interval str
    Default error margin used for results
    description str
    A description of the new experiment
    duration int
    How long the experiment is expected to last in days
    fixed_analysis_duration int
    Fixed analysis duration in days
    groups Sequence[ExperimentGroupArgs]
    The test groups for your experiment
    hypothesis str
    A statement that will be tested by this experiment
    id_type str
    The idType the experiment will be performed on
    is_analysis_only bool
    For Warehouse Native
    launched_group_id str
    ID of the launched group, null otherwise
    layer_id str
    Which layer to place the experiment into.
    links Sequence[ExperimentLinkArgs]
    Links to relevant documentation or resources
    name str
    The name of the new experiment
    primary_metric_tags Sequence[str]
    Primary metric tags for the experiment
    primary_metrics Sequence[ExperimentPrimaryMetricArgs]
    Main metrics needed to evaluate your hypothesis
    scheduled_reload_hour int
    Warehouse Native only - UTC hour at which to run scheduled pulse loads
    scheduled_reload_type str
    Warehouse Native only - reload type for scheduled reloads
    secondary_idtype str
    The secondary ID type for the experiment used in WHN for ID resolution
    secondary_metric_tags Sequence[str]
    Secondary metric tags for the experiment
    secondary_metrics Sequence[ExperimentSecondaryMetricArgs]
    Additional metrics to monitor that might impact the analysis or final decision of the experiment
    sequential_testing bool
    Apply sequential testing?
    status str
    The current status of the experiment
    tags Sequence[str]
    Tags associated with the experiment
    target_apps Sequence[str]
    Target apps assigned to this experiment
    target_exposures int
    Target exposures for the experiment
    targeting_gate_id str
    Restrict your experiment to users passing the selected feature gate
    team str
    Enterprise only
    allocation Number
    Percent of layer allocated to this experiment
    allocationDuration Number
    Warehouse Native Only - Allocation duration in days
    analysisEndTime String
    Warehouse Native only - end time for analysis only experiments
    analyticsType String
    The mode of analysis for the experiment, e.g frequentist, bayesian, sprt
    assignmentSourceExperimentName String
    Name of the source experiment for assignment
    assignmentSourceName String
    Source name of the assignment
    benjaminiHochbergPerMetric Boolean
    Is Benjamini-Hochberg procedure applied per metric?
    benjaminiHochbergPerVariant Boolean
    Is Benjamini-Hochberg procedure applied per variant?
    benjaminiPrimaryMetricsOnly Boolean
    Is Benjamini-Hochberg procedure applied for primary metrics only?
    bonferroniCorrection Boolean
    Is Bonferroni correction applied per variant?
    bonferroniCorrectionPerMetric Boolean
    Is Bonferroni correction applied per metric?
    cohortWaitUntilEndToInclude Boolean
    Warehouse Native Only - Whether to filter to units whose experiment cohort analysis duration is complete, if cohortedAnalysisDuration exists
    cohortedAnalysisDuration Number
    Warehouse Native Only - Cohorted analysis duration in days
    cohortedMetricsMatureAfterEnd Boolean
    Warehouse Native Only - Allow cohort metrics to mature after experiment end
    controlGroupId String
    Optional control group ID
    creatorEmail String
    The email of the creator of this experiment
    creatorId String
    The Statsig ID of the creator of this experiment
    defaultConfidenceInterval String
    Default error margin used for results
    description String
    A description of the new experiment
    duration Number
    How long the experiment is expected to last in days
    fixedAnalysisDuration Number
    Fixed analysis duration in days
    groups List<Property Map>
    The test groups for your experiment
    hypothesis String
    A statement that will be tested by this experiment
    idType String
    The idType the experiment will be performed on
    isAnalysisOnly Boolean
    For Warehouse Native
    launchedGroupId String
    ID of the launched group, null otherwise
    layerId String
    Which layer to place the experiment into.
    links List<Property Map>
    Links to relevant documentation or resources
    name String
    The name of the new experiment
    primaryMetricTags List<String>
    Primary metric tags for the experiment
    primaryMetrics List<Property Map>
    Main metrics needed to evaluate your hypothesis
    scheduledReloadHour Number
    Warehouse Native only - UTC hour at which to run scheduled pulse loads
    scheduledReloadType String
    Warehouse Native only - reload type for scheduled reloads
    secondaryIdtype String
    The secondary ID type for the experiment used in WHN for ID resolution
    secondaryMetricTags List<String>
    Secondary metric tags for the experiment
    secondaryMetrics List<Property Map>
    Additional metrics to monitor that might impact the analysis or final decision of the experiment
    sequentialTesting Boolean
    Apply sequential testing?
    status String
    The current status of the experiment
    tags List<String>
    Tags associated with the experiment
    targetApps List<String>
    Target apps assigned to this experiment
    targetExposures Number
    Target exposures for the experiment
    targetingGateId String
    Restrict your experiment to users passing the selected feature gate
    team String
    Enterprise only

    Outputs

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

    Get an existing Experiment 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?: ExperimentState, opts?: CustomResourceOptions): Experiment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allocation: Optional[float] = None,
            allocation_duration: Optional[int] = None,
            analysis_end_time: Optional[str] = None,
            analytics_type: Optional[str] = None,
            assignment_source_experiment_name: Optional[str] = None,
            assignment_source_name: Optional[str] = None,
            benjamini_hochberg_per_metric: Optional[bool] = None,
            benjamini_hochberg_per_variant: Optional[bool] = None,
            benjamini_primary_metrics_only: Optional[bool] = None,
            bonferroni_correction: Optional[bool] = None,
            bonferroni_correction_per_metric: Optional[bool] = None,
            cohort_wait_until_end_to_include: Optional[bool] = None,
            cohorted_analysis_duration: Optional[int] = None,
            cohorted_metrics_mature_after_end: Optional[bool] = None,
            control_group_id: Optional[str] = None,
            creator_email: Optional[str] = None,
            creator_id: Optional[str] = None,
            default_confidence_interval: Optional[str] = None,
            description: Optional[str] = None,
            duration: Optional[int] = None,
            fixed_analysis_duration: Optional[int] = None,
            groups: Optional[Sequence[ExperimentGroupArgs]] = None,
            hypothesis: Optional[str] = None,
            id_type: Optional[str] = None,
            is_analysis_only: Optional[bool] = None,
            launched_group_id: Optional[str] = None,
            layer_id: Optional[str] = None,
            links: Optional[Sequence[ExperimentLinkArgs]] = None,
            name: Optional[str] = None,
            primary_metric_tags: Optional[Sequence[str]] = None,
            primary_metrics: Optional[Sequence[ExperimentPrimaryMetricArgs]] = None,
            scheduled_reload_hour: Optional[int] = None,
            scheduled_reload_type: Optional[str] = None,
            secondary_idtype: Optional[str] = None,
            secondary_metric_tags: Optional[Sequence[str]] = None,
            secondary_metrics: Optional[Sequence[ExperimentSecondaryMetricArgs]] = None,
            sequential_testing: Optional[bool] = None,
            status: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            target_apps: Optional[Sequence[str]] = None,
            target_exposures: Optional[int] = None,
            targeting_gate_id: Optional[str] = None,
            team: Optional[str] = None) -> Experiment
    func GetExperiment(ctx *Context, name string, id IDInput, state *ExperimentState, opts ...ResourceOption) (*Experiment, error)
    public static Experiment Get(string name, Input<string> id, ExperimentState? state, CustomResourceOptions? opts = null)
    public static Experiment get(String name, Output<String> id, ExperimentState state, CustomResourceOptions options)
    resources:  _:    type: statsig:Experiment    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:
    Allocation double
    Percent of layer allocated to this experiment
    AllocationDuration int
    Warehouse Native Only - Allocation duration in days
    AnalysisEndTime string
    Warehouse Native only - end time for analysis only experiments
    AnalyticsType string
    The mode of analysis for the experiment, e.g frequentist, bayesian, sprt
    AssignmentSourceExperimentName string
    Name of the source experiment for assignment
    AssignmentSourceName string
    Source name of the assignment
    BenjaminiHochbergPerMetric bool
    Is Benjamini-Hochberg procedure applied per metric?
    BenjaminiHochbergPerVariant bool
    Is Benjamini-Hochberg procedure applied per variant?
    BenjaminiPrimaryMetricsOnly bool
    Is Benjamini-Hochberg procedure applied for primary metrics only?
    BonferroniCorrection bool
    Is Bonferroni correction applied per variant?
    BonferroniCorrectionPerMetric bool
    Is Bonferroni correction applied per metric?
    CohortWaitUntilEndToInclude bool
    Warehouse Native Only - Whether to filter to units whose experiment cohort analysis duration is complete, if cohortedAnalysisDuration exists
    CohortedAnalysisDuration int
    Warehouse Native Only - Cohorted analysis duration in days
    CohortedMetricsMatureAfterEnd bool
    Warehouse Native Only - Allow cohort metrics to mature after experiment end
    ControlGroupId string
    Optional control group ID
    CreatorEmail string
    The email of the creator of this experiment
    CreatorId string
    The Statsig ID of the creator of this experiment
    DefaultConfidenceInterval string
    Default error margin used for results
    Description string
    A description of the new experiment
    Duration int
    How long the experiment is expected to last in days
    FixedAnalysisDuration int
    Fixed analysis duration in days
    Groups List<Statsig.Pulumi.Inputs.ExperimentGroup>
    The test groups for your experiment
    Hypothesis string
    A statement that will be tested by this experiment
    IdType string
    The idType the experiment will be performed on
    IsAnalysisOnly bool
    For Warehouse Native
    LaunchedGroupId string
    ID of the launched group, null otherwise
    LayerId string
    Which layer to place the experiment into.
    Links List<Statsig.Pulumi.Inputs.ExperimentLink>
    Links to relevant documentation or resources
    Name string
    The name of the new experiment
    PrimaryMetricTags List<string>
    Primary metric tags for the experiment
    PrimaryMetrics List<Statsig.Pulumi.Inputs.ExperimentPrimaryMetric>
    Main metrics needed to evaluate your hypothesis
    ScheduledReloadHour int
    Warehouse Native only - UTC hour at which to run scheduled pulse loads
    ScheduledReloadType string
    Warehouse Native only - reload type for scheduled reloads
    SecondaryIdtype string
    The secondary ID type for the experiment used in WHN for ID resolution
    SecondaryMetricTags List<string>
    Secondary metric tags for the experiment
    SecondaryMetrics List<Statsig.Pulumi.Inputs.ExperimentSecondaryMetric>
    Additional metrics to monitor that might impact the analysis or final decision of the experiment
    SequentialTesting bool
    Apply sequential testing?
    Status string
    The current status of the experiment
    Tags List<string>
    Tags associated with the experiment
    TargetApps List<string>
    Target apps assigned to this experiment
    TargetExposures int
    Target exposures for the experiment
    TargetingGateId string
    Restrict your experiment to users passing the selected feature gate
    Team string
    Enterprise only
    Allocation float64
    Percent of layer allocated to this experiment
    AllocationDuration int
    Warehouse Native Only - Allocation duration in days
    AnalysisEndTime string
    Warehouse Native only - end time for analysis only experiments
    AnalyticsType string
    The mode of analysis for the experiment, e.g frequentist, bayesian, sprt
    AssignmentSourceExperimentName string
    Name of the source experiment for assignment
    AssignmentSourceName string
    Source name of the assignment
    BenjaminiHochbergPerMetric bool
    Is Benjamini-Hochberg procedure applied per metric?
    BenjaminiHochbergPerVariant bool
    Is Benjamini-Hochberg procedure applied per variant?
    BenjaminiPrimaryMetricsOnly bool
    Is Benjamini-Hochberg procedure applied for primary metrics only?
    BonferroniCorrection bool
    Is Bonferroni correction applied per variant?
    BonferroniCorrectionPerMetric bool
    Is Bonferroni correction applied per metric?
    CohortWaitUntilEndToInclude bool
    Warehouse Native Only - Whether to filter to units whose experiment cohort analysis duration is complete, if cohortedAnalysisDuration exists
    CohortedAnalysisDuration int
    Warehouse Native Only - Cohorted analysis duration in days
    CohortedMetricsMatureAfterEnd bool
    Warehouse Native Only - Allow cohort metrics to mature after experiment end
    ControlGroupId string
    Optional control group ID
    CreatorEmail string
    The email of the creator of this experiment
    CreatorId string
    The Statsig ID of the creator of this experiment
    DefaultConfidenceInterval string
    Default error margin used for results
    Description string
    A description of the new experiment
    Duration int
    How long the experiment is expected to last in days
    FixedAnalysisDuration int
    Fixed analysis duration in days
    Groups []ExperimentGroupArgs
    The test groups for your experiment
    Hypothesis string
    A statement that will be tested by this experiment
    IdType string
    The idType the experiment will be performed on
    IsAnalysisOnly bool
    For Warehouse Native
    LaunchedGroupId string
    ID of the launched group, null otherwise
    LayerId string
    Which layer to place the experiment into.
    Links []ExperimentLinkArgs
    Links to relevant documentation or resources
    Name string
    The name of the new experiment
    PrimaryMetricTags []string
    Primary metric tags for the experiment
    PrimaryMetrics []ExperimentPrimaryMetricArgs
    Main metrics needed to evaluate your hypothesis
    ScheduledReloadHour int
    Warehouse Native only - UTC hour at which to run scheduled pulse loads
    ScheduledReloadType string
    Warehouse Native only - reload type for scheduled reloads
    SecondaryIdtype string
    The secondary ID type for the experiment used in WHN for ID resolution
    SecondaryMetricTags []string
    Secondary metric tags for the experiment
    SecondaryMetrics []ExperimentSecondaryMetricArgs
    Additional metrics to monitor that might impact the analysis or final decision of the experiment
    SequentialTesting bool
    Apply sequential testing?
    Status string
    The current status of the experiment
    Tags []string
    Tags associated with the experiment
    TargetApps []string
    Target apps assigned to this experiment
    TargetExposures int
    Target exposures for the experiment
    TargetingGateId string
    Restrict your experiment to users passing the selected feature gate
    Team string
    Enterprise only
    allocation Double
    Percent of layer allocated to this experiment
    allocationDuration Integer
    Warehouse Native Only - Allocation duration in days
    analysisEndTime String
    Warehouse Native only - end time for analysis only experiments
    analyticsType String
    The mode of analysis for the experiment, e.g frequentist, bayesian, sprt
    assignmentSourceExperimentName String
    Name of the source experiment for assignment
    assignmentSourceName String
    Source name of the assignment
    benjaminiHochbergPerMetric Boolean
    Is Benjamini-Hochberg procedure applied per metric?
    benjaminiHochbergPerVariant Boolean
    Is Benjamini-Hochberg procedure applied per variant?
    benjaminiPrimaryMetricsOnly Boolean
    Is Benjamini-Hochberg procedure applied for primary metrics only?
    bonferroniCorrection Boolean
    Is Bonferroni correction applied per variant?
    bonferroniCorrectionPerMetric Boolean
    Is Bonferroni correction applied per metric?
    cohortWaitUntilEndToInclude Boolean
    Warehouse Native Only - Whether to filter to units whose experiment cohort analysis duration is complete, if cohortedAnalysisDuration exists
    cohortedAnalysisDuration Integer
    Warehouse Native Only - Cohorted analysis duration in days
    cohortedMetricsMatureAfterEnd Boolean
    Warehouse Native Only - Allow cohort metrics to mature after experiment end
    controlGroupId String
    Optional control group ID
    creatorEmail String
    The email of the creator of this experiment
    creatorId String
    The Statsig ID of the creator of this experiment
    defaultConfidenceInterval String
    Default error margin used for results
    description String
    A description of the new experiment
    duration Integer
    How long the experiment is expected to last in days
    fixedAnalysisDuration Integer
    Fixed analysis duration in days
    groups List<ExperimentGroup>
    The test groups for your experiment
    hypothesis String
    A statement that will be tested by this experiment
    idType String
    The idType the experiment will be performed on
    isAnalysisOnly Boolean
    For Warehouse Native
    launchedGroupId String
    ID of the launched group, null otherwise
    layerId String
    Which layer to place the experiment into.
    links List<ExperimentLink>
    Links to relevant documentation or resources
    name String
    The name of the new experiment
    primaryMetricTags List<String>
    Primary metric tags for the experiment
    primaryMetrics List<ExperimentPrimaryMetric>
    Main metrics needed to evaluate your hypothesis
    scheduledReloadHour Integer
    Warehouse Native only - UTC hour at which to run scheduled pulse loads
    scheduledReloadType String
    Warehouse Native only - reload type for scheduled reloads
    secondaryIdtype String
    The secondary ID type for the experiment used in WHN for ID resolution
    secondaryMetricTags List<String>
    Secondary metric tags for the experiment
    secondaryMetrics List<ExperimentSecondaryMetric>
    Additional metrics to monitor that might impact the analysis or final decision of the experiment
    sequentialTesting Boolean
    Apply sequential testing?
    status String
    The current status of the experiment
    tags List<String>
    Tags associated with the experiment
    targetApps List<String>
    Target apps assigned to this experiment
    targetExposures Integer
    Target exposures for the experiment
    targetingGateId String
    Restrict your experiment to users passing the selected feature gate
    team String
    Enterprise only
    allocation number
    Percent of layer allocated to this experiment
    allocationDuration number
    Warehouse Native Only - Allocation duration in days
    analysisEndTime string
    Warehouse Native only - end time for analysis only experiments
    analyticsType string
    The mode of analysis for the experiment, e.g frequentist, bayesian, sprt
    assignmentSourceExperimentName string
    Name of the source experiment for assignment
    assignmentSourceName string
    Source name of the assignment
    benjaminiHochbergPerMetric boolean
    Is Benjamini-Hochberg procedure applied per metric?
    benjaminiHochbergPerVariant boolean
    Is Benjamini-Hochberg procedure applied per variant?
    benjaminiPrimaryMetricsOnly boolean
    Is Benjamini-Hochberg procedure applied for primary metrics only?
    bonferroniCorrection boolean
    Is Bonferroni correction applied per variant?
    bonferroniCorrectionPerMetric boolean
    Is Bonferroni correction applied per metric?
    cohortWaitUntilEndToInclude boolean
    Warehouse Native Only - Whether to filter to units whose experiment cohort analysis duration is complete, if cohortedAnalysisDuration exists
    cohortedAnalysisDuration number
    Warehouse Native Only - Cohorted analysis duration in days
    cohortedMetricsMatureAfterEnd boolean
    Warehouse Native Only - Allow cohort metrics to mature after experiment end
    controlGroupId string
    Optional control group ID
    creatorEmail string
    The email of the creator of this experiment
    creatorId string
    The Statsig ID of the creator of this experiment
    defaultConfidenceInterval string
    Default error margin used for results
    description string
    A description of the new experiment
    duration number
    How long the experiment is expected to last in days
    fixedAnalysisDuration number
    Fixed analysis duration in days
    groups ExperimentGroup[]
    The test groups for your experiment
    hypothesis string
    A statement that will be tested by this experiment
    idType string
    The idType the experiment will be performed on
    isAnalysisOnly boolean
    For Warehouse Native
    launchedGroupId string
    ID of the launched group, null otherwise
    layerId string
    Which layer to place the experiment into.
    links ExperimentLink[]
    Links to relevant documentation or resources
    name string
    The name of the new experiment
    primaryMetricTags string[]
    Primary metric tags for the experiment
    primaryMetrics ExperimentPrimaryMetric[]
    Main metrics needed to evaluate your hypothesis
    scheduledReloadHour number
    Warehouse Native only - UTC hour at which to run scheduled pulse loads
    scheduledReloadType string
    Warehouse Native only - reload type for scheduled reloads
    secondaryIdtype string
    The secondary ID type for the experiment used in WHN for ID resolution
    secondaryMetricTags string[]
    Secondary metric tags for the experiment
    secondaryMetrics ExperimentSecondaryMetric[]
    Additional metrics to monitor that might impact the analysis or final decision of the experiment
    sequentialTesting boolean
    Apply sequential testing?
    status string
    The current status of the experiment
    tags string[]
    Tags associated with the experiment
    targetApps string[]
    Target apps assigned to this experiment
    targetExposures number
    Target exposures for the experiment
    targetingGateId string
    Restrict your experiment to users passing the selected feature gate
    team string
    Enterprise only
    allocation float
    Percent of layer allocated to this experiment
    allocation_duration int
    Warehouse Native Only - Allocation duration in days
    analysis_end_time str
    Warehouse Native only - end time for analysis only experiments
    analytics_type str
    The mode of analysis for the experiment, e.g frequentist, bayesian, sprt
    assignment_source_experiment_name str
    Name of the source experiment for assignment
    assignment_source_name str
    Source name of the assignment
    benjamini_hochberg_per_metric bool
    Is Benjamini-Hochberg procedure applied per metric?
    benjamini_hochberg_per_variant bool
    Is Benjamini-Hochberg procedure applied per variant?
    benjamini_primary_metrics_only bool
    Is Benjamini-Hochberg procedure applied for primary metrics only?
    bonferroni_correction bool
    Is Bonferroni correction applied per variant?
    bonferroni_correction_per_metric bool
    Is Bonferroni correction applied per metric?
    cohort_wait_until_end_to_include bool
    Warehouse Native Only - Whether to filter to units whose experiment cohort analysis duration is complete, if cohortedAnalysisDuration exists
    cohorted_analysis_duration int
    Warehouse Native Only - Cohorted analysis duration in days
    cohorted_metrics_mature_after_end bool
    Warehouse Native Only - Allow cohort metrics to mature after experiment end
    control_group_id str
    Optional control group ID
    creator_email str
    The email of the creator of this experiment
    creator_id str
    The Statsig ID of the creator of this experiment
    default_confidence_interval str
    Default error margin used for results
    description str
    A description of the new experiment
    duration int
    How long the experiment is expected to last in days
    fixed_analysis_duration int
    Fixed analysis duration in days
    groups Sequence[ExperimentGroupArgs]
    The test groups for your experiment
    hypothesis str
    A statement that will be tested by this experiment
    id_type str
    The idType the experiment will be performed on
    is_analysis_only bool
    For Warehouse Native
    launched_group_id str
    ID of the launched group, null otherwise
    layer_id str
    Which layer to place the experiment into.
    links Sequence[ExperimentLinkArgs]
    Links to relevant documentation or resources
    name str
    The name of the new experiment
    primary_metric_tags Sequence[str]
    Primary metric tags for the experiment
    primary_metrics Sequence[ExperimentPrimaryMetricArgs]
    Main metrics needed to evaluate your hypothesis
    scheduled_reload_hour int
    Warehouse Native only - UTC hour at which to run scheduled pulse loads
    scheduled_reload_type str
    Warehouse Native only - reload type for scheduled reloads
    secondary_idtype str
    The secondary ID type for the experiment used in WHN for ID resolution
    secondary_metric_tags Sequence[str]
    Secondary metric tags for the experiment
    secondary_metrics Sequence[ExperimentSecondaryMetricArgs]
    Additional metrics to monitor that might impact the analysis or final decision of the experiment
    sequential_testing bool
    Apply sequential testing?
    status str
    The current status of the experiment
    tags Sequence[str]
    Tags associated with the experiment
    target_apps Sequence[str]
    Target apps assigned to this experiment
    target_exposures int
    Target exposures for the experiment
    targeting_gate_id str
    Restrict your experiment to users passing the selected feature gate
    team str
    Enterprise only
    allocation Number
    Percent of layer allocated to this experiment
    allocationDuration Number
    Warehouse Native Only - Allocation duration in days
    analysisEndTime String
    Warehouse Native only - end time for analysis only experiments
    analyticsType String
    The mode of analysis for the experiment, e.g frequentist, bayesian, sprt
    assignmentSourceExperimentName String
    Name of the source experiment for assignment
    assignmentSourceName String
    Source name of the assignment
    benjaminiHochbergPerMetric Boolean
    Is Benjamini-Hochberg procedure applied per metric?
    benjaminiHochbergPerVariant Boolean
    Is Benjamini-Hochberg procedure applied per variant?
    benjaminiPrimaryMetricsOnly Boolean
    Is Benjamini-Hochberg procedure applied for primary metrics only?
    bonferroniCorrection Boolean
    Is Bonferroni correction applied per variant?
    bonferroniCorrectionPerMetric Boolean
    Is Bonferroni correction applied per metric?
    cohortWaitUntilEndToInclude Boolean
    Warehouse Native Only - Whether to filter to units whose experiment cohort analysis duration is complete, if cohortedAnalysisDuration exists
    cohortedAnalysisDuration Number
    Warehouse Native Only - Cohorted analysis duration in days
    cohortedMetricsMatureAfterEnd Boolean
    Warehouse Native Only - Allow cohort metrics to mature after experiment end
    controlGroupId String
    Optional control group ID
    creatorEmail String
    The email of the creator of this experiment
    creatorId String
    The Statsig ID of the creator of this experiment
    defaultConfidenceInterval String
    Default error margin used for results
    description String
    A description of the new experiment
    duration Number
    How long the experiment is expected to last in days
    fixedAnalysisDuration Number
    Fixed analysis duration in days
    groups List<Property Map>
    The test groups for your experiment
    hypothesis String
    A statement that will be tested by this experiment
    idType String
    The idType the experiment will be performed on
    isAnalysisOnly Boolean
    For Warehouse Native
    launchedGroupId String
    ID of the launched group, null otherwise
    layerId String
    Which layer to place the experiment into.
    links List<Property Map>
    Links to relevant documentation or resources
    name String
    The name of the new experiment
    primaryMetricTags List<String>
    Primary metric tags for the experiment
    primaryMetrics List<Property Map>
    Main metrics needed to evaluate your hypothesis
    scheduledReloadHour Number
    Warehouse Native only - UTC hour at which to run scheduled pulse loads
    scheduledReloadType String
    Warehouse Native only - reload type for scheduled reloads
    secondaryIdtype String
    The secondary ID type for the experiment used in WHN for ID resolution
    secondaryMetricTags List<String>
    Secondary metric tags for the experiment
    secondaryMetrics List<Property Map>
    Additional metrics to monitor that might impact the analysis or final decision of the experiment
    sequentialTesting Boolean
    Apply sequential testing?
    status String
    The current status of the experiment
    tags List<String>
    Tags associated with the experiment
    targetApps List<String>
    Target apps assigned to this experiment
    targetExposures Number
    Target exposures for the experiment
    targetingGateId String
    Restrict your experiment to users passing the selected feature gate
    team String
    Enterprise only

    Supporting Types

    ExperimentGroup, ExperimentGroupArgs

    Name string
    ParameterValues Dictionary<string, string>
    Size double
    Description string
    Disabled bool
    ForeignGroupId string
    Id string
    Name string
    ParameterValues map[string]string
    Size float64
    Description string
    Disabled bool
    ForeignGroupId string
    Id string
    name String
    parameterValues Map<String,String>
    size Double
    description String
    disabled Boolean
    foreignGroupId String
    id String
    name string
    parameterValues {[key: string]: string}
    size number
    description string
    disabled boolean
    foreignGroupId string
    id string
    name str
    parameter_values Mapping[str, str]
    size float
    description str
    disabled bool
    foreign_group_id str
    id str
    name String
    parameterValues Map<String>
    size Number
    description String
    disabled Boolean
    foreignGroupId String
    id String
    Url string
    The URL of the link
    Title string
    The title of the link
    Url string
    The URL of the link
    Title string
    The title of the link
    url String
    The URL of the link
    title String
    The title of the link
    url string
    The URL of the link
    title string
    The title of the link
    url str
    The URL of the link
    title str
    The title of the link
    url String
    The URL of the link
    title String
    The title of the link

    ExperimentPrimaryMetric, ExperimentPrimaryMetricArgs

    Direction string
    HypothesizedValue double
    Name string
    Type string
    Direction string
    HypothesizedValue float64
    Name string
    Type string
    direction String
    hypothesizedValue Double
    name String
    type String
    direction string
    hypothesizedValue number
    name string
    type string
    direction String
    hypothesizedValue Number
    name String
    type String

    ExperimentSecondaryMetric, ExperimentSecondaryMetricArgs

    Direction string
    HypothesizedValue double
    Name string
    Type string
    Direction string
    HypothesizedValue float64
    Name string
    Type string
    direction String
    hypothesizedValue Double
    name String
    type String
    direction string
    hypothesizedValue number
    name string
    type string
    direction String
    hypothesizedValue Number
    name String
    type String

    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