datadog_api_client 2.12.0 → 2.13.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 +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,92 @@
|
|
|
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
|
+
# The response object for the spans aggregate API endpoint.
|
|
21
|
+
class SpansAggregateResponse
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The list of matching buckets, one item per bucket.
|
|
25
|
+
attr_accessor :data
|
|
26
|
+
|
|
27
|
+
# The metadata associated with a request.
|
|
28
|
+
attr_accessor :meta
|
|
29
|
+
|
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
|
+
# @!visibility private
|
|
32
|
+
def self.attribute_map
|
|
33
|
+
{
|
|
34
|
+
:'data' => :'data',
|
|
35
|
+
:'meta' => :'meta'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Attribute type mapping.
|
|
40
|
+
# @!visibility private
|
|
41
|
+
def self.openapi_types
|
|
42
|
+
{
|
|
43
|
+
:'data' => :'Array<SpansAggregateBucket>',
|
|
44
|
+
:'meta' => :'SpansAggregateResponseMetadata'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Initializes the object
|
|
49
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
50
|
+
# @!visibility private
|
|
51
|
+
def initialize(attributes = {})
|
|
52
|
+
if (!attributes.is_a?(Hash))
|
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansAggregateResponse` initialize method"
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansAggregateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
60
|
+
end
|
|
61
|
+
h[k.to_sym] = v
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if attributes.key?(:'data')
|
|
65
|
+
if (value = attributes[:'data']).is_a?(Array)
|
|
66
|
+
self.data = value
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
if attributes.key?(:'meta')
|
|
71
|
+
self.meta = attributes[:'meta']
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Checks equality by comparing each attribute.
|
|
76
|
+
# @param o [Object] Object to be compared
|
|
77
|
+
# @!visibility private
|
|
78
|
+
def ==(o)
|
|
79
|
+
return true if self.equal?(o)
|
|
80
|
+
self.class == o.class &&
|
|
81
|
+
data == o.data &&
|
|
82
|
+
meta == o.meta
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Calculates hash code according to all attributes.
|
|
86
|
+
# @return [Integer] Hash code
|
|
87
|
+
# @!visibility private
|
|
88
|
+
def hash
|
|
89
|
+
[data, meta].hash
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
@@ -0,0 +1,113 @@
|
|
|
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
|
+
# The metadata associated with a request.
|
|
21
|
+
class SpansAggregateResponseMetadata
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The time elapsed in milliseconds.
|
|
25
|
+
attr_accessor :elapsed
|
|
26
|
+
|
|
27
|
+
# The identifier of the request.
|
|
28
|
+
attr_accessor :request_id
|
|
29
|
+
|
|
30
|
+
# The status of the response.
|
|
31
|
+
attr_accessor :status
|
|
32
|
+
|
|
33
|
+
# A list of warnings (non fatal errors) encountered, partial results might be returned if
|
|
34
|
+
# warnings are present in the response.
|
|
35
|
+
attr_accessor :warnings
|
|
36
|
+
|
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.attribute_map
|
|
40
|
+
{
|
|
41
|
+
:'elapsed' => :'elapsed',
|
|
42
|
+
:'request_id' => :'request_id',
|
|
43
|
+
:'status' => :'status',
|
|
44
|
+
:'warnings' => :'warnings'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Attribute type mapping.
|
|
49
|
+
# @!visibility private
|
|
50
|
+
def self.openapi_types
|
|
51
|
+
{
|
|
52
|
+
:'elapsed' => :'Integer',
|
|
53
|
+
:'request_id' => :'String',
|
|
54
|
+
:'status' => :'SpansAggregateResponseStatus',
|
|
55
|
+
:'warnings' => :'Array<SpansWarning>'
|
|
56
|
+
}
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Initializes the object
|
|
60
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
61
|
+
# @!visibility private
|
|
62
|
+
def initialize(attributes = {})
|
|
63
|
+
if (!attributes.is_a?(Hash))
|
|
64
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansAggregateResponseMetadata` initialize method"
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
68
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
69
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
70
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansAggregateResponseMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
71
|
+
end
|
|
72
|
+
h[k.to_sym] = v
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if attributes.key?(:'elapsed')
|
|
76
|
+
self.elapsed = attributes[:'elapsed']
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.key?(:'request_id')
|
|
80
|
+
self.request_id = attributes[:'request_id']
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
if attributes.key?(:'status')
|
|
84
|
+
self.status = attributes[:'status']
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if attributes.key?(:'warnings')
|
|
88
|
+
if (value = attributes[:'warnings']).is_a?(Array)
|
|
89
|
+
self.warnings = value
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Checks equality by comparing each attribute.
|
|
95
|
+
# @param o [Object] Object to be compared
|
|
96
|
+
# @!visibility private
|
|
97
|
+
def ==(o)
|
|
98
|
+
return true if self.equal?(o)
|
|
99
|
+
self.class == o.class &&
|
|
100
|
+
elapsed == o.elapsed &&
|
|
101
|
+
request_id == o.request_id &&
|
|
102
|
+
status == o.status &&
|
|
103
|
+
warnings == o.warnings
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Calculates hash code according to all attributes.
|
|
107
|
+
# @return [Integer] Hash code
|
|
108
|
+
# @!visibility private
|
|
109
|
+
def hash
|
|
110
|
+
[elapsed, request_id, status, warnings].hash
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
# The status of the response.
|
|
21
|
+
class SpansAggregateResponseStatus
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
DONE = "done".freeze
|
|
25
|
+
TIMEOUT = "timeout".freeze
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,110 @@
|
|
|
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 sort rule.
|
|
21
|
+
class SpansAggregateSort
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# An aggregation function.
|
|
25
|
+
attr_accessor :aggregation
|
|
26
|
+
|
|
27
|
+
# The metric to sort by (only used for `type=measure`).
|
|
28
|
+
attr_accessor :metric
|
|
29
|
+
|
|
30
|
+
# The order to use, ascending or descending.
|
|
31
|
+
attr_accessor :order
|
|
32
|
+
|
|
33
|
+
# The type of sorting algorithm.
|
|
34
|
+
attr_accessor :type
|
|
35
|
+
|
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
|
+
# @!visibility private
|
|
38
|
+
def self.attribute_map
|
|
39
|
+
{
|
|
40
|
+
:'aggregation' => :'aggregation',
|
|
41
|
+
:'metric' => :'metric',
|
|
42
|
+
:'order' => :'order',
|
|
43
|
+
:'type' => :'type'
|
|
44
|
+
}
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Attribute type mapping.
|
|
48
|
+
# @!visibility private
|
|
49
|
+
def self.openapi_types
|
|
50
|
+
{
|
|
51
|
+
:'aggregation' => :'SpansAggregationFunction',
|
|
52
|
+
:'metric' => :'String',
|
|
53
|
+
:'order' => :'SpansSortOrder',
|
|
54
|
+
:'type' => :'SpansAggregateSortType'
|
|
55
|
+
}
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Initializes the object
|
|
59
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
60
|
+
# @!visibility private
|
|
61
|
+
def initialize(attributes = {})
|
|
62
|
+
if (!attributes.is_a?(Hash))
|
|
63
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansAggregateSort` initialize method"
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
68
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansAggregateSort`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
70
|
+
end
|
|
71
|
+
h[k.to_sym] = v
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'aggregation')
|
|
75
|
+
self.aggregation = attributes[:'aggregation']
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'metric')
|
|
79
|
+
self.metric = attributes[:'metric']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'order')
|
|
83
|
+
self.order = attributes[:'order']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'type')
|
|
87
|
+
self.type = attributes[:'type']
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Checks equality by comparing each attribute.
|
|
92
|
+
# @param o [Object] Object to be compared
|
|
93
|
+
# @!visibility private
|
|
94
|
+
def ==(o)
|
|
95
|
+
return true if self.equal?(o)
|
|
96
|
+
self.class == o.class &&
|
|
97
|
+
aggregation == o.aggregation &&
|
|
98
|
+
metric == o.metric &&
|
|
99
|
+
order == o.order &&
|
|
100
|
+
type == o.type
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Calculates hash code according to all attributes.
|
|
104
|
+
# @return [Integer] Hash code
|
|
105
|
+
# @!visibility private
|
|
106
|
+
def hash
|
|
107
|
+
[aggregation, metric, order, type].hash
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
# The type of sorting algorithm.
|
|
21
|
+
class SpansAggregateSortType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
ALPHABETICAL = "alphabetical".freeze
|
|
25
|
+
MEASURE = "measure".freeze
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
# An aggregation function.
|
|
21
|
+
class SpansAggregationFunction
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
COUNT = "count".freeze
|
|
25
|
+
CARDINALITY = "cardinality".freeze
|
|
26
|
+
PERCENTILE_75 = "pc75".freeze
|
|
27
|
+
PERCENTILE_90 = "pc90".freeze
|
|
28
|
+
PERCENTILE_95 = "pc95".freeze
|
|
29
|
+
PERCENTILE_98 = "pc98".freeze
|
|
30
|
+
PERCENTILE_99 = "pc99".freeze
|
|
31
|
+
SUM = "sum".freeze
|
|
32
|
+
MIN = "min".freeze
|
|
33
|
+
MAX = "max".freeze
|
|
34
|
+
AVG = "avg".freeze
|
|
35
|
+
MEDIAN = "median".freeze
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,244 @@
|
|
|
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
|
+
# JSON object containing all span attributes and their associated values.
|
|
21
|
+
class SpansAttributes
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# JSON object of attributes from your span.
|
|
25
|
+
attr_accessor :attributes
|
|
26
|
+
|
|
27
|
+
# JSON object of custom spans data.
|
|
28
|
+
attr_accessor :custom
|
|
29
|
+
|
|
30
|
+
# End timestamp of your span.
|
|
31
|
+
attr_accessor :end_timestamp
|
|
32
|
+
|
|
33
|
+
# Name of the environment from where the spans are being sent.
|
|
34
|
+
attr_accessor :env
|
|
35
|
+
|
|
36
|
+
# Name of the machine from where the spans are being sent.
|
|
37
|
+
attr_accessor :host
|
|
38
|
+
|
|
39
|
+
# The reason why the span was ingested.
|
|
40
|
+
attr_accessor :ingestion_reason
|
|
41
|
+
|
|
42
|
+
# Id of the span that's parent of this span.
|
|
43
|
+
attr_accessor :parent_id
|
|
44
|
+
|
|
45
|
+
# Unique identifier of the resource.
|
|
46
|
+
attr_accessor :resource_hash
|
|
47
|
+
|
|
48
|
+
# The name of the resource.
|
|
49
|
+
attr_accessor :resource_name
|
|
50
|
+
|
|
51
|
+
# The reason why the span was indexed.
|
|
52
|
+
attr_accessor :retained_by
|
|
53
|
+
|
|
54
|
+
# The name of the application or service generating the span events.
|
|
55
|
+
# It is used to switch from APM to Logs, so make sure you define the same
|
|
56
|
+
# value when you use both products.
|
|
57
|
+
attr_accessor :service
|
|
58
|
+
|
|
59
|
+
# Whether or not the span was collected as a stand-alone span. Always associated to "single_span" ingestion_reason if true.
|
|
60
|
+
attr_accessor :single_span
|
|
61
|
+
|
|
62
|
+
# Id of the span.
|
|
63
|
+
attr_accessor :span_id
|
|
64
|
+
|
|
65
|
+
# Start timestamp of your span.
|
|
66
|
+
attr_accessor :start_timestamp
|
|
67
|
+
|
|
68
|
+
# Array of tags associated with your span.
|
|
69
|
+
attr_accessor :tags
|
|
70
|
+
|
|
71
|
+
# Id of the trace to which the span belongs.
|
|
72
|
+
attr_accessor :trace_id
|
|
73
|
+
|
|
74
|
+
# The type of the span.
|
|
75
|
+
attr_accessor :type
|
|
76
|
+
|
|
77
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
78
|
+
# @!visibility private
|
|
79
|
+
def self.attribute_map
|
|
80
|
+
{
|
|
81
|
+
:'attributes' => :'attributes',
|
|
82
|
+
:'custom' => :'custom',
|
|
83
|
+
:'end_timestamp' => :'end_timestamp',
|
|
84
|
+
:'env' => :'env',
|
|
85
|
+
:'host' => :'host',
|
|
86
|
+
:'ingestion_reason' => :'ingestion_reason',
|
|
87
|
+
:'parent_id' => :'parent_id',
|
|
88
|
+
:'resource_hash' => :'resource_hash',
|
|
89
|
+
:'resource_name' => :'resource_name',
|
|
90
|
+
:'retained_by' => :'retained_by',
|
|
91
|
+
:'service' => :'service',
|
|
92
|
+
:'single_span' => :'single_span',
|
|
93
|
+
:'span_id' => :'span_id',
|
|
94
|
+
:'start_timestamp' => :'start_timestamp',
|
|
95
|
+
:'tags' => :'tags',
|
|
96
|
+
:'trace_id' => :'trace_id',
|
|
97
|
+
:'type' => :'type'
|
|
98
|
+
}
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Attribute type mapping.
|
|
102
|
+
# @!visibility private
|
|
103
|
+
def self.openapi_types
|
|
104
|
+
{
|
|
105
|
+
:'attributes' => :'Hash<String, Object>',
|
|
106
|
+
:'custom' => :'Hash<String, Object>',
|
|
107
|
+
:'end_timestamp' => :'Time',
|
|
108
|
+
:'env' => :'String',
|
|
109
|
+
:'host' => :'String',
|
|
110
|
+
:'ingestion_reason' => :'String',
|
|
111
|
+
:'parent_id' => :'String',
|
|
112
|
+
:'resource_hash' => :'String',
|
|
113
|
+
:'resource_name' => :'String',
|
|
114
|
+
:'retained_by' => :'String',
|
|
115
|
+
:'service' => :'String',
|
|
116
|
+
:'single_span' => :'Boolean',
|
|
117
|
+
:'span_id' => :'String',
|
|
118
|
+
:'start_timestamp' => :'Time',
|
|
119
|
+
:'tags' => :'Array<String>',
|
|
120
|
+
:'trace_id' => :'String',
|
|
121
|
+
:'type' => :'String'
|
|
122
|
+
}
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Initializes the object
|
|
126
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
127
|
+
# @!visibility private
|
|
128
|
+
def initialize(attributes = {})
|
|
129
|
+
if (!attributes.is_a?(Hash))
|
|
130
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansAttributes` initialize method"
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
134
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
135
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
136
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
137
|
+
end
|
|
138
|
+
h[k.to_sym] = v
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
if attributes.key?(:'attributes')
|
|
142
|
+
self.attributes = attributes[:'attributes']
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if attributes.key?(:'custom')
|
|
146
|
+
self.custom = attributes[:'custom']
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
if attributes.key?(:'end_timestamp')
|
|
150
|
+
self.end_timestamp = attributes[:'end_timestamp']
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
if attributes.key?(:'env')
|
|
154
|
+
self.env = attributes[:'env']
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if attributes.key?(:'host')
|
|
158
|
+
self.host = attributes[:'host']
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.key?(:'ingestion_reason')
|
|
162
|
+
self.ingestion_reason = attributes[:'ingestion_reason']
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'parent_id')
|
|
166
|
+
self.parent_id = attributes[:'parent_id']
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
if attributes.key?(:'resource_hash')
|
|
170
|
+
self.resource_hash = attributes[:'resource_hash']
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
if attributes.key?(:'resource_name')
|
|
174
|
+
self.resource_name = attributes[:'resource_name']
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
if attributes.key?(:'retained_by')
|
|
178
|
+
self.retained_by = attributes[:'retained_by']
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
if attributes.key?(:'service')
|
|
182
|
+
self.service = attributes[:'service']
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
if attributes.key?(:'single_span')
|
|
186
|
+
self.single_span = attributes[:'single_span']
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
if attributes.key?(:'span_id')
|
|
190
|
+
self.span_id = attributes[:'span_id']
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
if attributes.key?(:'start_timestamp')
|
|
194
|
+
self.start_timestamp = attributes[:'start_timestamp']
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
if attributes.key?(:'tags')
|
|
198
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
|
199
|
+
self.tags = value
|
|
200
|
+
end
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
if attributes.key?(:'trace_id')
|
|
204
|
+
self.trace_id = attributes[:'trace_id']
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
if attributes.key?(:'type')
|
|
208
|
+
self.type = attributes[:'type']
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
# Checks equality by comparing each attribute.
|
|
213
|
+
# @param o [Object] Object to be compared
|
|
214
|
+
# @!visibility private
|
|
215
|
+
def ==(o)
|
|
216
|
+
return true if self.equal?(o)
|
|
217
|
+
self.class == o.class &&
|
|
218
|
+
attributes == o.attributes &&
|
|
219
|
+
custom == o.custom &&
|
|
220
|
+
end_timestamp == o.end_timestamp &&
|
|
221
|
+
env == o.env &&
|
|
222
|
+
host == o.host &&
|
|
223
|
+
ingestion_reason == o.ingestion_reason &&
|
|
224
|
+
parent_id == o.parent_id &&
|
|
225
|
+
resource_hash == o.resource_hash &&
|
|
226
|
+
resource_name == o.resource_name &&
|
|
227
|
+
retained_by == o.retained_by &&
|
|
228
|
+
service == o.service &&
|
|
229
|
+
single_span == o.single_span &&
|
|
230
|
+
span_id == o.span_id &&
|
|
231
|
+
start_timestamp == o.start_timestamp &&
|
|
232
|
+
tags == o.tags &&
|
|
233
|
+
trace_id == o.trace_id &&
|
|
234
|
+
type == o.type
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# Calculates hash code according to all attributes.
|
|
238
|
+
# @return [Integer] Hash code
|
|
239
|
+
# @!visibility private
|
|
240
|
+
def hash
|
|
241
|
+
[attributes, custom, end_timestamp, env, host, ingestion_reason, parent_id, resource_hash, resource_name, retained_by, service, single_span, span_id, start_timestamp, tags, trace_id, type].hash
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
end
|