datadog_api_client 2.48.0 → 2.49.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/.generator/schemas/v1/openapi.yaml +424 -44
- data/.generator/schemas/v2/openapi.yaml +2290 -500
- data/CHANGELOG.md +25 -0
- data/examples/v1/dashboards/CreateDashboard_1093147852.rb +66 -0
- data/examples/v1/dashboards/CreateDashboard_1442588603.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1617893815.rb +61 -0
- data/examples/v1/dashboards/CreateDashboard_1712853070.rb +66 -0
- data/examples/v1/dashboards/CreateDashboard_2345541687.rb +65 -0
- data/examples/v1/dashboards/CreateDashboard_252716965.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2617251399.rb +66 -0
- data/examples/v1/dashboards/CreateDashboard_2823363212.rb +55 -0
- data/examples/v1/dashboards/CreateDashboard_3882428227.rb +1 -1
- data/examples/v1/monitors/CreateMonitor_3626832481.rb +33 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_2106135939.rb +49 -0
- data/examples/v1/tags/GetHostTags.rb +1 -1
- data/examples/v1/tags/ListHostTags.rb +1 -1
- data/examples/v2/aws-integration/CreateAWSAccount.rb +0 -11
- data/examples/v2/aws-integration/CreateAWSAccount_1716720881.rb +0 -11
- data/examples/v2/aws-integration/UpdateAWSAccount.rb +0 -11
- data/examples/v2/observability-pipelines/CreatePipeline.rb +1 -1
- data/examples/v2/observability-pipelines/UpdatePipeline.rb +1 -1
- data/examples/v2/observability-pipelines/ValidatePipeline.rb +1 -1
- data/examples/v2/reference-tables/UpdateReferenceTable.rb +0 -1
- data/examples/v2/reference-tables/UpsertRows.rb +1 -3
- data/examples/v2/security-monitoring/CreateSecurityMonitoringCriticalAsset.rb +20 -0
- data/examples/v2/security-monitoring/DeleteSecurityMonitoringCriticalAsset.rb +8 -0
- data/examples/v2/security-monitoring/GetCriticalAssetsAffectingRule.rb +8 -0
- data/examples/v2/security-monitoring/GetSecurityMonitoringCriticalAsset.rb +8 -0
- data/examples/v2/security-monitoring/ListSecurityFindings.rb +5 -0
- data/examples/v2/security-monitoring/ListSecurityFindings_2925663885.rb +8 -0
- data/examples/v2/security-monitoring/ListSecurityMonitoringCriticalAssets.rb +5 -0
- data/examples/v2/security-monitoring/SearchSecurityFindings.rb +13 -0
- data/examples/v2/security-monitoring/SearchSecurityFindings_3678541639.rb +16 -0
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringCriticalAsset.rb +24 -0
- data/examples/v2/spa/GetSPARecommendations.rb +1 -1
- data/examples/v2/spa/GetSPARecommendationsWithShard.rb +8 -0
- data/lib/datadog_api_client/configuration.rb +7 -6
- data/lib/datadog_api_client/inflector.rb +79 -6
- data/lib/datadog_api_client/v1/api/tags_api.rb +17 -17
- data/lib/datadog_api_client/v1/models/bar_chart_widget_definition.rb +216 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_definition_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_display.rb +63 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_flat.rb +123 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_flat_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_legend.rb +28 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_request.rb +261 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_scaling.rb +27 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_stacked.rb +133 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_stacked_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_style.rb +125 -0
- data/lib/datadog_api_client/v1/models/distribution_widget_request.rb +36 -2
- data/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb +29 -1
- data/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb +23 -1
- data/lib/datadog_api_client/v1/models/heat_map_widget_request.rb +21 -1
- data/lib/datadog_api_client/v1/models/heat_map_widget_x_axis.rb +107 -0
- data/lib/datadog_api_client/v1/models/host_tags.rb +2 -2
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_data_quality_data_source.rb +26 -0
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_data_quality_model_type_override.rb +28 -0
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_data_quality_monitor_options.rb +147 -0
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_data_quality_query_definition.rb +232 -0
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb +2 -1
- data/lib/datadog_api_client/v1/models/monitor_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/split_graph_source_widget_definition.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_api_step.rb +2 -1
- data/lib/datadog_api_client/v1/models/synthetics_api_subtest_step.rb +236 -0
- data/lib/datadog_api_client/v1/models/synthetics_api_subtest_step_subtype.rb +26 -0
- data/lib/datadog_api_client/v1/models/tag_to_hosts.rb +2 -2
- data/lib/datadog_api_client/v1/models/widget_definition.rb +1 -0
- data/lib/datadog_api_client/v1/models/{distribution_widget_histogram_request_type.rb → widget_histogram_request_type.rb} +1 -1
- data/lib/datadog_api_client/v1/models/widget_marker.rb +3 -1
- data/lib/datadog_api_client/v2/api/events_api.rb +0 -2
- data/lib/datadog_api_client/v2/api/fleet_automation_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/observability_pipelines_api.rb +6 -6
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +597 -0
- data/lib/datadog_api_client/v2/api/spa_api.rb +86 -11
- data/lib/datadog_api_client/v2/models/aws_account_create_request_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/aws_account_response_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/aws_account_update_request_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/azure_storage_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data_attributes_value.rb +63 -0
- data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +23 -1
- data/lib/datadog_api_client/v2/models/list_security_findings_response.rb +127 -0
- data/lib/datadog_api_client/v2/models/microsoft_sentinel_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor.rb +4 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_hostname_processor.rb +198 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_hostname_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_data_firehose_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_open_search_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_security_lake_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_cloud_prem_destination.rb +169 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_cloud_prem_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config.rb +25 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +17 -13
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_pipeline_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_item.rb +14 -10
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_source_item.rb +11 -10
- data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_agent_source.rb +4 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_logs_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_metrics_destination.rb +169 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_metrics_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor.rb +4 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_elasticsearch_destination.rb +13 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_elasticsearch_destination_data_stream.rb +125 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_processor.rb +15 -3
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_reference_table.rb +156 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_filter_processor.rb +6 -4
- data/lib/datadog_api_client/v2/models/observability_pipeline_fluent_bit_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_fluentd_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_generate_metrics_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination.rb +220 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_auth_strategy.rb +28 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_compression.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_compression_algorithm.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_encoding.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source_auth_strategy.rb +1 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_server_source.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_destination.rb +361 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_destination_compression.rb +30 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_destination_encoding.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{observability_pipeline_kafka_source_librdkafka_option.rb → observability_pipeline_kafka_librdkafka_option.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{observability_pipeline_kafka_source_sasl.rb → observability_pipeline_kafka_sasl.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{observability_pipeline_pipeline_kafka_source_sasl_mechanism.rb → observability_pipeline_kafka_sasl_mechanism.rb} +1 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_source.rb +5 -3
- data/lib/datadog_api_client/v2/models/observability_pipeline_logstash_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor.rb +229 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor_rule.rb +188 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor_rule_action.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor_rule_mode.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_new_relic_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_open_search_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_opentelemetry_source.rb +176 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_opentelemetry_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_json_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_xml_processor.rb +300 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_xml_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +21 -6
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor_overflow_action.rb +1 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_remove_fields_processor.rb +4 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_rsyslog_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_rsyslog_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sample_processor.rb +35 -20
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor.rb +4 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_custom_pattern_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_library_pattern_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sentinel_one_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_split_array_processor.rb +229 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_split_array_processor_array_config.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_split_array_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_destination.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_tcp_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_throttle_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/recommendation_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_findings_attributes.rb +127 -0
- data/lib/datadog_api_client/v2/models/security_findings_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/security_findings_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_findings_links.rb +105 -0
- data/lib/datadog_api_client/v2/models/{data_export_config.rb → security_findings_meta.rb} +32 -42
- data/lib/datadog_api_client/v2/models/security_findings_page.rb +105 -0
- data/lib/datadog_api_client/v2/models/security_findings_search_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/security_findings_search_request_data.rb +105 -0
- data/lib/datadog_api_client/v2/models/security_findings_search_request_data_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/security_findings_search_request_page.rb +137 -0
- data/lib/datadog_api_client/v2/models/security_findings_sort.rb +27 -0
- data/lib/datadog_api_client/v2/models/security_findings_status.rb +27 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset.rb +125 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_attributes.rb +235 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_create_attributes.rb +187 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_severity.rb +32 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_update_attributes.rb +175 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_update_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/{awsccm_config.rb → security_monitoring_critical_assets_response.rb} +12 -12
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +99 -7
data/lib/datadog_api_client/v1/models/monitor_formula_and_function_data_quality_query_definition.rb
ADDED
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V1
|
|
20
|
+
# A formula and functions data quality query.
|
|
21
|
+
class MonitorFormulaAndFunctionDataQualityQueryDefinition
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Data source for data quality queries.
|
|
25
|
+
attr_reader :data_source
|
|
26
|
+
|
|
27
|
+
# Filter expression used to match on data entities. Uses Aastra query syntax.
|
|
28
|
+
attr_reader :filter
|
|
29
|
+
|
|
30
|
+
# Optional grouping fields for aggregation.
|
|
31
|
+
attr_accessor :group_by
|
|
32
|
+
|
|
33
|
+
# The data quality measure to query. Common values include:
|
|
34
|
+
# `bytes`, `cardinality`, `custom`, `freshness`, `max`, `mean`, `min`,
|
|
35
|
+
# `nullness`, `percent_negative`, `percent_zero`, `row_count`, `stddev`,
|
|
36
|
+
# `sum`, `uniqueness`. Additional values may be supported.
|
|
37
|
+
attr_reader :measure
|
|
38
|
+
|
|
39
|
+
# Monitor configuration options for data quality queries.
|
|
40
|
+
attr_accessor :monitor_options
|
|
41
|
+
|
|
42
|
+
# Name of the query for use in formulas.
|
|
43
|
+
attr_reader :name
|
|
44
|
+
|
|
45
|
+
# Schema version for the data quality query.
|
|
46
|
+
attr_accessor :schema_version
|
|
47
|
+
|
|
48
|
+
# Optional scoping expression to further filter metrics. Uses metrics filter syntax.
|
|
49
|
+
# This is useful when an entity has been configured to emit metrics with additional tags.
|
|
50
|
+
attr_accessor :scope
|
|
51
|
+
|
|
52
|
+
attr_accessor :additional_properties
|
|
53
|
+
|
|
54
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
55
|
+
# @!visibility private
|
|
56
|
+
def self.attribute_map
|
|
57
|
+
{
|
|
58
|
+
:'data_source' => :'data_source',
|
|
59
|
+
:'filter' => :'filter',
|
|
60
|
+
:'group_by' => :'group_by',
|
|
61
|
+
:'measure' => :'measure',
|
|
62
|
+
:'monitor_options' => :'monitor_options',
|
|
63
|
+
:'name' => :'name',
|
|
64
|
+
:'schema_version' => :'schema_version',
|
|
65
|
+
:'scope' => :'scope'
|
|
66
|
+
}
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Attribute type mapping.
|
|
70
|
+
# @!visibility private
|
|
71
|
+
def self.openapi_types
|
|
72
|
+
{
|
|
73
|
+
:'data_source' => :'MonitorFormulaAndFunctionDataQualityDataSource',
|
|
74
|
+
:'filter' => :'String',
|
|
75
|
+
:'group_by' => :'Array<String>',
|
|
76
|
+
:'measure' => :'String',
|
|
77
|
+
:'monitor_options' => :'MonitorFormulaAndFunctionDataQualityMonitorOptions',
|
|
78
|
+
:'name' => :'String',
|
|
79
|
+
:'schema_version' => :'String',
|
|
80
|
+
:'scope' => :'String'
|
|
81
|
+
}
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Initializes the object
|
|
85
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
86
|
+
# @!visibility private
|
|
87
|
+
def initialize(attributes = {})
|
|
88
|
+
if (!attributes.is_a?(Hash))
|
|
89
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorFormulaAndFunctionDataQualityQueryDefinition` initialize method"
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
self.additional_properties = {}
|
|
93
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
94
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
95
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
96
|
+
self.additional_properties[k.to_sym] = v
|
|
97
|
+
else
|
|
98
|
+
h[k.to_sym] = v
|
|
99
|
+
end
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'data_source')
|
|
103
|
+
self.data_source = attributes[:'data_source']
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'filter')
|
|
107
|
+
self.filter = attributes[:'filter']
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'group_by')
|
|
111
|
+
if (value = attributes[:'group_by']).is_a?(Array)
|
|
112
|
+
self.group_by = value
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if attributes.key?(:'measure')
|
|
117
|
+
self.measure = attributes[:'measure']
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:'monitor_options')
|
|
121
|
+
self.monitor_options = attributes[:'monitor_options']
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if attributes.key?(:'name')
|
|
125
|
+
self.name = attributes[:'name']
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if attributes.key?(:'schema_version')
|
|
129
|
+
self.schema_version = attributes[:'schema_version']
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if attributes.key?(:'scope')
|
|
133
|
+
self.scope = attributes[:'scope']
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Check to see if the all the properties in the model are valid
|
|
138
|
+
# @return true if the model is valid
|
|
139
|
+
# @!visibility private
|
|
140
|
+
def valid?
|
|
141
|
+
return false if @data_source.nil?
|
|
142
|
+
return false if @filter.nil?
|
|
143
|
+
return false if @measure.nil?
|
|
144
|
+
return false if @name.nil?
|
|
145
|
+
true
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Custom attribute writer method with validation
|
|
149
|
+
# @param data_source [Object] Object to be assigned
|
|
150
|
+
# @!visibility private
|
|
151
|
+
def data_source=(data_source)
|
|
152
|
+
if data_source.nil?
|
|
153
|
+
fail ArgumentError, 'invalid value for "data_source", data_source cannot be nil.'
|
|
154
|
+
end
|
|
155
|
+
@data_source = data_source
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Custom attribute writer method with validation
|
|
159
|
+
# @param filter [Object] Object to be assigned
|
|
160
|
+
# @!visibility private
|
|
161
|
+
def filter=(filter)
|
|
162
|
+
if filter.nil?
|
|
163
|
+
fail ArgumentError, 'invalid value for "filter", filter cannot be nil.'
|
|
164
|
+
end
|
|
165
|
+
@filter = filter
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Custom attribute writer method with validation
|
|
169
|
+
# @param measure [Object] Object to be assigned
|
|
170
|
+
# @!visibility private
|
|
171
|
+
def measure=(measure)
|
|
172
|
+
if measure.nil?
|
|
173
|
+
fail ArgumentError, 'invalid value for "measure", measure cannot be nil.'
|
|
174
|
+
end
|
|
175
|
+
@measure = measure
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Custom attribute writer method with validation
|
|
179
|
+
# @param name [Object] Object to be assigned
|
|
180
|
+
# @!visibility private
|
|
181
|
+
def name=(name)
|
|
182
|
+
if name.nil?
|
|
183
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
|
184
|
+
end
|
|
185
|
+
@name = name
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
189
|
+
# @return [Hash] Returns the object in the form of hash
|
|
190
|
+
# @!visibility private
|
|
191
|
+
def to_hash
|
|
192
|
+
hash = {}
|
|
193
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
194
|
+
value = self.send(attr)
|
|
195
|
+
if value.nil?
|
|
196
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
197
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
hash[param] = _to_hash(value)
|
|
201
|
+
end
|
|
202
|
+
self.additional_properties.each_pair do |attr, value|
|
|
203
|
+
hash[attr] = value
|
|
204
|
+
end
|
|
205
|
+
hash
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Checks equality by comparing each attribute.
|
|
209
|
+
# @param o [Object] Object to be compared
|
|
210
|
+
# @!visibility private
|
|
211
|
+
def ==(o)
|
|
212
|
+
return true if self.equal?(o)
|
|
213
|
+
self.class == o.class &&
|
|
214
|
+
data_source == o.data_source &&
|
|
215
|
+
filter == o.filter &&
|
|
216
|
+
group_by == o.group_by &&
|
|
217
|
+
measure == o.measure &&
|
|
218
|
+
monitor_options == o.monitor_options &&
|
|
219
|
+
name == o.name &&
|
|
220
|
+
schema_version == o.schema_version &&
|
|
221
|
+
scope == o.scope &&
|
|
222
|
+
additional_properties == o.additional_properties
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# Calculates hash code according to all attributes.
|
|
226
|
+
# @return [Integer] Hash code
|
|
227
|
+
# @!visibility private
|
|
228
|
+
def hash
|
|
229
|
+
[data_source, filter, group_by, measure, monitor_options, name, schema_version, scope, additional_properties].hash
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
end
|
|
@@ -27,7 +27,8 @@ module DatadogAPIClient::V1
|
|
|
27
27
|
def openapi_one_of
|
|
28
28
|
[
|
|
29
29
|
:'MonitorFormulaAndFunctionEventQueryDefinition',
|
|
30
|
-
:'MonitorFormulaAndFunctionCostQueryDefinition'
|
|
30
|
+
:'MonitorFormulaAndFunctionCostQueryDefinition',
|
|
31
|
+
:'MonitorFormulaAndFunctionDataQualityQueryDefinition'
|
|
31
32
|
]
|
|
32
33
|
end
|
|
33
34
|
# Builds the object
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V1
|
|
20
|
+
# The subtest step used in a Synthetics multi-step API test.
|
|
21
|
+
class SyntheticsAPISubtestStep
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Determines whether or not to continue with test if this step fails.
|
|
25
|
+
attr_accessor :allow_failure
|
|
26
|
+
|
|
27
|
+
# A boolean set to always execute this step even if the previous step failed or was skipped.
|
|
28
|
+
attr_accessor :always_execute
|
|
29
|
+
|
|
30
|
+
# Determines whether or not to exit the test if the step succeeds.
|
|
31
|
+
attr_accessor :exit_if_succeed
|
|
32
|
+
|
|
33
|
+
# Generate variables using JavaScript.
|
|
34
|
+
attr_accessor :extracted_values_from_script
|
|
35
|
+
|
|
36
|
+
# ID of the step.
|
|
37
|
+
attr_accessor :id
|
|
38
|
+
|
|
39
|
+
# Determines whether or not to consider the entire test as failed if this step fails.
|
|
40
|
+
# Can be used only if `allowFailure` is `true`.
|
|
41
|
+
attr_accessor :is_critical
|
|
42
|
+
|
|
43
|
+
# The name of the step.
|
|
44
|
+
attr_reader :name
|
|
45
|
+
|
|
46
|
+
# Object describing the retry strategy to apply to a Synthetic test.
|
|
47
|
+
attr_accessor :_retry
|
|
48
|
+
|
|
49
|
+
# Public ID of the test to be played as part of a `playSubTest` step type.
|
|
50
|
+
attr_reader :subtest_public_id
|
|
51
|
+
|
|
52
|
+
# The subtype of the Synthetic multi-step API subtest step.
|
|
53
|
+
attr_reader :subtype
|
|
54
|
+
|
|
55
|
+
attr_accessor :additional_properties
|
|
56
|
+
|
|
57
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
58
|
+
# @!visibility private
|
|
59
|
+
def self.attribute_map
|
|
60
|
+
{
|
|
61
|
+
:'allow_failure' => :'allowFailure',
|
|
62
|
+
:'always_execute' => :'alwaysExecute',
|
|
63
|
+
:'exit_if_succeed' => :'exitIfSucceed',
|
|
64
|
+
:'extracted_values_from_script' => :'extractedValuesFromScript',
|
|
65
|
+
:'id' => :'id',
|
|
66
|
+
:'is_critical' => :'isCritical',
|
|
67
|
+
:'name' => :'name',
|
|
68
|
+
:'_retry' => :'retry',
|
|
69
|
+
:'subtest_public_id' => :'subtestPublicId',
|
|
70
|
+
:'subtype' => :'subtype'
|
|
71
|
+
}
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Attribute type mapping.
|
|
75
|
+
# @!visibility private
|
|
76
|
+
def self.openapi_types
|
|
77
|
+
{
|
|
78
|
+
:'allow_failure' => :'Boolean',
|
|
79
|
+
:'always_execute' => :'Boolean',
|
|
80
|
+
:'exit_if_succeed' => :'Boolean',
|
|
81
|
+
:'extracted_values_from_script' => :'String',
|
|
82
|
+
:'id' => :'String',
|
|
83
|
+
:'is_critical' => :'Boolean',
|
|
84
|
+
:'name' => :'String',
|
|
85
|
+
:'_retry' => :'SyntheticsTestOptionsRetry',
|
|
86
|
+
:'subtest_public_id' => :'String',
|
|
87
|
+
:'subtype' => :'SyntheticsAPISubtestStepSubtype'
|
|
88
|
+
}
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Initializes the object
|
|
92
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
93
|
+
# @!visibility private
|
|
94
|
+
def initialize(attributes = {})
|
|
95
|
+
if (!attributes.is_a?(Hash))
|
|
96
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPISubtestStep` initialize method"
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
self.additional_properties = {}
|
|
100
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
101
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
102
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
103
|
+
self.additional_properties[k.to_sym] = v
|
|
104
|
+
else
|
|
105
|
+
h[k.to_sym] = v
|
|
106
|
+
end
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'allow_failure')
|
|
110
|
+
self.allow_failure = attributes[:'allow_failure']
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
if attributes.key?(:'always_execute')
|
|
114
|
+
self.always_execute = attributes[:'always_execute']
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
if attributes.key?(:'exit_if_succeed')
|
|
118
|
+
self.exit_if_succeed = attributes[:'exit_if_succeed']
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
if attributes.key?(:'extracted_values_from_script')
|
|
122
|
+
self.extracted_values_from_script = attributes[:'extracted_values_from_script']
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if attributes.key?(:'id')
|
|
126
|
+
self.id = attributes[:'id']
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'is_critical')
|
|
130
|
+
self.is_critical = attributes[:'is_critical']
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
if attributes.key?(:'name')
|
|
134
|
+
self.name = attributes[:'name']
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if attributes.key?(:'_retry')
|
|
138
|
+
self._retry = attributes[:'_retry']
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if attributes.key?(:'subtest_public_id')
|
|
142
|
+
self.subtest_public_id = attributes[:'subtest_public_id']
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if attributes.key?(:'subtype')
|
|
146
|
+
self.subtype = attributes[:'subtype']
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Check to see if the all the properties in the model are valid
|
|
151
|
+
# @return true if the model is valid
|
|
152
|
+
# @!visibility private
|
|
153
|
+
def valid?
|
|
154
|
+
return false if @name.nil?
|
|
155
|
+
return false if @subtest_public_id.nil?
|
|
156
|
+
return false if @subtype.nil?
|
|
157
|
+
true
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Custom attribute writer method with validation
|
|
161
|
+
# @param name [Object] Object to be assigned
|
|
162
|
+
# @!visibility private
|
|
163
|
+
def name=(name)
|
|
164
|
+
if name.nil?
|
|
165
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
|
166
|
+
end
|
|
167
|
+
@name = name
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Custom attribute writer method with validation
|
|
171
|
+
# @param subtest_public_id [Object] Object to be assigned
|
|
172
|
+
# @!visibility private
|
|
173
|
+
def subtest_public_id=(subtest_public_id)
|
|
174
|
+
if subtest_public_id.nil?
|
|
175
|
+
fail ArgumentError, 'invalid value for "subtest_public_id", subtest_public_id cannot be nil.'
|
|
176
|
+
end
|
|
177
|
+
@subtest_public_id = subtest_public_id
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# Custom attribute writer method with validation
|
|
181
|
+
# @param subtype [Object] Object to be assigned
|
|
182
|
+
# @!visibility private
|
|
183
|
+
def subtype=(subtype)
|
|
184
|
+
if subtype.nil?
|
|
185
|
+
fail ArgumentError, 'invalid value for "subtype", subtype cannot be nil.'
|
|
186
|
+
end
|
|
187
|
+
@subtype = subtype
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
191
|
+
# @return [Hash] Returns the object in the form of hash
|
|
192
|
+
# @!visibility private
|
|
193
|
+
def to_hash
|
|
194
|
+
hash = {}
|
|
195
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
196
|
+
value = self.send(attr)
|
|
197
|
+
if value.nil?
|
|
198
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
199
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
hash[param] = _to_hash(value)
|
|
203
|
+
end
|
|
204
|
+
self.additional_properties.each_pair do |attr, value|
|
|
205
|
+
hash[attr] = value
|
|
206
|
+
end
|
|
207
|
+
hash
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Checks equality by comparing each attribute.
|
|
211
|
+
# @param o [Object] Object to be compared
|
|
212
|
+
# @!visibility private
|
|
213
|
+
def ==(o)
|
|
214
|
+
return true if self.equal?(o)
|
|
215
|
+
self.class == o.class &&
|
|
216
|
+
allow_failure == o.allow_failure &&
|
|
217
|
+
always_execute == o.always_execute &&
|
|
218
|
+
exit_if_succeed == o.exit_if_succeed &&
|
|
219
|
+
extracted_values_from_script == o.extracted_values_from_script &&
|
|
220
|
+
id == o.id &&
|
|
221
|
+
is_critical == o.is_critical &&
|
|
222
|
+
name == o.name &&
|
|
223
|
+
_retry == o._retry &&
|
|
224
|
+
subtest_public_id == o.subtest_public_id &&
|
|
225
|
+
subtype == o.subtype &&
|
|
226
|
+
additional_properties == o.additional_properties
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# Calculates hash code according to all attributes.
|
|
230
|
+
# @return [Integer] Hash code
|
|
231
|
+
# @!visibility private
|
|
232
|
+
def hash
|
|
233
|
+
[allow_failure, always_execute, exit_if_succeed, extracted_values_from_script, id, is_critical, name, _retry, subtest_public_id, subtype, additional_properties].hash
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V1
|
|
20
|
+
# The subtype of the Synthetic multi-step API subtest step.
|
|
21
|
+
class SyntheticsAPISubtestStepSubtype
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
PLAY_SUB_TEST = "playSubTest".freeze
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -17,11 +17,11 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V1
|
|
20
|
-
# In this object, the key is the tag, the value is a list of host names that are reporting that tag.
|
|
20
|
+
# In this object, the key is the tag, and the value is a list of host names that are reporting that tag.
|
|
21
21
|
class TagToHosts
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
# A
|
|
24
|
+
# A mapping of tags to host names
|
|
25
25
|
attr_accessor :tags
|
|
26
26
|
|
|
27
27
|
attr_accessor :additional_properties
|
|
@@ -24,7 +24,7 @@ module DatadogAPIClient::V1
|
|
|
24
24
|
# Combination of:
|
|
25
25
|
# - A severity error, warning, ok, or info
|
|
26
26
|
# - A line type: dashed, solid, or bold
|
|
27
|
-
# In this case of a Distribution widget, this can be set to be `
|
|
27
|
+
# In this case of a Distribution widget, this can be set to be `percentile`.
|
|
28
28
|
attr_accessor :display_type
|
|
29
29
|
|
|
30
30
|
# Label to display over the marker.
|
|
@@ -34,6 +34,8 @@ module DatadogAPIClient::V1
|
|
|
34
34
|
attr_accessor :time
|
|
35
35
|
|
|
36
36
|
# Value to apply. Can be a single value y = 15 or a range of values 0 < y < 10.
|
|
37
|
+
# For Distribution widgets with `display_type` set to `percentile`, this should be
|
|
38
|
+
# a numeric percentile value (for example, "90" for P90).
|
|
37
39
|
attr_reader :value
|
|
38
40
|
|
|
39
41
|
attr_accessor :additional_properties
|
|
@@ -43,8 +43,6 @@ module DatadogAPIClient::V2
|
|
|
43
43
|
#
|
|
44
44
|
# ❌ For use cases involving other event categories, use the V1 endpoint or reach out to [support](https://www.datadoghq.com/support/).
|
|
45
45
|
#
|
|
46
|
-
# ❌ Notifications are not yet supported for events sent to this endpoint. Use the V1 endpoint for notification functionality.
|
|
47
|
-
#
|
|
48
46
|
# @param body [EventCreateRequestPayload] Event creation request payload.
|
|
49
47
|
# @param opts [Hash] the optional parameters
|
|
50
48
|
# @return [Array<(EventCreateResponsePayload, Integer, Hash)>] EventCreateResponsePayload data, response status code and response headers
|
|
@@ -693,7 +693,7 @@ module DatadogAPIClient::V2
|
|
|
693
693
|
# Use the `page_number` and `page_size` query parameters to paginate through results.
|
|
694
694
|
#
|
|
695
695
|
# @param opts [Hash] the optional parameters
|
|
696
|
-
# @option opts [Integer] :page_number Page number for pagination (
|
|
696
|
+
# @option opts [Integer] :page_number Page number for pagination (starts at 0).
|
|
697
697
|
# @option opts [Integer] :page_size Number of results per page (must be greater than 0 and less than or equal to 100).
|
|
698
698
|
# @option opts [String] :sort_attribute Attribute to sort by.
|
|
699
699
|
# @option opts [Boolean] :sort_descending Sort order (true for descending, false for ascending).
|
|
@@ -711,8 +711,8 @@ module DatadogAPIClient::V2
|
|
|
711
711
|
if @api_client.config.debugging
|
|
712
712
|
@api_client.config.logger.debug 'Calling API: FleetAutomationAPI.list_fleet_agents ...'
|
|
713
713
|
end
|
|
714
|
-
if @api_client.config.client_side_validation && !opts[:'page_number'].nil? && opts[:'page_number'] <
|
|
715
|
-
fail ArgumentError, 'invalid value for "opts[:"page_number"]" when calling FleetAutomationAPI.list_fleet_agents, must be greater than or equal to
|
|
714
|
+
if @api_client.config.client_side_validation && !opts[:'page_number'].nil? && opts[:'page_number'] < 0
|
|
715
|
+
fail ArgumentError, 'invalid value for "opts[:"page_number"]" when calling FleetAutomationAPI.list_fleet_agents, must be greater than or equal to 0.'
|
|
716
716
|
end
|
|
717
717
|
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 100
|
|
718
718
|
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FleetAutomationAPI.list_fleet_agents, must be smaller than or equal to 100.'
|
|
@@ -54,7 +54,7 @@ module DatadogAPIClient::V2
|
|
|
54
54
|
fail ArgumentError, "Missing the required parameter 'body' when calling ObservabilityPipelinesAPI.create_pipeline"
|
|
55
55
|
end
|
|
56
56
|
# resource path
|
|
57
|
-
local_var_path = '/api/v2/
|
|
57
|
+
local_var_path = '/api/v2/obs-pipelines/pipelines'
|
|
58
58
|
|
|
59
59
|
# query parameters
|
|
60
60
|
query_params = opts[:query_params] || {}
|
|
@@ -127,7 +127,7 @@ module DatadogAPIClient::V2
|
|
|
127
127
|
fail ArgumentError, "Missing the required parameter 'pipeline_id' when calling ObservabilityPipelinesAPI.delete_pipeline"
|
|
128
128
|
end
|
|
129
129
|
# resource path
|
|
130
|
-
local_var_path = '/api/v2/
|
|
130
|
+
local_var_path = '/api/v2/obs-pipelines/pipelines/{pipeline_id}'.sub('{pipeline_id}', CGI.escape(pipeline_id.to_s).gsub('%2F', '/'))
|
|
131
131
|
|
|
132
132
|
# query parameters
|
|
133
133
|
query_params = opts[:query_params] || {}
|
|
@@ -198,7 +198,7 @@ module DatadogAPIClient::V2
|
|
|
198
198
|
fail ArgumentError, "Missing the required parameter 'pipeline_id' when calling ObservabilityPipelinesAPI.get_pipeline"
|
|
199
199
|
end
|
|
200
200
|
# resource path
|
|
201
|
-
local_var_path = '/api/v2/
|
|
201
|
+
local_var_path = '/api/v2/obs-pipelines/pipelines/{pipeline_id}'.sub('{pipeline_id}', CGI.escape(pipeline_id.to_s).gsub('%2F', '/'))
|
|
202
202
|
|
|
203
203
|
# query parameters
|
|
204
204
|
query_params = opts[:query_params] || {}
|
|
@@ -266,7 +266,7 @@ module DatadogAPIClient::V2
|
|
|
266
266
|
@api_client.config.logger.debug 'Calling API: ObservabilityPipelinesAPI.list_pipelines ...'
|
|
267
267
|
end
|
|
268
268
|
# resource path
|
|
269
|
-
local_var_path = '/api/v2/
|
|
269
|
+
local_var_path = '/api/v2/obs-pipelines/pipelines'
|
|
270
270
|
|
|
271
271
|
# query parameters
|
|
272
272
|
query_params = opts[:query_params] || {}
|
|
@@ -344,7 +344,7 @@ module DatadogAPIClient::V2
|
|
|
344
344
|
fail ArgumentError, "Missing the required parameter 'body' when calling ObservabilityPipelinesAPI.update_pipeline"
|
|
345
345
|
end
|
|
346
346
|
# resource path
|
|
347
|
-
local_var_path = '/api/v2/
|
|
347
|
+
local_var_path = '/api/v2/obs-pipelines/pipelines/{pipeline_id}'.sub('{pipeline_id}', CGI.escape(pipeline_id.to_s).gsub('%2F', '/'))
|
|
348
348
|
|
|
349
349
|
# query parameters
|
|
350
350
|
query_params = opts[:query_params] || {}
|
|
@@ -418,7 +418,7 @@ module DatadogAPIClient::V2
|
|
|
418
418
|
fail ArgumentError, "Missing the required parameter 'body' when calling ObservabilityPipelinesAPI.validate_pipeline"
|
|
419
419
|
end
|
|
420
420
|
# resource path
|
|
421
|
-
local_var_path = '/api/v2/
|
|
421
|
+
local_var_path = '/api/v2/obs-pipelines/pipelines/validate'
|
|
422
422
|
|
|
423
423
|
# query parameters
|
|
424
424
|
query_params = opts[:query_params] || {}
|