datadog_api_client 2.34.0 → 2.36.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 +59 -6
- data/.generator/schemas/v2/openapi.yaml +1093 -69
- data/.generator/src/generator/formatter.py +2 -2
- data/.generator/src/generator/openapi.py +1 -1
- data/.github/workflows/release.yml +1 -1
- data/CHANGELOG.md +36 -0
- data/Gemfile +1 -0
- data/examples/v1/monitors/CreateMonitor_1539578087.rb +1 -0
- data/examples/v1/monitors/CreateMonitor_440013737.rb +1 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +142 -0
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +35 -0
- data/examples/v2/dora-metrics/CreateDORADeployment.rb +0 -3
- data/examples/v2/dora-metrics/CreateDORAFailure.rb +30 -0
- data/examples/v2/dora-metrics/CreateDORAIncident.rb +11 -9
- data/examples/v2/dora-metrics/CreateDORAIncident_1768887482.rb +25 -0
- data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1735989579.rb +30 -0
- data/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle_1716851881.rb +1 -1
- data/examples/v2/on-call/GetTeamOnCallUsers.rb +11 -0
- data/examples/v2/security-monitoring/ListFindings_2932019633.rb +11 -0
- data/examples/v2/software-catalog/DeleteCatalogKind.rb +5 -0
- data/examples/v2/software-catalog/ListCatalogKind.rb +5 -0
- data/examples/v2/software-catalog/ListCatalogKind_3806205775.rb +5 -0
- data/examples/v2/software-catalog/UpsertCatalogKind.rb +9 -0
- data/examples/v2/teams/AddMemberTeam.rb +15 -0
- data/examples/v2/teams/ListMemberTeams.rb +8 -0
- data/examples/v2/teams/ListMemberTeams_1662850354.rb +8 -0
- data/examples/v2/teams/RemoveMemberTeam.rb +8 -0
- data/lib/datadog_api_client/configuration.rb +3 -2
- data/lib/datadog_api_client/inflector.rb +42 -6
- data/lib/datadog_api_client/v1/api/snapshots_api.rb +2 -1
- data/lib/datadog_api_client/v1/models/monitor.rb +17 -1
- data/lib/datadog_api_client/v1/models/monitor_draft_status.rb +32 -0
- data/lib/datadog_api_client/v1/models/monitor_options.rb +1 -1
- data/lib/datadog_api_client/v1/models/monitor_update_request.rb +17 -1
- data/lib/datadog_api_client/v1/models/synthetics_api_test_step_subtype.rb +6 -0
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb +2 -31
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +32 -2
- data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +79 -15
- data/lib/datadog_api_client/v2/api/on_call_api.rb +67 -0
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +5 -3
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +13 -0
- data/lib/datadog_api_client/v2/api/software_catalog_api.rb +221 -0
- data/lib/datadog_api_client/v2/api/teams_api.rb +254 -0
- data/lib/datadog_api_client/v2/models/action_query_spec_inputs.rb +1 -1
- data/lib/datadog_api_client/v2/models/{dora_incident_response.rb → add_member_team_request.rb} +5 -5
- data/lib/datadog_api_client/v2/models/change_event_custom_attributes_author_type.rb +2 -0
- data/lib/datadog_api_client/v2/models/cloud_configuration_rule_payload.rb +21 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +33 -3
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_metadata.rb +125 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb +165 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +37 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +57 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_attributes.rb +57 -1
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination.rb +2 -1
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_microsoft_sentinel.rb +228 -0
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_microsoft_sentinel_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination.rb +2 -1
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_microsoft_sentinel.rb +228 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_microsoft_sentinel_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/{dora_incident_request.rb → dora_failure_request.rb} +4 -4
- data/lib/datadog_api_client/v2/models/{dora_incident_request_attributes.rb → dora_failure_request_attributes.rb} +31 -11
- data/lib/datadog_api_client/v2/models/{dora_incident_request_data.rb → dora_failure_request_data.rb} +4 -4
- data/lib/datadog_api_client/v2/models/dora_failure_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/{dora_incident_response_data.rb → dora_failure_response_data.rb} +6 -6
- data/lib/datadog_api_client/v2/models/{dora_incident_type.rb → dora_failure_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/escalation.rb +143 -0
- data/lib/datadog_api_client/v2/models/escalation_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/escalation_relationships_responders.rb +107 -0
- data/lib/datadog_api_client/v2/models/escalation_relationships_responders_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/escalation_relationships_responders_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/escalation_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/finding_attributes.rb +31 -1
- data/lib/datadog_api_client/v2/models/kind_attributes.rb +143 -0
- data/lib/datadog_api_client/v2/models/kind_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/kind_metadata.rb +115 -0
- data/lib/datadog_api_client/v2/models/kind_obj.rb +143 -0
- data/lib/datadog_api_client/v2/models/kind_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/list_kind_catalog_response.rb +117 -0
- data/lib/datadog_api_client/v2/models/member_team.rb +144 -0
- data/lib/datadog_api_client/v2/models/member_team_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_read.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +21 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_payload.rb +21 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +21 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb +21 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +21 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb +11 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_attributes.rb +15 -3
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_samplings.rb +137 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders.rb +117 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships.rb +115 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations.rb +107 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_escalations_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_responders.rb +107 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_responders_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_relationships_responders_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_on_call_responders_included.rb +63 -0
- data/lib/datadog_api_client/v2/models/upsert_catalog_kind_request.rb +63 -0
- data/lib/datadog_api_client/v2/models/upsert_catalog_kind_response.rb +117 -0
- data/lib/datadog_api_client/version.rb +1 -1
- data/repository.datadog.yaml +8 -0
- metadata +57 -7
@@ -295,6 +295,7 @@ module DatadogAPIClient
|
|
295
295
|
"v1.metrics_query_unit" => "MetricsQueryUnit",
|
296
296
|
"v1.monitor" => "Monitor",
|
297
297
|
"v1.monitor_device_id" => "MonitorDeviceID",
|
298
|
+
"v1.monitor_draft_status" => "MonitorDraftStatus",
|
298
299
|
"v1.monitor_formula_and_function_cost_aggregator" => "MonitorFormulaAndFunctionCostAggregator",
|
299
300
|
"v1.monitor_formula_and_function_cost_data_source" => "MonitorFormulaAndFunctionCostDataSource",
|
300
301
|
"v1.monitor_formula_and_function_cost_query_definition" => "MonitorFormulaAndFunctionCostQueryDefinition",
|
@@ -954,6 +955,7 @@ module DatadogAPIClient
|
|
954
955
|
"v2.active_billing_dimensions_body" => "ActiveBillingDimensionsBody",
|
955
956
|
"v2.active_billing_dimensions_response" => "ActiveBillingDimensionsResponse",
|
956
957
|
"v2.active_billing_dimensions_type" => "ActiveBillingDimensionsType",
|
958
|
+
"v2.add_member_team_request" => "AddMemberTeamRequest",
|
957
959
|
"v2.advisory" => "Advisory",
|
958
960
|
"v2.annotation" => "Annotation",
|
959
961
|
"v2.annotation_display" => "AnnotationDisplay",
|
@@ -1339,6 +1341,8 @@ module DatadogAPIClient
|
|
1339
1341
|
"v2.cloud_workload_security_agent_policy_updater_attributes" => "CloudWorkloadSecurityAgentPolicyUpdaterAttributes",
|
1340
1342
|
"v2.cloud_workload_security_agent_policy_update_request" => "CloudWorkloadSecurityAgentPolicyUpdateRequest",
|
1341
1343
|
"v2.cloud_workload_security_agent_rule_action" => "CloudWorkloadSecurityAgentRuleAction",
|
1344
|
+
"v2.cloud_workload_security_agent_rule_action_metadata" => "CloudWorkloadSecurityAgentRuleActionMetadata",
|
1345
|
+
"v2.cloud_workload_security_agent_rule_action_set" => "CloudWorkloadSecurityAgentRuleActionSet",
|
1342
1346
|
"v2.cloud_workload_security_agent_rule_attributes" => "CloudWorkloadSecurityAgentRuleAttributes",
|
1343
1347
|
"v2.cloud_workload_security_agent_rule_create_attributes" => "CloudWorkloadSecurityAgentRuleCreateAttributes",
|
1344
1348
|
"v2.cloud_workload_security_agent_rule_create_data" => "CloudWorkloadSecurityAgentRuleCreateData",
|
@@ -1509,6 +1513,8 @@ module DatadogAPIClient
|
|
1509
1513
|
"v2.custom_destination_forward_destination_elasticsearch_type" => "CustomDestinationForwardDestinationElasticsearchType",
|
1510
1514
|
"v2.custom_destination_forward_destination_http" => "CustomDestinationForwardDestinationHttp",
|
1511
1515
|
"v2.custom_destination_forward_destination_http_type" => "CustomDestinationForwardDestinationHttpType",
|
1516
|
+
"v2.custom_destination_forward_destination_microsoft_sentinel" => "CustomDestinationForwardDestinationMicrosoftSentinel",
|
1517
|
+
"v2.custom_destination_forward_destination_microsoft_sentinel_type" => "CustomDestinationForwardDestinationMicrosoftSentinelType",
|
1512
1518
|
"v2.custom_destination_forward_destination_splunk" => "CustomDestinationForwardDestinationSplunk",
|
1513
1519
|
"v2.custom_destination_forward_destination_splunk_type" => "CustomDestinationForwardDestinationSplunkType",
|
1514
1520
|
"v2.custom_destination_http_destination_auth" => "CustomDestinationHttpDestinationAuth",
|
@@ -1524,6 +1530,8 @@ module DatadogAPIClient
|
|
1524
1530
|
"v2.custom_destination_response_forward_destination_elasticsearch_type" => "CustomDestinationResponseForwardDestinationElasticsearchType",
|
1525
1531
|
"v2.custom_destination_response_forward_destination_http" => "CustomDestinationResponseForwardDestinationHttp",
|
1526
1532
|
"v2.custom_destination_response_forward_destination_http_type" => "CustomDestinationResponseForwardDestinationHttpType",
|
1533
|
+
"v2.custom_destination_response_forward_destination_microsoft_sentinel" => "CustomDestinationResponseForwardDestinationMicrosoftSentinel",
|
1534
|
+
"v2.custom_destination_response_forward_destination_microsoft_sentinel_type" => "CustomDestinationResponseForwardDestinationMicrosoftSentinelType",
|
1527
1535
|
"v2.custom_destination_response_forward_destination_splunk" => "CustomDestinationResponseForwardDestinationSplunk",
|
1528
1536
|
"v2.custom_destination_response_forward_destination_splunk_type" => "CustomDestinationResponseForwardDestinationSplunkType",
|
1529
1537
|
"v2.custom_destination_response_http_destination_auth" => "CustomDestinationResponseHttpDestinationAuth",
|
@@ -1601,14 +1609,14 @@ module DatadogAPIClient
|
|
1601
1609
|
"v2.dora_deployment_response_data" => "DORADeploymentResponseData",
|
1602
1610
|
"v2.dora_deployment_type" => "DORADeploymentType",
|
1603
1611
|
"v2.dora_event" => "DORAEvent",
|
1612
|
+
"v2.dora_failure_request" => "DORAFailureRequest",
|
1613
|
+
"v2.dora_failure_request_attributes" => "DORAFailureRequestAttributes",
|
1614
|
+
"v2.dora_failure_request_data" => "DORAFailureRequestData",
|
1615
|
+
"v2.dora_failure_response" => "DORAFailureResponse",
|
1616
|
+
"v2.dora_failure_response_data" => "DORAFailureResponseData",
|
1617
|
+
"v2.dora_failure_type" => "DORAFailureType",
|
1604
1618
|
"v2.dora_fetch_response" => "DORAFetchResponse",
|
1605
1619
|
"v2.dora_git_info" => "DORAGitInfo",
|
1606
|
-
"v2.dora_incident_request" => "DORAIncidentRequest",
|
1607
|
-
"v2.dora_incident_request_attributes" => "DORAIncidentRequestAttributes",
|
1608
|
-
"v2.dora_incident_request_data" => "DORAIncidentRequestData",
|
1609
|
-
"v2.dora_incident_response" => "DORAIncidentResponse",
|
1610
|
-
"v2.dora_incident_response_data" => "DORAIncidentResponseData",
|
1611
|
-
"v2.dora_incident_type" => "DORAIncidentType",
|
1612
1620
|
"v2.dora_list_deployments_request" => "DORAListDeploymentsRequest",
|
1613
1621
|
"v2.dora_list_deployments_request_attributes" => "DORAListDeploymentsRequestAttributes",
|
1614
1622
|
"v2.dora_list_deployments_request_data" => "DORAListDeploymentsRequestData",
|
@@ -1721,6 +1729,7 @@ module DatadogAPIClient
|
|
1721
1729
|
"v2.entity_v3_system_spec" => "EntityV3SystemSpec",
|
1722
1730
|
"v2.epss" => "EPSS",
|
1723
1731
|
"v2.error_handler" => "ErrorHandler",
|
1732
|
+
"v2.escalation" => "Escalation",
|
1724
1733
|
"v2.escalation_policy" => "EscalationPolicy",
|
1725
1734
|
"v2.escalation_policy_create_request" => "EscalationPolicyCreateRequest",
|
1726
1735
|
"v2.escalation_policy_create_request_data" => "EscalationPolicyCreateRequestData",
|
@@ -1752,8 +1761,13 @@ module DatadogAPIClient
|
|
1752
1761
|
"v2.escalation_policy_user" => "EscalationPolicyUser",
|
1753
1762
|
"v2.escalation_policy_user_attributes" => "EscalationPolicyUserAttributes",
|
1754
1763
|
"v2.escalation_policy_user_type" => "EscalationPolicyUserType",
|
1764
|
+
"v2.escalation_relationships" => "EscalationRelationships",
|
1765
|
+
"v2.escalation_relationships_responders" => "EscalationRelationshipsResponders",
|
1766
|
+
"v2.escalation_relationships_responders_data_items" => "EscalationRelationshipsRespondersDataItems",
|
1767
|
+
"v2.escalation_relationships_responders_data_items_type" => "EscalationRelationshipsRespondersDataItemsType",
|
1755
1768
|
"v2.escalation_target" => "EscalationTarget",
|
1756
1769
|
"v2.escalation_targets" => "EscalationTargets",
|
1770
|
+
"v2.escalation_type" => "EscalationType",
|
1757
1771
|
"v2.event" => "Event",
|
1758
1772
|
"v2.event_attributes" => "EventAttributes",
|
1759
1773
|
"v2.event_category" => "EventCategory",
|
@@ -2055,6 +2069,11 @@ module DatadogAPIClient
|
|
2055
2069
|
"v2.jsonapi_error_item" => "JSONAPIErrorItem",
|
2056
2070
|
"v2.jsonapi_error_item_source" => "JSONAPIErrorItemSource",
|
2057
2071
|
"v2.jsonapi_error_response" => "JSONAPIErrorResponse",
|
2072
|
+
"v2.kind_attributes" => "KindAttributes",
|
2073
|
+
"v2.kind_data" => "KindData",
|
2074
|
+
"v2.kind_metadata" => "KindMetadata",
|
2075
|
+
"v2.kind_obj" => "KindObj",
|
2076
|
+
"v2.kind_response_meta" => "KindResponseMeta",
|
2058
2077
|
"v2.layer" => "Layer",
|
2059
2078
|
"v2.layer_attributes" => "LayerAttributes",
|
2060
2079
|
"v2.layer_attributes_interval" => "LayerAttributesInterval",
|
@@ -2091,6 +2110,7 @@ module DatadogAPIClient
|
|
2091
2110
|
"v2.list_findings_page" => "ListFindingsPage",
|
2092
2111
|
"v2.list_findings_response" => "ListFindingsResponse",
|
2093
2112
|
"v2.list_historical_jobs_response" => "ListHistoricalJobsResponse",
|
2113
|
+
"v2.list_kind_catalog_response" => "ListKindCatalogResponse",
|
2094
2114
|
"v2.list_pipelines_response" => "ListPipelinesResponse",
|
2095
2115
|
"v2.list_pipelines_response_meta" => "ListPipelinesResponseMeta",
|
2096
2116
|
"v2.list_powerpacks_response" => "ListPowerpacksResponse",
|
@@ -2184,6 +2204,8 @@ module DatadogAPIClient
|
|
2184
2204
|
"v2.logs_storage_tier" => "LogsStorageTier",
|
2185
2205
|
"v2.logs_warning" => "LogsWarning",
|
2186
2206
|
"v2.log_type" => "LogType",
|
2207
|
+
"v2.member_team" => "MemberTeam",
|
2208
|
+
"v2.member_team_type" => "MemberTeamType",
|
2187
2209
|
"v2.metadata" => "Metadata",
|
2188
2210
|
"v2.metric" => "Metric",
|
2189
2211
|
"v2.metric_active_configuration_type" => "MetricActiveConfigurationType",
|
@@ -3083,6 +3105,7 @@ module DatadogAPIClient
|
|
3083
3105
|
"v2.sensitive_data_scanner_rule_update" => "SensitiveDataScannerRuleUpdate",
|
3084
3106
|
"v2.sensitive_data_scanner_rule_update_request" => "SensitiveDataScannerRuleUpdateRequest",
|
3085
3107
|
"v2.sensitive_data_scanner_rule_update_response" => "SensitiveDataScannerRuleUpdateResponse",
|
3108
|
+
"v2.sensitive_data_scanner_samplings" => "SensitiveDataScannerSamplings",
|
3086
3109
|
"v2.sensitive_data_scanner_standard_pattern" => "SensitiveDataScannerStandardPattern",
|
3087
3110
|
"v2.sensitive_data_scanner_standard_pattern_attributes" => "SensitiveDataScannerStandardPatternAttributes",
|
3088
3111
|
"v2.sensitive_data_scanner_standard_pattern_data" => "SensitiveDataScannerStandardPatternData",
|
@@ -3264,6 +3287,17 @@ module DatadogAPIClient
|
|
3264
3287
|
"v2.team_link_response" => "TeamLinkResponse",
|
3265
3288
|
"v2.team_links_response" => "TeamLinksResponse",
|
3266
3289
|
"v2.team_link_type" => "TeamLinkType",
|
3290
|
+
"v2.team_on_call_responders" => "TeamOnCallResponders",
|
3291
|
+
"v2.team_on_call_responders_data" => "TeamOnCallRespondersData",
|
3292
|
+
"v2.team_on_call_responders_data_relationships" => "TeamOnCallRespondersDataRelationships",
|
3293
|
+
"v2.team_on_call_responders_data_relationships_escalations" => "TeamOnCallRespondersDataRelationshipsEscalations",
|
3294
|
+
"v2.team_on_call_responders_data_relationships_escalations_data_items" => "TeamOnCallRespondersDataRelationshipsEscalationsDataItems",
|
3295
|
+
"v2.team_on_call_responders_data_relationships_escalations_data_items_type" => "TeamOnCallRespondersDataRelationshipsEscalationsDataItemsType",
|
3296
|
+
"v2.team_on_call_responders_data_relationships_responders" => "TeamOnCallRespondersDataRelationshipsResponders",
|
3297
|
+
"v2.team_on_call_responders_data_relationships_responders_data_items" => "TeamOnCallRespondersDataRelationshipsRespondersDataItems",
|
3298
|
+
"v2.team_on_call_responders_data_relationships_responders_data_items_type" => "TeamOnCallRespondersDataRelationshipsRespondersDataItemsType",
|
3299
|
+
"v2.team_on_call_responders_data_type" => "TeamOnCallRespondersDataType",
|
3300
|
+
"v2.team_on_call_responders_included" => "TeamOnCallRespondersIncluded",
|
3267
3301
|
"v2.team_permission_setting" => "TeamPermissionSetting",
|
3268
3302
|
"v2.team_permission_setting_attributes" => "TeamPermissionSettingAttributes",
|
3269
3303
|
"v2.team_permission_setting_response" => "TeamPermissionSettingResponse",
|
@@ -3349,6 +3383,8 @@ module DatadogAPIClient
|
|
3349
3383
|
"v2.upsert_catalog_entity_request" => "UpsertCatalogEntityRequest",
|
3350
3384
|
"v2.upsert_catalog_entity_response" => "UpsertCatalogEntityResponse",
|
3351
3385
|
"v2.upsert_catalog_entity_response_included_item" => "UpsertCatalogEntityResponseIncludedItem",
|
3386
|
+
"v2.upsert_catalog_kind_request" => "UpsertCatalogKindRequest",
|
3387
|
+
"v2.upsert_catalog_kind_response" => "UpsertCatalogKindResponse",
|
3352
3388
|
"v2.urgency" => "Urgency",
|
3353
3389
|
"v2.url_param" => "UrlParam",
|
3354
3390
|
"v2.url_param_update" => "UrlParamUpdate",
|
@@ -33,7 +33,8 @@ module DatadogAPIClient::V1
|
|
33
33
|
|
34
34
|
# Take graph snapshots.
|
35
35
|
#
|
36
|
-
# Take graph snapshots.
|
36
|
+
# Take graph snapshots. Snapshots are PNG images generated by rendering a specified widget in a web page and capturing it once the data is available. The image is then uploaded to cloud storage.
|
37
|
+
#
|
37
38
|
# **Note**: When a snapshot is created, there is some delay before it is available.
|
38
39
|
#
|
39
40
|
# @param start [Integer] The POSIX timestamp of the start of the query in seconds.
|
@@ -30,6 +30,15 @@ module DatadogAPIClient::V1
|
|
30
30
|
# Whether or not the monitor is deleted. (Always `null`)
|
31
31
|
attr_accessor :deleted
|
32
32
|
|
33
|
+
# Indicates whether the monitor is in a draft or published state.
|
34
|
+
#
|
35
|
+
# `draft`: The monitor appears as Draft and does not send notifications.
|
36
|
+
# `published`: The monitor is active and evaluates conditions and notify as configured.
|
37
|
+
#
|
38
|
+
# This field is in preview. The draft value is only available to customers with the feature enabled.
|
39
|
+
#
|
40
|
+
attr_accessor :draft_status
|
41
|
+
|
33
42
|
# ID of this monitor.
|
34
43
|
attr_accessor :id
|
35
44
|
|
@@ -81,6 +90,7 @@ module DatadogAPIClient::V1
|
|
81
90
|
:'created' => :'created',
|
82
91
|
:'creator' => :'creator',
|
83
92
|
:'deleted' => :'deleted',
|
93
|
+
:'draft_status' => :'draft_status',
|
84
94
|
:'id' => :'id',
|
85
95
|
:'matching_downtimes' => :'matching_downtimes',
|
86
96
|
:'message' => :'message',
|
@@ -105,6 +115,7 @@ module DatadogAPIClient::V1
|
|
105
115
|
:'created' => :'Time',
|
106
116
|
:'creator' => :'Creator',
|
107
117
|
:'deleted' => :'Time',
|
118
|
+
:'draft_status' => :'MonitorDraftStatus',
|
108
119
|
:'id' => :'Integer',
|
109
120
|
:'matching_downtimes' => :'Array<MatchingDowntime>',
|
110
121
|
:'message' => :'String',
|
@@ -162,6 +173,10 @@ module DatadogAPIClient::V1
|
|
162
173
|
self.deleted = attributes[:'deleted']
|
163
174
|
end
|
164
175
|
|
176
|
+
if attributes.key?(:'draft_status')
|
177
|
+
self.draft_status = attributes[:'draft_status']
|
178
|
+
end
|
179
|
+
|
165
180
|
if attributes.key?(:'id')
|
166
181
|
self.id = attributes[:'id']
|
167
182
|
end
|
@@ -283,6 +298,7 @@ module DatadogAPIClient::V1
|
|
283
298
|
created == o.created &&
|
284
299
|
creator == o.creator &&
|
285
300
|
deleted == o.deleted &&
|
301
|
+
draft_status == o.draft_status &&
|
286
302
|
id == o.id &&
|
287
303
|
matching_downtimes == o.matching_downtimes &&
|
288
304
|
message == o.message &&
|
@@ -304,7 +320,7 @@ module DatadogAPIClient::V1
|
|
304
320
|
# @return [Integer] Hash code
|
305
321
|
# @!visibility private
|
306
322
|
def hash
|
307
|
-
[created, creator, deleted, id, matching_downtimes, message, modified, multi, name, options, overall_state, priority, query, restricted_roles, state, tags, type, additional_properties].hash
|
323
|
+
[created, creator, deleted, draft_status, id, matching_downtimes, message, modified, multi, name, options, overall_state, priority, query, restricted_roles, state, tags, type, additional_properties].hash
|
308
324
|
end
|
309
325
|
end
|
310
326
|
end
|
@@ -0,0 +1,32 @@
|
|
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
|
+
# Indicates whether the monitor is in a draft or published state.
|
21
|
+
#
|
22
|
+
# `draft`: The monitor appears as Draft and does not send notifications.
|
23
|
+
# `published`: The monitor is active and evaluates conditions and notify as configured.
|
24
|
+
#
|
25
|
+
# This field is in preview. The draft value is only available to customers with the feature enabled.
|
26
|
+
class MonitorDraftStatus
|
27
|
+
include BaseEnumModel
|
28
|
+
|
29
|
+
DRAFT = "draft".freeze
|
30
|
+
PUBLISHED = "published".freeze
|
31
|
+
end
|
32
|
+
end
|
@@ -101,7 +101,7 @@ module DatadogAPIClient::V1
|
|
101
101
|
# new `cluster` violating the alert conditions by setting `notify_by` to `["cluster"]`. Tags mentioned
|
102
102
|
# in `notify_by` must be a subset of the grouping tags in the query.
|
103
103
|
# For example, a query grouped by `cluster` and `namespace` cannot notify on `region`.
|
104
|
-
# Setting `notify_by` to `[*]` configures the monitor to notify as a simple-alert.
|
104
|
+
# Setting `notify_by` to `["*"]` configures the monitor to notify as a simple-alert.
|
105
105
|
attr_accessor :notify_by
|
106
106
|
|
107
107
|
# A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to `false`.
|
@@ -30,6 +30,15 @@ module DatadogAPIClient::V1
|
|
30
30
|
# Whether or not the monitor is deleted. (Always `null`)
|
31
31
|
attr_accessor :deleted
|
32
32
|
|
33
|
+
# Indicates whether the monitor is in a draft or published state.
|
34
|
+
#
|
35
|
+
# `draft`: The monitor appears as Draft and does not send notifications.
|
36
|
+
# `published`: The monitor is active and evaluates conditions and notify as configured.
|
37
|
+
#
|
38
|
+
# This field is in preview. The draft value is only available to customers with the feature enabled.
|
39
|
+
#
|
40
|
+
attr_accessor :draft_status
|
41
|
+
|
33
42
|
# ID of this monitor.
|
34
43
|
attr_accessor :id
|
35
44
|
|
@@ -78,6 +87,7 @@ module DatadogAPIClient::V1
|
|
78
87
|
:'created' => :'created',
|
79
88
|
:'creator' => :'creator',
|
80
89
|
:'deleted' => :'deleted',
|
90
|
+
:'draft_status' => :'draft_status',
|
81
91
|
:'id' => :'id',
|
82
92
|
:'message' => :'message',
|
83
93
|
:'modified' => :'modified',
|
@@ -101,6 +111,7 @@ module DatadogAPIClient::V1
|
|
101
111
|
:'created' => :'Time',
|
102
112
|
:'creator' => :'Creator',
|
103
113
|
:'deleted' => :'Time',
|
114
|
+
:'draft_status' => :'MonitorDraftStatus',
|
104
115
|
:'id' => :'Integer',
|
105
116
|
:'message' => :'String',
|
106
117
|
:'modified' => :'Time',
|
@@ -157,6 +168,10 @@ module DatadogAPIClient::V1
|
|
157
168
|
self.deleted = attributes[:'deleted']
|
158
169
|
end
|
159
170
|
|
171
|
+
if attributes.key?(:'draft_status')
|
172
|
+
self.draft_status = attributes[:'draft_status']
|
173
|
+
end
|
174
|
+
|
160
175
|
if attributes.key?(:'id')
|
161
176
|
self.id = attributes[:'id']
|
162
177
|
end
|
@@ -243,6 +258,7 @@ module DatadogAPIClient::V1
|
|
243
258
|
created == o.created &&
|
244
259
|
creator == o.creator &&
|
245
260
|
deleted == o.deleted &&
|
261
|
+
draft_status == o.draft_status &&
|
246
262
|
id == o.id &&
|
247
263
|
message == o.message &&
|
248
264
|
modified == o.modified &&
|
@@ -263,7 +279,7 @@ module DatadogAPIClient::V1
|
|
263
279
|
# @return [Integer] Hash code
|
264
280
|
# @!visibility private
|
265
281
|
def hash
|
266
|
-
[created, creator, deleted, id, message, modified, multi, name, options, overall_state, priority, query, restricted_roles, state, tags, type, additional_properties].hash
|
282
|
+
[created, creator, deleted, draft_status, id, message, modified, multi, name, options, overall_state, priority, query, restricted_roles, state, tags, type, additional_properties].hash
|
267
283
|
end
|
268
284
|
end
|
269
285
|
end
|
@@ -22,13 +22,13 @@ module DatadogAPIClient::V1
|
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
24
|
# Password to use for the basic authentication.
|
25
|
-
|
25
|
+
attr_accessor :password
|
26
26
|
|
27
27
|
# The type of basic authentication to use when performing the test.
|
28
28
|
attr_accessor :type
|
29
29
|
|
30
30
|
# Username to use for the basic authentication.
|
31
|
-
|
31
|
+
attr_accessor :username
|
32
32
|
|
33
33
|
attr_accessor :additional_properties
|
34
34
|
|
@@ -83,35 +83,6 @@ module DatadogAPIClient::V1
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
# Check to see if the all the properties in the model are valid
|
87
|
-
# @return true if the model is valid
|
88
|
-
# @!visibility private
|
89
|
-
def valid?
|
90
|
-
return false if @password.nil?
|
91
|
-
return false if @username.nil?
|
92
|
-
true
|
93
|
-
end
|
94
|
-
|
95
|
-
# Custom attribute writer method with validation
|
96
|
-
# @param password [Object] Object to be assigned
|
97
|
-
# @!visibility private
|
98
|
-
def password=(password)
|
99
|
-
if password.nil?
|
100
|
-
fail ArgumentError, 'invalid value for "password", password cannot be nil.'
|
101
|
-
end
|
102
|
-
@password = password
|
103
|
-
end
|
104
|
-
|
105
|
-
# Custom attribute writer method with validation
|
106
|
-
# @param username [Object] Object to be assigned
|
107
|
-
# @!visibility private
|
108
|
-
def username=(username)
|
109
|
-
if username.nil?
|
110
|
-
fail ArgumentError, 'invalid value for "username", username cannot be nil.'
|
111
|
-
end
|
112
|
-
@username = username
|
113
|
-
end
|
114
|
-
|
115
86
|
# Returns the object in the form of hash, with additionalProperties support.
|
116
87
|
# @return [Hash] Returns the object in the form of hash
|
117
88
|
# @!visibility private
|
@@ -42,6 +42,9 @@ module DatadogAPIClient::V1
|
|
42
42
|
# By default, the client certificate is applied on the domain of the starting URL for browser tests. If you want your client certificate to be applied on other domains instead, add them in `certificateDomains`.
|
43
43
|
attr_accessor :certificate_domains
|
44
44
|
|
45
|
+
# Check for certificate revocation.
|
46
|
+
attr_accessor :check_certificate_revocation
|
47
|
+
|
45
48
|
# A protobuf JSON descriptor that needs to be gzipped first then base64 encoded.
|
46
49
|
attr_accessor :compressed_json_descriptor
|
47
50
|
|
@@ -54,12 +57,15 @@ module DatadogAPIClient::V1
|
|
54
57
|
# DNS server port to use for DNS tests.
|
55
58
|
attr_accessor :dns_server_port
|
56
59
|
|
57
|
-
# Files to be used as part of the request in the test.
|
60
|
+
# Files to be used as part of the request in the test. Only valid if `bodyType` is `multipart/form-data`.
|
58
61
|
attr_accessor :files
|
59
62
|
|
60
63
|
# Specifies whether or not the request follows redirects.
|
61
64
|
attr_accessor :follow_redirects
|
62
65
|
|
66
|
+
# Form to be used as part of the request in the test. Only valid if `bodyType` is `multipart/form-data`.
|
67
|
+
attr_accessor :form
|
68
|
+
|
63
69
|
# Headers to include when performing the test.
|
64
70
|
attr_accessor :headers
|
65
71
|
|
@@ -69,6 +75,9 @@ module DatadogAPIClient::V1
|
|
69
75
|
# HTTP version to use for a Synthetic test.
|
70
76
|
attr_accessor :http_version
|
71
77
|
|
78
|
+
# Whether the message is base64 encoded.
|
79
|
+
attr_accessor :is_message_base64_encoded
|
80
|
+
|
72
81
|
# Message to send for UDP or WebSocket tests.
|
73
82
|
attr_accessor :message
|
74
83
|
|
@@ -126,15 +135,18 @@ module DatadogAPIClient::V1
|
|
126
135
|
:'call_type' => :'callType',
|
127
136
|
:'certificate' => :'certificate',
|
128
137
|
:'certificate_domains' => :'certificateDomains',
|
138
|
+
:'check_certificate_revocation' => :'checkCertificateRevocation',
|
129
139
|
:'compressed_json_descriptor' => :'compressedJsonDescriptor',
|
130
140
|
:'compressed_proto_file' => :'compressedProtoFile',
|
131
141
|
:'dns_server' => :'dnsServer',
|
132
142
|
:'dns_server_port' => :'dnsServerPort',
|
133
143
|
:'files' => :'files',
|
134
144
|
:'follow_redirects' => :'follow_redirects',
|
145
|
+
:'form' => :'form',
|
135
146
|
:'headers' => :'headers',
|
136
147
|
:'host' => :'host',
|
137
148
|
:'http_version' => :'httpVersion',
|
149
|
+
:'is_message_base64_encoded' => :'isMessageBase64Encoded',
|
138
150
|
:'message' => :'message',
|
139
151
|
:'metadata' => :'metadata',
|
140
152
|
:'method' => :'method',
|
@@ -163,15 +175,18 @@ module DatadogAPIClient::V1
|
|
163
175
|
:'call_type' => :'SyntheticsTestCallType',
|
164
176
|
:'certificate' => :'SyntheticsTestRequestCertificate',
|
165
177
|
:'certificate_domains' => :'Array<String>',
|
178
|
+
:'check_certificate_revocation' => :'Boolean',
|
166
179
|
:'compressed_json_descriptor' => :'String',
|
167
180
|
:'compressed_proto_file' => :'String',
|
168
181
|
:'dns_server' => :'String',
|
169
182
|
:'dns_server_port' => :'String',
|
170
183
|
:'files' => :'Array<SyntheticsTestRequestBodyFile>',
|
171
184
|
:'follow_redirects' => :'Boolean',
|
185
|
+
:'form' => :'Hash<String, String>',
|
172
186
|
:'headers' => :'Hash<String, String>',
|
173
187
|
:'host' => :'String',
|
174
188
|
:'http_version' => :'SyntheticsTestOptionsHTTPVersion',
|
189
|
+
:'is_message_base64_encoded' => :'Boolean',
|
175
190
|
:'message' => :'String',
|
176
191
|
:'metadata' => :'Hash<String, String>',
|
177
192
|
:'method' => :'String',
|
@@ -237,6 +252,10 @@ module DatadogAPIClient::V1
|
|
237
252
|
end
|
238
253
|
end
|
239
254
|
|
255
|
+
if attributes.key?(:'check_certificate_revocation')
|
256
|
+
self.check_certificate_revocation = attributes[:'check_certificate_revocation']
|
257
|
+
end
|
258
|
+
|
240
259
|
if attributes.key?(:'compressed_json_descriptor')
|
241
260
|
self.compressed_json_descriptor = attributes[:'compressed_json_descriptor']
|
242
261
|
end
|
@@ -263,6 +282,10 @@ module DatadogAPIClient::V1
|
|
263
282
|
self.follow_redirects = attributes[:'follow_redirects']
|
264
283
|
end
|
265
284
|
|
285
|
+
if attributes.key?(:'form')
|
286
|
+
self.form = attributes[:'form']
|
287
|
+
end
|
288
|
+
|
266
289
|
if attributes.key?(:'headers')
|
267
290
|
self.headers = attributes[:'headers']
|
268
291
|
end
|
@@ -275,6 +298,10 @@ module DatadogAPIClient::V1
|
|
275
298
|
self.http_version = attributes[:'http_version']
|
276
299
|
end
|
277
300
|
|
301
|
+
if attributes.key?(:'is_message_base64_encoded')
|
302
|
+
self.is_message_base64_encoded = attributes[:'is_message_base64_encoded']
|
303
|
+
end
|
304
|
+
|
278
305
|
if attributes.key?(:'message')
|
279
306
|
self.message = attributes[:'message']
|
280
307
|
end
|
@@ -387,15 +414,18 @@ module DatadogAPIClient::V1
|
|
387
414
|
call_type == o.call_type &&
|
388
415
|
certificate == o.certificate &&
|
389
416
|
certificate_domains == o.certificate_domains &&
|
417
|
+
check_certificate_revocation == o.check_certificate_revocation &&
|
390
418
|
compressed_json_descriptor == o.compressed_json_descriptor &&
|
391
419
|
compressed_proto_file == o.compressed_proto_file &&
|
392
420
|
dns_server == o.dns_server &&
|
393
421
|
dns_server_port == o.dns_server_port &&
|
394
422
|
files == o.files &&
|
395
423
|
follow_redirects == o.follow_redirects &&
|
424
|
+
form == o.form &&
|
396
425
|
headers == o.headers &&
|
397
426
|
host == o.host &&
|
398
427
|
http_version == o.http_version &&
|
428
|
+
is_message_base64_encoded == o.is_message_base64_encoded &&
|
399
429
|
message == o.message &&
|
400
430
|
metadata == o.metadata &&
|
401
431
|
method == o.method &&
|
@@ -417,7 +447,7 @@ module DatadogAPIClient::V1
|
|
417
447
|
# @return [Integer] Hash code
|
418
448
|
# @!visibility private
|
419
449
|
def hash
|
420
|
-
[allow_insecure, basic_auth, body, body_type, call_type, certificate, certificate_domains, compressed_json_descriptor, compressed_proto_file, dns_server, dns_server_port, files, follow_redirects, headers, host, http_version, message, metadata, method, no_saving_response_body, number_of_packets, persist_cookies, port, proxy, query, servername, service, should_track_hops, timeout, url, additional_properties].hash
|
450
|
+
[allow_insecure, basic_auth, body, body_type, call_type, certificate, certificate_domains, check_certificate_revocation, compressed_json_descriptor, compressed_proto_file, dns_server, dns_server_port, files, follow_redirects, form, headers, host, http_version, is_message_base64_encoded, message, metadata, method, no_saving_response_body, number_of_packets, persist_cookies, port, proxy, query, servername, service, should_track_hops, timeout, url, additional_properties].hash
|
421
451
|
end
|
422
452
|
end
|
423
453
|
end
|
@@ -44,12 +44,6 @@ module DatadogAPIClient::V2
|
|
44
44
|
# @param opts [Hash] the optional parameters
|
45
45
|
# @return [Array<(DORADeploymentResponse, Integer, Hash)>] DORADeploymentResponse data, response status code and response headers
|
46
46
|
def create_dora_deployment_with_http_info(body, opts = {})
|
47
|
-
unstable_enabled = @api_client.config.unstable_operations["v2.create_dora_deployment".to_sym]
|
48
|
-
if unstable_enabled
|
49
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_dora_deployment")
|
50
|
-
else
|
51
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_dora_deployment"))
|
52
|
-
end
|
53
47
|
|
54
48
|
if @api_client.config.debugging
|
55
49
|
@api_client.config.logger.debug 'Calling API: DORAMetricsAPI.create_dora_deployment ...'
|
@@ -101,6 +95,77 @@ module DatadogAPIClient::V2
|
|
101
95
|
return data, status_code, headers
|
102
96
|
end
|
103
97
|
|
98
|
+
# Send a failure event for DORA Metrics.
|
99
|
+
#
|
100
|
+
# @see #create_dora_failure_with_http_info
|
101
|
+
def create_dora_failure(body, opts = {})
|
102
|
+
data, _status_code, _headers = create_dora_failure_with_http_info(body, opts)
|
103
|
+
data
|
104
|
+
end
|
105
|
+
|
106
|
+
# Send a failure event for DORA Metrics.
|
107
|
+
#
|
108
|
+
# Use this API endpoint to provide failure data for DORA metrics.
|
109
|
+
#
|
110
|
+
# This is necessary for:
|
111
|
+
# - Change Failure Rate
|
112
|
+
# - Time to Restore
|
113
|
+
#
|
114
|
+
# @param body [DORAFailureRequest]
|
115
|
+
# @param opts [Hash] the optional parameters
|
116
|
+
# @return [Array<(DORAFailureResponse, Integer, Hash)>] DORAFailureResponse data, response status code and response headers
|
117
|
+
def create_dora_failure_with_http_info(body, opts = {})
|
118
|
+
|
119
|
+
if @api_client.config.debugging
|
120
|
+
@api_client.config.logger.debug 'Calling API: DORAMetricsAPI.create_dora_failure ...'
|
121
|
+
end
|
122
|
+
# verify the required parameter 'body' is set
|
123
|
+
if @api_client.config.client_side_validation && body.nil?
|
124
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling DORAMetricsAPI.create_dora_failure"
|
125
|
+
end
|
126
|
+
# resource path
|
127
|
+
local_var_path = '/api/v2/dora/failure'
|
128
|
+
|
129
|
+
# query parameters
|
130
|
+
query_params = opts[:query_params] || {}
|
131
|
+
|
132
|
+
# header parameters
|
133
|
+
header_params = opts[:header_params] || {}
|
134
|
+
# HTTP header 'Accept' (if needed)
|
135
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
136
|
+
# HTTP header 'Content-Type'
|
137
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
138
|
+
|
139
|
+
# form parameters
|
140
|
+
form_params = opts[:form_params] || {}
|
141
|
+
|
142
|
+
# http body (model)
|
143
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
144
|
+
|
145
|
+
# return_type
|
146
|
+
return_type = opts[:debug_return_type] || 'DORAFailureResponse'
|
147
|
+
|
148
|
+
# auth_names
|
149
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth]
|
150
|
+
|
151
|
+
new_options = opts.merge(
|
152
|
+
:operation => :create_dora_failure,
|
153
|
+
:header_params => header_params,
|
154
|
+
:query_params => query_params,
|
155
|
+
:form_params => form_params,
|
156
|
+
:body => post_body,
|
157
|
+
:auth_names => auth_names,
|
158
|
+
:return_type => return_type,
|
159
|
+
:api_version => "V2"
|
160
|
+
)
|
161
|
+
|
162
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
163
|
+
if @api_client.config.debugging
|
164
|
+
@api_client.config.logger.debug "API called: DORAMetricsAPI#create_dora_failure\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
165
|
+
end
|
166
|
+
return data, status_code, headers
|
167
|
+
end
|
168
|
+
|
104
169
|
# Send an incident event for DORA Metrics.
|
105
170
|
#
|
106
171
|
# @see #create_dora_incident_with_http_info
|
@@ -111,22 +176,21 @@ module DatadogAPIClient::V2
|
|
111
176
|
|
112
177
|
# Send an incident event for DORA Metrics.
|
113
178
|
#
|
179
|
+
# **Note**: This endpoint is deprecated. Please use `/api/v2/dora/failure` instead.
|
180
|
+
#
|
114
181
|
# Use this API endpoint to provide failure data for DORA metrics.
|
115
182
|
#
|
116
183
|
# This is necessary for:
|
117
184
|
# - Change Failure Rate
|
118
185
|
# - Time to Restore
|
119
186
|
#
|
120
|
-
# @
|
187
|
+
# @deprecated This API is deprecated.
|
188
|
+
#
|
189
|
+
# @param body [DORAFailureRequest]
|
121
190
|
# @param opts [Hash] the optional parameters
|
122
|
-
# @return [Array<(
|
191
|
+
# @return [Array<(DORAFailureResponse, Integer, Hash)>] DORAFailureResponse data, response status code and response headers
|
123
192
|
def create_dora_incident_with_http_info(body, opts = {})
|
124
|
-
|
125
|
-
if unstable_enabled
|
126
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_dora_incident")
|
127
|
-
else
|
128
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_dora_incident"))
|
129
|
-
end
|
193
|
+
warn "[DEPRECATION] `CreateDORAIncident` is deprecated."
|
130
194
|
|
131
195
|
if @api_client.config.debugging
|
132
196
|
@api_client.config.logger.debug 'Calling API: DORAMetricsAPI.create_dora_incident ...'
|
@@ -155,7 +219,7 @@ module DatadogAPIClient::V2
|
|
155
219
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
156
220
|
|
157
221
|
# return_type
|
158
|
-
return_type = opts[:debug_return_type] || '
|
222
|
+
return_type = opts[:debug_return_type] || 'DORAFailureResponse'
|
159
223
|
|
160
224
|
# auth_names
|
161
225
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth]
|