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
|
@@ -0,0 +1,261 @@
|
|
|
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
|
+
# Updated bar chart widget.
|
|
21
|
+
class BarChartWidgetRequest
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The log query.
|
|
25
|
+
attr_accessor :apm_query
|
|
26
|
+
|
|
27
|
+
# The log query.
|
|
28
|
+
attr_accessor :audit_query
|
|
29
|
+
|
|
30
|
+
# List of conditional formats.
|
|
31
|
+
attr_accessor :conditional_formats
|
|
32
|
+
|
|
33
|
+
# The log query.
|
|
34
|
+
attr_accessor :event_query
|
|
35
|
+
|
|
36
|
+
# List of formulas that operate on queries.
|
|
37
|
+
attr_accessor :formulas
|
|
38
|
+
|
|
39
|
+
# The log query.
|
|
40
|
+
attr_accessor :log_query
|
|
41
|
+
|
|
42
|
+
# The log query.
|
|
43
|
+
attr_accessor :network_query
|
|
44
|
+
|
|
45
|
+
# The process query to use in the widget.
|
|
46
|
+
attr_accessor :process_query
|
|
47
|
+
|
|
48
|
+
# The log query.
|
|
49
|
+
attr_accessor :profile_metrics_query
|
|
50
|
+
|
|
51
|
+
# Widget query.
|
|
52
|
+
attr_accessor :q
|
|
53
|
+
|
|
54
|
+
# List of queries that can be returned directly or used in formulas.
|
|
55
|
+
attr_accessor :queries
|
|
56
|
+
|
|
57
|
+
# Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets.
|
|
58
|
+
attr_accessor :response_format
|
|
59
|
+
|
|
60
|
+
# The log query.
|
|
61
|
+
attr_accessor :rum_query
|
|
62
|
+
|
|
63
|
+
# The log query.
|
|
64
|
+
attr_accessor :security_query
|
|
65
|
+
|
|
66
|
+
# The controls for sorting the widget.
|
|
67
|
+
attr_accessor :sort
|
|
68
|
+
|
|
69
|
+
# Define request widget style.
|
|
70
|
+
attr_accessor :style
|
|
71
|
+
|
|
72
|
+
attr_accessor :additional_properties
|
|
73
|
+
|
|
74
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
75
|
+
# @!visibility private
|
|
76
|
+
def self.attribute_map
|
|
77
|
+
{
|
|
78
|
+
:'apm_query' => :'apm_query',
|
|
79
|
+
:'audit_query' => :'audit_query',
|
|
80
|
+
:'conditional_formats' => :'conditional_formats',
|
|
81
|
+
:'event_query' => :'event_query',
|
|
82
|
+
:'formulas' => :'formulas',
|
|
83
|
+
:'log_query' => :'log_query',
|
|
84
|
+
:'network_query' => :'network_query',
|
|
85
|
+
:'process_query' => :'process_query',
|
|
86
|
+
:'profile_metrics_query' => :'profile_metrics_query',
|
|
87
|
+
:'q' => :'q',
|
|
88
|
+
:'queries' => :'queries',
|
|
89
|
+
:'response_format' => :'response_format',
|
|
90
|
+
:'rum_query' => :'rum_query',
|
|
91
|
+
:'security_query' => :'security_query',
|
|
92
|
+
:'sort' => :'sort',
|
|
93
|
+
:'style' => :'style'
|
|
94
|
+
}
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Attribute type mapping.
|
|
98
|
+
# @!visibility private
|
|
99
|
+
def self.openapi_types
|
|
100
|
+
{
|
|
101
|
+
:'apm_query' => :'LogQueryDefinition',
|
|
102
|
+
:'audit_query' => :'LogQueryDefinition',
|
|
103
|
+
:'conditional_formats' => :'Array<WidgetConditionalFormat>',
|
|
104
|
+
:'event_query' => :'LogQueryDefinition',
|
|
105
|
+
:'formulas' => :'Array<WidgetFormula>',
|
|
106
|
+
:'log_query' => :'LogQueryDefinition',
|
|
107
|
+
:'network_query' => :'LogQueryDefinition',
|
|
108
|
+
:'process_query' => :'ProcessQueryDefinition',
|
|
109
|
+
:'profile_metrics_query' => :'LogQueryDefinition',
|
|
110
|
+
:'q' => :'String',
|
|
111
|
+
:'queries' => :'Array<FormulaAndFunctionQueryDefinition>',
|
|
112
|
+
:'response_format' => :'FormulaAndFunctionResponseFormat',
|
|
113
|
+
:'rum_query' => :'LogQueryDefinition',
|
|
114
|
+
:'security_query' => :'LogQueryDefinition',
|
|
115
|
+
:'sort' => :'WidgetSortBy',
|
|
116
|
+
:'style' => :'WidgetRequestStyle'
|
|
117
|
+
}
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Initializes the object
|
|
121
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
122
|
+
# @!visibility private
|
|
123
|
+
def initialize(attributes = {})
|
|
124
|
+
if (!attributes.is_a?(Hash))
|
|
125
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::BarChartWidgetRequest` initialize method"
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
self.additional_properties = {}
|
|
129
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
130
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
131
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
132
|
+
self.additional_properties[k.to_sym] = v
|
|
133
|
+
else
|
|
134
|
+
h[k.to_sym] = v
|
|
135
|
+
end
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if attributes.key?(:'apm_query')
|
|
139
|
+
self.apm_query = attributes[:'apm_query']
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if attributes.key?(:'audit_query')
|
|
143
|
+
self.audit_query = attributes[:'audit_query']
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if attributes.key?(:'conditional_formats')
|
|
147
|
+
if (value = attributes[:'conditional_formats']).is_a?(Array)
|
|
148
|
+
self.conditional_formats = value
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
if attributes.key?(:'event_query')
|
|
153
|
+
self.event_query = attributes[:'event_query']
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
if attributes.key?(:'formulas')
|
|
157
|
+
if (value = attributes[:'formulas']).is_a?(Array)
|
|
158
|
+
self.formulas = value
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
if attributes.key?(:'log_query')
|
|
163
|
+
self.log_query = attributes[:'log_query']
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
if attributes.key?(:'network_query')
|
|
167
|
+
self.network_query = attributes[:'network_query']
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
if attributes.key?(:'process_query')
|
|
171
|
+
self.process_query = attributes[:'process_query']
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
if attributes.key?(:'profile_metrics_query')
|
|
175
|
+
self.profile_metrics_query = attributes[:'profile_metrics_query']
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if attributes.key?(:'q')
|
|
179
|
+
self.q = attributes[:'q']
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
if attributes.key?(:'queries')
|
|
183
|
+
if (value = attributes[:'queries']).is_a?(Array)
|
|
184
|
+
self.queries = value
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
if attributes.key?(:'response_format')
|
|
189
|
+
self.response_format = attributes[:'response_format']
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
if attributes.key?(:'rum_query')
|
|
193
|
+
self.rum_query = attributes[:'rum_query']
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
if attributes.key?(:'security_query')
|
|
197
|
+
self.security_query = attributes[:'security_query']
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
if attributes.key?(:'sort')
|
|
201
|
+
self.sort = attributes[:'sort']
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if attributes.key?(:'style')
|
|
205
|
+
self.style = attributes[:'style']
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
210
|
+
# @return [Hash] Returns the object in the form of hash
|
|
211
|
+
# @!visibility private
|
|
212
|
+
def to_hash
|
|
213
|
+
hash = {}
|
|
214
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
215
|
+
value = self.send(attr)
|
|
216
|
+
if value.nil?
|
|
217
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
218
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
hash[param] = _to_hash(value)
|
|
222
|
+
end
|
|
223
|
+
self.additional_properties.each_pair do |attr, value|
|
|
224
|
+
hash[attr] = value
|
|
225
|
+
end
|
|
226
|
+
hash
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# Checks equality by comparing each attribute.
|
|
230
|
+
# @param o [Object] Object to be compared
|
|
231
|
+
# @!visibility private
|
|
232
|
+
def ==(o)
|
|
233
|
+
return true if self.equal?(o)
|
|
234
|
+
self.class == o.class &&
|
|
235
|
+
apm_query == o.apm_query &&
|
|
236
|
+
audit_query == o.audit_query &&
|
|
237
|
+
conditional_formats == o.conditional_formats &&
|
|
238
|
+
event_query == o.event_query &&
|
|
239
|
+
formulas == o.formulas &&
|
|
240
|
+
log_query == o.log_query &&
|
|
241
|
+
network_query == o.network_query &&
|
|
242
|
+
process_query == o.process_query &&
|
|
243
|
+
profile_metrics_query == o.profile_metrics_query &&
|
|
244
|
+
q == o.q &&
|
|
245
|
+
queries == o.queries &&
|
|
246
|
+
response_format == o.response_format &&
|
|
247
|
+
rum_query == o.rum_query &&
|
|
248
|
+
security_query == o.security_query &&
|
|
249
|
+
sort == o.sort &&
|
|
250
|
+
style == o.style &&
|
|
251
|
+
additional_properties == o.additional_properties
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# Calculates hash code according to all attributes.
|
|
255
|
+
# @return [Integer] Hash code
|
|
256
|
+
# @!visibility private
|
|
257
|
+
def hash
|
|
258
|
+
[apm_query, audit_query, conditional_formats, event_query, formulas, log_query, network_query, process_query, profile_metrics_query, q, queries, response_format, rum_query, security_query, sort, style, additional_properties].hash
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
# Bar chart widget scaling definition.
|
|
21
|
+
class BarChartWidgetScaling
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
ABSOLUTE = "absolute".freeze
|
|
25
|
+
RELATIVE = "relative".freeze
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,133 @@
|
|
|
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
|
+
# Bar chart widget stacked display options.
|
|
21
|
+
class BarChartWidgetStacked
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Bar chart widget stacked legend behavior.
|
|
25
|
+
attr_accessor :legend
|
|
26
|
+
|
|
27
|
+
# Bar chart widget stacked display type.
|
|
28
|
+
attr_reader :type
|
|
29
|
+
|
|
30
|
+
attr_accessor :additional_properties
|
|
31
|
+
|
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
|
+
# @!visibility private
|
|
34
|
+
def self.attribute_map
|
|
35
|
+
{
|
|
36
|
+
:'legend' => :'legend',
|
|
37
|
+
:'type' => :'type'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
# @!visibility private
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'legend' => :'BarChartWidgetLegend',
|
|
46
|
+
:'type' => :'BarChartWidgetStackedType'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
52
|
+
# @!visibility private
|
|
53
|
+
def initialize(attributes = {})
|
|
54
|
+
if (!attributes.is_a?(Hash))
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::BarChartWidgetStacked` initialize method"
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
self.additional_properties = {}
|
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
62
|
+
self.additional_properties[k.to_sym] = v
|
|
63
|
+
else
|
|
64
|
+
h[k.to_sym] = v
|
|
65
|
+
end
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if attributes.key?(:'legend')
|
|
69
|
+
self.legend = attributes[:'legend']
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'type')
|
|
73
|
+
self.type = attributes[:'type']
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Check to see if the all the properties in the model are valid
|
|
78
|
+
# @return true if the model is valid
|
|
79
|
+
# @!visibility private
|
|
80
|
+
def valid?
|
|
81
|
+
return false if @type.nil?
|
|
82
|
+
true
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Custom attribute writer method with validation
|
|
86
|
+
# @param type [Object] Object to be assigned
|
|
87
|
+
# @!visibility private
|
|
88
|
+
def type=(type)
|
|
89
|
+
if type.nil?
|
|
90
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
|
91
|
+
end
|
|
92
|
+
@type = type
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
96
|
+
# @return [Hash] Returns the object in the form of hash
|
|
97
|
+
# @!visibility private
|
|
98
|
+
def to_hash
|
|
99
|
+
hash = {}
|
|
100
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
101
|
+
value = self.send(attr)
|
|
102
|
+
if value.nil?
|
|
103
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
104
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
hash[param] = _to_hash(value)
|
|
108
|
+
end
|
|
109
|
+
self.additional_properties.each_pair do |attr, value|
|
|
110
|
+
hash[attr] = value
|
|
111
|
+
end
|
|
112
|
+
hash
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Checks equality by comparing each attribute.
|
|
116
|
+
# @param o [Object] Object to be compared
|
|
117
|
+
# @!visibility private
|
|
118
|
+
def ==(o)
|
|
119
|
+
return true if self.equal?(o)
|
|
120
|
+
self.class == o.class &&
|
|
121
|
+
legend == o.legend &&
|
|
122
|
+
type == o.type &&
|
|
123
|
+
additional_properties == o.additional_properties
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Calculates hash code according to all attributes.
|
|
127
|
+
# @return [Integer] Hash code
|
|
128
|
+
# @!visibility private
|
|
129
|
+
def hash
|
|
130
|
+
[legend, type, additional_properties].hash
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
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
|
+
# Bar chart widget stacked display type.
|
|
21
|
+
class BarChartWidgetStackedType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
STACKED = "stacked".freeze
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,125 @@
|
|
|
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
|
+
# Style customization for a bar chart widget.
|
|
21
|
+
class BarChartWidgetStyle
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Bar chart widget display options.
|
|
25
|
+
attr_accessor :display
|
|
26
|
+
|
|
27
|
+
# Color palette to apply to the widget.
|
|
28
|
+
attr_accessor :palette
|
|
29
|
+
|
|
30
|
+
# Bar chart widget scaling definition.
|
|
31
|
+
attr_accessor :scaling
|
|
32
|
+
|
|
33
|
+
attr_accessor :additional_properties
|
|
34
|
+
|
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
|
+
# @!visibility private
|
|
37
|
+
def self.attribute_map
|
|
38
|
+
{
|
|
39
|
+
:'display' => :'display',
|
|
40
|
+
:'palette' => :'palette',
|
|
41
|
+
:'scaling' => :'scaling'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
# @!visibility private
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'display' => :'BarChartWidgetDisplay',
|
|
50
|
+
:'palette' => :'String',
|
|
51
|
+
:'scaling' => :'BarChartWidgetScaling'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Initializes the object
|
|
56
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
57
|
+
# @!visibility private
|
|
58
|
+
def initialize(attributes = {})
|
|
59
|
+
if (!attributes.is_a?(Hash))
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::BarChartWidgetStyle` initialize method"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
self.additional_properties = {}
|
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
67
|
+
self.additional_properties[k.to_sym] = v
|
|
68
|
+
else
|
|
69
|
+
h[k.to_sym] = v
|
|
70
|
+
end
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'display')
|
|
74
|
+
self.display = attributes[:'display']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'palette')
|
|
78
|
+
self.palette = attributes[:'palette']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'scaling')
|
|
82
|
+
self.scaling = attributes[:'scaling']
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
87
|
+
# @return [Hash] Returns the object in the form of hash
|
|
88
|
+
# @!visibility private
|
|
89
|
+
def to_hash
|
|
90
|
+
hash = {}
|
|
91
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
92
|
+
value = self.send(attr)
|
|
93
|
+
if value.nil?
|
|
94
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
95
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
hash[param] = _to_hash(value)
|
|
99
|
+
end
|
|
100
|
+
self.additional_properties.each_pair do |attr, value|
|
|
101
|
+
hash[attr] = value
|
|
102
|
+
end
|
|
103
|
+
hash
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Checks equality by comparing each attribute.
|
|
107
|
+
# @param o [Object] Object to be compared
|
|
108
|
+
# @!visibility private
|
|
109
|
+
def ==(o)
|
|
110
|
+
return true if self.equal?(o)
|
|
111
|
+
self.class == o.class &&
|
|
112
|
+
display == o.display &&
|
|
113
|
+
palette == o.palette &&
|
|
114
|
+
scaling == o.scaling &&
|
|
115
|
+
additional_properties == o.additional_properties
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Calculates hash code according to all attributes.
|
|
119
|
+
# @return [Integer] Hash code
|
|
120
|
+
# @!visibility private
|
|
121
|
+
def hash
|
|
122
|
+
[display, palette, scaling, additional_properties].hash
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
@@ -30,6 +30,9 @@ module DatadogAPIClient::V1
|
|
|
30
30
|
# The log query.
|
|
31
31
|
attr_accessor :event_query
|
|
32
32
|
|
|
33
|
+
# List of formulas that operate on queries.
|
|
34
|
+
attr_accessor :formulas
|
|
35
|
+
|
|
33
36
|
# The log query.
|
|
34
37
|
attr_accessor :log_query
|
|
35
38
|
|
|
@@ -45,12 +48,18 @@ module DatadogAPIClient::V1
|
|
|
45
48
|
# Widget query.
|
|
46
49
|
attr_accessor :q
|
|
47
50
|
|
|
51
|
+
# List of queries that can be returned directly or used in formulas.
|
|
52
|
+
attr_accessor :queries
|
|
53
|
+
|
|
48
54
|
# Query definition for Distribution Widget Histogram Request
|
|
49
55
|
attr_accessor :query
|
|
50
56
|
|
|
51
57
|
# Request type for the histogram request.
|
|
52
58
|
attr_accessor :request_type
|
|
53
59
|
|
|
60
|
+
# Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets.
|
|
61
|
+
attr_accessor :response_format
|
|
62
|
+
|
|
54
63
|
# The log query.
|
|
55
64
|
attr_accessor :rum_query
|
|
56
65
|
|
|
@@ -69,13 +78,16 @@ module DatadogAPIClient::V1
|
|
|
69
78
|
:'apm_query' => :'apm_query',
|
|
70
79
|
:'apm_stats_query' => :'apm_stats_query',
|
|
71
80
|
:'event_query' => :'event_query',
|
|
81
|
+
:'formulas' => :'formulas',
|
|
72
82
|
:'log_query' => :'log_query',
|
|
73
83
|
:'network_query' => :'network_query',
|
|
74
84
|
:'process_query' => :'process_query',
|
|
75
85
|
:'profile_metrics_query' => :'profile_metrics_query',
|
|
76
86
|
:'q' => :'q',
|
|
87
|
+
:'queries' => :'queries',
|
|
77
88
|
:'query' => :'query',
|
|
78
89
|
:'request_type' => :'request_type',
|
|
90
|
+
:'response_format' => :'response_format',
|
|
79
91
|
:'rum_query' => :'rum_query',
|
|
80
92
|
:'security_query' => :'security_query',
|
|
81
93
|
:'style' => :'style'
|
|
@@ -89,13 +101,16 @@ module DatadogAPIClient::V1
|
|
|
89
101
|
:'apm_query' => :'LogQueryDefinition',
|
|
90
102
|
:'apm_stats_query' => :'ApmStatsQueryDefinition',
|
|
91
103
|
:'event_query' => :'LogQueryDefinition',
|
|
104
|
+
:'formulas' => :'Array<WidgetFormula>',
|
|
92
105
|
:'log_query' => :'LogQueryDefinition',
|
|
93
106
|
:'network_query' => :'LogQueryDefinition',
|
|
94
107
|
:'process_query' => :'ProcessQueryDefinition',
|
|
95
108
|
:'profile_metrics_query' => :'LogQueryDefinition',
|
|
96
109
|
:'q' => :'String',
|
|
110
|
+
:'queries' => :'Array<FormulaAndFunctionQueryDefinition>',
|
|
97
111
|
:'query' => :'DistributionWidgetHistogramRequestQuery',
|
|
98
|
-
:'request_type' => :'
|
|
112
|
+
:'request_type' => :'WidgetHistogramRequestType',
|
|
113
|
+
:'response_format' => :'FormulaAndFunctionResponseFormat',
|
|
99
114
|
:'rum_query' => :'LogQueryDefinition',
|
|
100
115
|
:'security_query' => :'LogQueryDefinition',
|
|
101
116
|
:'style' => :'WidgetStyle'
|
|
@@ -132,6 +147,12 @@ module DatadogAPIClient::V1
|
|
|
132
147
|
self.event_query = attributes[:'event_query']
|
|
133
148
|
end
|
|
134
149
|
|
|
150
|
+
if attributes.key?(:'formulas')
|
|
151
|
+
if (value = attributes[:'formulas']).is_a?(Array)
|
|
152
|
+
self.formulas = value
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
135
156
|
if attributes.key?(:'log_query')
|
|
136
157
|
self.log_query = attributes[:'log_query']
|
|
137
158
|
end
|
|
@@ -152,6 +173,12 @@ module DatadogAPIClient::V1
|
|
|
152
173
|
self.q = attributes[:'q']
|
|
153
174
|
end
|
|
154
175
|
|
|
176
|
+
if attributes.key?(:'queries')
|
|
177
|
+
if (value = attributes[:'queries']).is_a?(Array)
|
|
178
|
+
self.queries = value
|
|
179
|
+
end
|
|
180
|
+
end
|
|
181
|
+
|
|
155
182
|
if attributes.key?(:'query')
|
|
156
183
|
self.query = attributes[:'query']
|
|
157
184
|
end
|
|
@@ -160,6 +187,10 @@ module DatadogAPIClient::V1
|
|
|
160
187
|
self.request_type = attributes[:'request_type']
|
|
161
188
|
end
|
|
162
189
|
|
|
190
|
+
if attributes.key?(:'response_format')
|
|
191
|
+
self.response_format = attributes[:'response_format']
|
|
192
|
+
end
|
|
193
|
+
|
|
163
194
|
if attributes.key?(:'rum_query')
|
|
164
195
|
self.rum_query = attributes[:'rum_query']
|
|
165
196
|
end
|
|
@@ -202,13 +233,16 @@ module DatadogAPIClient::V1
|
|
|
202
233
|
apm_query == o.apm_query &&
|
|
203
234
|
apm_stats_query == o.apm_stats_query &&
|
|
204
235
|
event_query == o.event_query &&
|
|
236
|
+
formulas == o.formulas &&
|
|
205
237
|
log_query == o.log_query &&
|
|
206
238
|
network_query == o.network_query &&
|
|
207
239
|
process_query == o.process_query &&
|
|
208
240
|
profile_metrics_query == o.profile_metrics_query &&
|
|
209
241
|
q == o.q &&
|
|
242
|
+
queries == o.queries &&
|
|
210
243
|
query == o.query &&
|
|
211
244
|
request_type == o.request_type &&
|
|
245
|
+
response_format == o.response_format &&
|
|
212
246
|
rum_query == o.rum_query &&
|
|
213
247
|
security_query == o.security_query &&
|
|
214
248
|
style == o.style &&
|
|
@@ -219,7 +253,7 @@ module DatadogAPIClient::V1
|
|
|
219
253
|
# @return [Integer] Hash code
|
|
220
254
|
# @!visibility private
|
|
221
255
|
def hash
|
|
222
|
-
[apm_query, apm_stats_query, event_query, log_query, network_query, process_query, profile_metrics_query, q, query, request_type, rum_query, security_query, style, additional_properties].hash
|
|
256
|
+
[apm_query, apm_stats_query, event_query, formulas, log_query, network_query, process_query, profile_metrics_query, q, queries, query, request_type, response_format, rum_query, security_query, style, additional_properties].hash
|
|
223
257
|
end
|
|
224
258
|
end
|
|
225
259
|
end
|