datadog_api_client 2.23.0 → 2.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +666 -156
- data/.generator/schemas/v2/openapi.yaml +774 -89
- data/.generator/src/generator/replacement.json +1 -1
- data/.github/CODEOWNERS +5 -5
- data/CHANGELOG.md +26 -0
- data/examples/v1/dashboards/CreateDashboard_1213075383.rb +10 -4
- data/examples/v1/dashboards/CreateDashboard_2336428357.rb +10 -4
- data/examples/v1/dashboards/CreateDashboard_2563642929.rb +66 -0
- data/examples/v1/dashboards/CreateDashboard_3669695268.rb +10 -4
- data/examples/v1/dashboards/CreateDashboard_915214113.rb +10 -4
- data/examples/v1/monitors/UpdateMonitor.rb +1 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1241981394.rb +1 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +9 -4
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +15 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1987645492.rb +134 -0
- data/examples/v2/api-management/ListAPIs.rb +8 -0
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule.rb +3 -0
- data/examples/v2/csm-threats/UpdateCloudWorkloadSecurityAgentRule.rb +1 -0
- data/examples/v2/organizations/GetOrgConfig.rb +5 -0
- data/examples/v2/organizations/ListOrgConfigs.rb +5 -0
- data/examples/v2/organizations/UpdateOrgConfig.rb +14 -0
- data/examples/v2/security-monitoring/TestExistingSecurityMonitoringRule.rb +21 -0
- data/examples/v2/security-monitoring/TestSecurityMonitoringRule.rb +58 -0
- data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule.rb +1 -1
- data/lib/datadog_api_client/configuration.rb +1 -0
- data/lib/datadog_api_client/inflector.rb +37 -1
- data/lib/datadog_api_client/v1/api/monitors_api.rb +1 -1
- data/lib/datadog_api_client/v1/models/event.rb +1 -1
- data/lib/datadog_api_client/v1/models/formula_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/geomap_widget_request.rb +14 -4
- data/lib/datadog_api_client/v1/models/group_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/monitor.rb +1 -16
- data/lib/datadog_api_client/v1/models/monitor_update_request.rb +2 -23
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_api_step.rb +37 -180
- data/lib/datadog_api_client/v1/models/synthetics_api_test_step.rb +206 -0
- data/lib/datadog_api_client/v1/models/{synthetics_api_step_subtype.rb → synthetics_api_test_step_subtype.rb} +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_api_wait_step.rb +148 -0
- data/lib/datadog_api_client/v1/models/synthetics_api_wait_step_subtype.rb +26 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_operator.rb +28 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_target.rb +140 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_body_hash_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target_target.rb +11 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb +0 -4
- data/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb +22 -1
- data/lib/datadog_api_client/v1/models/table_widget_request.rb +14 -4
- data/lib/datadog_api_client/v1/models/toplist_widget_request.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb +7 -7
- data/lib/datadog_api_client/v1/models/usage_rum_sessions_response.rb +2 -2
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +168 -18
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +169 -19
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +171 -21
- data/lib/datadog_api_client/v1/models/widget_formula_sort.rb +144 -0
- data/lib/datadog_api_client/v1/models/widget_group_sort.rb +140 -0
- data/lib/datadog_api_client/v1/models/widget_sort_by.rb +110 -0
- data/lib/datadog_api_client/v1/models/widget_sort_order_by.rb +63 -0
- data/lib/datadog_api_client/v2/api/api_management_api.rb +80 -2
- data/lib/datadog_api_client/v2/api/organizations_api.rb +197 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +140 -1
- data/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb +240 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/events_group_by.rb +5 -4
- data/lib/datadog_api_client/v2/models/list_apis_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/list_apis_response_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/list_apis_response_data_attributes.rb +80 -0
- data/lib/datadog_api_client/v2/models/list_apis_response_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/list_apis_response_meta_pagination.rb +100 -0
- data/lib/datadog_api_client/v2/models/org_config_get_response.rb +98 -0
- data/lib/datadog_api_client/v2/models/org_config_list_response.rb +100 -0
- data/lib/datadog_api_client/v2/models/org_config_read.rb +140 -0
- data/lib/datadog_api_client/v2/models/org_config_read_attributes.rb +179 -0
- data/lib/datadog_api_client/v2/models/org_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/org_config_write.rb +119 -0
- data/lib/datadog_api_client/v2/models/org_config_write_attributes.rb +98 -0
- data/lib/datadog_api_client/v2/models/org_config_write_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload.rb +118 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_query_payload_data.rb +120 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_test_payload.rb +62 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_test_request.rb +92 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_test_response.rb +84 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_test.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_validate_payload.rb +64 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb +251 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb +263 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb +263 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +47 -3
|
@@ -143,6 +143,7 @@ module DatadogAPIClient
|
|
|
143
143
|
"v1.formula_and_function_slo_measure" => "FormulaAndFunctionSLOMeasure",
|
|
144
144
|
"v1.formula_and_function_slo_query_definition" => "FormulaAndFunctionSLOQueryDefinition",
|
|
145
145
|
"v1.formula_and_function_slo_query_type" => "FormulaAndFunctionSLOQueryType",
|
|
146
|
+
"v1.formula_type" => "FormulaType",
|
|
146
147
|
"v1.free_text_widget_definition" => "FreeTextWidgetDefinition",
|
|
147
148
|
"v1.free_text_widget_definition_type" => "FreeTextWidgetDefinitionType",
|
|
148
149
|
"v1.funnel_query" => "FunnelQuery",
|
|
@@ -159,6 +160,7 @@ module DatadogAPIClient
|
|
|
159
160
|
"v1.geomap_widget_definition_view" => "GeomapWidgetDefinitionView",
|
|
160
161
|
"v1.geomap_widget_request" => "GeomapWidgetRequest",
|
|
161
162
|
"v1.graph_snapshot" => "GraphSnapshot",
|
|
163
|
+
"v1.group_type" => "GroupType",
|
|
162
164
|
"v1.group_widget_definition" => "GroupWidgetDefinition",
|
|
163
165
|
"v1.group_widget_definition_type" => "GroupWidgetDefinitionType",
|
|
164
166
|
"v1.heat_map_widget_definition" => "HeatMapWidgetDefinition",
|
|
@@ -534,7 +536,6 @@ module DatadogAPIClient
|
|
|
534
536
|
"v1.sunburst_widget_legend_table_type" => "SunburstWidgetLegendTableType",
|
|
535
537
|
"v1.sunburst_widget_request" => "SunburstWidgetRequest",
|
|
536
538
|
"v1.synthetics_api_step" => "SyntheticsAPIStep",
|
|
537
|
-
"v1.synthetics_api_step_subtype" => "SyntheticsAPIStepSubtype",
|
|
538
539
|
"v1.synthetics_api_test" => "SyntheticsAPITest",
|
|
539
540
|
"v1.synthetics_api_test_config" => "SyntheticsAPITestConfig",
|
|
540
541
|
"v1.synthetics_api_test_failure_code" => "SyntheticsApiTestFailureCode",
|
|
@@ -544,8 +545,15 @@ module DatadogAPIClient
|
|
|
544
545
|
"v1.synthetics_api_test_result_full_check" => "SyntheticsAPITestResultFullCheck",
|
|
545
546
|
"v1.synthetics_api_test_result_short" => "SyntheticsAPITestResultShort",
|
|
546
547
|
"v1.synthetics_api_test_result_short_result" => "SyntheticsAPITestResultShortResult",
|
|
548
|
+
"v1.synthetics_api_test_step" => "SyntheticsAPITestStep",
|
|
549
|
+
"v1.synthetics_api_test_step_subtype" => "SyntheticsAPITestStepSubtype",
|
|
547
550
|
"v1.synthetics_api_test_type" => "SyntheticsAPITestType",
|
|
551
|
+
"v1.synthetics_api_wait_step" => "SyntheticsAPIWaitStep",
|
|
552
|
+
"v1.synthetics_api_wait_step_subtype" => "SyntheticsAPIWaitStepSubtype",
|
|
548
553
|
"v1.synthetics_assertion" => "SyntheticsAssertion",
|
|
554
|
+
"v1.synthetics_assertion_body_hash_operator" => "SyntheticsAssertionBodyHashOperator",
|
|
555
|
+
"v1.synthetics_assertion_body_hash_target" => "SyntheticsAssertionBodyHashTarget",
|
|
556
|
+
"v1.synthetics_assertion_body_hash_type" => "SyntheticsAssertionBodyHashType",
|
|
549
557
|
"v1.synthetics_assertion_json_path_operator" => "SyntheticsAssertionJSONPathOperator",
|
|
550
558
|
"v1.synthetics_assertion_json_path_target" => "SyntheticsAssertionJSONPathTarget",
|
|
551
559
|
"v1.synthetics_assertion_json_path_target_target" => "SyntheticsAssertionJSONPathTargetTarget",
|
|
@@ -819,8 +827,10 @@ module DatadogAPIClient
|
|
|
819
827
|
"v1.widget_field_sort" => "WidgetFieldSort",
|
|
820
828
|
"v1.widget_formula" => "WidgetFormula",
|
|
821
829
|
"v1.widget_formula_limit" => "WidgetFormulaLimit",
|
|
830
|
+
"v1.widget_formula_sort" => "WidgetFormulaSort",
|
|
822
831
|
"v1.widget_formula_style" => "WidgetFormulaStyle",
|
|
823
832
|
"v1.widget_grouping" => "WidgetGrouping",
|
|
833
|
+
"v1.widget_group_sort" => "WidgetGroupSort",
|
|
824
834
|
"v1.widget_horizontal_align" => "WidgetHorizontalAlign",
|
|
825
835
|
"v1.widget_image_sizing" => "WidgetImageSizing",
|
|
826
836
|
"v1.widget_layout" => "WidgetLayout",
|
|
@@ -840,6 +850,8 @@ module DatadogAPIClient
|
|
|
840
850
|
"v1.widget_service_summary_display_format" => "WidgetServiceSummaryDisplayFormat",
|
|
841
851
|
"v1.widget_size_format" => "WidgetSizeFormat",
|
|
842
852
|
"v1.widget_sort" => "WidgetSort",
|
|
853
|
+
"v1.widget_sort_by" => "WidgetSortBy",
|
|
854
|
+
"v1.widget_sort_order_by" => "WidgetSortOrderBy",
|
|
843
855
|
"v1.widget_style" => "WidgetStyle",
|
|
844
856
|
"v1.widget_summary_type" => "WidgetSummaryType",
|
|
845
857
|
"v1.widget_text_align" => "WidgetTextAlign",
|
|
@@ -1058,6 +1070,7 @@ module DatadogAPIClient
|
|
|
1058
1070
|
"v2.cloud_configuration_rule_compliance_signal_options" => "CloudConfigurationRuleComplianceSignalOptions",
|
|
1059
1071
|
"v2.cloud_configuration_rule_create_payload" => "CloudConfigurationRuleCreatePayload",
|
|
1060
1072
|
"v2.cloud_configuration_rule_options" => "CloudConfigurationRuleOptions",
|
|
1073
|
+
"v2.cloud_configuration_rule_payload" => "CloudConfigurationRulePayload",
|
|
1061
1074
|
"v2.cloud_configuration_rule_type" => "CloudConfigurationRuleType",
|
|
1062
1075
|
"v2.cloud_cost_activity" => "CloudCostActivity",
|
|
1063
1076
|
"v2.cloud_cost_activity_attributes" => "CloudCostActivityAttributes",
|
|
@@ -1479,6 +1492,11 @@ module DatadogAPIClient
|
|
|
1479
1492
|
"v2.jira_issue_result" => "JiraIssueResult",
|
|
1480
1493
|
"v2.jsonapi_error_item" => "JSONAPIErrorItem",
|
|
1481
1494
|
"v2.jsonapi_error_response" => "JSONAPIErrorResponse",
|
|
1495
|
+
"v2.list_apis_response" => "ListAPIsResponse",
|
|
1496
|
+
"v2.list_apis_response_data" => "ListAPIsResponseData",
|
|
1497
|
+
"v2.list_apis_response_data_attributes" => "ListAPIsResponseDataAttributes",
|
|
1498
|
+
"v2.list_apis_response_meta" => "ListAPIsResponseMeta",
|
|
1499
|
+
"v2.list_apis_response_meta_pagination" => "ListAPIsResponseMetaPagination",
|
|
1482
1500
|
"v2.list_application_keys_response" => "ListApplicationKeysResponse",
|
|
1483
1501
|
"v2.list_downtimes_response" => "ListDowntimesResponse",
|
|
1484
1502
|
"v2.list_findings_meta" => "ListFindingsMeta",
|
|
@@ -1708,6 +1726,14 @@ module DatadogAPIClient
|
|
|
1708
1726
|
"v2.organization" => "Organization",
|
|
1709
1727
|
"v2.organization_attributes" => "OrganizationAttributes",
|
|
1710
1728
|
"v2.organizations_type" => "OrganizationsType",
|
|
1729
|
+
"v2.org_config_get_response" => "OrgConfigGetResponse",
|
|
1730
|
+
"v2.org_config_list_response" => "OrgConfigListResponse",
|
|
1731
|
+
"v2.org_config_read" => "OrgConfigRead",
|
|
1732
|
+
"v2.org_config_read_attributes" => "OrgConfigReadAttributes",
|
|
1733
|
+
"v2.org_config_type" => "OrgConfigType",
|
|
1734
|
+
"v2.org_config_write" => "OrgConfigWrite",
|
|
1735
|
+
"v2.org_config_write_attributes" => "OrgConfigWriteAttributes",
|
|
1736
|
+
"v2.org_config_write_request" => "OrgConfigWriteRequest",
|
|
1711
1737
|
"v2.outcomes_batch_attributes" => "OutcomesBatchAttributes",
|
|
1712
1738
|
"v2.outcomes_batch_request" => "OutcomesBatchRequest",
|
|
1713
1739
|
"v2.outcomes_batch_request_data" => "OutcomesBatchRequestData",
|
|
@@ -1956,12 +1982,19 @@ module DatadogAPIClient
|
|
|
1956
1982
|
"v2.security_monitoring_rule_options" => "SecurityMonitoringRuleOptions",
|
|
1957
1983
|
"v2.security_monitoring_rule_query" => "SecurityMonitoringRuleQuery",
|
|
1958
1984
|
"v2.security_monitoring_rule_query_aggregation" => "SecurityMonitoringRuleQueryAggregation",
|
|
1985
|
+
"v2.security_monitoring_rule_query_payload" => "SecurityMonitoringRuleQueryPayload",
|
|
1986
|
+
"v2.security_monitoring_rule_query_payload_data" => "SecurityMonitoringRuleQueryPayloadData",
|
|
1959
1987
|
"v2.security_monitoring_rule_response" => "SecurityMonitoringRuleResponse",
|
|
1960
1988
|
"v2.security_monitoring_rule_severity" => "SecurityMonitoringRuleSeverity",
|
|
1989
|
+
"v2.security_monitoring_rule_test_payload" => "SecurityMonitoringRuleTestPayload",
|
|
1990
|
+
"v2.security_monitoring_rule_test_request" => "SecurityMonitoringRuleTestRequest",
|
|
1991
|
+
"v2.security_monitoring_rule_test_response" => "SecurityMonitoringRuleTestResponse",
|
|
1961
1992
|
"v2.security_monitoring_rule_third_party_options" => "SecurityMonitoringRuleThirdPartyOptions",
|
|
1962
1993
|
"v2.security_monitoring_rule_type_create" => "SecurityMonitoringRuleTypeCreate",
|
|
1963
1994
|
"v2.security_monitoring_rule_type_read" => "SecurityMonitoringRuleTypeRead",
|
|
1995
|
+
"v2.security_monitoring_rule_type_test" => "SecurityMonitoringRuleTypeTest",
|
|
1964
1996
|
"v2.security_monitoring_rule_update_payload" => "SecurityMonitoringRuleUpdatePayload",
|
|
1997
|
+
"v2.security_monitoring_rule_validate_payload" => "SecurityMonitoringRuleValidatePayload",
|
|
1965
1998
|
"v2.security_monitoring_signal" => "SecurityMonitoringSignal",
|
|
1966
1999
|
"v2.security_monitoring_signal_archive_reason" => "SecurityMonitoringSignalArchiveReason",
|
|
1967
2000
|
"v2.security_monitoring_signal_assignee_update_attributes" => "SecurityMonitoringSignalAssigneeUpdateAttributes",
|
|
@@ -1977,6 +2010,7 @@ module DatadogAPIClient
|
|
|
1977
2010
|
"v2.security_monitoring_signal_metadata_type" => "SecurityMonitoringSignalMetadataType",
|
|
1978
2011
|
"v2.security_monitoring_signal_response" => "SecurityMonitoringSignalResponse",
|
|
1979
2012
|
"v2.security_monitoring_signal_rule_create_payload" => "SecurityMonitoringSignalRuleCreatePayload",
|
|
2013
|
+
"v2.security_monitoring_signal_rule_payload" => "SecurityMonitoringSignalRulePayload",
|
|
1980
2014
|
"v2.security_monitoring_signal_rule_query" => "SecurityMonitoringSignalRuleQuery",
|
|
1981
2015
|
"v2.security_monitoring_signal_rule_response" => "SecurityMonitoringSignalRuleResponse",
|
|
1982
2016
|
"v2.security_monitoring_signal_rule_response_query" => "SecurityMonitoringSignalRuleResponseQuery",
|
|
@@ -1995,8 +2029,10 @@ module DatadogAPIClient
|
|
|
1995
2029
|
"v2.security_monitoring_signal_triage_update_response" => "SecurityMonitoringSignalTriageUpdateResponse",
|
|
1996
2030
|
"v2.security_monitoring_signal_type" => "SecurityMonitoringSignalType",
|
|
1997
2031
|
"v2.security_monitoring_standard_rule_create_payload" => "SecurityMonitoringStandardRuleCreatePayload",
|
|
2032
|
+
"v2.security_monitoring_standard_rule_payload" => "SecurityMonitoringStandardRulePayload",
|
|
1998
2033
|
"v2.security_monitoring_standard_rule_query" => "SecurityMonitoringStandardRuleQuery",
|
|
1999
2034
|
"v2.security_monitoring_standard_rule_response" => "SecurityMonitoringStandardRuleResponse",
|
|
2035
|
+
"v2.security_monitoring_standard_rule_test_payload" => "SecurityMonitoringStandardRuleTestPayload",
|
|
2000
2036
|
"v2.security_monitoring_suppression" => "SecurityMonitoringSuppression",
|
|
2001
2037
|
"v2.security_monitoring_suppression_attributes" => "SecurityMonitoringSuppressionAttributes",
|
|
2002
2038
|
"v2.security_monitoring_suppression_create_attributes" => "SecurityMonitoringSuppressionCreateAttributes",
|
|
@@ -585,7 +585,7 @@ module DatadogAPIClient::V1
|
|
|
585
585
|
# Search and filter your monitor groups details.
|
|
586
586
|
#
|
|
587
587
|
# @param opts [Hash] the optional parameters
|
|
588
|
-
# @option opts [String] :query After entering a search query
|
|
588
|
+
# @option opts [String] :query After entering a search query on the [Triggered Monitors page][1], use the query parameter value in the URL of the page as a value for this parameter. For more information, see the [Manage Monitors documentation][2]. The query can contain any number of space-separated monitor attributes, for instance: `query="type:metric group_status:alert"`. [1]: https://app.datadoghq.com/monitors/triggered [2]: /monitors/manage/#triggered-monitors
|
|
589
589
|
# @option opts [Integer] :page Page to start paginating from.
|
|
590
590
|
# @option opts [Integer] :per_page Number of monitors to return per page.
|
|
591
591
|
# @option opts [String] :sort String for sort order, composed of field and sort order separate by a comma, for example `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: * `name` * `status` * `tags`
|
|
@@ -27,7 +27,7 @@ module DatadogAPIClient::V1
|
|
|
27
27
|
attr_accessor :alert_type
|
|
28
28
|
|
|
29
29
|
# POSIX timestamp of the event. Must be sent as an integer (that is no quotes).
|
|
30
|
-
# Limited to events
|
|
30
|
+
# Limited to events up to 18 hours in the past and two hours in the future.
|
|
31
31
|
attr_accessor :date_happened
|
|
32
32
|
|
|
33
33
|
# A device name.
|
|
@@ -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
|
+
# Set the sort type to formula.
|
|
21
|
+
class FormulaType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
FORMULA = "formula".freeze
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -48,6 +48,9 @@ module DatadogAPIClient::V1
|
|
|
48
48
|
# The log query.
|
|
49
49
|
attr_accessor :security_query
|
|
50
50
|
|
|
51
|
+
# The controls for sorting the widget.
|
|
52
|
+
attr_accessor :sort
|
|
53
|
+
|
|
51
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
55
|
# @!visibility private
|
|
53
56
|
def self.attribute_map
|
|
@@ -60,7 +63,8 @@ module DatadogAPIClient::V1
|
|
|
60
63
|
:'query' => :'query',
|
|
61
64
|
:'response_format' => :'response_format',
|
|
62
65
|
:'rum_query' => :'rum_query',
|
|
63
|
-
:'security_query' => :'security_query'
|
|
66
|
+
:'security_query' => :'security_query',
|
|
67
|
+
:'sort' => :'sort'
|
|
64
68
|
}
|
|
65
69
|
end
|
|
66
70
|
|
|
@@ -76,7 +80,8 @@ module DatadogAPIClient::V1
|
|
|
76
80
|
:'query' => :'ListStreamQuery',
|
|
77
81
|
:'response_format' => :'FormulaAndFunctionResponseFormat',
|
|
78
82
|
:'rum_query' => :'LogQueryDefinition',
|
|
79
|
-
:'security_query' => :'LogQueryDefinition'
|
|
83
|
+
:'security_query' => :'LogQueryDefinition',
|
|
84
|
+
:'sort' => :'WidgetSortBy'
|
|
80
85
|
}
|
|
81
86
|
end
|
|
82
87
|
|
|
@@ -137,6 +142,10 @@ module DatadogAPIClient::V1
|
|
|
137
142
|
if attributes.key?(:'security_query')
|
|
138
143
|
self.security_query = attributes[:'security_query']
|
|
139
144
|
end
|
|
145
|
+
|
|
146
|
+
if attributes.key?(:'sort')
|
|
147
|
+
self.sort = attributes[:'sort']
|
|
148
|
+
end
|
|
140
149
|
end
|
|
141
150
|
|
|
142
151
|
# Checks equality by comparing each attribute.
|
|
@@ -153,14 +162,15 @@ module DatadogAPIClient::V1
|
|
|
153
162
|
query == o.query &&
|
|
154
163
|
response_format == o.response_format &&
|
|
155
164
|
rum_query == o.rum_query &&
|
|
156
|
-
security_query == o.security_query
|
|
165
|
+
security_query == o.security_query &&
|
|
166
|
+
sort == o.sort
|
|
157
167
|
end
|
|
158
168
|
|
|
159
169
|
# Calculates hash code according to all attributes.
|
|
160
170
|
# @return [Integer] Hash code
|
|
161
171
|
# @!visibility private
|
|
162
172
|
def hash
|
|
163
|
-
[columns, formulas, log_query, q, queries, query, response_format, rum_query, security_query].hash
|
|
173
|
+
[columns, formulas, log_query, q, queries, query, response_format, rum_query, security_query, sort].hash
|
|
164
174
|
end
|
|
165
175
|
end
|
|
166
176
|
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
|
+
# Set the sort type to group.
|
|
21
|
+
class GroupType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
GROUP = "group".freeze
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -55,7 +55,7 @@ module DatadogAPIClient::V1
|
|
|
55
55
|
attr_accessor :overall_state
|
|
56
56
|
|
|
57
57
|
# Integer from 1 (high) to 5 (low) indicating alert severity.
|
|
58
|
-
|
|
58
|
+
attr_accessor :priority
|
|
59
59
|
|
|
60
60
|
# The monitor query.
|
|
61
61
|
attr_reader :query
|
|
@@ -225,26 +225,11 @@ module DatadogAPIClient::V1
|
|
|
225
225
|
# @return true if the model is valid
|
|
226
226
|
# @!visibility private
|
|
227
227
|
def valid?
|
|
228
|
-
return false if !@priority.nil? && @priority > 5
|
|
229
|
-
return false if !@priority.nil? && @priority < 1
|
|
230
228
|
return false if @query.nil?
|
|
231
229
|
return false if @type.nil?
|
|
232
230
|
true
|
|
233
231
|
end
|
|
234
232
|
|
|
235
|
-
# Custom attribute writer method with validation
|
|
236
|
-
# @param priority [Object] Object to be assigned
|
|
237
|
-
# @!visibility private
|
|
238
|
-
def priority=(priority)
|
|
239
|
-
if !priority.nil? && priority > 5
|
|
240
|
-
fail ArgumentError, 'invalid value for "priority", must be smaller than or equal to 5.'
|
|
241
|
-
end
|
|
242
|
-
if !priority.nil? && priority < 1
|
|
243
|
-
fail ArgumentError, 'invalid value for "priority", must be greater than or equal to 1.'
|
|
244
|
-
end
|
|
245
|
-
@priority = priority
|
|
246
|
-
end
|
|
247
|
-
|
|
248
233
|
# Custom attribute writer method with validation
|
|
249
234
|
# @param query [Object] Object to be assigned
|
|
250
235
|
# @!visibility private
|
|
@@ -52,7 +52,7 @@ module DatadogAPIClient::V1
|
|
|
52
52
|
attr_accessor :overall_state
|
|
53
53
|
|
|
54
54
|
# Integer from 1 (high) to 5 (low) indicating alert severity.
|
|
55
|
-
|
|
55
|
+
attr_accessor :priority
|
|
56
56
|
|
|
57
57
|
# The monitor query.
|
|
58
58
|
attr_accessor :query
|
|
@@ -120,6 +120,7 @@ module DatadogAPIClient::V1
|
|
|
120
120
|
def self.openapi_nullable
|
|
121
121
|
Set.new([
|
|
122
122
|
:'deleted',
|
|
123
|
+
:'priority',
|
|
123
124
|
:'restricted_roles',
|
|
124
125
|
])
|
|
125
126
|
end
|
|
@@ -209,28 +210,6 @@ module DatadogAPIClient::V1
|
|
|
209
210
|
end
|
|
210
211
|
end
|
|
211
212
|
|
|
212
|
-
# Check to see if the all the properties in the model are valid
|
|
213
|
-
# @return true if the model is valid
|
|
214
|
-
# @!visibility private
|
|
215
|
-
def valid?
|
|
216
|
-
return false if !@priority.nil? && @priority > 5
|
|
217
|
-
return false if !@priority.nil? && @priority < 1
|
|
218
|
-
true
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
# Custom attribute writer method with validation
|
|
222
|
-
# @param priority [Object] Object to be assigned
|
|
223
|
-
# @!visibility private
|
|
224
|
-
def priority=(priority)
|
|
225
|
-
if !priority.nil? && priority > 5
|
|
226
|
-
fail ArgumentError, 'invalid value for "priority", must be smaller than or equal to 5.'
|
|
227
|
-
end
|
|
228
|
-
if !priority.nil? && priority < 1
|
|
229
|
-
fail ArgumentError, 'invalid value for "priority", must be greater than or equal to 1.'
|
|
230
|
-
end
|
|
231
|
-
@priority = priority
|
|
232
|
-
end
|
|
233
|
-
|
|
234
213
|
# Checks equality by comparing each attribute.
|
|
235
214
|
# @param o [Object] Object to be compared
|
|
236
215
|
# @!visibility private
|
|
@@ -375,10 +375,10 @@ module DatadogAPIClient::V1
|
|
|
375
375
|
# The total RUM Browser and Mobile usage by tag(s).
|
|
376
376
|
attr_accessor :rum_browser_mobile_sessions_usage
|
|
377
377
|
|
|
378
|
-
# The percentage of RUM Replay
|
|
378
|
+
# The percentage of RUM Session Replay usage by tag(s).
|
|
379
379
|
attr_accessor :rum_replay_sessions_percentage
|
|
380
380
|
|
|
381
|
-
# The total RUM Replay
|
|
381
|
+
# The total RUM Session Replay usage by tag(s).
|
|
382
382
|
attr_accessor :rum_replay_sessions_usage
|
|
383
383
|
|
|
384
384
|
# The percentage of Sensitive Data Scanner usage by tag(s).
|
|
@@ -17,190 +17,47 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V1
|
|
20
|
-
# The steps used in a Synthetic
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
{
|
|
53
|
-
:'allow_failure' => :'allowFailure',
|
|
54
|
-
:'assertions' => :'assertions',
|
|
55
|
-
:'extracted_values' => :'extractedValues',
|
|
56
|
-
:'is_critical' => :'isCritical',
|
|
57
|
-
:'name' => :'name',
|
|
58
|
-
:'request' => :'request',
|
|
59
|
-
:'_retry' => :'retry',
|
|
60
|
-
:'subtype' => :'subtype'
|
|
61
|
-
}
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
# Attribute type mapping.
|
|
65
|
-
# @!visibility private
|
|
66
|
-
def self.openapi_types
|
|
67
|
-
{
|
|
68
|
-
:'allow_failure' => :'Boolean',
|
|
69
|
-
:'assertions' => :'Array<SyntheticsAssertion>',
|
|
70
|
-
:'extracted_values' => :'Array<SyntheticsParsingOptions>',
|
|
71
|
-
:'is_critical' => :'Boolean',
|
|
72
|
-
:'name' => :'String',
|
|
73
|
-
:'request' => :'SyntheticsTestRequest',
|
|
74
|
-
:'_retry' => :'SyntheticsTestOptionsRetry',
|
|
75
|
-
:'subtype' => :'SyntheticsAPIStepSubtype'
|
|
76
|
-
}
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
# Initializes the object
|
|
80
|
-
# @param attributes [Hash] Model attributes in the form of hash
|
|
81
|
-
# @!visibility private
|
|
82
|
-
def initialize(attributes = {})
|
|
83
|
-
if (!attributes.is_a?(Hash))
|
|
84
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAPIStep` initialize method"
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
88
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
89
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
|
90
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsAPIStep`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
91
|
-
end
|
|
92
|
-
h[k.to_sym] = v
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
if attributes.key?(:'allow_failure')
|
|
96
|
-
self.allow_failure = attributes[:'allow_failure']
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
if attributes.key?(:'assertions')
|
|
100
|
-
if (value = attributes[:'assertions']).is_a?(Array)
|
|
101
|
-
self.assertions = value
|
|
20
|
+
# The steps used in a Synthetic multi-step API test.
|
|
21
|
+
module SyntheticsAPIStep
|
|
22
|
+
class << self
|
|
23
|
+
include BaseOneOfModel
|
|
24
|
+
include BaseOneOfModelNoDiscriminator
|
|
25
|
+
|
|
26
|
+
# List of class defined in oneOf (OpenAPI v3)
|
|
27
|
+
def openapi_one_of
|
|
28
|
+
[
|
|
29
|
+
:'SyntheticsAPITestStep',
|
|
30
|
+
:'SyntheticsAPIWaitStep'
|
|
31
|
+
]
|
|
32
|
+
end
|
|
33
|
+
# Builds the object
|
|
34
|
+
# @param data [Mixed] Data to be matched against the list of oneOf items
|
|
35
|
+
# @return [Object] Returns the model or the data itself
|
|
36
|
+
def build(data)
|
|
37
|
+
# Go through the list of oneOf items and attempt to identify the appropriate one.
|
|
38
|
+
# Note:
|
|
39
|
+
# - We do not attempt to check whether exactly one item matches.
|
|
40
|
+
# - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
|
|
41
|
+
# due to the way the deserialization is made in the base_object template (it just casts without verifying).
|
|
42
|
+
# - TODO: scalar values are de facto behaving as if they were nullable.
|
|
43
|
+
# - TODO: logging when debugging is set.
|
|
44
|
+
openapi_one_of.each do |klass|
|
|
45
|
+
begin
|
|
46
|
+
next if klass == :AnyType # "nullable: true"
|
|
47
|
+
typed_data = find_and_cast_into_type(klass, data)
|
|
48
|
+
next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
|
|
49
|
+
return typed_data if typed_data
|
|
50
|
+
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
|
51
|
+
end
|
|
102
52
|
end
|
|
103
|
-
end
|
|
104
53
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
54
|
+
if openapi_one_of.include?(:AnyType)
|
|
55
|
+
data
|
|
56
|
+
else
|
|
57
|
+
self._unparsed = true
|
|
58
|
+
DatadogAPIClient::UnparsedObject.new(data)
|
|
108
59
|
end
|
|
109
60
|
end
|
|
110
|
-
|
|
111
|
-
if attributes.key?(:'is_critical')
|
|
112
|
-
self.is_critical = attributes[:'is_critical']
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
if attributes.key?(:'name')
|
|
116
|
-
self.name = attributes[:'name']
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
if attributes.key?(:'request')
|
|
120
|
-
self.request = attributes[:'request']
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
if attributes.key?(:'_retry')
|
|
124
|
-
self._retry = attributes[:'_retry']
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
if attributes.key?(:'subtype')
|
|
128
|
-
self.subtype = attributes[:'subtype']
|
|
129
|
-
end
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
# Check to see if the all the properties in the model are valid
|
|
133
|
-
# @return true if the model is valid
|
|
134
|
-
# @!visibility private
|
|
135
|
-
def valid?
|
|
136
|
-
return false if @assertions.nil?
|
|
137
|
-
return false if @name.nil?
|
|
138
|
-
return false if @request.nil?
|
|
139
|
-
return false if @subtype.nil?
|
|
140
|
-
true
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
# Custom attribute writer method with validation
|
|
144
|
-
# @param assertions [Object] Object to be assigned
|
|
145
|
-
# @!visibility private
|
|
146
|
-
def assertions=(assertions)
|
|
147
|
-
if assertions.nil?
|
|
148
|
-
fail ArgumentError, 'invalid value for "assertions", assertions cannot be nil.'
|
|
149
|
-
end
|
|
150
|
-
@assertions = assertions
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
# Custom attribute writer method with validation
|
|
154
|
-
# @param name [Object] Object to be assigned
|
|
155
|
-
# @!visibility private
|
|
156
|
-
def name=(name)
|
|
157
|
-
if name.nil?
|
|
158
|
-
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
|
159
|
-
end
|
|
160
|
-
@name = name
|
|
161
|
-
end
|
|
162
|
-
|
|
163
|
-
# Custom attribute writer method with validation
|
|
164
|
-
# @param request [Object] Object to be assigned
|
|
165
|
-
# @!visibility private
|
|
166
|
-
def request=(request)
|
|
167
|
-
if request.nil?
|
|
168
|
-
fail ArgumentError, 'invalid value for "request", request cannot be nil.'
|
|
169
|
-
end
|
|
170
|
-
@request = request
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
# Custom attribute writer method with validation
|
|
174
|
-
# @param subtype [Object] Object to be assigned
|
|
175
|
-
# @!visibility private
|
|
176
|
-
def subtype=(subtype)
|
|
177
|
-
if subtype.nil?
|
|
178
|
-
fail ArgumentError, 'invalid value for "subtype", subtype cannot be nil.'
|
|
179
|
-
end
|
|
180
|
-
@subtype = subtype
|
|
181
|
-
end
|
|
182
|
-
|
|
183
|
-
# Checks equality by comparing each attribute.
|
|
184
|
-
# @param o [Object] Object to be compared
|
|
185
|
-
# @!visibility private
|
|
186
|
-
def ==(o)
|
|
187
|
-
return true if self.equal?(o)
|
|
188
|
-
self.class == o.class &&
|
|
189
|
-
allow_failure == o.allow_failure &&
|
|
190
|
-
assertions == o.assertions &&
|
|
191
|
-
extracted_values == o.extracted_values &&
|
|
192
|
-
is_critical == o.is_critical &&
|
|
193
|
-
name == o.name &&
|
|
194
|
-
request == o.request &&
|
|
195
|
-
_retry == o._retry &&
|
|
196
|
-
subtype == o.subtype
|
|
197
|
-
end
|
|
198
|
-
|
|
199
|
-
# Calculates hash code according to all attributes.
|
|
200
|
-
# @return [Integer] Hash code
|
|
201
|
-
# @!visibility private
|
|
202
|
-
def hash
|
|
203
|
-
[allow_failure, assertions, extracted_values, is_critical, name, request, _retry, subtype].hash
|
|
204
61
|
end
|
|
205
62
|
end
|
|
206
63
|
end
|