datadog_api_client 2.19.0 → 2.21.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/conftest.py +5 -0
- data/.generator/schemas/v1/openapi.yaml +430 -172
- data/.generator/schemas/v2/openapi.yaml +3146 -165
- data/.generator/src/generator/templates/api.j2 +5 -5
- data/CHANGELOG.md +48 -0
- data/examples/v1/gcp-integration/CreateGCPIntegration.rb +3 -0
- data/examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb +25 -0
- data/examples/v1/logs-indexes/CreateLogsIndex.rb +5 -0
- data/examples/v1/logs-indexes/UpdateLogsIndex.rb +5 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +29 -0
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest.rb +1 -1
- data/examples/v1/synthetics/TriggerCITests.rb +1 -1
- data/examples/v1/synthetics/UpdateBrowserTest.rb +2 -1
- data/examples/v1/usage-metering/GetUsageLambda.rb +5 -2
- data/examples/v2/api-management/CreateOpenAPI.rb +11 -0
- data/examples/v2/api-management/DeleteOpenAPI.rb +11 -0
- data/examples/v2/api-management/GetOpenAPI.rb +11 -0
- data/examples/v2/api-management/UpdateOpenAPI.rb +14 -0
- data/examples/v2/case-management/ArchiveCase.rb +14 -0
- data/examples/v2/case-management/AssignCase.rb +20 -0
- data/examples/v2/case-management/CreateCase.rb +33 -0
- data/examples/v2/case-management/CreateProject.rb +15 -0
- data/examples/v2/case-management/DeleteProject.rb +5 -0
- data/examples/v2/case-management/GetCase.rb +8 -0
- data/examples/v2/case-management/GetProject.rb +5 -0
- data/examples/v2/case-management/GetProjects.rb +5 -0
- data/examples/v2/case-management/SearchCases.rb +5 -0
- data/examples/v2/case-management/SearchCases_3433960044.rb +5 -0
- data/examples/v2/case-management/UnarchiveCase.rb +14 -0
- data/examples/v2/case-management/UnassignCase.rb +14 -0
- data/examples/v2/case-management/UpdatePriority.rb +17 -0
- data/examples/v2/case-management/UpdateStatus.rb +17 -0
- data/examples/v2/cloud-workload-security/CreateCSMThreatsAgentRule.rb +17 -0
- data/examples/v2/cloud-workload-security/DeleteCSMThreatsAgentRule.rb +8 -0
- data/examples/v2/cloud-workload-security/DownloadCSMThreatsPolicy.rb +5 -0
- data/examples/v2/cloud-workload-security/GetCSMThreatsAgentRule.rb +8 -0
- data/examples/v2/cloud-workload-security/ListCSMThreatsAgentRules.rb +5 -0
- data/examples/v2/cloud-workload-security/UpdateCSMThreatsAgentRule.rb +20 -0
- data/examples/v2/dora-metrics/CreateDORAIncident.rb +6 -3
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_194782945.rb +18 -0
- data/examples/v2/gcp-integration/UpdateGCPSTSAccount_2241994060.rb +21 -0
- data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination.rb +31 -0
- data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1091442807.rb +31 -0
- data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1288180912.rb +27 -0
- data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_141236188.rb +32 -0
- data/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_2184123765.rb +31 -0
- data/examples/v2/logs-custom-destinations/DeleteLogsCustomDestination.rb +8 -0
- data/examples/v2/logs-custom-destinations/GetLogsCustomDestination.rb +8 -0
- data/examples/v2/logs-custom-destinations/ListLogsCustomDestinations.rb +5 -0
- data/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination.rb +18 -0
- data/examples/v2/metrics/ListMetricAssets.rb +5 -0
- data/examples/v2/okta-integration/CreateOktaAccount.rb +1 -1
- data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.rb +19 -0
- data/examples/v2/security-monitoring/DeleteSecurityMonitoringSuppression.rb +8 -0
- data/examples/v2/security-monitoring/GetSecurityMonitoringSuppression.rb +8 -0
- data/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions.rb +5 -0
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringSuppression.rb +17 -0
- data/examples/v2/teams/GetTeamMemberships_3799131168.rb +8 -0
- data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.rb +1 -1
- data/lib/datadog_api_client/configuration.rb +4 -0
- data/lib/datadog_api_client/inflector.rb +134 -0
- data/lib/datadog_api_client/v1/api/monitors_api.rb +1 -3
- data/lib/datadog_api_client/v1/api/organizations_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +8 -8
- data/lib/datadog_api_client/v1/models/dashboard.rb +5 -1
- data/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb +2 -0
- data/lib/datadog_api_client/v1/models/gcp_account.rb +14 -1
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +6 -0
- data/lib/datadog_api_client/v1/models/log.rb +1 -1
- data/lib/datadog_api_client/v1/models/logs_daily_limit_reset.rb +90 -0
- data/lib/datadog_api_client/v1/models/logs_index.rb +36 -1
- data/lib/datadog_api_client/v1/models/logs_index_update_request.rb +36 -1
- data/lib/datadog_api_client/v1/models/metrics_payload.rb +1 -1
- data/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +1 -1
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +8 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +84 -4
- data/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_history_metrics.rb +2 -2
- data/lib/datadog_api_client/v1/models/slo_history_metrics_series.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_history_monitor.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_history_sli_data.rb +1 -1
- data/lib/datadog_api_client/v1/models/split_config.rb +6 -6
- data/lib/datadog_api_client/v1/models/synthetics_api_step_subtype.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_attribution_body.rb +1 -1
- data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +2 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +2 -0
- data/lib/datadog_api_client/v1/models/usage_lambda_hour.rb +1 -1
- data/lib/datadog_api_client/v1/models/usage_lambda_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +81 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +83 -3
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +182 -102
- data/lib/datadog_api_client/v2/api/api_management_api.rb +319 -0
- data/lib/datadog_api_client/v2/api/case_management_api.rb +942 -0
- data/lib/datadog_api_client/v2/api/ci_visibility_tests_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb +392 -0
- data/lib/datadog_api_client/v2/api/incident_services_api.rb +15 -0
- data/lib/datadog_api_client/v2/api/logs_custom_destinations_api.rb +355 -0
- data/lib/datadog_api_client/v2/api/metrics_api.rb +69 -1
- data/lib/datadog_api_client/v2/api/organizations_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +329 -0
- data/lib/datadog_api_client/v2/api/service_definition_api.rb +2 -1
- data/lib/datadog_api_client/v2/api/teams_api.rb +22 -0
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +6 -6
- data/lib/datadog_api_client/v2/models/case.rb +150 -0
- data/lib/datadog_api_client/v2/models/case3rd_party_ticket_status.rb +28 -0
- data/lib/datadog_api_client/v2/models/case_assign.rb +119 -0
- data/lib/datadog_api_client/v2/models/case_assign_attributes.rb +98 -0
- data/lib/datadog_api_client/v2/models/case_assign_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/case_attributes.rb +202 -0
- data/lib/datadog_api_client/v2/models/case_create.rb +129 -0
- data/lib/datadog_api_client/v2/models/case_create_attributes.rb +139 -0
- data/lib/datadog_api_client/v2/models/case_create_relationships.rb +116 -0
- data/lib/datadog_api_client/v2/models/case_create_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/case_empty.rb +98 -0
- data/lib/datadog_api_client/v2/models/case_empty_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/case_priority.rb +31 -0
- data/lib/datadog_api_client/v2/models/case_relationships.rb +120 -0
- data/lib/datadog_api_client/v2/models/case_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/case_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/case_sortable_field.rb +28 -0
- data/lib/datadog_api_client/v2/models/case_status.rb +28 -0
- data/lib/datadog_api_client/v2/models/case_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/case_update_priority.rb +119 -0
- data/lib/datadog_api_client/v2/models/case_update_priority_attributes.rb +98 -0
- data/lib/datadog_api_client/v2/models/case_update_priority_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/case_update_status.rb +119 -0
- data/lib/datadog_api_client/v2/models/case_update_status_attributes.rb +98 -0
- data/lib/datadog_api_client/v2/models/case_update_status_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/cases_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/cases_response_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/cases_response_meta_pagination.rb +100 -0
- data/lib/datadog_api_client/v2/models/ci_app_aggregate_sort.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_pipelines_group_by.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_tests_group_by.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +90 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_kill.rb +80 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/create_open_api_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/create_open_api_response_attributes.rb +82 -0
- data/lib/datadog_api_client/v2/models/create_open_api_response_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/custom_destination_attribute_tags_restriction_list_type.rb +31 -0
- data/lib/datadog_api_client/v2/models/custom_destination_create_request.rb +80 -0
- data/lib/datadog_api_client/v2/models/custom_destination_create_request_attributes.rb +193 -0
- data/lib/datadog_api_client/v2/models/custom_destination_create_request_definition.rb +119 -0
- data/lib/datadog_api_client/v2/models/custom_destination_elasticsearch_destination_auth.rb +119 -0
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination.rb +64 -0
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_elasticsearch.rb +181 -0
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_elasticsearch_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_http.rb +141 -0
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_http_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_splunk.rb +141 -0
- data/lib/datadog_api_client/v2/models/custom_destination_forward_destination_splunk_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth.rb +63 -0
- data/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_basic.rb +140 -0
- data/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_basic_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_custom_header.rb +140 -0
- data/lib/datadog_api_client/v2/models/custom_destination_http_destination_auth_custom_header_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_attributes.rb +171 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_definition.rb +100 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination.rb +64 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_elasticsearch.rb +181 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_elasticsearch_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_http.rb +141 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_http_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_splunk.rb +120 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_forward_destination_splunk_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth.rb +63 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_basic.rb +98 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_basic_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_custom_header.rb +119 -0
- data/lib/datadog_api_client/v2/models/custom_destination_response_http_destination_auth_custom_header_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_destination_update_request.rb +80 -0
- data/lib/datadog_api_client/v2/models/custom_destination_update_request_attributes.rb +169 -0
- data/lib/datadog_api_client/v2/models/custom_destination_update_request_definition.rb +129 -0
- data/lib/datadog_api_client/v2/models/custom_destinations_response.rb +82 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb +31 -20
- data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +14 -1
- data/lib/datadog_api_client/v2/models/jira_issue.rb +90 -0
- data/lib/datadog_api_client/v2/models/jira_issue_result.rb +110 -0
- data/lib/datadog_api_client/v2/models/logs_archive_integration_gcs.rb +1 -12
- data/lib/datadog_api_client/v2/models/metric_asset_attributes.rb +80 -0
- data/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationship.rb +90 -0
- data/lib/datadog_api_client/v2/models/metric_asset_dashboard_relationships.rb +82 -0
- data/lib/datadog_api_client/v2/models/metric_asset_monitor_relationship.rb +90 -0
- data/lib/datadog_api_client/v2/models/metric_asset_monitor_relationships.rb +82 -0
- data/lib/datadog_api_client/v2/models/metric_asset_notebook_relationship.rb +90 -0
- data/lib/datadog_api_client/v2/models/metric_asset_notebook_relationships.rb +82 -0
- data/lib/datadog_api_client/v2/models/metric_asset_response_data.rb +129 -0
- data/lib/datadog_api_client/v2/models/metric_asset_response_included.rb +65 -0
- data/lib/datadog_api_client/v2/models/metric_asset_response_relationships.rb +110 -0
- data/lib/datadog_api_client/v2/models/metric_asset_slo_relationship.rb +90 -0
- data/lib/datadog_api_client/v2/models/metric_asset_slo_relationships.rb +82 -0
- data/lib/datadog_api_client/v2/models/metric_assets_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/metric_dashboard_asset.rb +129 -0
- data/lib/datadog_api_client/v2/models/metric_dashboard_attributes.rb +112 -0
- data/lib/datadog_api_client/v2/models/metric_dashboard_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/metric_monitor_asset.rb +129 -0
- data/lib/datadog_api_client/v2/models/metric_monitor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/metric_notebook_asset.rb +129 -0
- data/lib/datadog_api_client/v2/models/metric_notebook_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/metric_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_slo_asset.rb +129 -0
- data/lib/datadog_api_client/v2/models/metric_slo_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/nullable_user_relationship.rb +88 -0
- data/lib/datadog_api_client/v2/models/nullable_user_relationship_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/open_api_endpoint.rb +90 -0
- data/lib/datadog_api_client/v2/models/open_api_file.rb +80 -0
- data/lib/datadog_api_client/v2/models/project.rb +150 -0
- data/lib/datadog_api_client/v2/models/project_attributes.rb +90 -0
- data/lib/datadog_api_client/v2/models/project_create.rb +119 -0
- data/lib/datadog_api_client/v2/models/project_create_attributes.rb +119 -0
- data/lib/datadog_api_client/v2/models/project_create_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/project_relationship.rb +98 -0
- data/lib/datadog_api_client/v2/models/project_relationship_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/project_relationships.rb +90 -0
- data/lib/datadog_api_client/v2/models/project_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/project_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/projects_response.rb +82 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression.rb +100 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +198 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +181 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +166 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_suppressions_response.rb +82 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_user.rb +98 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb +1 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/service_now_ticket.rb +90 -0
- data/lib/datadog_api_client/v2/models/service_now_ticket_result.rb +80 -0
- data/lib/datadog_api_client/v2/models/update_open_api_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/update_open_api_response_attributes.rb +82 -0
- data/lib/datadog_api_client/v2/models/update_open_api_response_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/user_relationship_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/user_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/user_team_included.rb +62 -0
- data/lib/datadog_api_client/v2/models/user_team_response.rb +16 -4
- data/lib/datadog_api_client/v2/models/users_relationship.rb +100 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +179 -3
- data/examples/v1/usage-metering/GetUsageLambda_3132428705.rb +0 -8
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Create a custom destination returns "OK" response
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new
|
|
5
|
+
|
|
6
|
+
body = DatadogAPIClient::V2::CustomDestinationCreateRequest.new({
|
|
7
|
+
data: DatadogAPIClient::V2::CustomDestinationCreateRequestDefinition.new({
|
|
8
|
+
attributes: DatadogAPIClient::V2::CustomDestinationCreateRequestAttributes.new({
|
|
9
|
+
enabled: true,
|
|
10
|
+
forward_tags: true,
|
|
11
|
+
forward_tags_restriction_list: [
|
|
12
|
+
"datacenter",
|
|
13
|
+
"host",
|
|
14
|
+
],
|
|
15
|
+
forward_tags_restriction_list_type: DatadogAPIClient::V2::CustomDestinationAttributeTagsRestrictionListType::ALLOW_LIST,
|
|
16
|
+
forwarder_destination: DatadogAPIClient::V2::CustomDestinationForwardDestinationHttp.new({
|
|
17
|
+
auth: DatadogAPIClient::V2::CustomDestinationHttpDestinationAuthBasic.new({
|
|
18
|
+
password: "datadog-custom-destination-password",
|
|
19
|
+
type: DatadogAPIClient::V2::CustomDestinationHttpDestinationAuthBasicType::BASIC,
|
|
20
|
+
username: "datadog-custom-destination-username",
|
|
21
|
+
}),
|
|
22
|
+
endpoint: "https://example.com",
|
|
23
|
+
type: DatadogAPIClient::V2::CustomDestinationForwardDestinationHttpType::HTTP,
|
|
24
|
+
}),
|
|
25
|
+
name: "Nginx logs",
|
|
26
|
+
query: "source:nginx",
|
|
27
|
+
}),
|
|
28
|
+
type: DatadogAPIClient::V2::CustomDestinationType::CUSTOM_DESTINATION,
|
|
29
|
+
}),
|
|
30
|
+
})
|
|
31
|
+
p api_instance.create_logs_custom_destination(body)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Create a Custom Header HTTP custom destination returns "OK" response
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new
|
|
5
|
+
|
|
6
|
+
body = DatadogAPIClient::V2::CustomDestinationCreateRequest.new({
|
|
7
|
+
data: DatadogAPIClient::V2::CustomDestinationCreateRequestDefinition.new({
|
|
8
|
+
attributes: DatadogAPIClient::V2::CustomDestinationCreateRequestAttributes.new({
|
|
9
|
+
enabled: false,
|
|
10
|
+
forward_tags: false,
|
|
11
|
+
forward_tags_restriction_list: [
|
|
12
|
+
"datacenter",
|
|
13
|
+
"host",
|
|
14
|
+
],
|
|
15
|
+
forward_tags_restriction_list_type: DatadogAPIClient::V2::CustomDestinationAttributeTagsRestrictionListType::ALLOW_LIST,
|
|
16
|
+
forwarder_destination: DatadogAPIClient::V2::CustomDestinationForwardDestinationHttp.new({
|
|
17
|
+
auth: DatadogAPIClient::V2::CustomDestinationHttpDestinationAuthCustomHeader.new({
|
|
18
|
+
header_value: "my-secret",
|
|
19
|
+
type: DatadogAPIClient::V2::CustomDestinationHttpDestinationAuthCustomHeaderType::CUSTOM_HEADER,
|
|
20
|
+
header_name: "MY-AUTHENTICATION-HEADER",
|
|
21
|
+
}),
|
|
22
|
+
endpoint: "https://example.com",
|
|
23
|
+
type: DatadogAPIClient::V2::CustomDestinationForwardDestinationHttpType::HTTP,
|
|
24
|
+
}),
|
|
25
|
+
name: "Nginx logs",
|
|
26
|
+
query: "source:nginx",
|
|
27
|
+
}),
|
|
28
|
+
type: DatadogAPIClient::V2::CustomDestinationType::CUSTOM_DESTINATION,
|
|
29
|
+
}),
|
|
30
|
+
})
|
|
31
|
+
p api_instance.create_logs_custom_destination(body)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Create a Splunk custom destination returns "OK" response
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new
|
|
5
|
+
|
|
6
|
+
body = DatadogAPIClient::V2::CustomDestinationCreateRequest.new({
|
|
7
|
+
data: DatadogAPIClient::V2::CustomDestinationCreateRequestDefinition.new({
|
|
8
|
+
attributes: DatadogAPIClient::V2::CustomDestinationCreateRequestAttributes.new({
|
|
9
|
+
enabled: false,
|
|
10
|
+
forward_tags: false,
|
|
11
|
+
forward_tags_restriction_list: [
|
|
12
|
+
"datacenter",
|
|
13
|
+
"host",
|
|
14
|
+
],
|
|
15
|
+
forward_tags_restriction_list_type: DatadogAPIClient::V2::CustomDestinationAttributeTagsRestrictionListType::ALLOW_LIST,
|
|
16
|
+
forwarder_destination: DatadogAPIClient::V2::CustomDestinationForwardDestinationSplunk.new({
|
|
17
|
+
access_token: "my-access-token",
|
|
18
|
+
endpoint: "https://example.com",
|
|
19
|
+
type: DatadogAPIClient::V2::CustomDestinationForwardDestinationSplunkType::SPLUNK_HEC,
|
|
20
|
+
}),
|
|
21
|
+
name: "Nginx logs",
|
|
22
|
+
query: "source:nginx",
|
|
23
|
+
}),
|
|
24
|
+
type: DatadogAPIClient::V2::CustomDestinationType::CUSTOM_DESTINATION,
|
|
25
|
+
}),
|
|
26
|
+
})
|
|
27
|
+
p api_instance.create_logs_custom_destination(body)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Create an Elasticsearch custom destination returns "OK" response
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new
|
|
5
|
+
|
|
6
|
+
body = DatadogAPIClient::V2::CustomDestinationCreateRequest.new({
|
|
7
|
+
data: DatadogAPIClient::V2::CustomDestinationCreateRequestDefinition.new({
|
|
8
|
+
attributes: DatadogAPIClient::V2::CustomDestinationCreateRequestAttributes.new({
|
|
9
|
+
enabled: false,
|
|
10
|
+
forward_tags: false,
|
|
11
|
+
forward_tags_restriction_list: [
|
|
12
|
+
"datacenter",
|
|
13
|
+
"host",
|
|
14
|
+
],
|
|
15
|
+
forward_tags_restriction_list_type: DatadogAPIClient::V2::CustomDestinationAttributeTagsRestrictionListType::ALLOW_LIST,
|
|
16
|
+
forwarder_destination: DatadogAPIClient::V2::CustomDestinationForwardDestinationElasticsearch.new({
|
|
17
|
+
auth: DatadogAPIClient::V2::CustomDestinationElasticsearchDestinationAuth.new({
|
|
18
|
+
username: "my-username",
|
|
19
|
+
password: "my-password",
|
|
20
|
+
}),
|
|
21
|
+
index_name: "nginx-logs",
|
|
22
|
+
index_rotation: "yyyy-MM-dd",
|
|
23
|
+
endpoint: "https://example.com",
|
|
24
|
+
type: DatadogAPIClient::V2::CustomDestinationForwardDestinationElasticsearchType::ELASTICSEARCH,
|
|
25
|
+
}),
|
|
26
|
+
name: "Nginx logs",
|
|
27
|
+
query: "source:nginx",
|
|
28
|
+
}),
|
|
29
|
+
type: DatadogAPIClient::V2::CustomDestinationType::CUSTOM_DESTINATION,
|
|
30
|
+
}),
|
|
31
|
+
})
|
|
32
|
+
p api_instance.create_logs_custom_destination(body)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Create a Basic HTTP custom destination returns "OK" response
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new
|
|
5
|
+
|
|
6
|
+
body = DatadogAPIClient::V2::CustomDestinationCreateRequest.new({
|
|
7
|
+
data: DatadogAPIClient::V2::CustomDestinationCreateRequestDefinition.new({
|
|
8
|
+
attributes: DatadogAPIClient::V2::CustomDestinationCreateRequestAttributes.new({
|
|
9
|
+
enabled: false,
|
|
10
|
+
forward_tags: false,
|
|
11
|
+
forward_tags_restriction_list: [
|
|
12
|
+
"datacenter",
|
|
13
|
+
"host",
|
|
14
|
+
],
|
|
15
|
+
forward_tags_restriction_list_type: DatadogAPIClient::V2::CustomDestinationAttributeTagsRestrictionListType::ALLOW_LIST,
|
|
16
|
+
forwarder_destination: DatadogAPIClient::V2::CustomDestinationForwardDestinationHttp.new({
|
|
17
|
+
auth: DatadogAPIClient::V2::CustomDestinationHttpDestinationAuthBasic.new({
|
|
18
|
+
password: "datadog-custom-destination-password",
|
|
19
|
+
type: DatadogAPIClient::V2::CustomDestinationHttpDestinationAuthBasicType::BASIC,
|
|
20
|
+
username: "datadog-custom-destination-username",
|
|
21
|
+
}),
|
|
22
|
+
endpoint: "https://example.com",
|
|
23
|
+
type: DatadogAPIClient::V2::CustomDestinationForwardDestinationHttpType::HTTP,
|
|
24
|
+
}),
|
|
25
|
+
name: "Nginx logs",
|
|
26
|
+
query: "source:nginx",
|
|
27
|
+
}),
|
|
28
|
+
type: DatadogAPIClient::V2::CustomDestinationType::CUSTOM_DESTINATION,
|
|
29
|
+
}),
|
|
30
|
+
})
|
|
31
|
+
p api_instance.create_logs_custom_destination(body)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Delete a custom destination returns "OK" response
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new
|
|
5
|
+
|
|
6
|
+
# there is a valid "custom_destination" in the system
|
|
7
|
+
CUSTOM_DESTINATION_DATA_ID = ENV["CUSTOM_DESTINATION_DATA_ID"]
|
|
8
|
+
api_instance.delete_logs_custom_destination(CUSTOM_DESTINATION_DATA_ID)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Get a custom destination returns "OK" response
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new
|
|
5
|
+
|
|
6
|
+
# there is a valid "custom_destination" in the system
|
|
7
|
+
CUSTOM_DESTINATION_DATA_ID = ENV["CUSTOM_DESTINATION_DATA_ID"]
|
|
8
|
+
p api_instance.get_logs_custom_destination(CUSTOM_DESTINATION_DATA_ID)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Update a custom destination returns "OK" response
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new
|
|
5
|
+
|
|
6
|
+
# there is a valid "custom_destination" in the system
|
|
7
|
+
CUSTOM_DESTINATION_DATA_ID = ENV["CUSTOM_DESTINATION_DATA_ID"]
|
|
8
|
+
|
|
9
|
+
body = DatadogAPIClient::V2::CustomDestinationUpdateRequest.new({
|
|
10
|
+
data: DatadogAPIClient::V2::CustomDestinationUpdateRequestDefinition.new({
|
|
11
|
+
attributes: DatadogAPIClient::V2::CustomDestinationUpdateRequestAttributes.new({
|
|
12
|
+
name: "Nginx logs (Updated)",
|
|
13
|
+
}),
|
|
14
|
+
type: DatadogAPIClient::V2::CustomDestinationType::CUSTOM_DESTINATION,
|
|
15
|
+
id: CUSTOM_DESTINATION_DATA_ID,
|
|
16
|
+
}),
|
|
17
|
+
})
|
|
18
|
+
p api_instance.update_logs_custom_destination(CUSTOM_DESTINATION_DATA_ID, body)
|
|
@@ -8,7 +8,7 @@ body = DatadogAPIClient::V2::OktaAccountRequest.new({
|
|
|
8
8
|
attributes: DatadogAPIClient::V2::OktaAccountAttributes.new({
|
|
9
9
|
auth_method: "oauth",
|
|
10
10
|
domain: "https://example.okta.com/",
|
|
11
|
-
name: "
|
|
11
|
+
name: "exampleoktaintegration",
|
|
12
12
|
client_id: "client_id",
|
|
13
13
|
client_secret: "client_secret",
|
|
14
14
|
}),
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Create a suppression rule returns "OK" response
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
|
|
5
|
+
|
|
6
|
+
body = DatadogAPIClient::V2::SecurityMonitoringSuppressionCreateRequest.new({
|
|
7
|
+
data: DatadogAPIClient::V2::SecurityMonitoringSuppressionCreateData.new({
|
|
8
|
+
attributes: DatadogAPIClient::V2::SecurityMonitoringSuppressionCreateAttributes.new({
|
|
9
|
+
description: "This rule suppresses low-severity signals in staging environments.",
|
|
10
|
+
enabled: true,
|
|
11
|
+
expiration_date: 1703187336000,
|
|
12
|
+
name: "Example-Security-Monitoring",
|
|
13
|
+
rule_query: "type:log_detection source:cloudtrail",
|
|
14
|
+
suppression_query: "env:staging status:low",
|
|
15
|
+
}),
|
|
16
|
+
type: DatadogAPIClient::V2::SecurityMonitoringSuppressionType::SUPPRESSIONS,
|
|
17
|
+
}),
|
|
18
|
+
})
|
|
19
|
+
p api_instance.create_security_monitoring_suppression(body)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Delete a suppression rule returns "OK" response
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
|
|
5
|
+
|
|
6
|
+
# there is a valid "suppression" in the system
|
|
7
|
+
SUPPRESSION_DATA_ID = ENV["SUPPRESSION_DATA_ID"]
|
|
8
|
+
api_instance.delete_security_monitoring_suppression(SUPPRESSION_DATA_ID)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Get a suppression rule returns "OK" response
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
|
|
5
|
+
|
|
6
|
+
# there is a valid "suppression" in the system
|
|
7
|
+
SUPPRESSION_DATA_ID = ENV["SUPPRESSION_DATA_ID"]
|
|
8
|
+
p api_instance.get_security_monitoring_suppression(SUPPRESSION_DATA_ID)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Update a suppression rule returns "OK" response
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
|
|
5
|
+
|
|
6
|
+
# there is a valid "suppression" in the system
|
|
7
|
+
SUPPRESSION_DATA_ID = ENV["SUPPRESSION_DATA_ID"]
|
|
8
|
+
|
|
9
|
+
body = DatadogAPIClient::V2::SecurityMonitoringSuppressionUpdateRequest.new({
|
|
10
|
+
data: DatadogAPIClient::V2::SecurityMonitoringSuppressionUpdateData.new({
|
|
11
|
+
attributes: DatadogAPIClient::V2::SecurityMonitoringSuppressionUpdateAttributes.new({
|
|
12
|
+
suppression_query: "env:staging status:low",
|
|
13
|
+
}),
|
|
14
|
+
type: DatadogAPIClient::V2::SecurityMonitoringSuppressionType::SUPPRESSIONS,
|
|
15
|
+
}),
|
|
16
|
+
})
|
|
17
|
+
p api_instance.update_security_monitoring_suppression(SUPPRESSION_DATA_ID, body)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Get team memberships returns "Represents a user's association to a team" response with pagination
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V2::TeamsAPI.new
|
|
5
|
+
opts = {
|
|
6
|
+
page_size: 2,
|
|
7
|
+
}
|
|
8
|
+
api_instance.get_team_memberships_with_pagination("2e06bf2c-193b-41d4-b3c2-afccc080458f", opts) { |item| puts item }
|
|
@@ -189,6 +189,10 @@ module DatadogAPIClient
|
|
|
189
189
|
@http_proxypass = nil
|
|
190
190
|
@logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
|
|
191
191
|
@unstable_operations = {
|
|
192
|
+
"v2.create_open_api": false,
|
|
193
|
+
"v2.delete_open_api": false,
|
|
194
|
+
"v2.get_open_api": false,
|
|
195
|
+
"v2.update_open_api": false,
|
|
192
196
|
"v2.get_active_billing_dimensions": false,
|
|
193
197
|
"v2.get_monthly_cost_attribution": false,
|
|
194
198
|
"v2.create_dora_deployment": false,
|
|
@@ -234,6 +234,7 @@ module DatadogAPIClient
|
|
|
234
234
|
"v1.logs_category_processor" => "LogsCategoryProcessor",
|
|
235
235
|
"v1.logs_category_processor_category" => "LogsCategoryProcessorCategory",
|
|
236
236
|
"v1.logs_category_processor_type" => "LogsCategoryProcessorType",
|
|
237
|
+
"v1.logs_daily_limit_reset" => "LogsDailyLimitReset",
|
|
237
238
|
"v1.logs_date_remapper" => "LogsDateRemapper",
|
|
238
239
|
"v1.logs_date_remapper_type" => "LogsDateRemapperType",
|
|
239
240
|
"v1.logs_exclusion" => "LogsExclusion",
|
|
@@ -952,6 +953,34 @@ module DatadogAPIClient
|
|
|
952
953
|
"v2.bulk_mute_findings_request_properties" => "BulkMuteFindingsRequestProperties",
|
|
953
954
|
"v2.bulk_mute_findings_response" => "BulkMuteFindingsResponse",
|
|
954
955
|
"v2.bulk_mute_findings_response_data" => "BulkMuteFindingsResponseData",
|
|
956
|
+
"v2.case" => "Case",
|
|
957
|
+
"v2.case3rd_party_ticket_status" => "Case3rdPartyTicketStatus",
|
|
958
|
+
"v2.case_assign" => "CaseAssign",
|
|
959
|
+
"v2.case_assign_attributes" => "CaseAssignAttributes",
|
|
960
|
+
"v2.case_assign_request" => "CaseAssignRequest",
|
|
961
|
+
"v2.case_attributes" => "CaseAttributes",
|
|
962
|
+
"v2.case_create" => "CaseCreate",
|
|
963
|
+
"v2.case_create_attributes" => "CaseCreateAttributes",
|
|
964
|
+
"v2.case_create_relationships" => "CaseCreateRelationships",
|
|
965
|
+
"v2.case_create_request" => "CaseCreateRequest",
|
|
966
|
+
"v2.case_empty" => "CaseEmpty",
|
|
967
|
+
"v2.case_empty_request" => "CaseEmptyRequest",
|
|
968
|
+
"v2.case_priority" => "CasePriority",
|
|
969
|
+
"v2.case_relationships" => "CaseRelationships",
|
|
970
|
+
"v2.case_resource_type" => "CaseResourceType",
|
|
971
|
+
"v2.case_response" => "CaseResponse",
|
|
972
|
+
"v2.case_sortable_field" => "CaseSortableField",
|
|
973
|
+
"v2.cases_response" => "CasesResponse",
|
|
974
|
+
"v2.cases_response_meta" => "CasesResponseMeta",
|
|
975
|
+
"v2.cases_response_meta_pagination" => "CasesResponseMetaPagination",
|
|
976
|
+
"v2.case_status" => "CaseStatus",
|
|
977
|
+
"v2.case_type" => "CaseType",
|
|
978
|
+
"v2.case_update_priority" => "CaseUpdatePriority",
|
|
979
|
+
"v2.case_update_priority_attributes" => "CaseUpdatePriorityAttributes",
|
|
980
|
+
"v2.case_update_priority_request" => "CaseUpdatePriorityRequest",
|
|
981
|
+
"v2.case_update_status" => "CaseUpdateStatus",
|
|
982
|
+
"v2.case_update_status_attributes" => "CaseUpdateStatusAttributes",
|
|
983
|
+
"v2.case_update_status_request" => "CaseUpdateStatusRequest",
|
|
955
984
|
"v2.chargeback_breakdown" => "ChargebackBreakdown",
|
|
956
985
|
"v2.ci_app_aggregate_bucket_value" => "CIAppAggregateBucketValue",
|
|
957
986
|
"v2.ci_app_aggregate_bucket_value_timeseries_point" => "CIAppAggregateBucketValueTimeseriesPoint",
|
|
@@ -1042,12 +1071,14 @@ module DatadogAPIClient
|
|
|
1042
1071
|
"v2.cloudflare_account_update_request" => "CloudflareAccountUpdateRequest",
|
|
1043
1072
|
"v2.cloudflare_account_update_request_attributes" => "CloudflareAccountUpdateRequestAttributes",
|
|
1044
1073
|
"v2.cloudflare_account_update_request_data" => "CloudflareAccountUpdateRequestData",
|
|
1074
|
+
"v2.cloud_workload_security_agent_rule_action" => "CloudWorkloadSecurityAgentRuleAction",
|
|
1045
1075
|
"v2.cloud_workload_security_agent_rule_attributes" => "CloudWorkloadSecurityAgentRuleAttributes",
|
|
1046
1076
|
"v2.cloud_workload_security_agent_rule_create_attributes" => "CloudWorkloadSecurityAgentRuleCreateAttributes",
|
|
1047
1077
|
"v2.cloud_workload_security_agent_rule_create_data" => "CloudWorkloadSecurityAgentRuleCreateData",
|
|
1048
1078
|
"v2.cloud_workload_security_agent_rule_create_request" => "CloudWorkloadSecurityAgentRuleCreateRequest",
|
|
1049
1079
|
"v2.cloud_workload_security_agent_rule_creator_attributes" => "CloudWorkloadSecurityAgentRuleCreatorAttributes",
|
|
1050
1080
|
"v2.cloud_workload_security_agent_rule_data" => "CloudWorkloadSecurityAgentRuleData",
|
|
1081
|
+
"v2.cloud_workload_security_agent_rule_kill" => "CloudWorkloadSecurityAgentRuleKill",
|
|
1051
1082
|
"v2.cloud_workload_security_agent_rule_response" => "CloudWorkloadSecurityAgentRuleResponse",
|
|
1052
1083
|
"v2.cloud_workload_security_agent_rules_list_response" => "CloudWorkloadSecurityAgentRulesListResponse",
|
|
1053
1084
|
"v2.cloud_workload_security_agent_rule_type" => "CloudWorkloadSecurityAgentRuleType",
|
|
@@ -1114,11 +1145,51 @@ module DatadogAPIClient
|
|
|
1114
1145
|
"v2.cost_by_org_attributes" => "CostByOrgAttributes",
|
|
1115
1146
|
"v2.cost_by_org_response" => "CostByOrgResponse",
|
|
1116
1147
|
"v2.cost_by_org_type" => "CostByOrgType",
|
|
1148
|
+
"v2.create_open_api_response" => "CreateOpenAPIResponse",
|
|
1149
|
+
"v2.create_open_api_response_attributes" => "CreateOpenAPIResponseAttributes",
|
|
1150
|
+
"v2.create_open_api_response_data" => "CreateOpenAPIResponseData",
|
|
1117
1151
|
"v2.create_rule_request" => "CreateRuleRequest",
|
|
1118
1152
|
"v2.create_rule_request_data" => "CreateRuleRequestData",
|
|
1119
1153
|
"v2.create_rule_response" => "CreateRuleResponse",
|
|
1120
1154
|
"v2.create_rule_response_data" => "CreateRuleResponseData",
|
|
1121
1155
|
"v2.creator" => "Creator",
|
|
1156
|
+
"v2.custom_destination_attribute_tags_restriction_list_type" => "CustomDestinationAttributeTagsRestrictionListType",
|
|
1157
|
+
"v2.custom_destination_create_request" => "CustomDestinationCreateRequest",
|
|
1158
|
+
"v2.custom_destination_create_request_attributes" => "CustomDestinationCreateRequestAttributes",
|
|
1159
|
+
"v2.custom_destination_create_request_definition" => "CustomDestinationCreateRequestDefinition",
|
|
1160
|
+
"v2.custom_destination_elasticsearch_destination_auth" => "CustomDestinationElasticsearchDestinationAuth",
|
|
1161
|
+
"v2.custom_destination_forward_destination" => "CustomDestinationForwardDestination",
|
|
1162
|
+
"v2.custom_destination_forward_destination_elasticsearch" => "CustomDestinationForwardDestinationElasticsearch",
|
|
1163
|
+
"v2.custom_destination_forward_destination_elasticsearch_type" => "CustomDestinationForwardDestinationElasticsearchType",
|
|
1164
|
+
"v2.custom_destination_forward_destination_http" => "CustomDestinationForwardDestinationHttp",
|
|
1165
|
+
"v2.custom_destination_forward_destination_http_type" => "CustomDestinationForwardDestinationHttpType",
|
|
1166
|
+
"v2.custom_destination_forward_destination_splunk" => "CustomDestinationForwardDestinationSplunk",
|
|
1167
|
+
"v2.custom_destination_forward_destination_splunk_type" => "CustomDestinationForwardDestinationSplunkType",
|
|
1168
|
+
"v2.custom_destination_http_destination_auth" => "CustomDestinationHttpDestinationAuth",
|
|
1169
|
+
"v2.custom_destination_http_destination_auth_basic" => "CustomDestinationHttpDestinationAuthBasic",
|
|
1170
|
+
"v2.custom_destination_http_destination_auth_basic_type" => "CustomDestinationHttpDestinationAuthBasicType",
|
|
1171
|
+
"v2.custom_destination_http_destination_auth_custom_header" => "CustomDestinationHttpDestinationAuthCustomHeader",
|
|
1172
|
+
"v2.custom_destination_http_destination_auth_custom_header_type" => "CustomDestinationHttpDestinationAuthCustomHeaderType",
|
|
1173
|
+
"v2.custom_destination_response" => "CustomDestinationResponse",
|
|
1174
|
+
"v2.custom_destination_response_attributes" => "CustomDestinationResponseAttributes",
|
|
1175
|
+
"v2.custom_destination_response_definition" => "CustomDestinationResponseDefinition",
|
|
1176
|
+
"v2.custom_destination_response_forward_destination" => "CustomDestinationResponseForwardDestination",
|
|
1177
|
+
"v2.custom_destination_response_forward_destination_elasticsearch" => "CustomDestinationResponseForwardDestinationElasticsearch",
|
|
1178
|
+
"v2.custom_destination_response_forward_destination_elasticsearch_type" => "CustomDestinationResponseForwardDestinationElasticsearchType",
|
|
1179
|
+
"v2.custom_destination_response_forward_destination_http" => "CustomDestinationResponseForwardDestinationHttp",
|
|
1180
|
+
"v2.custom_destination_response_forward_destination_http_type" => "CustomDestinationResponseForwardDestinationHttpType",
|
|
1181
|
+
"v2.custom_destination_response_forward_destination_splunk" => "CustomDestinationResponseForwardDestinationSplunk",
|
|
1182
|
+
"v2.custom_destination_response_forward_destination_splunk_type" => "CustomDestinationResponseForwardDestinationSplunkType",
|
|
1183
|
+
"v2.custom_destination_response_http_destination_auth" => "CustomDestinationResponseHttpDestinationAuth",
|
|
1184
|
+
"v2.custom_destination_response_http_destination_auth_basic" => "CustomDestinationResponseHttpDestinationAuthBasic",
|
|
1185
|
+
"v2.custom_destination_response_http_destination_auth_basic_type" => "CustomDestinationResponseHttpDestinationAuthBasicType",
|
|
1186
|
+
"v2.custom_destination_response_http_destination_auth_custom_header" => "CustomDestinationResponseHttpDestinationAuthCustomHeader",
|
|
1187
|
+
"v2.custom_destination_response_http_destination_auth_custom_header_type" => "CustomDestinationResponseHttpDestinationAuthCustomHeaderType",
|
|
1188
|
+
"v2.custom_destinations_response" => "CustomDestinationsResponse",
|
|
1189
|
+
"v2.custom_destination_type" => "CustomDestinationType",
|
|
1190
|
+
"v2.custom_destination_update_request" => "CustomDestinationUpdateRequest",
|
|
1191
|
+
"v2.custom_destination_update_request_attributes" => "CustomDestinationUpdateRequestAttributes",
|
|
1192
|
+
"v2.custom_destination_update_request_definition" => "CustomDestinationUpdateRequestDefinition",
|
|
1122
1193
|
"v2.dashboard_list_add_items_request" => "DashboardListAddItemsRequest",
|
|
1123
1194
|
"v2.dashboard_list_add_items_response" => "DashboardListAddItemsResponse",
|
|
1124
1195
|
"v2.dashboard_list_delete_items_request" => "DashboardListDeleteItemsRequest",
|
|
@@ -1401,6 +1472,8 @@ module DatadogAPIClient
|
|
|
1401
1472
|
"v2.ip_allowlist_update_request" => "IPAllowlistUpdateRequest",
|
|
1402
1473
|
"v2.jira_integration_metadata" => "JiraIntegrationMetadata",
|
|
1403
1474
|
"v2.jira_integration_metadata_issues_item" => "JiraIntegrationMetadataIssuesItem",
|
|
1475
|
+
"v2.jira_issue" => "JiraIssue",
|
|
1476
|
+
"v2.jira_issue_result" => "JiraIssueResult",
|
|
1404
1477
|
"v2.jsonapi_error_item" => "JSONAPIErrorItem",
|
|
1405
1478
|
"v2.jsonapi_error_response" => "JSONAPIErrorResponse",
|
|
1406
1479
|
"v2.list_application_keys_response" => "ListApplicationKeysResponse",
|
|
@@ -1494,6 +1567,19 @@ module DatadogAPIClient
|
|
|
1494
1567
|
"v2.metric_all_tags" => "MetricAllTags",
|
|
1495
1568
|
"v2.metric_all_tags_attributes" => "MetricAllTagsAttributes",
|
|
1496
1569
|
"v2.metric_all_tags_response" => "MetricAllTagsResponse",
|
|
1570
|
+
"v2.metric_asset_attributes" => "MetricAssetAttributes",
|
|
1571
|
+
"v2.metric_asset_dashboard_relationship" => "MetricAssetDashboardRelationship",
|
|
1572
|
+
"v2.metric_asset_dashboard_relationships" => "MetricAssetDashboardRelationships",
|
|
1573
|
+
"v2.metric_asset_monitor_relationship" => "MetricAssetMonitorRelationship",
|
|
1574
|
+
"v2.metric_asset_monitor_relationships" => "MetricAssetMonitorRelationships",
|
|
1575
|
+
"v2.metric_asset_notebook_relationship" => "MetricAssetNotebookRelationship",
|
|
1576
|
+
"v2.metric_asset_notebook_relationships" => "MetricAssetNotebookRelationships",
|
|
1577
|
+
"v2.metric_asset_response_data" => "MetricAssetResponseData",
|
|
1578
|
+
"v2.metric_asset_response_included" => "MetricAssetResponseIncluded",
|
|
1579
|
+
"v2.metric_asset_response_relationships" => "MetricAssetResponseRelationships",
|
|
1580
|
+
"v2.metric_asset_slo_relationship" => "MetricAssetSLORelationship",
|
|
1581
|
+
"v2.metric_asset_slo_relationships" => "MetricAssetSLORelationships",
|
|
1582
|
+
"v2.metric_assets_response" => "MetricAssetsResponse",
|
|
1497
1583
|
"v2.metric_bulk_configure_tags_type" => "MetricBulkConfigureTagsType",
|
|
1498
1584
|
"v2.metric_bulk_tag_config_create" => "MetricBulkTagConfigCreate",
|
|
1499
1585
|
"v2.metric_bulk_tag_config_create_attributes" => "MetricBulkTagConfigCreateAttributes",
|
|
@@ -1508,6 +1594,9 @@ module DatadogAPIClient
|
|
|
1508
1594
|
"v2.metric_custom_aggregation" => "MetricCustomAggregation",
|
|
1509
1595
|
"v2.metric_custom_space_aggregation" => "MetricCustomSpaceAggregation",
|
|
1510
1596
|
"v2.metric_custom_time_aggregation" => "MetricCustomTimeAggregation",
|
|
1597
|
+
"v2.metric_dashboard_asset" => "MetricDashboardAsset",
|
|
1598
|
+
"v2.metric_dashboard_attributes" => "MetricDashboardAttributes",
|
|
1599
|
+
"v2.metric_dashboard_type" => "MetricDashboardType",
|
|
1511
1600
|
"v2.metric_distinct_volume" => "MetricDistinctVolume",
|
|
1512
1601
|
"v2.metric_distinct_volume_attributes" => "MetricDistinctVolumeAttributes",
|
|
1513
1602
|
"v2.metric_distinct_volume_type" => "MetricDistinctVolumeType",
|
|
@@ -1521,6 +1610,10 @@ module DatadogAPIClient
|
|
|
1521
1610
|
"v2.metric_ingested_indexed_volume_type" => "MetricIngestedIndexedVolumeType",
|
|
1522
1611
|
"v2.metric_intake_type" => "MetricIntakeType",
|
|
1523
1612
|
"v2.metric_metadata" => "MetricMetadata",
|
|
1613
|
+
"v2.metric_monitor_asset" => "MetricMonitorAsset",
|
|
1614
|
+
"v2.metric_monitor_type" => "MetricMonitorType",
|
|
1615
|
+
"v2.metric_notebook_asset" => "MetricNotebookAsset",
|
|
1616
|
+
"v2.metric_notebook_type" => "MetricNotebookType",
|
|
1524
1617
|
"v2.metric_origin" => "MetricOrigin",
|
|
1525
1618
|
"v2.metric_payload" => "MetricPayload",
|
|
1526
1619
|
"v2.metric_point" => "MetricPoint",
|
|
@@ -1530,6 +1623,8 @@ module DatadogAPIClient
|
|
|
1530
1623
|
"v2.metrics_and_metric_tag_configurations_response" => "MetricsAndMetricTagConfigurationsResponse",
|
|
1531
1624
|
"v2.metrics_data_source" => "MetricsDataSource",
|
|
1532
1625
|
"v2.metric_series" => "MetricSeries",
|
|
1626
|
+
"v2.metric_slo_asset" => "MetricSLOAsset",
|
|
1627
|
+
"v2.metric_slo_type" => "MetricSLOType",
|
|
1533
1628
|
"v2.metrics_scalar_query" => "MetricsScalarQuery",
|
|
1534
1629
|
"v2.metrics_timeseries_query" => "MetricsTimeseriesQuery",
|
|
1535
1630
|
"v2.metric_suggested_tags_and_aggregations" => "MetricSuggestedTagsAndAggregations",
|
|
@@ -1577,6 +1672,8 @@ module DatadogAPIClient
|
|
|
1577
1672
|
"v2.monthly_cost_attribution_response" => "MonthlyCostAttributionResponse",
|
|
1578
1673
|
"v2.nullable_relationship_to_user" => "NullableRelationshipToUser",
|
|
1579
1674
|
"v2.nullable_relationship_to_user_data" => "NullableRelationshipToUserData",
|
|
1675
|
+
"v2.nullable_user_relationship" => "NullableUserRelationship",
|
|
1676
|
+
"v2.nullable_user_relationship_data" => "NullableUserRelationshipData",
|
|
1580
1677
|
"v2.okta_account" => "OktaAccount",
|
|
1581
1678
|
"v2.okta_account_attributes" => "OktaAccountAttributes",
|
|
1582
1679
|
"v2.okta_account_request" => "OktaAccountRequest",
|
|
@@ -1591,6 +1688,8 @@ module DatadogAPIClient
|
|
|
1591
1688
|
"v2.on_demand_concurrency_cap_attributes" => "OnDemandConcurrencyCapAttributes",
|
|
1592
1689
|
"v2.on_demand_concurrency_cap_response" => "OnDemandConcurrencyCapResponse",
|
|
1593
1690
|
"v2.on_demand_concurrency_cap_type" => "OnDemandConcurrencyCapType",
|
|
1691
|
+
"v2.open_api_endpoint" => "OpenAPIEndpoint",
|
|
1692
|
+
"v2.open_api_file" => "OpenAPIFile",
|
|
1594
1693
|
"v2.opsgenie_service_create_attributes" => "OpsgenieServiceCreateAttributes",
|
|
1595
1694
|
"v2.opsgenie_service_create_data" => "OpsgenieServiceCreateData",
|
|
1596
1695
|
"v2.opsgenie_service_create_request" => "OpsgenieServiceCreateRequest",
|
|
@@ -1650,10 +1749,21 @@ module DatadogAPIClient
|
|
|
1650
1749
|
"v2.process_summary" => "ProcessSummary",
|
|
1651
1750
|
"v2.process_summary_attributes" => "ProcessSummaryAttributes",
|
|
1652
1751
|
"v2.process_summary_type" => "ProcessSummaryType",
|
|
1752
|
+
"v2.project" => "Project",
|
|
1753
|
+
"v2.project_attributes" => "ProjectAttributes",
|
|
1754
|
+
"v2.project_create" => "ProjectCreate",
|
|
1755
|
+
"v2.project_create_attributes" => "ProjectCreateAttributes",
|
|
1756
|
+
"v2.project_create_request" => "ProjectCreateRequest",
|
|
1653
1757
|
"v2.projected_cost" => "ProjectedCost",
|
|
1654
1758
|
"v2.projected_cost_attributes" => "ProjectedCostAttributes",
|
|
1655
1759
|
"v2.projected_cost_response" => "ProjectedCostResponse",
|
|
1656
1760
|
"v2.projected_cost_type" => "ProjectedCostType",
|
|
1761
|
+
"v2.project_relationship" => "ProjectRelationship",
|
|
1762
|
+
"v2.project_relationship_data" => "ProjectRelationshipData",
|
|
1763
|
+
"v2.project_relationships" => "ProjectRelationships",
|
|
1764
|
+
"v2.project_resource_type" => "ProjectResourceType",
|
|
1765
|
+
"v2.project_response" => "ProjectResponse",
|
|
1766
|
+
"v2.projects_response" => "ProjectsResponse",
|
|
1657
1767
|
"v2.query_formula" => "QueryFormula",
|
|
1658
1768
|
"v2.query_sort_order" => "QuerySortOrder",
|
|
1659
1769
|
"v2.relationship_to_incident_attachment" => "RelationshipToIncidentAttachment",
|
|
@@ -1880,10 +1990,22 @@ module DatadogAPIClient
|
|
|
1880
1990
|
"v2.security_monitoring_standard_rule_create_payload" => "SecurityMonitoringStandardRuleCreatePayload",
|
|
1881
1991
|
"v2.security_monitoring_standard_rule_query" => "SecurityMonitoringStandardRuleQuery",
|
|
1882
1992
|
"v2.security_monitoring_standard_rule_response" => "SecurityMonitoringStandardRuleResponse",
|
|
1993
|
+
"v2.security_monitoring_suppression" => "SecurityMonitoringSuppression",
|
|
1994
|
+
"v2.security_monitoring_suppression_attributes" => "SecurityMonitoringSuppressionAttributes",
|
|
1995
|
+
"v2.security_monitoring_suppression_create_attributes" => "SecurityMonitoringSuppressionCreateAttributes",
|
|
1996
|
+
"v2.security_monitoring_suppression_create_data" => "SecurityMonitoringSuppressionCreateData",
|
|
1997
|
+
"v2.security_monitoring_suppression_create_request" => "SecurityMonitoringSuppressionCreateRequest",
|
|
1998
|
+
"v2.security_monitoring_suppression_response" => "SecurityMonitoringSuppressionResponse",
|
|
1999
|
+
"v2.security_monitoring_suppressions_response" => "SecurityMonitoringSuppressionsResponse",
|
|
2000
|
+
"v2.security_monitoring_suppression_type" => "SecurityMonitoringSuppressionType",
|
|
2001
|
+
"v2.security_monitoring_suppression_update_attributes" => "SecurityMonitoringSuppressionUpdateAttributes",
|
|
2002
|
+
"v2.security_monitoring_suppression_update_data" => "SecurityMonitoringSuppressionUpdateData",
|
|
2003
|
+
"v2.security_monitoring_suppression_update_request" => "SecurityMonitoringSuppressionUpdateRequest",
|
|
1883
2004
|
"v2.security_monitoring_third_party_root_query" => "SecurityMonitoringThirdPartyRootQuery",
|
|
1884
2005
|
"v2.security_monitoring_third_party_rule_case" => "SecurityMonitoringThirdPartyRuleCase",
|
|
1885
2006
|
"v2.security_monitoring_third_party_rule_case_create" => "SecurityMonitoringThirdPartyRuleCaseCreate",
|
|
1886
2007
|
"v2.security_monitoring_triage_user" => "SecurityMonitoringTriageUser",
|
|
2008
|
+
"v2.security_monitoring_user" => "SecurityMonitoringUser",
|
|
1887
2009
|
"v2.sensitive_data_scanner_config_request" => "SensitiveDataScannerConfigRequest",
|
|
1888
2010
|
"v2.sensitive_data_scanner_configuration" => "SensitiveDataScannerConfiguration",
|
|
1889
2011
|
"v2.sensitive_data_scanner_configuration_data" => "SensitiveDataScannerConfigurationData",
|
|
@@ -2000,6 +2122,8 @@ module DatadogAPIClient
|
|
|
2000
2122
|
"v2.service_definition_v2_slack" => "ServiceDefinitionV2Slack",
|
|
2001
2123
|
"v2.service_definition_v2_slack_type" => "ServiceDefinitionV2SlackType",
|
|
2002
2124
|
"v2.service_definition_v2_version" => "ServiceDefinitionV2Version",
|
|
2125
|
+
"v2.service_now_ticket" => "ServiceNowTicket",
|
|
2126
|
+
"v2.service_now_ticket_result" => "ServiceNowTicketResult",
|
|
2003
2127
|
"v2.slack_integration_metadata" => "SlackIntegrationMetadata",
|
|
2004
2128
|
"v2.slack_integration_metadata_channel_item" => "SlackIntegrationMetadataChannelItem",
|
|
2005
2129
|
"v2.sort_direction" => "SortDirection",
|
|
@@ -2111,6 +2235,9 @@ module DatadogAPIClient
|
|
|
2111
2235
|
"v2.timeseries_response_attributes" => "TimeseriesResponseAttributes",
|
|
2112
2236
|
"v2.timeseries_response_series" => "TimeseriesResponseSeries",
|
|
2113
2237
|
"v2.unit" => "Unit",
|
|
2238
|
+
"v2.update_open_api_response" => "UpdateOpenAPIResponse",
|
|
2239
|
+
"v2.update_open_api_response_attributes" => "UpdateOpenAPIResponseAttributes",
|
|
2240
|
+
"v2.update_open_api_response_data" => "UpdateOpenAPIResponseData",
|
|
2114
2241
|
"v2.usage_application_security_monitoring_response" => "UsageApplicationSecurityMonitoringResponse",
|
|
2115
2242
|
"v2.usage_attributes_object" => "UsageAttributesObject",
|
|
2116
2243
|
"v2.usage_data_object" => "UsageDataObject",
|
|
@@ -2131,15 +2258,19 @@ module DatadogAPIClient
|
|
|
2131
2258
|
"v2.user_invitations_request" => "UserInvitationsRequest",
|
|
2132
2259
|
"v2.user_invitations_response" => "UserInvitationsResponse",
|
|
2133
2260
|
"v2.user_invitations_type" => "UserInvitationsType",
|
|
2261
|
+
"v2.user_relationship_data" => "UserRelationshipData",
|
|
2134
2262
|
"v2.user_relationships" => "UserRelationships",
|
|
2263
|
+
"v2.user_resource_type" => "UserResourceType",
|
|
2135
2264
|
"v2.user_response" => "UserResponse",
|
|
2136
2265
|
"v2.user_response_included_item" => "UserResponseIncludedItem",
|
|
2137
2266
|
"v2.user_response_relationships" => "UserResponseRelationships",
|
|
2267
|
+
"v2.users_relationship" => "UsersRelationship",
|
|
2138
2268
|
"v2.users_response" => "UsersResponse",
|
|
2139
2269
|
"v2.users_type" => "UsersType",
|
|
2140
2270
|
"v2.user_team" => "UserTeam",
|
|
2141
2271
|
"v2.user_team_attributes" => "UserTeamAttributes",
|
|
2142
2272
|
"v2.user_team_create" => "UserTeamCreate",
|
|
2273
|
+
"v2.user_team_included" => "UserTeamIncluded",
|
|
2143
2274
|
"v2.user_team_permission" => "UserTeamPermission",
|
|
2144
2275
|
"v2.user_team_permission_attributes" => "UserTeamPermissionAttributes",
|
|
2145
2276
|
"v2.user_team_permission_type" => "UserTeamPermissionType",
|
|
@@ -2189,9 +2320,11 @@ module DatadogAPIClient
|
|
|
2189
2320
|
"v1.usage_metering_api" => "UsageMeteringAPI",
|
|
2190
2321
|
"v1.users_api" => "UsersAPI",
|
|
2191
2322
|
"v1.webhooks_integration_api" => "WebhooksIntegrationAPI",
|
|
2323
|
+
"v2.api_management_api" => "APIManagementAPI",
|
|
2192
2324
|
"v2.apm_retention_filters_api" => "APMRetentionFiltersAPI",
|
|
2193
2325
|
"v2.audit_api" => "AuditAPI",
|
|
2194
2326
|
"v2.authn_mappings_api" => "AuthNMappingsAPI",
|
|
2327
|
+
"v2.case_management_api" => "CaseManagementAPI",
|
|
2195
2328
|
"v2.ci_visibility_pipelines_api" => "CIVisibilityPipelinesAPI",
|
|
2196
2329
|
"v2.ci_visibility_tests_api" => "CIVisibilityTestsAPI",
|
|
2197
2330
|
"v2.cloud_cost_management_api" => "CloudCostManagementAPI",
|
|
@@ -2213,6 +2346,7 @@ module DatadogAPIClient
|
|
|
2213
2346
|
"v2.key_management_api" => "KeyManagementAPI",
|
|
2214
2347
|
"v2.logs_api" => "LogsAPI",
|
|
2215
2348
|
"v2.logs_archives_api" => "LogsArchivesAPI",
|
|
2349
|
+
"v2.logs_custom_destinations_api" => "LogsCustomDestinationsAPI",
|
|
2216
2350
|
"v2.logs_metrics_api" => "LogsMetricsAPI",
|
|
2217
2351
|
"v2.metrics_api" => "MetricsAPI",
|
|
2218
2352
|
"v2.monitors_api" => "MonitorsAPI",
|
|
@@ -128,7 +128,7 @@ module DatadogAPIClient::V1
|
|
|
128
128
|
# - database-monitoring: `database-monitoring alert`
|
|
129
129
|
#
|
|
130
130
|
# **Notes**:
|
|
131
|
-
# - Synthetic monitors are created through the Synthetics API. See the [Synthetics API]
|
|
131
|
+
# - Synthetic monitors are created through the Synthetics API. See the [Synthetics API](https://docs.datadoghq.com/api/latest/synthetics/) documentation for more information.
|
|
132
132
|
# - Log monitors require an unscoped App Key.
|
|
133
133
|
#
|
|
134
134
|
# #### Query Types
|
|
@@ -280,8 +280,6 @@ module DatadogAPIClient::V1
|
|
|
280
280
|
# - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`.
|
|
281
281
|
# - `#` an integer or decimal number used to set the threshold.
|
|
282
282
|
#
|
|
283
|
-
# **NOTE** Database Monitoring monitors are in alpha on US1.
|
|
284
|
-
#
|
|
285
283
|
# @param body [Monitor] Create a monitor request body.
|
|
286
284
|
# @param opts [Hash] the optional parameters
|
|
287
285
|
# @return [Array<(Monitor, Integer, Hash)>] Monitor data, response status code and response headers
|