datadog_api_client 2.7.0 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +195 -46
- data/.generator/schemas/v2/openapi.yaml +877 -96
- data/.generator/src/generator/formatter.py +1 -0
- data/.generator/src/generator/templates/model_base.j2 +8 -4
- data/CHANGELOG.md +39 -0
- data/examples/v1/dashboards/CreateDashboard_109450134.rb +44 -0
- data/examples/v1/dashboards/CreateDashboard_2800096921.rb +62 -0
- data/examples/v1/dashboards/CreateDashboard_3195475781.rb +32 -0
- data/examples/v1/service-level-objectives/SearchSLO.rb +0 -3
- data/examples/v2/incidents/CreateIncidentIntegration.rb +31 -0
- data/examples/v2/incidents/DeleteIncidentIntegration.rb +14 -0
- data/examples/v2/incidents/GetIncidentIntegration.rb +14 -0
- data/examples/v2/incidents/ListIncidentIntegrations.rb +11 -0
- data/examples/v2/incidents/UpdateIncidentIntegration.rb +34 -0
- data/examples/v2/ip-allowlist/GetIPAllowlist.rb +5 -0
- data/examples/v2/ip-allowlist/UpdateIPAllowlist.rb +25 -0
- data/examples/v2/logs-metrics/CreateLogsMetric.rb +1 -1
- data/examples/v2/restriction-policies/DeleteRestrictionPolicy.rb +5 -0
- data/examples/v2/restriction-policies/GetRestrictionPolicy.rb +5 -0
- data/examples/v2/restriction-policies/UpdateRestrictionPolicy.rb +25 -0
- data/examples/v2/synthetics/GetOnDemandConcurrencyCap.rb +5 -0
- data/examples/v2/synthetics/GetOnDemandConcurrencyCap_2633566918.rb +5 -0
- data/examples/v2/synthetics/SetOnDemandConcurrencyCap.rb +7 -0
- data/examples/v2/synthetics/SetOnDemandConcurrencyCap_2850884405.rb +9 -0
- data/lib/datadog_api_client/configuration.rb +5 -1
- data/lib/datadog_api_client/inflector.rb +38 -0
- data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +0 -6
- data/lib/datadog_api_client/v1/api/snapshots_api.rb +2 -2
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +3 -3
- data/lib/datadog_api_client/v1/model_base.rb +7 -3
- data/lib/datadog_api_client/v1/models/application_key.rb +16 -16
- data/lib/datadog_api_client/v1/models/cancel_downtimes_by_scope_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/downtime.rb +1 -1
- data/lib/datadog_api_client/v1/models/downtime_child.rb +1 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/host_meta.rb +3 -3
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/ip_prefixes_orchestrator.rb +105 -0
- data/lib/datadog_api_client/v1/models/ip_ranges.rb +11 -1
- data/lib/datadog_api_client/v1/models/list_stream_source.rb +3 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +31 -11
- data/lib/datadog_api_client/v1/models/search_service_level_objective_attributes.rb +11 -1
- data/lib/datadog_api_client/v1/models/slo_list_widget_query.rb +16 -4
- data/lib/datadog_api_client/v1/models/slo_overall_statuses.rb +24 -1
- data/lib/datadog_api_client/v1/models/slo_state.rb +29 -0
- data/lib/datadog_api_client/v1/models/slo_status.rb +164 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +10 -10
- data/lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb +12 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +41 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +41 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +41 -1
- data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/ci_visibility_tests_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/incidents_api.rb +384 -0
- data/lib/datadog_api_client/v2/api/ip_allowlist_api.rb +153 -0
- data/lib/datadog_api_client/v2/api/logs_api.rb +1 -0
- data/lib/datadog_api_client/v2/api/metrics_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/monitors_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +236 -0
- data/lib/datadog_api_client/v2/api/synthetics_api.rb +153 -0
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
- data/lib/datadog_api_client/v2/model_base.rb +7 -3
- data/lib/datadog_api_client/v2/models/events_data_source.rb +1 -0
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb +161 -0
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_create_data.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_create_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_list_response.rb +126 -0
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_metadata.rb +63 -0
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_data.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_patch_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_response.rb +114 -0
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_response_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_response_included_item.rb +62 -0
- data/lib/datadog_api_client/v2/models/incident_update_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/ip_allowlist_attributes.rb +103 -0
- data/lib/datadog_api_client/v2/models/ip_allowlist_data.rb +122 -0
- data/lib/datadog_api_client/v2/models/ip_allowlist_entry.rb +102 -0
- data/lib/datadog_api_client/v2/models/ip_allowlist_entry_attributes.rb +121 -0
- data/lib/datadog_api_client/v2/models/ip_allowlist_entry_data.rb +122 -0
- data/lib/datadog_api_client/v2/models/ip_allowlist_entry_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/ip_allowlist_response.rb +91 -0
- data/lib/datadog_api_client/v2/models/ip_allowlist_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/ip_allowlist_update_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/jira_integration_metadata.rb +104 -0
- data/lib/datadog_api_client/v2/models/jira_integration_metadata_issues_item.rb +153 -0
- data/lib/datadog_api_client/v2/models/metrics_aggregator.rb +4 -0
- data/lib/datadog_api_client/v2/models/metrics_data_source.rb +2 -1
- data/lib/datadog_api_client/v2/models/metrics_scalar_query.rb +1 -1
- data/lib/datadog_api_client/v2/models/metrics_timeseries_query.rb +1 -1
- data/lib/datadog_api_client/v2/models/on_demand_concurrency_cap.rb +91 -0
- data/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_attributes.rb +91 -0
- data/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_response.rb +91 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadatas.rb +1 -1
- data/lib/datadog_api_client/v2/models/restriction_policy.rb +144 -0
- data/lib/datadog_api_client/v2/models/restriction_policy_attributes.rb +104 -0
- data/lib/datadog_api_client/v2/models/restriction_policy_binding.rb +127 -0
- data/lib/datadog_api_client/v2/models/restriction_policy_response.rb +102 -0
- data/lib/datadog_api_client/v2/models/restriction_policy_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/restriction_policy_update_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +7 -7
- data/lib/datadog_api_client/v2/models/rum_application_list_attributes.rb +7 -7
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb +1 -0
- data/lib/datadog_api_client/v2/models/slack_integration_metadata.rb +104 -0
- data/lib/datadog_api_client/v2/models/slack_integration_metadata_channel_item.rb +154 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +57 -2
|
@@ -152,7 +152,7 @@ module DatadogAPIClient::V1
|
|
|
152
152
|
fail ArgumentError, "Missing the required parameter 'usage_type' when calling UsageMeteringAPI.get_hourly_usage_attribution"
|
|
153
153
|
end
|
|
154
154
|
# verify enum value
|
|
155
|
-
allowable_values = ['api_usage', 'apm_fargate_usage', 'apm_host_usage', 'appsec_fargate_usage', 'appsec_usage', 'browser_usage', 'container_excl_agent_usage', 'container_usage', 'cspm_containers_usage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'cws_containers_usage', 'cws_hosts_usage', 'dbm_hosts_usage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_ingested_logs_usage', 'estimated_indexed_spans_usage', 'estimated_ingested_spans_usage', 'fargate_usage', 'functions_usage', 'infra_host_usage', 'invocations_usage', 'npm_host_usage', 'profiled_container_usage', 'profiled_host_usage', 'snmp_usage', 'estimated_rum_sessions_usage']
|
|
155
|
+
allowable_values = ['api_usage', 'apm_fargate_usage', 'apm_host_usage', 'appsec_fargate_usage', 'appsec_usage', 'browser_usage', 'container_excl_agent_usage', 'container_usage', 'cspm_containers_usage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'cws_containers_usage', 'cws_hosts_usage', 'dbm_hosts_usage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_ingested_logs_usage', 'estimated_indexed_spans_usage', 'estimated_ingested_spans_usage', 'fargate_usage', 'functions_usage', 'infra_host_usage', 'invocations_usage', 'npm_host_usage', 'profiled_container_usage', 'profiled_fargate_usage', 'profiled_host_usage', 'snmp_usage', 'estimated_rum_sessions_usage']
|
|
156
156
|
if @api_client.config.client_side_validation && !allowable_values.include?(usage_type)
|
|
157
157
|
fail ArgumentError, "invalid value for \"usage_type\", must be one of #{allowable_values}"
|
|
158
158
|
end
|
|
@@ -472,7 +472,7 @@ module DatadogAPIClient::V1
|
|
|
472
472
|
fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_monthly_usage_attribution"
|
|
473
473
|
end
|
|
474
474
|
# verify enum value
|
|
475
|
-
allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'npm_host_usage', 'npm_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', 'estimated_rum_sessions_usage', 'estimated_rum_sessions_percentage', '*']
|
|
475
|
+
allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'npm_host_usage', 'npm_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', 'estimated_rum_sessions_usage', 'estimated_rum_sessions_percentage', '*']
|
|
476
476
|
if @api_client.config.client_side_validation && !allowable_values.include?(fields)
|
|
477
477
|
fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}"
|
|
478
478
|
end
|
|
@@ -480,7 +480,7 @@ module DatadogAPIClient::V1
|
|
|
480
480
|
if @api_client.config.client_side_validation && opts[:'sort_direction'] && !allowable_values.include?(opts[:'sort_direction'])
|
|
481
481
|
fail ArgumentError, "invalid value for \"sort_direction\", must be one of #{allowable_values}"
|
|
482
482
|
end
|
|
483
|
-
allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'npm_host_usage', 'npm_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', 'estimated_rum_sessions_usage', 'estimated_rum_sessions_percentage', '*']
|
|
483
|
+
allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'appsec_usage', 'appsec_percentage', 'browser_usage', 'browser_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'npm_host_usage', 'npm_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'snmp_usage', 'snmp_percentage', 'estimated_rum_sessions_usage', 'estimated_rum_sessions_percentage', '*']
|
|
484
484
|
if @api_client.config.client_side_validation && opts[:'sort_name'] && !allowable_values.include?(opts[:'sort_name'])
|
|
485
485
|
fail ArgumentError, "invalid value for \"sort_name\", must be one of #{allowable_values}"
|
|
486
486
|
end
|
|
@@ -67,7 +67,13 @@ module DatadogAPIClient::V1
|
|
|
67
67
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
68
68
|
end
|
|
69
69
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
70
|
-
|
|
70
|
+
res = _deserialize(type, attributes[self.class.attribute_map[key]])
|
|
71
|
+
if res.instance_of? DatadogAPIClient::UnparsedObject
|
|
72
|
+
self._unparsed = true
|
|
73
|
+
elsif (res.kind_of? DatadogAPIClient::V1::BaseGenericModel) && res._unparsed
|
|
74
|
+
self._unparsed = true
|
|
75
|
+
end
|
|
76
|
+
self.send("#{key}=", res)
|
|
71
77
|
end
|
|
72
78
|
end
|
|
73
79
|
|
|
@@ -250,8 +256,6 @@ module DatadogAPIClient::V1
|
|
|
250
256
|
model = const.build(data)
|
|
251
257
|
return model if model
|
|
252
258
|
else
|
|
253
|
-
# raise if data contains keys that are not known to the model
|
|
254
|
-
raise unless (data.keys - const.attribute_map.values).empty?
|
|
255
259
|
model = const.build_from_hash(data)
|
|
256
260
|
return model if model && model.valid?
|
|
257
261
|
end
|
|
@@ -26,7 +26,7 @@ module DatadogAPIClient::V1
|
|
|
26
26
|
attr_accessor :_unparsed
|
|
27
27
|
|
|
28
28
|
# Hash of an application key.
|
|
29
|
-
attr_reader :
|
|
29
|
+
attr_reader :_hash
|
|
30
30
|
|
|
31
31
|
# Name of an application key.
|
|
32
32
|
attr_accessor :name
|
|
@@ -38,7 +38,7 @@ module DatadogAPIClient::V1
|
|
|
38
38
|
# @!visibility private
|
|
39
39
|
def self.attribute_map
|
|
40
40
|
{
|
|
41
|
-
:'
|
|
41
|
+
:'_hash' => :'hash',
|
|
42
42
|
:'name' => :'name',
|
|
43
43
|
:'owner' => :'owner'
|
|
44
44
|
}
|
|
@@ -48,7 +48,7 @@ module DatadogAPIClient::V1
|
|
|
48
48
|
# @!visibility private
|
|
49
49
|
def self.openapi_types
|
|
50
50
|
{
|
|
51
|
-
:'
|
|
51
|
+
:'_hash' => :'String',
|
|
52
52
|
:'name' => :'String',
|
|
53
53
|
:'owner' => :'String'
|
|
54
54
|
}
|
|
@@ -70,8 +70,8 @@ module DatadogAPIClient::V1
|
|
|
70
70
|
h[k.to_sym] = v
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
if attributes.key?(:'
|
|
74
|
-
self.
|
|
73
|
+
if attributes.key?(:'_hash')
|
|
74
|
+
self._hash = attributes[:'_hash']
|
|
75
75
|
end
|
|
76
76
|
|
|
77
77
|
if attributes.key?(:'name')
|
|
@@ -87,22 +87,22 @@ module DatadogAPIClient::V1
|
|
|
87
87
|
# @return true if the model is valid
|
|
88
88
|
# @!visibility private
|
|
89
89
|
def valid?
|
|
90
|
-
return false if !@
|
|
91
|
-
return false if !@
|
|
90
|
+
return false if !@_hash.nil? && @_hash.to_s.length > 40
|
|
91
|
+
return false if !@_hash.nil? && @_hash.to_s.length < 40
|
|
92
92
|
true
|
|
93
93
|
end
|
|
94
94
|
|
|
95
95
|
# Custom attribute writer method with validation
|
|
96
|
-
# @param
|
|
96
|
+
# @param _hash [Object] Object to be assigned
|
|
97
97
|
# @!visibility private
|
|
98
|
-
def
|
|
99
|
-
if !
|
|
100
|
-
fail ArgumentError, 'invalid value for "
|
|
98
|
+
def _hash=(_hash)
|
|
99
|
+
if !_hash.nil? && _hash.to_s.length > 40
|
|
100
|
+
fail ArgumentError, 'invalid value for "_hash", the character length must be smaller than or equal to 40.'
|
|
101
101
|
end
|
|
102
|
-
if !
|
|
103
|
-
fail ArgumentError, 'invalid value for "
|
|
102
|
+
if !_hash.nil? && _hash.to_s.length < 40
|
|
103
|
+
fail ArgumentError, 'invalid value for "_hash", the character length must be great than or equal to 40.'
|
|
104
104
|
end
|
|
105
|
-
@
|
|
105
|
+
@_hash = _hash
|
|
106
106
|
end
|
|
107
107
|
|
|
108
108
|
# Checks equality by comparing each attribute.
|
|
@@ -111,7 +111,7 @@ module DatadogAPIClient::V1
|
|
|
111
111
|
def ==(o)
|
|
112
112
|
return true if self.equal?(o)
|
|
113
113
|
self.class == o.class &&
|
|
114
|
-
|
|
114
|
+
_hash == o._hash &&
|
|
115
115
|
name == o.name &&
|
|
116
116
|
owner == o.owner
|
|
117
117
|
end
|
|
@@ -120,7 +120,7 @@ module DatadogAPIClient::V1
|
|
|
120
120
|
# @return [Integer] Hash code
|
|
121
121
|
# @!visibility private
|
|
122
122
|
def hash
|
|
123
|
-
[
|
|
123
|
+
[_hash, name, owner].hash
|
|
124
124
|
end
|
|
125
125
|
end
|
|
126
126
|
end
|
|
@@ -25,7 +25,7 @@ module DatadogAPIClient::V1
|
|
|
25
25
|
# @!visibility private
|
|
26
26
|
attr_accessor :_unparsed
|
|
27
27
|
|
|
28
|
-
# The scope(s) to which the downtime applies. For example, `host:app2`.
|
|
28
|
+
# The scope(s) to which the downtime applies and must be in `key:value` format. For example, `host:app2`.
|
|
29
29
|
# Provide multiple scopes as a comma-separated list like `env:dev,env:prod`.
|
|
30
30
|
# The resulting downtime applies to sources that matches ALL provided scopes (`env:dev` **AND** `env:prod`).
|
|
31
31
|
attr_reader :scope
|
|
@@ -79,7 +79,7 @@ module DatadogAPIClient::V1
|
|
|
79
79
|
# An object defining the recurrence of the downtime.
|
|
80
80
|
attr_accessor :recurrence
|
|
81
81
|
|
|
82
|
-
# The scope(s) to which the downtime applies. For example, `host:app2`.
|
|
82
|
+
# The scope(s) to which the downtime applies and must be in `key:value` format. For example, `host:app2`.
|
|
83
83
|
# Provide multiple scopes as a comma-separated list like `env:dev,env:prod`.
|
|
84
84
|
# The resulting downtime applies to sources that matches ALL provided scopes (`env:dev` **AND** `env:prod`).
|
|
85
85
|
attr_accessor :scope
|
|
@@ -73,7 +73,7 @@ module DatadogAPIClient::V1
|
|
|
73
73
|
# An object defining the recurrence of the downtime.
|
|
74
74
|
attr_accessor :recurrence
|
|
75
75
|
|
|
76
|
-
# The scope(s) to which the downtime applies. For example, `host:app2`.
|
|
76
|
+
# The scope(s) to which the downtime applies and must be in `key:value` format. For example, `host:app2`.
|
|
77
77
|
# Provide multiple scopes as a comma-separated list like `env:dev,env:prod`.
|
|
78
78
|
# The resulting downtime applies to sources that matches ALL provided scopes (`env:dev` **AND** `env:prod`).
|
|
79
79
|
attr_accessor :scope
|
|
@@ -99,18 +99,18 @@ module DatadogAPIClient::V1
|
|
|
99
99
|
:'agent_checks' => :'Array<Array<Object>>',
|
|
100
100
|
:'agent_version' => :'String',
|
|
101
101
|
:'cpu_cores' => :'Integer',
|
|
102
|
-
:'fbsd_v' => :'Array<
|
|
102
|
+
:'fbsd_v' => :'Array<Object>',
|
|
103
103
|
:'gohai' => :'String',
|
|
104
104
|
:'install_method' => :'HostMetaInstallMethod',
|
|
105
105
|
:'mac_v' => :'Array<Object>',
|
|
106
106
|
:'machine' => :'String',
|
|
107
|
-
:'nix_v' => :'Array<
|
|
107
|
+
:'nix_v' => :'Array<Object>',
|
|
108
108
|
:'platform' => :'String',
|
|
109
109
|
:'processor' => :'String',
|
|
110
110
|
:'python_v' => :'String',
|
|
111
111
|
:'socket_fqdn' => :'String',
|
|
112
112
|
:'socket_hostname' => :'String',
|
|
113
|
-
:'win_v' => :'Array<
|
|
113
|
+
:'win_v' => :'Array<Object>'
|
|
114
114
|
}
|
|
115
115
|
end
|
|
116
116
|
|
|
@@ -46,6 +46,7 @@ module DatadogAPIClient::V1
|
|
|
46
46
|
INVOCATIONS_USAGE = "invocations_usage".freeze
|
|
47
47
|
NPM_HOST_USAGE = "npm_host_usage".freeze
|
|
48
48
|
PROFILED_CONTAINER_USAGE = "profiled_container_usage".freeze
|
|
49
|
+
PROFILED_FARGATE_USAGE = "profiled_fargate_usage".freeze
|
|
49
50
|
PROFILED_HOST_USAGE = "profiled_host_usage".freeze
|
|
50
51
|
SNMP_USAGE = "snmp_usage".freeze
|
|
51
52
|
ESTIMATED_RUM_SESSIONS_USAGE = "estimated_rum_sessions_usage".freeze
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V1
|
|
20
|
+
# Available prefix information for the Orchestrator endpoints.
|
|
21
|
+
class IPPrefixesOrchestrator
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Whether the object has unparsed attributes
|
|
25
|
+
# @!visibility private
|
|
26
|
+
attr_accessor :_unparsed
|
|
27
|
+
|
|
28
|
+
# List of IPv4 prefixes.
|
|
29
|
+
attr_accessor :prefixes_ipv4
|
|
30
|
+
|
|
31
|
+
# List of IPv6 prefixes.
|
|
32
|
+
attr_accessor :prefixes_ipv6
|
|
33
|
+
|
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
|
+
# @!visibility private
|
|
36
|
+
def self.attribute_map
|
|
37
|
+
{
|
|
38
|
+
:'prefixes_ipv4' => :'prefixes_ipv4',
|
|
39
|
+
:'prefixes_ipv6' => :'prefixes_ipv6'
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Attribute type mapping.
|
|
44
|
+
# @!visibility private
|
|
45
|
+
def self.openapi_types
|
|
46
|
+
{
|
|
47
|
+
:'prefixes_ipv4' => :'Array<String>',
|
|
48
|
+
:'prefixes_ipv6' => :'Array<String>'
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Initializes the object
|
|
53
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
54
|
+
# @!visibility private
|
|
55
|
+
def initialize(attributes = {})
|
|
56
|
+
if (!attributes.is_a?(Hash))
|
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesOrchestrator` initialize method"
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
62
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::IPPrefixesOrchestrator`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
64
|
+
end
|
|
65
|
+
h[k.to_sym] = v
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if attributes.key?(:'prefixes_ipv4')
|
|
69
|
+
if (value = attributes[:'prefixes_ipv4']).is_a?(Array)
|
|
70
|
+
self.prefixes_ipv4 = value
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'prefixes_ipv6')
|
|
75
|
+
if (value = attributes[:'prefixes_ipv6']).is_a?(Array)
|
|
76
|
+
self.prefixes_ipv6 = value
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Check to see if the all the properties in the model are valid
|
|
82
|
+
# @return true if the model is valid
|
|
83
|
+
# @!visibility private
|
|
84
|
+
def valid?
|
|
85
|
+
true
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Checks equality by comparing each attribute.
|
|
89
|
+
# @param o [Object] Object to be compared
|
|
90
|
+
# @!visibility private
|
|
91
|
+
def ==(o)
|
|
92
|
+
return true if self.equal?(o)
|
|
93
|
+
self.class == o.class &&
|
|
94
|
+
prefixes_ipv4 == o.prefixes_ipv4 &&
|
|
95
|
+
prefixes_ipv6 == o.prefixes_ipv6
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Calculates hash code according to all attributes.
|
|
99
|
+
# @return [Integer] Hash code
|
|
100
|
+
# @!visibility private
|
|
101
|
+
def hash
|
|
102
|
+
[prefixes_ipv4, prefixes_ipv6].hash
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
@@ -40,6 +40,9 @@ module DatadogAPIClient::V1
|
|
|
40
40
|
# Date when last updated, in the form `YYYY-MM-DD-hh-mm-ss`.
|
|
41
41
|
attr_accessor :modified
|
|
42
42
|
|
|
43
|
+
# Available prefix information for the Orchestrator endpoints.
|
|
44
|
+
attr_accessor :orchestrator
|
|
45
|
+
|
|
43
46
|
# Available prefix information for the Process endpoints.
|
|
44
47
|
attr_accessor :process
|
|
45
48
|
|
|
@@ -64,6 +67,7 @@ module DatadogAPIClient::V1
|
|
|
64
67
|
:'apm' => :'apm',
|
|
65
68
|
:'logs' => :'logs',
|
|
66
69
|
:'modified' => :'modified',
|
|
70
|
+
:'orchestrator' => :'orchestrator',
|
|
67
71
|
:'process' => :'process',
|
|
68
72
|
:'synthetics' => :'synthetics',
|
|
69
73
|
:'synthetics_private_locations' => :'synthetics-private-locations',
|
|
@@ -81,6 +85,7 @@ module DatadogAPIClient::V1
|
|
|
81
85
|
:'apm' => :'IPPrefixesAPM',
|
|
82
86
|
:'logs' => :'IPPrefixesLogs',
|
|
83
87
|
:'modified' => :'String',
|
|
88
|
+
:'orchestrator' => :'IPPrefixesOrchestrator',
|
|
84
89
|
:'process' => :'IPPrefixesProcess',
|
|
85
90
|
:'synthetics' => :'IPPrefixesSynthetics',
|
|
86
91
|
:'synthetics_private_locations' => :'IPPrefixesSyntheticsPrivateLocations',
|
|
@@ -125,6 +130,10 @@ module DatadogAPIClient::V1
|
|
|
125
130
|
self.modified = attributes[:'modified']
|
|
126
131
|
end
|
|
127
132
|
|
|
133
|
+
if attributes.key?(:'orchestrator')
|
|
134
|
+
self.orchestrator = attributes[:'orchestrator']
|
|
135
|
+
end
|
|
136
|
+
|
|
128
137
|
if attributes.key?(:'process')
|
|
129
138
|
self.process = attributes[:'process']
|
|
130
139
|
end
|
|
@@ -164,6 +173,7 @@ module DatadogAPIClient::V1
|
|
|
164
173
|
apm == o.apm &&
|
|
165
174
|
logs == o.logs &&
|
|
166
175
|
modified == o.modified &&
|
|
176
|
+
orchestrator == o.orchestrator &&
|
|
167
177
|
process == o.process &&
|
|
168
178
|
synthetics == o.synthetics &&
|
|
169
179
|
synthetics_private_locations == o.synthetics_private_locations &&
|
|
@@ -175,7 +185,7 @@ module DatadogAPIClient::V1
|
|
|
175
185
|
# @return [Integer] Hash code
|
|
176
186
|
# @!visibility private
|
|
177
187
|
def hash
|
|
178
|
-
[agents, api, apm, logs, modified, process, synthetics, synthetics_private_locations, version, webhooks].hash
|
|
188
|
+
[agents, api, apm, logs, modified, orchestrator, process, synthetics, synthetics_private_locations, version, webhooks].hash
|
|
179
189
|
end
|
|
180
190
|
end
|
|
181
191
|
end
|
|
@@ -23,8 +23,11 @@ module DatadogAPIClient::V1
|
|
|
23
23
|
|
|
24
24
|
LOGS_STREAM = "logs_stream".freeze
|
|
25
25
|
AUDIT_STREAM = "audit_stream".freeze
|
|
26
|
+
CI_PIPELINE_STREAM = "ci_pipeline_stream".freeze
|
|
27
|
+
CI_TEST_STREAM = "ci_test_stream".freeze
|
|
26
28
|
RUM_ISSUE_STREAM = "rum_issue_stream".freeze
|
|
27
29
|
APM_ISSUE_STREAM = "apm_issue_stream".freeze
|
|
30
|
+
LOGS_ISSUE_STREAM = "logs_issue_stream".freeze
|
|
28
31
|
LOGS_PATTERN_STREAM = "logs_pattern_stream".freeze
|
|
29
32
|
LOGS_TRANSACTION_STREAM = "logs_transaction_stream".freeze
|
|
30
33
|
EVENT_STREAM = "event_stream".freeze
|
|
@@ -71,6 +71,8 @@ module DatadogAPIClient::V1
|
|
|
71
71
|
NPM_HOST_PERCENTAGE = "npm_host_percentage".freeze
|
|
72
72
|
PROFILED_CONTAINER_USAGE = "profiled_container_usage".freeze
|
|
73
73
|
PROFILED_CONTAINER_PERCENTAGE = "profiled_container_percentage".freeze
|
|
74
|
+
PROFILED_FARGATE_USAGE = "profiled_fargate_usage".freeze
|
|
75
|
+
PROFILED_FARGATE_PERCENTAGE = "profiled_fargate_percentage".freeze
|
|
74
76
|
PROFILED_HOST_USAGE = "profiled_host_usage".freeze
|
|
75
77
|
PROFILED_HOST_PERCENTAGE = "profiled_host_percentage".freeze
|
|
76
78
|
SNMP_USAGE = "snmp_usage".freeze
|
|
@@ -115,34 +115,34 @@ module DatadogAPIClient::V1
|
|
|
115
115
|
# The Database Monitoring queries usage by tag(s).
|
|
116
116
|
attr_accessor :dbm_queries_usage
|
|
117
117
|
|
|
118
|
-
# The percentage of estimated live indexed logs usage by tag(s).
|
|
118
|
+
# The percentage of estimated live indexed logs usage by tag(s).
|
|
119
119
|
attr_accessor :estimated_indexed_logs_percentage
|
|
120
120
|
|
|
121
|
-
# The estimated live indexed logs usage by tag(s).
|
|
121
|
+
# The estimated live indexed logs usage by tag(s).
|
|
122
122
|
attr_accessor :estimated_indexed_logs_usage
|
|
123
123
|
|
|
124
|
-
# The percentage of estimated indexed spans usage by tag(s).
|
|
124
|
+
# The percentage of estimated indexed spans usage by tag(s).
|
|
125
125
|
attr_accessor :estimated_indexed_spans_percentage
|
|
126
126
|
|
|
127
|
-
# The estimated indexed spans usage by tag(s).
|
|
127
|
+
# The estimated indexed spans usage by tag(s).
|
|
128
128
|
attr_accessor :estimated_indexed_spans_usage
|
|
129
129
|
|
|
130
|
-
# The percentage of estimated live ingested logs usage by tag(s).
|
|
130
|
+
# The percentage of estimated live ingested logs usage by tag(s).
|
|
131
131
|
attr_accessor :estimated_ingested_logs_percentage
|
|
132
132
|
|
|
133
|
-
# The estimated live ingested logs usage by tag(s).
|
|
133
|
+
# The estimated live ingested logs usage by tag(s).
|
|
134
134
|
attr_accessor :estimated_ingested_logs_usage
|
|
135
135
|
|
|
136
|
-
# The percentage of estimated ingested spans usage by tag(s).
|
|
136
|
+
# The percentage of estimated ingested spans usage by tag(s).
|
|
137
137
|
attr_accessor :estimated_ingested_spans_percentage
|
|
138
138
|
|
|
139
|
-
# The estimated ingested spans usage by tag(s).
|
|
139
|
+
# The estimated ingested spans usage by tag(s).
|
|
140
140
|
attr_accessor :estimated_ingested_spans_usage
|
|
141
141
|
|
|
142
|
-
# The percentage of estimated rum sessions usage by tag(s).
|
|
142
|
+
# The percentage of estimated rum sessions usage by tag(s).
|
|
143
143
|
attr_accessor :estimated_rum_sessions_percentage
|
|
144
144
|
|
|
145
|
-
# The estimated rum sessions usage by tag(s).
|
|
145
|
+
# The estimated rum sessions usage by tag(s).
|
|
146
146
|
attr_accessor :estimated_rum_sessions_usage
|
|
147
147
|
|
|
148
148
|
# The percentage of Fargate usage by tags.
|
|
@@ -181,6 +181,12 @@ module DatadogAPIClient::V1
|
|
|
181
181
|
# The profiled container usage by tag(s).
|
|
182
182
|
attr_accessor :profiled_container_usage
|
|
183
183
|
|
|
184
|
+
# The percentage of profiled Fargate task usage by tag(s).
|
|
185
|
+
attr_accessor :profiled_fargate_percentage
|
|
186
|
+
|
|
187
|
+
# The profiled Fargate task usage by tag(s).
|
|
188
|
+
attr_accessor :profiled_fargate_usage
|
|
189
|
+
|
|
184
190
|
# The percentage of profiled hosts usage by tag(s).
|
|
185
191
|
attr_accessor :profiled_host_percentage
|
|
186
192
|
|
|
@@ -249,6 +255,8 @@ module DatadogAPIClient::V1
|
|
|
249
255
|
:'npm_host_usage' => :'npm_host_usage',
|
|
250
256
|
:'profiled_container_percentage' => :'profiled_container_percentage',
|
|
251
257
|
:'profiled_container_usage' => :'profiled_container_usage',
|
|
258
|
+
:'profiled_fargate_percentage' => :'profiled_fargate_percentage',
|
|
259
|
+
:'profiled_fargate_usage' => :'profiled_fargate_usage',
|
|
252
260
|
:'profiled_host_percentage' => :'profiled_host_percentage',
|
|
253
261
|
:'profiled_host_usage' => :'profiled_host_usage',
|
|
254
262
|
:'snmp_percentage' => :'snmp_percentage',
|
|
@@ -312,6 +320,8 @@ module DatadogAPIClient::V1
|
|
|
312
320
|
:'npm_host_usage' => :'Float',
|
|
313
321
|
:'profiled_container_percentage' => :'Float',
|
|
314
322
|
:'profiled_container_usage' => :'Float',
|
|
323
|
+
:'profiled_fargate_percentage' => :'Float',
|
|
324
|
+
:'profiled_fargate_usage' => :'Float',
|
|
315
325
|
:'profiled_host_percentage' => :'Float',
|
|
316
326
|
:'profiled_host_usage' => :'Float',
|
|
317
327
|
:'snmp_percentage' => :'Float',
|
|
@@ -543,6 +553,14 @@ module DatadogAPIClient::V1
|
|
|
543
553
|
self.profiled_container_usage = attributes[:'profiled_container_usage']
|
|
544
554
|
end
|
|
545
555
|
|
|
556
|
+
if attributes.key?(:'profiled_fargate_percentage')
|
|
557
|
+
self.profiled_fargate_percentage = attributes[:'profiled_fargate_percentage']
|
|
558
|
+
end
|
|
559
|
+
|
|
560
|
+
if attributes.key?(:'profiled_fargate_usage')
|
|
561
|
+
self.profiled_fargate_usage = attributes[:'profiled_fargate_usage']
|
|
562
|
+
end
|
|
563
|
+
|
|
546
564
|
if attributes.key?(:'profiled_host_percentage')
|
|
547
565
|
self.profiled_host_percentage = attributes[:'profiled_host_percentage']
|
|
548
566
|
end
|
|
@@ -625,6 +643,8 @@ module DatadogAPIClient::V1
|
|
|
625
643
|
npm_host_usage == o.npm_host_usage &&
|
|
626
644
|
profiled_container_percentage == o.profiled_container_percentage &&
|
|
627
645
|
profiled_container_usage == o.profiled_container_usage &&
|
|
646
|
+
profiled_fargate_percentage == o.profiled_fargate_percentage &&
|
|
647
|
+
profiled_fargate_usage == o.profiled_fargate_usage &&
|
|
628
648
|
profiled_host_percentage == o.profiled_host_percentage &&
|
|
629
649
|
profiled_host_usage == o.profiled_host_usage &&
|
|
630
650
|
snmp_percentage == o.snmp_percentage &&
|
|
@@ -635,7 +655,7 @@ module DatadogAPIClient::V1
|
|
|
635
655
|
# @return [Integer] Hash code
|
|
636
656
|
# @!visibility private
|
|
637
657
|
def hash
|
|
638
|
-
[api_percentage, api_usage, apm_fargate_percentage, apm_fargate_usage, apm_host_percentage, apm_host_usage, appsec_fargate_percentage, appsec_fargate_usage, appsec_percentage, appsec_usage, browser_percentage, browser_usage, container_excl_agent_percentage, container_excl_agent_usage, container_percentage, container_usage, cspm_containers_percentage, cspm_containers_usage, cspm_hosts_percentage, cspm_hosts_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_containers_percentage, cws_containers_usage, cws_hosts_percentage, cws_hosts_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_logs_percentage, estimated_ingested_logs_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, estimated_rum_sessions_percentage, estimated_rum_sessions_usage, fargate_percentage, fargate_usage, functions_percentage, functions_usage, infra_host_percentage, infra_host_usage, invocations_percentage, invocations_usage, npm_host_percentage, npm_host_usage, profiled_container_percentage, profiled_container_usage, profiled_host_percentage, profiled_host_usage, snmp_percentage, snmp_usage].hash
|
|
658
|
+
[api_percentage, api_usage, apm_fargate_percentage, apm_fargate_usage, apm_host_percentage, apm_host_usage, appsec_fargate_percentage, appsec_fargate_usage, appsec_percentage, appsec_usage, browser_percentage, browser_usage, container_excl_agent_percentage, container_excl_agent_usage, container_percentage, container_usage, cspm_containers_percentage, cspm_containers_usage, cspm_hosts_percentage, cspm_hosts_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_containers_percentage, cws_containers_usage, cws_hosts_percentage, cws_hosts_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_logs_percentage, estimated_ingested_logs_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, estimated_rum_sessions_percentage, estimated_rum_sessions_usage, fargate_percentage, fargate_usage, functions_percentage, functions_usage, infra_host_percentage, infra_host_usage, invocations_percentage, invocations_usage, npm_host_percentage, npm_host_usage, profiled_container_percentage, profiled_container_usage, profiled_fargate_percentage, profiled_fargate_usage, profiled_host_percentage, profiled_host_usage, snmp_percentage, snmp_usage].hash
|
|
639
659
|
end
|
|
640
660
|
end
|
|
641
661
|
end
|
|
@@ -77,6 +77,9 @@ module DatadogAPIClient::V1
|
|
|
77
77
|
# The type of the service level objective.
|
|
78
78
|
attr_accessor :slo_type
|
|
79
79
|
|
|
80
|
+
# Status of the SLO's primary timeframe.
|
|
81
|
+
attr_accessor :status
|
|
82
|
+
|
|
80
83
|
# Tags with the `team` tag key.
|
|
81
84
|
attr_accessor :team_tags
|
|
82
85
|
|
|
@@ -101,6 +104,7 @@ module DatadogAPIClient::V1
|
|
|
101
104
|
:'query' => :'query',
|
|
102
105
|
:'service_tags' => :'service_tags',
|
|
103
106
|
:'slo_type' => :'slo_type',
|
|
107
|
+
:'status' => :'status',
|
|
104
108
|
:'team_tags' => :'team_tags',
|
|
105
109
|
:'thresholds' => :'thresholds'
|
|
106
110
|
}
|
|
@@ -123,6 +127,7 @@ module DatadogAPIClient::V1
|
|
|
123
127
|
:'query' => :'SearchSLOQuery',
|
|
124
128
|
:'service_tags' => :'Array<String>',
|
|
125
129
|
:'slo_type' => :'SLOType',
|
|
130
|
+
:'status' => :'SLOStatus',
|
|
126
131
|
:'team_tags' => :'Array<String>',
|
|
127
132
|
:'thresholds' => :'Array<SearchSLOThreshold>'
|
|
128
133
|
}
|
|
@@ -220,6 +225,10 @@ module DatadogAPIClient::V1
|
|
|
220
225
|
self.slo_type = attributes[:'slo_type']
|
|
221
226
|
end
|
|
222
227
|
|
|
228
|
+
if attributes.key?(:'status')
|
|
229
|
+
self.status = attributes[:'status']
|
|
230
|
+
end
|
|
231
|
+
|
|
223
232
|
if attributes.key?(:'team_tags')
|
|
224
233
|
if (value = attributes[:'team_tags']).is_a?(Array)
|
|
225
234
|
self.team_tags = value
|
|
@@ -259,6 +268,7 @@ module DatadogAPIClient::V1
|
|
|
259
268
|
query == o.query &&
|
|
260
269
|
service_tags == o.service_tags &&
|
|
261
270
|
slo_type == o.slo_type &&
|
|
271
|
+
status == o.status &&
|
|
262
272
|
team_tags == o.team_tags &&
|
|
263
273
|
thresholds == o.thresholds
|
|
264
274
|
end
|
|
@@ -267,7 +277,7 @@ module DatadogAPIClient::V1
|
|
|
267
277
|
# @return [Integer] Hash code
|
|
268
278
|
# @!visibility private
|
|
269
279
|
def hash
|
|
270
|
-
[all_tags, created_at, creator, description, env_tags, groups, modified_at, monitor_ids, name, overall_status, query, service_tags, slo_type, team_tags, thresholds].hash
|
|
280
|
+
[all_tags, created_at, creator, description, env_tags, groups, modified_at, monitor_ids, name, overall_status, query, service_tags, slo_type, status, team_tags, thresholds].hash
|
|
271
281
|
end
|
|
272
282
|
end
|
|
273
283
|
end
|
|
@@ -31,12 +31,16 @@ module DatadogAPIClient::V1
|
|
|
31
31
|
# Widget query.
|
|
32
32
|
attr_reader :query_string
|
|
33
33
|
|
|
34
|
+
# Options for sorting results.
|
|
35
|
+
attr_accessor :sort
|
|
36
|
+
|
|
34
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
38
|
# @!visibility private
|
|
36
39
|
def self.attribute_map
|
|
37
40
|
{
|
|
38
41
|
:'limit' => :'limit',
|
|
39
|
-
:'query_string' => :'query_string'
|
|
42
|
+
:'query_string' => :'query_string',
|
|
43
|
+
:'sort' => :'sort'
|
|
40
44
|
}
|
|
41
45
|
end
|
|
42
46
|
|
|
@@ -45,7 +49,8 @@ module DatadogAPIClient::V1
|
|
|
45
49
|
def self.openapi_types
|
|
46
50
|
{
|
|
47
51
|
:'limit' => :'Integer',
|
|
48
|
-
:'query_string' => :'String'
|
|
52
|
+
:'query_string' => :'String',
|
|
53
|
+
:'sort' => :'Array<WidgetFieldSort>'
|
|
49
54
|
}
|
|
50
55
|
end
|
|
51
56
|
|
|
@@ -72,6 +77,12 @@ module DatadogAPIClient::V1
|
|
|
72
77
|
if attributes.key?(:'query_string')
|
|
73
78
|
self.query_string = attributes[:'query_string']
|
|
74
79
|
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'sort')
|
|
82
|
+
if (value = attributes[:'sort']).is_a?(Array)
|
|
83
|
+
self.sort = value
|
|
84
|
+
end
|
|
85
|
+
end
|
|
75
86
|
end
|
|
76
87
|
|
|
77
88
|
# Check to see if the all the properties in the model are valid
|
|
@@ -114,14 +125,15 @@ module DatadogAPIClient::V1
|
|
|
114
125
|
return true if self.equal?(o)
|
|
115
126
|
self.class == o.class &&
|
|
116
127
|
limit == o.limit &&
|
|
117
|
-
query_string == o.query_string
|
|
128
|
+
query_string == o.query_string &&
|
|
129
|
+
sort == o.sort
|
|
118
130
|
end
|
|
119
131
|
|
|
120
132
|
# Calculates hash code according to all attributes.
|
|
121
133
|
# @return [Integer] Hash code
|
|
122
134
|
# @!visibility private
|
|
123
135
|
def hash
|
|
124
|
-
[limit, query_string].hash
|
|
136
|
+
[limit, query_string, sort].hash
|
|
125
137
|
end
|
|
126
138
|
end
|
|
127
139
|
end
|