Class: DatadogAPIClient::V2::DeploymentGateRuleEvaluationAttributes

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

Overview

Attributes of a deployment gate rule evaluation.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_properties ⇒ Object

Returns the value of attribute additional_properties.



86
87
88
# File 'lib/datadog_api_client/v2/models/deployment_gate_rule_evaluation_attributes.rb', line 86

def additional_properties
  @additional_properties
end

#configuration ⇒ Object

Evaluated rule configuration. Fields depend on rule type and unset fields are omitted. Monitor rules can include duration, query, monitor_ids, warmup, fail_on_no_groups_found, and fail_on_no_data. Faulty deployment detection rules can include duration, allowed_resources, and excluded_resources.



27
28
29
# File 'lib/datadog_api_client/v2/models/deployment_gate_rule_evaluation_attributes.rb', line 27

def configuration
  @configuration
end

#dry_run ⇒ Object

Whether this rule is non-enforcing. A failed dry-run rule is ignored when computing the gate outcome. Independent of gate_dry_run.



30
31
32
# File 'lib/datadog_api_client/v2/models/deployment_gate_rule_evaluation_attributes.rb', line 30

def dry_run
  @dry_run
end

#duration_seconds ⇒ Object

Rule evaluation duration in seconds. Null while it is in progress.



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

def duration_seconds
  @duration_seconds
end

#env ⇒ Object

Evaluated environment.



36
37
38
# File 'lib/datadog_api_client/v2/models/deployment_gate_rule_evaluation_attributes.rb', line 36

def env
  @env
end

#evaluation_id ⇒ Object

Rule evaluation UUID. Matches the resource id.



39
40
41
# File 'lib/datadog_api_client/v2/models/deployment_gate_rule_evaluation_attributes.rb', line 39

def evaluation_id
  @evaluation_id
end

#failures ⇒ Object

Rule failure details.



42
43
44
# File 'lib/datadog_api_client/v2/models/deployment_gate_rule_evaluation_attributes.rb', line 42

def failures
  @failures
end

#finished_at ⇒ Object

Time the rule evaluation finished. Null while it is in progress.



45
46
47
# File 'lib/datadog_api_client/v2/models/deployment_gate_rule_evaluation_attributes.rb', line 45

def finished_at
  @finished_at
end

#gate_dry_run ⇒ Object

Whether the parent gate is dry-run. A failed dry-run gate blocks but does not stop deployment. Independent of rule-level dry_run.



48
49
50
# File 'lib/datadog_api_client/v2/models/deployment_gate_rule_evaluation_attributes.rb', line 48

def gate_dry_run
  @gate_dry_run
end

#gate_evaluation_id ⇒ Object

Deployment gate evaluation UUID.



51
52
53
# File 'lib/datadog_api_client/v2/models/deployment_gate_rule_evaluation_attributes.rb', line 51

def gate_evaluation_id
  @gate_evaluation_id
end

#gate_id ⇒ Object

Configured deployment gate UUID. Null for just-in-time evaluations.



54
55
56
# File 'lib/datadog_api_client/v2/models/deployment_gate_rule_evaluation_attributes.rb', line 54

def gate_id
  @gate_id
end

#identifier ⇒ Object

Deployment gate identifier.



57
58
59
# File 'lib/datadog_api_client/v2/models/deployment_gate_rule_evaluation_attributes.rb', line 57

def identifier
  @identifier
end

#name ⇒ Object

Rule name.



60
61
62
# File 'lib/datadog_api_client/v2/models/deployment_gate_rule_evaluation_attributes.rb', line 60

def name
  @name
end

#reason ⇒ Object

Reason for the rule result.



63
64
65
# File 'lib/datadog_api_client/v2/models/deployment_gate_rule_evaluation_attributes.rb', line 63

def reason
  @reason
end

#rule_id ⇒ Object

Configured deployment rule UUID. Null for just-in-time rules.



66
67
68
# File 'lib/datadog_api_client/v2/models/deployment_gate_rule_evaluation_attributes.rb', line 66

def rule_id
  @rule_id
end

#service ⇒ Object

Evaluated service.



69
70
71
# File 'lib/datadog_api_client/v2/models/deployment_gate_rule_evaluation_attributes.rb', line 69

def service
  @service
end

#started_at ⇒ Object

Time the rule evaluation started.



72
73
74
# File 'lib/datadog_api_client/v2/models/deployment_gate_rule_evaluation_attributes.rb', line 72

def started_at
  @started_at
end

#status ⇒ Object

The recorded result of a gate or rule evaluation.

  • in_progress: The evaluation is still running.
  • pass: All rules passed successfully.
  • fail: One or more rules did not pass.


78
79
80
# File 'lib/datadog_api_client/v2/models/deployment_gate_rule_evaluation_attributes.rb', line 78

def status
  @status
end

#type ⇒ Object

Type of deployment gate rule.



81
82
83
# File 'lib/datadog_api_client/v2/models/deployment_gate_rule_evaluation_attributes.rb', line 81

def type
  @type
end

#version ⇒ Object

Evaluated deployment version. Empty when no version was provided.



84
85
86
# File 'lib/datadog_api_client/v2/models/deployment_gate_rule_evaluation_attributes.rb', line 84

def version
  @version
end