datadog_api_client 1.0.0.beta.3 → 1.0.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 +4 -4
- data/.azure-pipelines/all.yml +0 -1
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +23 -0
- data/Gemfile +1 -1
- data/LICENSE-3rdparty.csv +0 -1
- data/check-examples.sh +7 -2
- data/data/v1/openapi.yaml +1963 -245
- data/data/v2/openapi.yaml +67 -13
- data/docs/v1/DashboardsAPI.md +10 -5
- data/docs/v1/DistributionWidgetDefinition.md +9 -3
- data/docs/v1/DistributionWidgetXAxis.md +24 -0
- data/docs/v1/DistributionWidgetYAxis.md +26 -0
- data/docs/v1/EventsAPI.md +7 -3
- data/docs/v1/GroupWidgetDefinition.md +8 -0
- data/docs/v1/ImageWidgetDefinition.md +11 -1
- data/docs/v1/LogsByRetention.md +22 -0
- data/docs/v1/LogsByRetentionMonthlyUsage.md +20 -0
- data/docs/v1/LogsByRetentionOrgUsage.md +18 -0
- data/docs/v1/LogsByRetentionOrgs.md +18 -0
- data/docs/v1/LogsRetentionAggSumUsage.md +24 -0
- data/docs/v1/LogsRetentionSumUsage.md +24 -0
- data/docs/v1/MonitorsAPI.md +1 -1
- data/docs/v1/NoteWidgetDefinition.md +5 -1
- data/docs/v1/NotebookAbsoluteTime.md +22 -0
- data/docs/v1/NotebookAuthor.md +34 -0
- data/docs/v1/NotebookCellCreateRequest.md +20 -0
- data/docs/v1/NotebookCellCreateRequestAttributes.md +57 -0
- data/docs/v1/NotebookCellResourceType.md +15 -0
- data/docs/v1/NotebookCellResponse.md +22 -0
- data/docs/v1/NotebookCellResponseAttributes.md +57 -0
- data/docs/v1/NotebookCellTime.md +49 -0
- data/docs/v1/NotebookCellUpdateRequest.md +22 -0
- data/docs/v1/NotebookCellUpdateRequestAttributes.md +57 -0
- data/docs/v1/NotebookCreateData.md +20 -0
- data/docs/v1/NotebookCreateDataAttributes.md +24 -0
- data/docs/v1/NotebookCreateRequest.md +18 -0
- data/docs/v1/NotebookDistributionCellAttributes.md +24 -0
- data/docs/v1/NotebookGlobalTime.md +49 -0
- data/docs/v1/NotebookGraphSize.md +15 -0
- data/docs/v1/NotebookHeatMapCellAttributes.md +24 -0
- data/docs/v1/NotebookLogStreamCellAttributes.md +22 -0
- data/docs/v1/NotebookMarkdownCellAttributes.md +18 -0
- data/docs/v1/NotebookMarkdownCellDefinition.md +21 -0
- data/docs/v1/NotebookMarkdownCellDefinitionType.md +15 -0
- data/docs/v1/NotebookRelativeTime.md +18 -0
- data/docs/v1/NotebookResourceType.md +15 -0
- data/docs/v1/NotebookResponse.md +18 -0
- data/docs/v1/NotebookResponseData.md +22 -0
- data/docs/v1/NotebookResponseDataAttributes.md +30 -0
- data/docs/v1/NotebookSplitBy.md +20 -0
- data/docs/v1/NotebookStatus.md +15 -0
- data/docs/v1/NotebookTimeseriesCellAttributes.md +24 -0
- data/docs/v1/NotebookToplistCellAttributes.md +24 -0
- data/docs/v1/NotebookUpdateCell.md +49 -0
- data/docs/v1/NotebookUpdateData.md +20 -0
- data/docs/v1/NotebookUpdateDataAttributes.md +24 -0
- data/docs/v1/NotebookUpdateRequest.md +18 -0
- data/docs/v1/NotebooksAPI.md +339 -0
- data/docs/v1/NotebooksResponse.md +20 -0
- data/docs/v1/NotebooksResponseMeta.md +18 -0
- data/docs/v1/NotebooksResponsePage.md +20 -0
- data/docs/v1/README.md +66 -9
- data/docs/v1/SLOListResponse.md +3 -1
- data/docs/v1/SLOListResponseMetadata.md +18 -0
- data/docs/v1/SLOListResponseMetadataPage.md +20 -0
- data/docs/v1/SLOResponse.md +1 -1
- data/docs/v1/SLOResponseData.md +44 -0
- data/docs/v1/ServiceLevelObjectivesAPI.md +8 -4
- data/docs/v1/SyntheticsAPI.md +28 -156
- data/docs/v1/SyntheticsAPIStep.md +4 -0
- data/docs/v1/SyntheticsBrowserTestConfig.md +2 -0
- data/docs/v1/SyntheticsTestConfig.md +1 -1
- data/docs/v1/SyntheticsTestOptions.md +1 -1
- data/docs/v1/SyntheticsTestRequest.md +6 -0
- data/docs/v1/UsageAttributionSupportedMetrics.md +15 -0
- data/docs/v1/UsageAttributionValues.md +8 -0
- data/docs/v1/UsageHostHour.md +3 -1
- data/docs/v1/UsageIoTHour.md +1 -1
- data/docs/v1/UsageLogsByRetentionHour.md +24 -0
- data/docs/v1/UsageLogsByRetentionResponse.md +18 -0
- data/docs/v1/UsageMeteringAPI.md +69 -2
- data/docs/v1/UsageSummaryDate.md +11 -9
- data/docs/v1/UsageSummaryDateOrg.md +3 -1
- data/docs/v1/UsageSummaryResponse.md +5 -1
- data/docs/v1/WidgetHorizontalAlign.md +15 -0
- data/docs/v1/WidgetLayout.md +2 -0
- data/docs/v1/WidgetMarker.md +1 -1
- data/docs/v1/WidgetVerticalAlign.md +15 -0
- data/docs/v2/IncidentServiceUpdateData.md +1 -1
- data/docs/v2/IncidentServicesAPI.md +1 -1
- data/docs/v2/IncidentTeamUpdateData.md +1 -1
- data/docs/v2/IncidentTeamsAPI.md +1 -1
- data/docs/v2/MetricsAPI.md +1 -11
- data/extract-code-blocks.sh +6 -2
- data/lib/datadog_api_client/v1.rb +54 -0
- data/lib/datadog_api_client/v1/api/dashboards_api.rb +3 -0
- data/lib/datadog_api_client/v1/api/events_api.rb +14 -4
- data/lib/datadog_api_client/v1/api/monitors_api.rb +2 -2
- data/lib/datadog_api_client/v1/api/notebooks_api.rb +418 -0
- data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +3 -0
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +14 -170
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +79 -2
- data/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +36 -6
- data/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb +259 -0
- data/lib/datadog_api_client/v1/models/distribution_widget_y_axis.rb +269 -0
- data/lib/datadog_api_client/v1/models/group_widget_definition.rb +42 -1
- data/lib/datadog_api_client/v1/models/image_widget_definition.rb +56 -4
- data/lib/datadog_api_client/v1/models/logs_by_retention.rb +243 -0
- data/lib/datadog_api_client/v1/models/logs_by_retention_monthly_usage.rb +235 -0
- data/lib/datadog_api_client/v1/models/logs_by_retention_org_usage.rb +225 -0
- data/lib/datadog_api_client/v1/models/logs_by_retention_orgs.rb +225 -0
- data/lib/datadog_api_client/v1/models/logs_retention_agg_sum_usage.rb +253 -0
- data/lib/datadog_api_client/v1/models/logs_retention_sum_usage.rb +253 -0
- data/lib/datadog_api_client/v1/models/note_widget_definition.rb +25 -4
- data/lib/datadog_api_client/v1/models/notebook_absolute_time.rb +253 -0
- data/lib/datadog_api_client/v1/models/notebook_author.rb +303 -0
- data/lib/datadog_api_client/v1/models/notebook_cell_create_request.rb +243 -0
- data/lib/datadog_api_client/v1/models/notebook_cell_create_request_attributes.rb +113 -0
- data/lib/datadog_api_client/v1/models/notebook_cell_resource_type.rb +39 -0
- data/lib/datadog_api_client/v1/models/notebook_cell_response.rb +258 -0
- data/lib/datadog_api_client/v1/models/notebook_cell_response_attributes.rb +113 -0
- data/lib/datadog_api_client/v1/models/notebook_cell_time.rb +109 -0
- data/lib/datadog_api_client/v1/models/notebook_cell_update_request.rb +258 -0
- data/lib/datadog_api_client/v1/models/notebook_cell_update_request_attributes.rb +113 -0
- data/lib/datadog_api_client/v1/models/notebook_create_data.rb +243 -0
- data/lib/datadog_api_client/v1/models/notebook_create_data_attributes.rb +298 -0
- data/lib/datadog_api_client/v1/models/notebook_create_request.rb +227 -0
- data/lib/datadog_api_client/v1/models/notebook_distribution_cell_attributes.rb +255 -0
- data/lib/datadog_api_client/v1/models/notebook_global_time.rb +109 -0
- data/lib/datadog_api_client/v1/models/notebook_graph_size.rb +43 -0
- data/lib/datadog_api_client/v1/models/notebook_heat_map_cell_attributes.rb +255 -0
- data/lib/datadog_api_client/v1/models/notebook_log_stream_cell_attributes.rb +246 -0
- data/lib/datadog_api_client/v1/models/notebook_markdown_cell_attributes.rb +227 -0
- data/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition.rb +244 -0
- data/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition_type.rb +39 -0
- data/lib/datadog_api_client/v1/models/notebook_relative_time.rb +227 -0
- data/lib/datadog_api_client/v1/models/notebook_resource_type.rb +39 -0
- data/lib/datadog_api_client/v1/models/notebook_response.rb +222 -0
- data/lib/datadog_api_client/v1/models/notebook_response_data.rb +258 -0
- data/lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb +327 -0
- data/lib/datadog_api_client/v1/models/notebook_split_by.rb +247 -0
- data/lib/datadog_api_client/v1/models/notebook_status.rb +39 -0
- data/lib/datadog_api_client/v1/models/notebook_timeseries_cell_attributes.rb +255 -0
- data/lib/datadog_api_client/v1/models/notebook_toplist_cell_attributes.rb +255 -0
- data/lib/datadog_api_client/v1/models/notebook_update_cell.rb +109 -0
- data/lib/datadog_api_client/v1/models/notebook_update_data.rb +243 -0
- data/lib/datadog_api_client/v1/models/notebook_update_data_attributes.rb +298 -0
- data/lib/datadog_api_client/v1/models/notebook_update_request.rb +227 -0
- data/lib/datadog_api_client/v1/models/notebooks_response.rb +234 -0
- data/lib/datadog_api_client/v1/models/notebooks_response_meta.rb +222 -0
- data/lib/datadog_api_client/v1/models/notebooks_response_page.rb +233 -0
- data/lib/datadog_api_client/v1/models/slo_list_response.rb +13 -4
- data/lib/datadog_api_client/v1/models/slo_list_response_metadata.rb +222 -0
- data/lib/datadog_api_client/v1/models/slo_list_response_metadata_page.rb +233 -0
- data/lib/datadog_api_client/v1/models/slo_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_response_data.rb +363 -0
- data/lib/datadog_api_client/v1/models/synthetics_api_step.rb +21 -1
- data/lib/datadog_api_client/v1/models/synthetics_assertion_type.rb +4 -0
- data/lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb +11 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_config.rb +0 -5
- data/lib/datadog_api_client/v1/models/synthetics_test_details_sub_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +79 -1
- data/lib/datadog_api_client/v1/models/synthetics_tick_interval.rb +1 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +67 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +41 -1
- data/lib/datadog_api_client/v1/models/usage_host_hour.rb +14 -4
- data/lib/datadog_api_client/v1/models/usage_io_t_hour.rb +1 -1
- data/lib/datadog_api_client/v1/models/usage_logs_by_retention_hour.rb +253 -0
- data/lib/datadog_api_client/v1/models/usage_logs_by_retention_response.rb +225 -0
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +38 -28
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +14 -4
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +23 -4
- data/lib/datadog_api_client/v1/models/widget.rb +1 -1
- data/lib/datadog_api_client/v1/models/widget_horizontal_align.rb +41 -0
- data/lib/datadog_api_client/v1/models/widget_image_sizing.rb +5 -0
- data/lib/datadog_api_client/v1/models/widget_layout.rb +12 -2
- data/lib/datadog_api_client/v1/models/widget_margin.rb +3 -0
- data/lib/datadog_api_client/v1/models/widget_marker.rb +1 -1
- data/lib/datadog_api_client/v1/models/widget_vertical_align.rb +41 -0
- data/lib/datadog_api_client/v2/api/metrics_api.rb +2 -2
- data/lib/datadog_api_client/v2/configuration.rb +0 -2
- data/lib/datadog_api_client/v2/models/incident_service_update_data.rb +0 -5
- data/lib/datadog_api_client/v2/models/incident_team_update_data.rb +0 -5
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_metric_types.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_detection_method.rb +1 -0
- data/lib/datadog_api_client/version.rb +1 -1
- data/run-tests.sh +0 -6
- data/spec/v1/api/notebooks_api_spec.rb +106 -0
- data/spec/v1/models/distribution_widget_x_axis_spec.rb +55 -0
- data/spec/v1/models/distribution_widget_y_axis_spec.rb +61 -0
- data/spec/v1/models/logs_by_retention_monthly_usage_spec.rb +43 -0
- data/spec/v1/models/logs_by_retention_org_usage_spec.rb +37 -0
- data/spec/v1/models/logs_by_retention_orgs_spec.rb +37 -0
- data/spec/v1/models/logs_by_retention_spec.rb +49 -0
- data/spec/v1/models/logs_retention_agg_sum_usage_spec.rb +55 -0
- data/spec/v1/models/logs_retention_sum_usage_spec.rb +55 -0
- data/spec/v1/models/notebook_absolute_time_spec.rb +49 -0
- data/spec/v1/models/notebook_author_spec.rb +85 -0
- data/spec/v1/models/notebook_cell_create_request_attributes_spec.rb +34 -0
- data/spec/v1/models/notebook_cell_create_request_spec.rb +43 -0
- data/spec/v1/models/notebook_cell_resource_type_spec.rb +31 -0
- data/spec/v1/models/notebook_cell_response_attributes_spec.rb +34 -0
- data/spec/v1/models/notebook_cell_response_spec.rb +49 -0
- data/spec/v1/models/notebook_cell_time_spec.rb +34 -0
- data/spec/v1/models/notebook_cell_update_request_attributes_spec.rb +34 -0
- data/spec/v1/models/notebook_cell_update_request_spec.rb +49 -0
- data/spec/v1/models/notebook_create_data_attributes_spec.rb +55 -0
- data/spec/v1/models/notebook_create_data_spec.rb +43 -0
- data/spec/v1/models/notebook_create_request_spec.rb +37 -0
- data/spec/v1/models/notebook_distribution_cell_attributes_spec.rb +55 -0
- data/spec/v1/models/notebook_global_time_spec.rb +34 -0
- data/spec/v1/models/notebook_graph_size_spec.rb +31 -0
- data/spec/v1/models/notebook_heat_map_cell_attributes_spec.rb +55 -0
- data/spec/v1/models/notebook_log_stream_cell_attributes_spec.rb +49 -0
- data/spec/v1/models/notebook_markdown_cell_attributes_spec.rb +37 -0
- data/spec/v1/models/notebook_markdown_cell_definition_spec.rb +43 -0
- data/spec/v1/models/notebook_markdown_cell_definition_type_spec.rb +31 -0
- data/spec/v1/models/notebook_relative_time_spec.rb +37 -0
- data/spec/v1/models/notebook_resource_type_spec.rb +31 -0
- data/spec/v1/models/notebook_response_data_attributes_spec.rb +73 -0
- data/spec/v1/models/notebook_response_data_spec.rb +49 -0
- data/spec/v1/models/notebook_response_spec.rb +37 -0
- data/spec/v1/models/notebook_split_by_spec.rb +43 -0
- data/spec/v1/models/notebook_status_spec.rb +31 -0
- data/spec/v1/models/notebook_timeseries_cell_attributes_spec.rb +55 -0
- data/spec/v1/models/notebook_toplist_cell_attributes_spec.rb +55 -0
- data/spec/v1/models/notebook_update_cell_spec.rb +34 -0
- data/spec/v1/models/notebook_update_data_attributes_spec.rb +55 -0
- data/spec/v1/models/notebook_update_data_spec.rb +43 -0
- data/spec/v1/models/notebook_update_request_spec.rb +37 -0
- data/spec/v1/models/notebooks_response_meta_spec.rb +37 -0
- data/spec/v1/models/notebooks_response_page_spec.rb +43 -0
- data/spec/v1/models/notebooks_response_spec.rb +43 -0
- data/spec/v1/models/slo_list_response_metadata_page_spec.rb +43 -0
- data/spec/v1/models/slo_list_response_metadata_spec.rb +37 -0
- data/spec/v1/models/slo_response_data_spec.rb +115 -0
- data/spec/v1/models/usage_attribution_supported_metrics_spec.rb +31 -0
- data/spec/v1/models/usage_logs_by_retention_hour_spec.rb +55 -0
- data/spec/v1/models/usage_logs_by_retention_response_spec.rb +37 -0
- data/spec/v1/models/widget_horizontal_align_spec.rb +31 -0
- data/spec/v1/models/widget_vertical_align_spec.rb +31 -0
- metadata +220 -4
@@ -19,12 +19,18 @@ require 'time'
|
|
19
19
|
module DatadogAPIClient::V1
|
20
20
|
# The steps used in a Synthetics multistep API test.
|
21
21
|
class SyntheticsAPIStep
|
22
|
+
# Determines whether or not to continue with test if this step fails.
|
23
|
+
attr_accessor :allow_failure
|
24
|
+
|
22
25
|
# Array of assertions used for the test.
|
23
26
|
attr_accessor :assertions
|
24
27
|
|
25
28
|
# Array of values to parse and save as variables from the response.
|
26
29
|
attr_accessor :extracted_values
|
27
30
|
|
31
|
+
# Determines whether or not to consider the entire test as failed if this step fails. Can be used only if `allowFailure` is `true`.
|
32
|
+
attr_accessor :is_critical
|
33
|
+
|
28
34
|
# The name of the step.
|
29
35
|
attr_accessor :name
|
30
36
|
|
@@ -35,8 +41,10 @@ module DatadogAPIClient::V1
|
|
35
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
42
|
def self.attribute_map
|
37
43
|
{
|
44
|
+
:'allow_failure' => :'allowFailure',
|
38
45
|
:'assertions' => :'assertions',
|
39
46
|
:'extracted_values' => :'extractedValues',
|
47
|
+
:'is_critical' => :'isCritical',
|
40
48
|
:'name' => :'name',
|
41
49
|
:'request' => :'request',
|
42
50
|
:'subtype' => :'subtype'
|
@@ -51,8 +59,10 @@ module DatadogAPIClient::V1
|
|
51
59
|
# Attribute type mapping.
|
52
60
|
def self.openapi_types
|
53
61
|
{
|
62
|
+
:'allow_failure' => :'Boolean',
|
54
63
|
:'assertions' => :'Array<SyntheticsAssertion>',
|
55
64
|
:'extracted_values' => :'Array<SyntheticsParsingOptions>',
|
65
|
+
:'is_critical' => :'Boolean',
|
56
66
|
:'name' => :'String',
|
57
67
|
:'request' => :'SyntheticsTestRequest',
|
58
68
|
:'subtype' => :'SyntheticsAPIStepSubtype'
|
@@ -80,6 +90,10 @@ module DatadogAPIClient::V1
|
|
80
90
|
h[k.to_sym] = v
|
81
91
|
}
|
82
92
|
|
93
|
+
if attributes.key?(:'allow_failure')
|
94
|
+
self.allow_failure = attributes[:'allow_failure']
|
95
|
+
end
|
96
|
+
|
83
97
|
if attributes.key?(:'assertions')
|
84
98
|
if (value = attributes[:'assertions']).is_a?(Array)
|
85
99
|
self.assertions = value
|
@@ -92,6 +106,10 @@ module DatadogAPIClient::V1
|
|
92
106
|
end
|
93
107
|
end
|
94
108
|
|
109
|
+
if attributes.key?(:'is_critical')
|
110
|
+
self.is_critical = attributes[:'is_critical']
|
111
|
+
end
|
112
|
+
|
95
113
|
if attributes.key?(:'name')
|
96
114
|
self.name = attributes[:'name']
|
97
115
|
end
|
@@ -123,8 +141,10 @@ module DatadogAPIClient::V1
|
|
123
141
|
def ==(o)
|
124
142
|
return true if self.equal?(o)
|
125
143
|
self.class == o.class &&
|
144
|
+
allow_failure == o.allow_failure &&
|
126
145
|
assertions == o.assertions &&
|
127
146
|
extracted_values == o.extracted_values &&
|
147
|
+
is_critical == o.is_critical &&
|
128
148
|
name == o.name &&
|
129
149
|
request == o.request &&
|
130
150
|
subtype == o.subtype
|
@@ -139,7 +159,7 @@ module DatadogAPIClient::V1
|
|
139
159
|
# Calculates hash code according to all attributes.
|
140
160
|
# @return [Integer] Hash code
|
141
161
|
def hash
|
142
|
-
[assertions, extracted_values, name, request, subtype].hash
|
162
|
+
[allow_failure, assertions, extracted_values, is_critical, name, request, subtype].hash
|
143
163
|
end
|
144
164
|
|
145
165
|
# Builds the object from hash
|
@@ -28,6 +28,10 @@ module DatadogAPIClient::V1
|
|
28
28
|
RECORD_SOME = "recordSome".freeze
|
29
29
|
TLS_VERSION = "tlsVersion".freeze
|
30
30
|
MIN_TLS_VERSION = "minTlsVersion".freeze
|
31
|
+
LATENCY = "latency".freeze
|
32
|
+
PACKET_LOSS_PERCENTAGE = "packetLossPercentage".freeze
|
33
|
+
PACKETS_RECEIVED = "packetsReceived".freeze
|
34
|
+
NETWORK_HOP = "networkHop".freeze
|
31
35
|
|
32
36
|
# Builds the enum from string
|
33
37
|
# @param [String] The enum value in the form of the string
|
@@ -24,6 +24,9 @@ module DatadogAPIClient::V1
|
|
24
24
|
|
25
25
|
attr_accessor :request
|
26
26
|
|
27
|
+
# Cookies to be used for the request, using the [Set-Cookie](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) syntax.
|
28
|
+
attr_accessor :set_cookie
|
29
|
+
|
27
30
|
# Array of variables used for the test steps.
|
28
31
|
attr_accessor :variables
|
29
32
|
|
@@ -32,6 +35,7 @@ module DatadogAPIClient::V1
|
|
32
35
|
{
|
33
36
|
:'assertions' => :'assertions',
|
34
37
|
:'request' => :'request',
|
38
|
+
:'set_cookie' => :'setCookie',
|
35
39
|
:'variables' => :'variables'
|
36
40
|
}
|
37
41
|
end
|
@@ -46,6 +50,7 @@ module DatadogAPIClient::V1
|
|
46
50
|
{
|
47
51
|
:'assertions' => :'Array<SyntheticsAssertion>',
|
48
52
|
:'request' => :'SyntheticsTestRequest',
|
53
|
+
:'set_cookie' => :'String',
|
49
54
|
:'variables' => :'Array<SyntheticsBrowserVariable>'
|
50
55
|
}
|
51
56
|
end
|
@@ -81,6 +86,10 @@ module DatadogAPIClient::V1
|
|
81
86
|
self.request = attributes[:'request']
|
82
87
|
end
|
83
88
|
|
89
|
+
if attributes.key?(:'set_cookie')
|
90
|
+
self.set_cookie = attributes[:'set_cookie']
|
91
|
+
end
|
92
|
+
|
84
93
|
if attributes.key?(:'variables')
|
85
94
|
if (value = attributes[:'variables']).is_a?(Array)
|
86
95
|
self.variables = value
|
@@ -118,6 +127,7 @@ module DatadogAPIClient::V1
|
|
118
127
|
self.class == o.class &&
|
119
128
|
assertions == o.assertions &&
|
120
129
|
request == o.request &&
|
130
|
+
set_cookie == o.set_cookie &&
|
121
131
|
variables == o.variables
|
122
132
|
end
|
123
133
|
|
@@ -130,7 +140,7 @@ module DatadogAPIClient::V1
|
|
130
140
|
# Calculates hash code according to all attributes.
|
131
141
|
# @return [Integer] Hash code
|
132
142
|
def hash
|
133
|
-
[assertions, request, variables].hash
|
143
|
+
[assertions, request, set_cookie, variables].hash
|
134
144
|
end
|
135
145
|
|
136
146
|
# Builds the object from hash
|
@@ -107,10 +107,6 @@ module DatadogAPIClient::V1
|
|
107
107
|
invalid_properties.push('invalid value for "assertions", assertions cannot be nil.')
|
108
108
|
end
|
109
109
|
|
110
|
-
if @request.nil?
|
111
|
-
invalid_properties.push('invalid value for "request", request cannot be nil.')
|
112
|
-
end
|
113
|
-
|
114
110
|
invalid_properties
|
115
111
|
end
|
116
112
|
|
@@ -118,7 +114,6 @@ module DatadogAPIClient::V1
|
|
118
114
|
# @return true if the model is valid
|
119
115
|
def valid?
|
120
116
|
return false if @assertions.nil?
|
121
|
-
return false if @request.nil?
|
122
117
|
true
|
123
118
|
end
|
124
119
|
|
@@ -28,7 +28,7 @@ module DatadogAPIClient::V1
|
|
28
28
|
# For browser test, array with the different device IDs used to run the test.
|
29
29
|
attr_accessor :device_ids
|
30
30
|
|
31
|
-
# Whether or not to disable CORS mechanism.
|
31
|
+
# Whether or not to disable CORS mechanism.
|
32
32
|
attr_accessor :disable_cors
|
33
33
|
|
34
34
|
# For API HTTP test, whether or not the test should follow redirects.
|
@@ -29,6 +29,9 @@ module DatadogAPIClient::V1
|
|
29
29
|
# DNS server to use for DNS tests.
|
30
30
|
attr_accessor :dns_server
|
31
31
|
|
32
|
+
# DNS server port to use for DNS tests.
|
33
|
+
attr_accessor :dns_server_port
|
34
|
+
|
32
35
|
# Headers to include when performing the test.
|
33
36
|
attr_accessor :headers
|
34
37
|
|
@@ -40,12 +43,18 @@ module DatadogAPIClient::V1
|
|
40
43
|
# Determines whether or not to save the response body.
|
41
44
|
attr_accessor :no_saving_response_body
|
42
45
|
|
46
|
+
# Number of pings to use per test.
|
47
|
+
attr_accessor :number_of_packets
|
48
|
+
|
43
49
|
# Port to use when performing the test.
|
44
50
|
attr_accessor :port
|
45
51
|
|
46
52
|
# Query to use for the test.
|
47
53
|
attr_accessor :query
|
48
54
|
|
55
|
+
# Turns on a traceroute probe to discover all gateways along the path to the host destination.
|
56
|
+
attr_accessor :should_track_hops
|
57
|
+
|
49
58
|
# Timeout in seconds for the test.
|
50
59
|
attr_accessor :timeout
|
51
60
|
|
@@ -59,12 +68,15 @@ module DatadogAPIClient::V1
|
|
59
68
|
:'body' => :'body',
|
60
69
|
:'certificate' => :'certificate',
|
61
70
|
:'dns_server' => :'dnsServer',
|
71
|
+
:'dns_server_port' => :'dnsServerPort',
|
62
72
|
:'headers' => :'headers',
|
63
73
|
:'host' => :'host',
|
64
74
|
:'method' => :'method',
|
65
75
|
:'no_saving_response_body' => :'noSavingResponseBody',
|
76
|
+
:'number_of_packets' => :'numberOfPackets',
|
66
77
|
:'port' => :'port',
|
67
78
|
:'query' => :'query',
|
79
|
+
:'should_track_hops' => :'shouldTrackHops',
|
68
80
|
:'timeout' => :'timeout',
|
69
81
|
:'url' => :'url'
|
70
82
|
}
|
@@ -82,12 +94,15 @@ module DatadogAPIClient::V1
|
|
82
94
|
:'body' => :'String',
|
83
95
|
:'certificate' => :'SyntheticsTestRequestCertificate',
|
84
96
|
:'dns_server' => :'String',
|
97
|
+
:'dns_server_port' => :'Integer',
|
85
98
|
:'headers' => :'Hash<String, String>',
|
86
99
|
:'host' => :'String',
|
87
100
|
:'method' => :'HTTPMethod',
|
88
101
|
:'no_saving_response_body' => :'Boolean',
|
102
|
+
:'number_of_packets' => :'Integer',
|
89
103
|
:'port' => :'Integer',
|
90
104
|
:'query' => :'Object',
|
105
|
+
:'should_track_hops' => :'Boolean',
|
91
106
|
:'timeout' => :'Float',
|
92
107
|
:'url' => :'String'
|
93
108
|
}
|
@@ -130,6 +145,10 @@ module DatadogAPIClient::V1
|
|
130
145
|
self.dns_server = attributes[:'dns_server']
|
131
146
|
end
|
132
147
|
|
148
|
+
if attributes.key?(:'dns_server_port')
|
149
|
+
self.dns_server_port = attributes[:'dns_server_port']
|
150
|
+
end
|
151
|
+
|
133
152
|
if attributes.key?(:'headers')
|
134
153
|
if (value = attributes[:'headers']).is_a?(Hash)
|
135
154
|
self.headers = value
|
@@ -148,6 +167,10 @@ module DatadogAPIClient::V1
|
|
148
167
|
self.no_saving_response_body = attributes[:'no_saving_response_body']
|
149
168
|
end
|
150
169
|
|
170
|
+
if attributes.key?(:'number_of_packets')
|
171
|
+
self.number_of_packets = attributes[:'number_of_packets']
|
172
|
+
end
|
173
|
+
|
151
174
|
if attributes.key?(:'port')
|
152
175
|
self.port = attributes[:'port']
|
153
176
|
end
|
@@ -156,6 +179,10 @@ module DatadogAPIClient::V1
|
|
156
179
|
self.query = attributes[:'query']
|
157
180
|
end
|
158
181
|
|
182
|
+
if attributes.key?(:'should_track_hops')
|
183
|
+
self.should_track_hops = attributes[:'should_track_hops']
|
184
|
+
end
|
185
|
+
|
159
186
|
if attributes.key?(:'timeout')
|
160
187
|
self.timeout = attributes[:'timeout']
|
161
188
|
end
|
@@ -169,15 +196,63 @@ module DatadogAPIClient::V1
|
|
169
196
|
# @return Array for valid properties with the reasons
|
170
197
|
def list_invalid_properties
|
171
198
|
invalid_properties = Array.new
|
199
|
+
if !@dns_server_port.nil? && @dns_server_port > 65535
|
200
|
+
invalid_properties.push('invalid value for "dns_server_port", must be smaller than or equal to 65535.')
|
201
|
+
end
|
202
|
+
|
203
|
+
if !@dns_server_port.nil? && @dns_server_port < 1
|
204
|
+
invalid_properties.push('invalid value for "dns_server_port", must be greater than or equal to 1.')
|
205
|
+
end
|
206
|
+
|
207
|
+
if !@number_of_packets.nil? && @number_of_packets > 10
|
208
|
+
invalid_properties.push('invalid value for "number_of_packets", must be smaller than or equal to 10.')
|
209
|
+
end
|
210
|
+
|
211
|
+
if !@number_of_packets.nil? && @number_of_packets < 0
|
212
|
+
invalid_properties.push('invalid value for "number_of_packets", must be greater than or equal to 0.')
|
213
|
+
end
|
214
|
+
|
172
215
|
invalid_properties
|
173
216
|
end
|
174
217
|
|
175
218
|
# Check to see if the all the properties in the model are valid
|
176
219
|
# @return true if the model is valid
|
177
220
|
def valid?
|
221
|
+
return false if !@dns_server_port.nil? && @dns_server_port > 65535
|
222
|
+
return false if !@dns_server_port.nil? && @dns_server_port < 1
|
223
|
+
return false if !@number_of_packets.nil? && @number_of_packets > 10
|
224
|
+
return false if !@number_of_packets.nil? && @number_of_packets < 0
|
178
225
|
true
|
179
226
|
end
|
180
227
|
|
228
|
+
# Custom attribute writer method with validation
|
229
|
+
# @param [Object] dns_server_port Value to be assigned
|
230
|
+
def dns_server_port=(dns_server_port)
|
231
|
+
if !dns_server_port.nil? && dns_server_port > 65535
|
232
|
+
fail ArgumentError, 'invalid value for "dns_server_port", must be smaller than or equal to 65535.'
|
233
|
+
end
|
234
|
+
|
235
|
+
if !dns_server_port.nil? && dns_server_port < 1
|
236
|
+
fail ArgumentError, 'invalid value for "dns_server_port", must be greater than or equal to 1.'
|
237
|
+
end
|
238
|
+
|
239
|
+
@dns_server_port = dns_server_port
|
240
|
+
end
|
241
|
+
|
242
|
+
# Custom attribute writer method with validation
|
243
|
+
# @param [Object] number_of_packets Value to be assigned
|
244
|
+
def number_of_packets=(number_of_packets)
|
245
|
+
if !number_of_packets.nil? && number_of_packets > 10
|
246
|
+
fail ArgumentError, 'invalid value for "number_of_packets", must be smaller than or equal to 10.'
|
247
|
+
end
|
248
|
+
|
249
|
+
if !number_of_packets.nil? && number_of_packets < 0
|
250
|
+
fail ArgumentError, 'invalid value for "number_of_packets", must be greater than or equal to 0.'
|
251
|
+
end
|
252
|
+
|
253
|
+
@number_of_packets = number_of_packets
|
254
|
+
end
|
255
|
+
|
181
256
|
# Checks equality by comparing each attribute.
|
182
257
|
# @param [Object] Object to be compared
|
183
258
|
def ==(o)
|
@@ -187,12 +262,15 @@ module DatadogAPIClient::V1
|
|
187
262
|
body == o.body &&
|
188
263
|
certificate == o.certificate &&
|
189
264
|
dns_server == o.dns_server &&
|
265
|
+
dns_server_port == o.dns_server_port &&
|
190
266
|
headers == o.headers &&
|
191
267
|
host == o.host &&
|
192
268
|
method == o.method &&
|
193
269
|
no_saving_response_body == o.no_saving_response_body &&
|
270
|
+
number_of_packets == o.number_of_packets &&
|
194
271
|
port == o.port &&
|
195
272
|
query == o.query &&
|
273
|
+
should_track_hops == o.should_track_hops &&
|
196
274
|
timeout == o.timeout &&
|
197
275
|
url == o.url
|
198
276
|
end
|
@@ -206,7 +284,7 @@ module DatadogAPIClient::V1
|
|
206
284
|
# Calculates hash code according to all attributes.
|
207
285
|
# @return [Integer] Hash code
|
208
286
|
def hash
|
209
|
-
[basic_auth, body, certificate, dns_server, headers, host, method, no_saving_response_body, port, query, timeout, url].hash
|
287
|
+
[basic_auth, body, certificate, dns_server, dns_server_port, headers, host, method, no_saving_response_body, number_of_packets, port, query, should_track_hops, timeout, url].hash
|
210
288
|
end
|
211
289
|
|
212
290
|
# Builds the object from hash
|
@@ -0,0 +1,67 @@
|
|
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://openapi-generator.tech
|
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
|
+
class UsageAttributionSupportedMetrics
|
21
|
+
CUSTOM_TIMESERIES_USAGE = "custom_timeseries_usage".freeze
|
22
|
+
CONTAINER_USAGE = "container_usage".freeze
|
23
|
+
SNMP_PERCENTAGE = "snmp_percentage".freeze
|
24
|
+
APM_HOST_USAGE = "apm_host_usage".freeze
|
25
|
+
BROWSER_USAGE = "browser_usage".freeze
|
26
|
+
NPM_HOST_PERCENTAGE = "npm_host_percentage".freeze
|
27
|
+
INFRA_HOST_USAGE = "infra_host_usage".freeze
|
28
|
+
CUSTOM_TIMESERIES_PERCENTAGE = "custom_timeseries_percentage".freeze
|
29
|
+
CONTAINER_PERCENTAGE = "container_percentage".freeze
|
30
|
+
LAMBDA_USAGE = "lambda_usage".freeze
|
31
|
+
API_USAGE = "api_usage".freeze
|
32
|
+
APM_HOST_PERCENTAGE = "apm_host_percentage".freeze
|
33
|
+
INFRA_HOST_PERCENTAGE = "infra_host_percentage".freeze
|
34
|
+
SNMP_USAGE = "snmp_usage".freeze
|
35
|
+
BROWSER_PERCENTAGE = "browser_percentage".freeze
|
36
|
+
API_PERCENTAGE = "api_percentage".freeze
|
37
|
+
LAMBDA_PERCENTAGE = "lambda_percentage".freeze
|
38
|
+
NPM_HOST_USAGE = "npm_host_usage".freeze
|
39
|
+
LAMBDA_FUNCTIONS_USAGE = "lambda_functions_usage".freeze
|
40
|
+
LAMBDA_FUNCTIONS_PERCENTAGE = "lambda_functions_percentage".freeze
|
41
|
+
LAMBDA_INVOCATIONS_USAGE = "lambda_invocations_usage".freeze
|
42
|
+
LAMBDA_INVOCATIONS_PERCENTAGE = "lambda_invocations_percentage".freeze
|
43
|
+
FARGATE_USAGE = "fargate_usage".freeze
|
44
|
+
FARGATE_PERCENTAGE = "fargate_percentage".freeze
|
45
|
+
PROFILED_HOST_USAGE = "profiled_host_usage".freeze
|
46
|
+
PROFILED_HOST_PERCENTAGE = "profiled_host_percentage".freeze
|
47
|
+
PROFILED_CONTAINER_USAGE = "profiled_container_usage".freeze
|
48
|
+
PROFILED_CONTAINER_PERCENTAGE = "profiled_container_percentage".freeze
|
49
|
+
ALL = "*".freeze
|
50
|
+
|
51
|
+
# Builds the enum from string
|
52
|
+
# @param [String] The enum value in the form of the string
|
53
|
+
# @return [String] The enum value
|
54
|
+
def self.build_from_hash(value)
|
55
|
+
new.build_from_hash(value)
|
56
|
+
end
|
57
|
+
|
58
|
+
# Builds the enum from string
|
59
|
+
# @param [String] The enum value in the form of the string
|
60
|
+
# @return [String] The enum value
|
61
|
+
def build_from_hash(value)
|
62
|
+
constantValues = UsageAttributionSupportedMetrics.constants.select { |c| UsageAttributionSupportedMetrics::const_get(c) == value }
|
63
|
+
raise "Invalid ENUM value #{value} for class #UsageAttributionSupportedMetrics" if constantValues.empty?
|
64
|
+
value
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -79,6 +79,18 @@ module DatadogAPIClient::V1
|
|
79
79
|
# The network host usage by tag(s).
|
80
80
|
attr_accessor :npm_host_usage
|
81
81
|
|
82
|
+
# The percentage of profiled containers usage by tag(s).
|
83
|
+
attr_accessor :profiled_containers_percentage
|
84
|
+
|
85
|
+
# The profiled container usage by tag(s).
|
86
|
+
attr_accessor :profiled_containers_usage
|
87
|
+
|
88
|
+
# The percentage of profiled hosts usage by tag(s).
|
89
|
+
attr_accessor :profiled_hosts_percentage
|
90
|
+
|
91
|
+
# The profiled host usage by tag(s).
|
92
|
+
attr_accessor :profiled_hosts_usage
|
93
|
+
|
82
94
|
# The percentage of network device usage by tag(s).
|
83
95
|
attr_accessor :snmp_percentage
|
84
96
|
|
@@ -108,6 +120,10 @@ module DatadogAPIClient::V1
|
|
108
120
|
:'lambda_usage' => :'lambda_usage',
|
109
121
|
:'npm_host_percentage' => :'npm_host_percentage',
|
110
122
|
:'npm_host_usage' => :'npm_host_usage',
|
123
|
+
:'profiled_containers_percentage' => :'profiled_containers_percentage',
|
124
|
+
:'profiled_containers_usage' => :'profiled_containers_usage',
|
125
|
+
:'profiled_hosts_percentage' => :'profiled_hosts_percentage',
|
126
|
+
:'profiled_hosts_usage' => :'profiled_hosts_usage',
|
111
127
|
:'snmp_percentage' => :'snmp_percentage',
|
112
128
|
:'snmp_usage' => :'snmp_usage'
|
113
129
|
}
|
@@ -141,6 +157,10 @@ module DatadogAPIClient::V1
|
|
141
157
|
:'lambda_usage' => :'Float',
|
142
158
|
:'npm_host_percentage' => :'Float',
|
143
159
|
:'npm_host_usage' => :'Float',
|
160
|
+
:'profiled_containers_percentage' => :'Float',
|
161
|
+
:'profiled_containers_usage' => :'Float',
|
162
|
+
:'profiled_hosts_percentage' => :'Float',
|
163
|
+
:'profiled_hosts_usage' => :'Float',
|
144
164
|
:'snmp_percentage' => :'Float',
|
145
165
|
:'snmp_usage' => :'Float'
|
146
166
|
}
|
@@ -247,6 +267,22 @@ module DatadogAPIClient::V1
|
|
247
267
|
self.npm_host_usage = attributes[:'npm_host_usage']
|
248
268
|
end
|
249
269
|
|
270
|
+
if attributes.key?(:'profiled_containers_percentage')
|
271
|
+
self.profiled_containers_percentage = attributes[:'profiled_containers_percentage']
|
272
|
+
end
|
273
|
+
|
274
|
+
if attributes.key?(:'profiled_containers_usage')
|
275
|
+
self.profiled_containers_usage = attributes[:'profiled_containers_usage']
|
276
|
+
end
|
277
|
+
|
278
|
+
if attributes.key?(:'profiled_hosts_percentage')
|
279
|
+
self.profiled_hosts_percentage = attributes[:'profiled_hosts_percentage']
|
280
|
+
end
|
281
|
+
|
282
|
+
if attributes.key?(:'profiled_hosts_usage')
|
283
|
+
self.profiled_hosts_usage = attributes[:'profiled_hosts_usage']
|
284
|
+
end
|
285
|
+
|
250
286
|
if attributes.key?(:'snmp_percentage')
|
251
287
|
self.snmp_percentage = attributes[:'snmp_percentage']
|
252
288
|
end
|
@@ -294,6 +330,10 @@ module DatadogAPIClient::V1
|
|
294
330
|
lambda_usage == o.lambda_usage &&
|
295
331
|
npm_host_percentage == o.npm_host_percentage &&
|
296
332
|
npm_host_usage == o.npm_host_usage &&
|
333
|
+
profiled_containers_percentage == o.profiled_containers_percentage &&
|
334
|
+
profiled_containers_usage == o.profiled_containers_usage &&
|
335
|
+
profiled_hosts_percentage == o.profiled_hosts_percentage &&
|
336
|
+
profiled_hosts_usage == o.profiled_hosts_usage &&
|
297
337
|
snmp_percentage == o.snmp_percentage &&
|
298
338
|
snmp_usage == o.snmp_usage
|
299
339
|
end
|
@@ -307,7 +347,7 @@ module DatadogAPIClient::V1
|
|
307
347
|
# Calculates hash code according to all attributes.
|
308
348
|
# @return [Integer] Hash code
|
309
349
|
def hash
|
310
|
-
[api_percentage, api_usage, apm_host_percentage, apm_host_usage, browser_percentage, browser_usage, container_percentage, container_usage, custom_timeseries_percentage, custom_timeseries_usage, infra_host_percentage, infra_host_usage, lambda_functions_percentage, lambda_functions_usage, lambda_invocations_percentage, lambda_invocations_usage, lambda_percentage, lambda_usage, npm_host_percentage, npm_host_usage, snmp_percentage, snmp_usage].hash
|
350
|
+
[api_percentage, api_usage, apm_host_percentage, apm_host_usage, browser_percentage, browser_usage, container_percentage, container_usage, custom_timeseries_percentage, custom_timeseries_usage, infra_host_percentage, infra_host_usage, lambda_functions_percentage, lambda_functions_usage, lambda_invocations_percentage, lambda_invocations_usage, lambda_percentage, lambda_usage, npm_host_percentage, npm_host_usage, profiled_containers_percentage, profiled_containers_usage, profiled_hosts_percentage, profiled_hosts_usage, snmp_percentage, snmp_usage].hash
|
311
351
|
end
|
312
352
|
|
313
353
|
# Builds the object from hash
|