experiments

package
v0.0.0-...-b44ee91 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BucketLabelControl   = "control"
	BucketLabelTreatment = "treatment"
)
View Source
const (
	BucketStateOpen   = "OPEN"
	BucketStateClosed = "CLOSED"
	BucketStateEmpty  = "EMPTY"
)
View Source
const (
	ExperimentStateDraft      = "DRAFT"
	ExperimentStateRunning    = "RUNNING"
	ExperimentStatePaused     = "PAUSED"
	ExperimentStateTerminated = "TERMINATED"
	ExperimentStateDeleted    = "DELETED"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	Label             string  `json:"label"`
	ExperimentID      string  `json:"experimentID"`
	AllocationPercent float64 `json:"allocationPercent"`
	Description       string  `json:"description"`
	Payload           string  `json:"payload"`
	State             string  `json:"state"`
	IsControl         bool    `json:"isControl"`
}

type BucketState

type BucketState string

type Experiment

type Experiment struct {
	ID                       string            `json:"id,omitempty"`
	Label                    string            `json:"label,omitempty"`
	ApplicationName          string            `json:"applicationName,omitempty"`
	StartTime                *time.Time        `json:"startTime,omitempty"`
	EndTime                  *time.Time        `json:"endTime,omitempty"`
	SamplingPercent          float64           `json:"samplingPercent,omitempty"`
	Description              string            `json:"description,omitempty"`
	HypothesisIsCorrect      string            `json:"hypothesisIsCorrect,omitempty"`
	Results                  string            `json:"results,omitempty"`
	Rule                     string            `json:"rule,omitempty"`
	RuleJSON                 string            `json:"ruleJson,omitempty"`
	CreationTime             *time.Time        `json:"creationTime,omitempty"`
	ModificationTime         *time.Time        `json:"modificationTime,omitempty"`
	State                    ExperimentState   `json:"state,omitempty"`
	IsPersonalizationEnabled bool              `json:"isPersonalizationEnabled,omitempty"`
	ModelName                string            `json:"modelName,omitempty"`
	ModelVersion             string            `json:"modelVersion,omitempty"`
	IsRapidExperiment        bool              `json:"isRapidExperiment,omitempty"`
	UserCap                  float64           `json:"userCap,omitempty"`
	CreatorID                string            `json:"creatorID,omitempty"`
	Tags                     []string          `json:"tags,omitempty"`
	Buckets                  []*Bucket         `json:"buckets,omitempty"`
	ExclusionIDList          []string          `json:"exclusionIdList,omitempty"`
	ExperimentPageList       []*ExperimentPage `json:"experimentPageList,omitempty"`
	Priority                 float64           `json:"priority,omitempty"`
}

type ExperimentPage

type ExperimentPage struct {
	Name               string `json:"name"`
	AllowNewAssignment bool   `json:"allowNewAssignment"`
}

type ExperimentState

type ExperimentState string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL