Class: DatadogAPIClient::V2::ExperimentsBanditPolicyV2

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

Overview

The policy the bandit serves. null until the bandit starts.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

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_v2.rb', line 48

def additional_properties
  @additional_properties
end

#applied_at ⇒ Object

When the policy started being served.



25
26
27
# File 'lib/datadog_api_client/v2/models/experiments_bandit_policy_v2.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_v2.rb', line 28

def config_version
  @config_version
end

#id ⇒ Object

The policy ID. Each exposure logs it as bandit.policy_id.



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

def id
  @id
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_v2.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_v2.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_v2.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_v2.rb', line 43

def refresh_id
  @refresh_id
end

#variants ⇒ Object

Each variant's share of traffic. The probabilities add up to 1.



46
47
48
# File 'lib/datadog_api_client/v2/models/experiments_bandit_policy_v2.rb', line 46

def variants
  @variants
end