datadog_api_client 2.12.0 → 2.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.apigentools-info +6 -6
- data/.generator/conftest.py +7 -0
- data/.generator/poetry.lock +45 -75
- data/.generator/pyproject.toml +7 -7
- data/.generator/schemas/v1/openapi.yaml +76 -3
- data/.generator/schemas/v2/openapi.yaml +2328 -459
- data/.generator/src/generator/formatter.py +9 -3
- data/.generator/src/generator/openapi.py +4 -2
- data/.github/workflows/test_integration.yml +7 -1
- data/.pre-commit-config.yaml +2 -2
- data/CHANGELOG.md +31 -0
- data/examples/v1/dashboards/CreateDashboard_1284514532.rb +43 -0
- data/examples/v1/dashboards/CreateDashboard_2261785072.rb +47 -0
- data/examples/v1/dashboards/CreateDashboard_3513586382.rb +74 -0
- data/examples/v1/dashboards/CreateDashboard_3562282606.rb +1 -0
- data/examples/v1/organizations/UpdateOrg.rb +1 -1
- data/examples/v1/users/CreateUser.rb +1 -1
- data/examples/v1/users/CreateUser_266604071.rb +13 -0
- data/examples/v1/users/UpdateUser.rb +1 -1
- data/examples/v2/confluent-cloud/CreateConfluentAccount.rb +1 -0
- data/examples/v2/confluent-cloud/CreateConfluentResource.rb +1 -0
- data/examples/v2/confluent-cloud/UpdateConfluentResource.rb +1 -0
- data/examples/v2/downtimes/CancelDowntime.rb +11 -0
- data/examples/v2/downtimes/CreateDowntime.rb +26 -0
- data/examples/v2/downtimes/GetDowntime.rb +11 -0
- data/examples/v2/downtimes/ListDowntimes.rb +8 -0
- data/examples/v2/downtimes/ListMonitorDowntimes.rb +8 -0
- data/examples/v2/downtimes/ListMonitorDowntimes_128979780.rb +8 -0
- data/examples/v2/downtimes/UpdateDowntime.rb +21 -0
- data/examples/v2/logs/ListLogsGet_2034110533.rb +3 -1
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb +10 -0
- data/examples/v2/spans/AggregateSpans.rb +25 -0
- data/examples/v2/spans/ListSpans.rb +25 -0
- data/examples/v2/spans/ListSpansGet.rb +5 -0
- data/examples/v2/spans/ListSpansGet_1130763422.rb +8 -0
- data/examples/v2/spans/ListSpans_3495563906.rb +25 -0
- data/lib/datadog_api_client/configuration.rb +6 -0
- data/lib/datadog_api_client/inflector.rb +87 -0
- data/lib/datadog_api_client/v1/models/change_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_data_source.rb +26 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_query_definition.rb +150 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb +2 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_response_format.rb +2 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_slo_query_definition.rb +11 -1
- data/lib/datadog_api_client/v1/models/geomap_widget_request.rb +24 -2
- data/lib/datadog_api_client/v1/models/ip_prefixes_remote_configuration.rb +94 -0
- data/lib/datadog_api_client/v1/models/ip_ranges.rb +11 -1
- data/lib/datadog_api_client/v1/models/organization_settings.rb +8 -0
- data/lib/datadog_api_client/v1/models/query_value_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/scatterplot_table_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/table_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/toplist_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/tree_map_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/user.rb +8 -0
- data/lib/datadog_api_client/v1/models/widget_display_type.rb +1 -0
- data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +2 -0
- data/lib/datadog_api_client/v2/api/downtimes_api.rb +462 -0
- data/lib/datadog_api_client/v2/api/logs_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/metrics_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/rum_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/spans_api.rb +294 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_pipeline.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +41 -1
- data/lib/datadog_api_client/v2/models/confluent_account_resource_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/confluent_resource_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/confluent_resource_response_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/dashboard_list_item.rb +12 -1
- data/lib/datadog_api_client/v2/models/downtime_create_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/downtime_create_request_attributes.rb +194 -0
- data/lib/datadog_api_client/v2/models/downtime_create_request_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/downtime_included_monitor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/downtime_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/downtime_meta_page.rb +80 -0
- data/lib/datadog_api_client/v2/models/downtime_monitor_identifier.rb +63 -0
- data/lib/datadog_api_client/v2/models/downtime_monitor_identifier_id.rb +98 -0
- data/lib/datadog_api_client/v2/models/downtime_monitor_identifier_tags.rb +107 -0
- data/lib/datadog_api_client/v2/models/downtime_monitor_included_attributes.rb +80 -0
- data/lib/datadog_api_client/v2/models/downtime_monitor_included_item.rb +100 -0
- data/lib/datadog_api_client/v2/models/downtime_notify_end_state_actions.rb +27 -0
- data/lib/datadog_api_client/v2/models/downtime_notify_end_state_types.rb +28 -0
- data/lib/datadog_api_client/v2/models/downtime_relationships.rb +90 -0
- data/lib/datadog_api_client/v2/models/downtime_relationships_created_by.rb +88 -0
- data/lib/datadog_api_client/v2/models/downtime_relationships_created_by_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/downtime_relationships_monitor.rb +88 -0
- data/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/downtime_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/downtime_response.rb +95 -0
- data/lib/datadog_api_client/v2/models/downtime_response_attributes.rb +208 -0
- data/lib/datadog_api_client/v2/models/downtime_response_data.rb +110 -0
- data/lib/datadog_api_client/v2/models/downtime_response_included_item.rb +63 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_create_request.rb +63 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_current_downtime_response.rb +100 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_one_time_create_update_request.rb +101 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb +98 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_create_update_request.rb +143 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_response.rb +106 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_create_request.rb +110 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_response.rb +131 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_update_request.rb +92 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_response.rb +65 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_update_request.rb +63 -0
- data/lib/datadog_api_client/v2/models/downtime_status.rb +29 -0
- data/lib/datadog_api_client/v2/models/downtime_update_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/downtime_update_request_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/downtime_update_request_data.rb +140 -0
- data/lib/datadog_api_client/v2/models/event_response_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/events_group_by_sort.rb +1 -1
- data/lib/datadog_api_client/v2/models/events_response_metadata.rb +11 -1
- data/lib/datadog_api_client/v2/models/list_downtimes_response.rb +104 -0
- data/lib/datadog_api_client/v2/models/metrics_aggregator.rb +1 -1
- data/lib/datadog_api_client/v2/models/metrics_scalar_query.rb +1 -1
- data/lib/datadog_api_client/v2/models/monitor_downtime_match_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/monitor_downtime_match_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/monitor_downtime_match_response_attributes.rb +120 -0
- data/lib/datadog_api_client/v2/models/monitor_downtime_match_response_data.rb +108 -0
- data/lib/datadog_api_client/v2/models/restriction_policy_binding.rb +2 -1
- data/lib/datadog_api_client/v2/models/rum_application_list.rb +11 -1
- data/lib/datadog_api_client/v2/models/service_definition_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/service_definition_meta.rb +36 -4
- data/lib/datadog_api_client/v2/models/service_definition_meta_warnings.rb +100 -0
- data/lib/datadog_api_client/v2/models/span.rb +100 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_bucket.rb +100 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_attributes.rb +100 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value.rb +64 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value_timeseries_point.rb +90 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_request.rb +80 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_request_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_response_metadata.rb +113 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_response_status.rb +27 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_sort.rb +110 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_sort_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/spans_aggregation_function.rb +37 -0
- data/lib/datadog_api_client/v2/models/spans_attributes.rb +244 -0
- data/lib/datadog_api_client/v2/models/spans_compute.rb +129 -0
- data/lib/datadog_api_client/v2/models/spans_compute_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/spans_group_by.rb +149 -0
- data/lib/datadog_api_client/v2/models/spans_group_by_histogram.rb +143 -0
- data/lib/datadog_api_client/v2/models/spans_group_by_missing.rb +63 -0
- data/lib/datadog_api_client/v2/models/spans_group_by_total.rb +64 -0
- data/lib/datadog_api_client/v2/models/spans_list_request.rb +80 -0
- data/lib/datadog_api_client/v2/models/spans_list_request_attributes.rb +111 -0
- data/lib/datadog_api_client/v2/models/spans_list_request_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/spans_list_request_page.rb +108 -0
- data/lib/datadog_api_client/v2/models/spans_list_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/spans_list_response.rb +102 -0
- data/lib/datadog_api_client/v2/models/spans_list_response_links.rb +81 -0
- data/lib/datadog_api_client/v2/models/spans_list_response_metadata.rb +123 -0
- data/lib/datadog_api_client/v2/models/spans_query_filter.rb +100 -0
- data/lib/datadog_api_client/v2/models/spans_query_options.rb +91 -0
- data/lib/datadog_api_client/v2/models/spans_response_metadata_page.rb +81 -0
- data/lib/datadog_api_client/v2/models/spans_sort.rb +27 -0
- data/lib/datadog_api_client/v2/models/spans_sort_order.rb +27 -0
- data/lib/datadog_api_client/v2/models/spans_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/spans_warning.rb +100 -0
- data/lib/datadog_api_client/v2/models/user_invitation_response_data.rb +11 -1
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +105 -2
@@ -0,0 +1,120 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 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::V2
|
20
|
+
# Downtime match details.
|
21
|
+
class MonitorDowntimeMatchResponseAttributes
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# The end of the downtime.
|
25
|
+
attr_accessor :_end
|
26
|
+
|
27
|
+
# An array of groups associated with the downtime.
|
28
|
+
attr_accessor :groups
|
29
|
+
|
30
|
+
# The scope to which the downtime applies. Must follow the [common search syntax](https://docs.datadoghq.com/logs/explorer/search_syntax/).
|
31
|
+
attr_accessor :scope
|
32
|
+
|
33
|
+
# The start of the downtime.
|
34
|
+
attr_accessor :start
|
35
|
+
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
37
|
+
# @!visibility private
|
38
|
+
def self.attribute_map
|
39
|
+
{
|
40
|
+
:'_end' => :'end',
|
41
|
+
:'groups' => :'groups',
|
42
|
+
:'scope' => :'scope',
|
43
|
+
:'start' => :'start'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# Attribute type mapping.
|
48
|
+
# @!visibility private
|
49
|
+
def self.openapi_types
|
50
|
+
{
|
51
|
+
:'_end' => :'Time',
|
52
|
+
:'groups' => :'Array<String>',
|
53
|
+
:'scope' => :'String',
|
54
|
+
:'start' => :'Time'
|
55
|
+
}
|
56
|
+
end
|
57
|
+
|
58
|
+
# List of attributes with nullable: true
|
59
|
+
# @!visibility private
|
60
|
+
def self.openapi_nullable
|
61
|
+
Set.new([
|
62
|
+
:'_end',
|
63
|
+
])
|
64
|
+
end
|
65
|
+
|
66
|
+
# Initializes the object
|
67
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
68
|
+
# @!visibility private
|
69
|
+
def initialize(attributes = {})
|
70
|
+
if (!attributes.is_a?(Hash))
|
71
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonitorDowntimeMatchResponseAttributes` initialize method"
|
72
|
+
end
|
73
|
+
|
74
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
76
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonitorDowntimeMatchResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
78
|
+
end
|
79
|
+
h[k.to_sym] = v
|
80
|
+
}
|
81
|
+
|
82
|
+
if attributes.key?(:'_end')
|
83
|
+
self._end = attributes[:'_end']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.key?(:'groups')
|
87
|
+
if (value = attributes[:'groups']).is_a?(Array)
|
88
|
+
self.groups = value
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'scope')
|
93
|
+
self.scope = attributes[:'scope']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'start')
|
97
|
+
self.start = attributes[:'start']
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
# Checks equality by comparing each attribute.
|
102
|
+
# @param o [Object] Object to be compared
|
103
|
+
# @!visibility private
|
104
|
+
def ==(o)
|
105
|
+
return true if self.equal?(o)
|
106
|
+
self.class == o.class &&
|
107
|
+
_end == o._end &&
|
108
|
+
groups == o.groups &&
|
109
|
+
scope == o.scope &&
|
110
|
+
start == o.start
|
111
|
+
end
|
112
|
+
|
113
|
+
# Calculates hash code according to all attributes.
|
114
|
+
# @return [Integer] Hash code
|
115
|
+
# @!visibility private
|
116
|
+
def hash
|
117
|
+
[_end, groups, scope, start].hash
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
@@ -0,0 +1,108 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 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::V2
|
20
|
+
# A downtime match.
|
21
|
+
class MonitorDowntimeMatchResponseData
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Downtime match details.
|
25
|
+
attr_accessor :attributes
|
26
|
+
|
27
|
+
# The downtime ID.
|
28
|
+
attr_accessor :id
|
29
|
+
|
30
|
+
# Monitor Downtime Match resource type.
|
31
|
+
attr_accessor :type
|
32
|
+
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
34
|
+
# @!visibility private
|
35
|
+
def self.attribute_map
|
36
|
+
{
|
37
|
+
:'attributes' => :'attributes',
|
38
|
+
:'id' => :'id',
|
39
|
+
:'type' => :'type'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Attribute type mapping.
|
44
|
+
# @!visibility private
|
45
|
+
def self.openapi_types
|
46
|
+
{
|
47
|
+
:'attributes' => :'MonitorDowntimeMatchResponseAttributes',
|
48
|
+
:'id' => :'String',
|
49
|
+
:'type' => :'MonitorDowntimeMatchResourceType'
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
# List of attributes with nullable: true
|
54
|
+
# @!visibility private
|
55
|
+
def self.openapi_nullable
|
56
|
+
Set.new([
|
57
|
+
:'id',
|
58
|
+
])
|
59
|
+
end
|
60
|
+
|
61
|
+
# Initializes the object
|
62
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
63
|
+
# @!visibility private
|
64
|
+
def initialize(attributes = {})
|
65
|
+
if (!attributes.is_a?(Hash))
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonitorDowntimeMatchResponseData` initialize method"
|
67
|
+
end
|
68
|
+
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonitorDowntimeMatchResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
73
|
+
end
|
74
|
+
h[k.to_sym] = v
|
75
|
+
}
|
76
|
+
|
77
|
+
if attributes.key?(:'attributes')
|
78
|
+
self.attributes = attributes[:'attributes']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'id')
|
82
|
+
self.id = attributes[:'id']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.key?(:'type')
|
86
|
+
self.type = attributes[:'type']
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
# Checks equality by comparing each attribute.
|
91
|
+
# @param o [Object] Object to be compared
|
92
|
+
# @!visibility private
|
93
|
+
def ==(o)
|
94
|
+
return true if self.equal?(o)
|
95
|
+
self.class == o.class &&
|
96
|
+
attributes == o.attributes &&
|
97
|
+
id == o.id &&
|
98
|
+
type == o.type
|
99
|
+
end
|
100
|
+
|
101
|
+
# Calculates hash code according to all attributes.
|
102
|
+
# @return [Integer] Hash code
|
103
|
+
# @!visibility private
|
104
|
+
def hash
|
105
|
+
[attributes, id, type].hash
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
@@ -22,8 +22,9 @@ module DatadogAPIClient::V2
|
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
24
|
# An array of principals. A principal is a subject or group of subjects.
|
25
|
-
# Each principal is formatted as `type:id`. Supported types: `role` and `org`.
|
25
|
+
# Each principal is formatted as `type:id`. Supported types: `role`, `team` (beta), `user` (beta), and `org`.
|
26
26
|
# The org ID can be obtained through the api/v2/current_user API.
|
27
|
+
# The user principal type accepts service account IDs.
|
27
28
|
attr_reader :principals
|
28
29
|
|
29
30
|
# The role/level of access.
|
@@ -24,6 +24,9 @@ module DatadogAPIClient::V2
|
|
24
24
|
# RUM application list attributes.
|
25
25
|
attr_reader :attributes
|
26
26
|
|
27
|
+
# RUM application ID.
|
28
|
+
attr_accessor :id
|
29
|
+
|
27
30
|
# RUM application list type.
|
28
31
|
attr_reader :type
|
29
32
|
|
@@ -32,6 +35,7 @@ module DatadogAPIClient::V2
|
|
32
35
|
def self.attribute_map
|
33
36
|
{
|
34
37
|
:'attributes' => :'attributes',
|
38
|
+
:'id' => :'id',
|
35
39
|
:'type' => :'type'
|
36
40
|
}
|
37
41
|
end
|
@@ -41,6 +45,7 @@ module DatadogAPIClient::V2
|
|
41
45
|
def self.openapi_types
|
42
46
|
{
|
43
47
|
:'attributes' => :'RUMApplicationListAttributes',
|
48
|
+
:'id' => :'String',
|
44
49
|
:'type' => :'RUMApplicationListType'
|
45
50
|
}
|
46
51
|
end
|
@@ -65,6 +70,10 @@ module DatadogAPIClient::V2
|
|
65
70
|
self.attributes = attributes[:'attributes']
|
66
71
|
end
|
67
72
|
|
73
|
+
if attributes.key?(:'id')
|
74
|
+
self.id = attributes[:'id']
|
75
|
+
end
|
76
|
+
|
68
77
|
if attributes.key?(:'type')
|
69
78
|
self.type = attributes[:'type']
|
70
79
|
end
|
@@ -106,6 +115,7 @@ module DatadogAPIClient::V2
|
|
106
115
|
return true if self.equal?(o)
|
107
116
|
self.class == o.class &&
|
108
117
|
attributes == o.attributes &&
|
118
|
+
id == o.id &&
|
109
119
|
type == o.type
|
110
120
|
end
|
111
121
|
|
@@ -113,7 +123,7 @@ module DatadogAPIClient::V2
|
|
113
123
|
# @return [Integer] Hash code
|
114
124
|
# @!visibility private
|
115
125
|
def hash
|
116
|
-
[attributes, type].hash
|
126
|
+
[attributes, id, type].hash
|
117
127
|
end
|
118
128
|
end
|
119
129
|
end
|
@@ -24,6 +24,9 @@ module DatadogAPIClient::V2
|
|
24
24
|
# Service definition attributes.
|
25
25
|
attr_accessor :attributes
|
26
26
|
|
27
|
+
# Service definition id.
|
28
|
+
attr_accessor :id
|
29
|
+
|
27
30
|
# Service definition type.
|
28
31
|
attr_accessor :type
|
29
32
|
|
@@ -32,6 +35,7 @@ module DatadogAPIClient::V2
|
|
32
35
|
def self.attribute_map
|
33
36
|
{
|
34
37
|
:'attributes' => :'attributes',
|
38
|
+
:'id' => :'id',
|
35
39
|
:'type' => :'type'
|
36
40
|
}
|
37
41
|
end
|
@@ -41,6 +45,7 @@ module DatadogAPIClient::V2
|
|
41
45
|
def self.openapi_types
|
42
46
|
{
|
43
47
|
:'attributes' => :'ServiceDefinitionDataAttributes',
|
48
|
+
:'id' => :'String',
|
44
49
|
:'type' => :'String'
|
45
50
|
}
|
46
51
|
end
|
@@ -65,6 +70,10 @@ module DatadogAPIClient::V2
|
|
65
70
|
self.attributes = attributes[:'attributes']
|
66
71
|
end
|
67
72
|
|
73
|
+
if attributes.key?(:'id')
|
74
|
+
self.id = attributes[:'id']
|
75
|
+
end
|
76
|
+
|
68
77
|
if attributes.key?(:'type')
|
69
78
|
self.type = attributes[:'type']
|
70
79
|
end
|
@@ -77,6 +86,7 @@ module DatadogAPIClient::V2
|
|
77
86
|
return true if self.equal?(o)
|
78
87
|
self.class == o.class &&
|
79
88
|
attributes == o.attributes &&
|
89
|
+
id == o.id &&
|
80
90
|
type == o.type
|
81
91
|
end
|
82
92
|
|
@@ -84,7 +94,7 @@ module DatadogAPIClient::V2
|
|
84
94
|
# @return [Integer] Hash code
|
85
95
|
# @!visibility private
|
86
96
|
def hash
|
87
|
-
[attributes, type].hash
|
97
|
+
[attributes, id, type].hash
|
88
98
|
end
|
89
99
|
end
|
90
100
|
end
|
@@ -33,6 +33,15 @@ module DatadogAPIClient::V2
|
|
33
33
|
# Last modified time of the service definition.
|
34
34
|
attr_accessor :last_modified_time
|
35
35
|
|
36
|
+
# User defined origin of the service definition.
|
37
|
+
attr_accessor :origin
|
38
|
+
|
39
|
+
# User defined origin's detail of the service definition.
|
40
|
+
attr_accessor :origin_detail
|
41
|
+
|
42
|
+
# A list of schema validation warnings.
|
43
|
+
attr_accessor :warnings
|
44
|
+
|
36
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
46
|
# @!visibility private
|
38
47
|
def self.attribute_map
|
@@ -40,7 +49,10 @@ module DatadogAPIClient::V2
|
|
40
49
|
:'github_html_url' => :'github-html-url',
|
41
50
|
:'ingested_schema_version' => :'ingested-schema-version',
|
42
51
|
:'ingestion_source' => :'ingestion-source',
|
43
|
-
:'last_modified_time' => :'last-modified-time'
|
52
|
+
:'last_modified_time' => :'last-modified-time',
|
53
|
+
:'origin' => :'origin',
|
54
|
+
:'origin_detail' => :'origin-detail',
|
55
|
+
:'warnings' => :'warnings'
|
44
56
|
}
|
45
57
|
end
|
46
58
|
|
@@ -51,7 +63,10 @@ module DatadogAPIClient::V2
|
|
51
63
|
:'github_html_url' => :'String',
|
52
64
|
:'ingested_schema_version' => :'String',
|
53
65
|
:'ingestion_source' => :'String',
|
54
|
-
:'last_modified_time' => :'String'
|
66
|
+
:'last_modified_time' => :'String',
|
67
|
+
:'origin' => :'String',
|
68
|
+
:'origin_detail' => :'String',
|
69
|
+
:'warnings' => :'Array<ServiceDefinitionMetaWarnings>'
|
55
70
|
}
|
56
71
|
end
|
57
72
|
|
@@ -86,6 +101,20 @@ module DatadogAPIClient::V2
|
|
86
101
|
if attributes.key?(:'last_modified_time')
|
87
102
|
self.last_modified_time = attributes[:'last_modified_time']
|
88
103
|
end
|
104
|
+
|
105
|
+
if attributes.key?(:'origin')
|
106
|
+
self.origin = attributes[:'origin']
|
107
|
+
end
|
108
|
+
|
109
|
+
if attributes.key?(:'origin_detail')
|
110
|
+
self.origin_detail = attributes[:'origin_detail']
|
111
|
+
end
|
112
|
+
|
113
|
+
if attributes.key?(:'warnings')
|
114
|
+
if (value = attributes[:'warnings']).is_a?(Array)
|
115
|
+
self.warnings = value
|
116
|
+
end
|
117
|
+
end
|
89
118
|
end
|
90
119
|
|
91
120
|
# Checks equality by comparing each attribute.
|
@@ -97,14 +126,17 @@ module DatadogAPIClient::V2
|
|
97
126
|
github_html_url == o.github_html_url &&
|
98
127
|
ingested_schema_version == o.ingested_schema_version &&
|
99
128
|
ingestion_source == o.ingestion_source &&
|
100
|
-
last_modified_time == o.last_modified_time
|
129
|
+
last_modified_time == o.last_modified_time &&
|
130
|
+
origin == o.origin &&
|
131
|
+
origin_detail == o.origin_detail &&
|
132
|
+
warnings == o.warnings
|
101
133
|
end
|
102
134
|
|
103
135
|
# Calculates hash code according to all attributes.
|
104
136
|
# @return [Integer] Hash code
|
105
137
|
# @!visibility private
|
106
138
|
def hash
|
107
|
-
[github_html_url, ingested_schema_version, ingestion_source, last_modified_time].hash
|
139
|
+
[github_html_url, ingested_schema_version, ingestion_source, last_modified_time, origin, origin_detail, warnings].hash
|
108
140
|
end
|
109
141
|
end
|
110
142
|
end
|
@@ -0,0 +1,100 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 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::V2
|
20
|
+
# Schema validation warnings.
|
21
|
+
class ServiceDefinitionMetaWarnings
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# The warning instance location.
|
25
|
+
attr_accessor :instance_location
|
26
|
+
|
27
|
+
# The warning keyword location.
|
28
|
+
attr_accessor :keyword_location
|
29
|
+
|
30
|
+
# The warning message.
|
31
|
+
attr_accessor :message
|
32
|
+
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
34
|
+
# @!visibility private
|
35
|
+
def self.attribute_map
|
36
|
+
{
|
37
|
+
:'instance_location' => :'instance-location',
|
38
|
+
:'keyword_location' => :'keyword-location',
|
39
|
+
:'message' => :'message'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Attribute type mapping.
|
44
|
+
# @!visibility private
|
45
|
+
def self.openapi_types
|
46
|
+
{
|
47
|
+
:'instance_location' => :'String',
|
48
|
+
:'keyword_location' => :'String',
|
49
|
+
:'message' => :'String'
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
# Initializes the object
|
54
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
55
|
+
# @!visibility private
|
56
|
+
def initialize(attributes = {})
|
57
|
+
if (!attributes.is_a?(Hash))
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ServiceDefinitionMetaWarnings` initialize method"
|
59
|
+
end
|
60
|
+
|
61
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
62
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
63
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
64
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ServiceDefinitionMetaWarnings`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
65
|
+
end
|
66
|
+
h[k.to_sym] = v
|
67
|
+
}
|
68
|
+
|
69
|
+
if attributes.key?(:'instance_location')
|
70
|
+
self.instance_location = attributes[:'instance_location']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.key?(:'keyword_location')
|
74
|
+
self.keyword_location = attributes[:'keyword_location']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'message')
|
78
|
+
self.message = attributes[:'message']
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# Checks equality by comparing each attribute.
|
83
|
+
# @param o [Object] Object to be compared
|
84
|
+
# @!visibility private
|
85
|
+
def ==(o)
|
86
|
+
return true if self.equal?(o)
|
87
|
+
self.class == o.class &&
|
88
|
+
instance_location == o.instance_location &&
|
89
|
+
keyword_location == o.keyword_location &&
|
90
|
+
message == o.message
|
91
|
+
end
|
92
|
+
|
93
|
+
# Calculates hash code according to all attributes.
|
94
|
+
# @return [Integer] Hash code
|
95
|
+
# @!visibility private
|
96
|
+
def hash
|
97
|
+
[instance_location, keyword_location, message].hash
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
@@ -0,0 +1,100 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 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::V2
|
20
|
+
# Object description of a spans after being processed and stored by Datadog.
|
21
|
+
class Span
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# JSON object containing all span attributes and their associated values.
|
25
|
+
attr_accessor :attributes
|
26
|
+
|
27
|
+
# Unique ID of the Span.
|
28
|
+
attr_accessor :id
|
29
|
+
|
30
|
+
# Type of the span.
|
31
|
+
attr_accessor :type
|
32
|
+
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
34
|
+
# @!visibility private
|
35
|
+
def self.attribute_map
|
36
|
+
{
|
37
|
+
:'attributes' => :'attributes',
|
38
|
+
:'id' => :'id',
|
39
|
+
:'type' => :'type'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Attribute type mapping.
|
44
|
+
# @!visibility private
|
45
|
+
def self.openapi_types
|
46
|
+
{
|
47
|
+
:'attributes' => :'SpansAttributes',
|
48
|
+
:'id' => :'String',
|
49
|
+
:'type' => :'SpansType'
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
# Initializes the object
|
54
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
55
|
+
# @!visibility private
|
56
|
+
def initialize(attributes = {})
|
57
|
+
if (!attributes.is_a?(Hash))
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Span` initialize method"
|
59
|
+
end
|
60
|
+
|
61
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
62
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
63
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
64
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::Span`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
65
|
+
end
|
66
|
+
h[k.to_sym] = v
|
67
|
+
}
|
68
|
+
|
69
|
+
if attributes.key?(:'attributes')
|
70
|
+
self.attributes = attributes[:'attributes']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.key?(:'id')
|
74
|
+
self.id = attributes[:'id']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'type')
|
78
|
+
self.type = attributes[:'type']
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# Checks equality by comparing each attribute.
|
83
|
+
# @param o [Object] Object to be compared
|
84
|
+
# @!visibility private
|
85
|
+
def ==(o)
|
86
|
+
return true if self.equal?(o)
|
87
|
+
self.class == o.class &&
|
88
|
+
attributes == o.attributes &&
|
89
|
+
id == o.id &&
|
90
|
+
type == o.type
|
91
|
+
end
|
92
|
+
|
93
|
+
# Calculates hash code according to all attributes.
|
94
|
+
# @return [Integer] Hash code
|
95
|
+
# @!visibility private
|
96
|
+
def hash
|
97
|
+
[attributes, id, type].hash
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|