Class: DatadogAPIClient::V2::ExperimentsPatchExperimentV2ResponseDataAttributesTrafficExposure

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/experiments_patch_experiment_v2_response_data_attributes_traffic_exposure.rb

Overview

Traffic exposure fraction or schedule configured for the experiment.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_properties ⇒ Object

Returns the value of attribute additional_properties.



33
34
35
# File 'lib/datadog_api_client/v2/models/experiments_patch_experiment_v2_response_data_attributes_traffic_exposure.rb', line 33

def additional_properties
  @additional_properties
end

#fraction ⇒ Object

STATIC exposure fraction. Draft experiments can change this value. After start only warehouse experiments without a Datadog flag can change a STATIC fraction through the public API.



25
26
27
# File 'lib/datadog_api_client/v2/models/experiments_patch_experiment_v2_response_data_attributes_traffic_exposure.rb', line 25

def fraction
  @fraction
end

#mode ⇒ Object

Whether exposure uses a fixed fraction or a sequence of steps.



28
29
30
# File 'lib/datadog_api_client/v2/models/experiments_patch_experiment_v2_response_data_attributes_traffic_exposure.rb', line 28

def mode
  @mode
end

#steps ⇒ Object

Configured exposure plan rather than wall-clock history. At least two steps must have strictly increasing fractions and no gaps. Warehouse steps start at assignments_start_date and can use different durations. New Datadog plans have at most five steps and a first fraction above zero. Their nonfinal durations must be equal and exclude time paused. Datadog steps start with the experiment. Running warehouse experiments can replace step fractions, durations, and the exposure mode. After start, Datadog exposure plans cannot change through the public API. The final duration is null and its fraction holds until assignment ends.



31
32
33
# File 'lib/datadog_api_client/v2/models/experiments_patch_experiment_v2_response_data_attributes_traffic_exposure.rb', line 31

def steps
  @steps
end