Class: DatadogAPIClient::V2::ExperimentsBanditPolicyHistoryV2DTODataAttributes
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::ExperimentsBanditPolicyHistoryV2DTODataAttributes
- Includes:
- BaseGenericModel
- Defined in:
- lib/datadog_api_client/v2/models/experiments_bandit_policy_history_v2_dto_data_attributes.rb
Overview
A traffic split the bandit served, with the same fields as active_policy.
Instance Attribute Summary collapse
-
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
-
#applied_at ⇒ Object
readonly
When the policy was saved.
-
#config_version ⇒ Object
readonly
The configuration version the policy was made for.
-
#is_active ⇒ Object
readonly
Whether this is the policy the bandit serves now, the one Get bandit returns as
active_policy. -
#kind ⇒ Object
readonly
WARMUPserves the arms equally. -
#policy_number ⇒ Object
readonly
The policy's place in the bandit's policy history.
-
#reason ⇒ Object
readonly
Why the policy was applied.
-
#refresh_id ⇒ Object
The refresh that proposed the policy.
-
#variants ⇒ Object
readonly
Each variant's share of traffic.
Method Summary
Methods included from BaseGenericModel
Instance Attribute Details
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
48 49 50 |
# File 'lib/datadog_api_client/v2/models/experiments_bandit_policy_history_v2_dto_data_attributes.rb', line 48 def additional_properties @additional_properties end |
#applied_at ⇒ Object
When the policy was saved. SDKs pick it up on their next configuration fetch.
25 26 27 |
# File 'lib/datadog_api_client/v2/models/experiments_bandit_policy_history_v2_dto_data_attributes.rb', line 25 def applied_at @applied_at end |
#config_version ⇒ Object
The configuration version the policy was made for.
28 29 30 |
# File 'lib/datadog_api_client/v2/models/experiments_bandit_policy_history_v2_dto_data_attributes.rb', line 28 def config_version @config_version end |
#is_active ⇒ Object
Whether this is the policy the bandit serves now, the one Get bandit returns as active_policy. A paused bandit keeps serving it, and an ended bandit serves its fallback.
31 32 33 |
# File 'lib/datadog_api_client/v2/models/experiments_bandit_policy_history_v2_dto_data_attributes.rb', line 31 def is_active @is_active end |
#kind ⇒ Object
WARMUP serves the arms equally. ADAPTIVE serves the initial split or a split from a refresh. FALLBACK serves one variant after the bandit ends.
34 35 36 |
# File 'lib/datadog_api_client/v2/models/experiments_bandit_policy_history_v2_dto_data_attributes.rb', line 34 def kind @kind end |
#policy_number ⇒ Object
The policy's place in the bandit's policy history. It follows applied_at and orders policies saved at the same time.
37 38 39 |
# File 'lib/datadog_api_client/v2/models/experiments_bandit_policy_history_v2_dto_data_attributes.rb', line 37 def policy_number @policy_number end |
#reason ⇒ Object
Why the policy was applied.
40 41 42 |
# File 'lib/datadog_api_client/v2/models/experiments_bandit_policy_history_v2_dto_data_attributes.rb', line 40 def reason @reason end |
#refresh_id ⇒ Object
The refresh that proposed the policy. null for policies no refresh proposed, such as the first split and the policy served after the bandit ends.
43 44 45 |
# File 'lib/datadog_api_client/v2/models/experiments_bandit_policy_history_v2_dto_data_attributes.rb', line 43 def refresh_id @refresh_id end |
#variants ⇒ Object
Each variant's share of traffic. The probabilities add up to 1. A variant served as an arm keeps the key the arm had, even if the arm was removed later.
46 47 48 |
# File 'lib/datadog_api_client/v2/models/experiments_bandit_policy_history_v2_dto_data_attributes.rb', line 46 def variants @variants end |