datadog_api_client 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.apigentools-info +6 -6
- data/.generator/templates/api.mustache +2 -2
- data/.generator/templates/api_client.mustache +7 -0
- data/.generator/templates/api_client_typhoeus_partial.mustache +7 -0
- data/.generator/templates/configuration.mustache +4 -0
- data/.openapi-generator/VERSION +1 -1
- data/CHANGELOG.md +27 -0
- data/README.md +12 -1
- data/data/v1/openapi.yaml +866 -119
- data/data/v2/openapi.yaml +113 -0
- data/docs/v1/AWSAccount.md +6 -0
- data/docs/v1/DowntimeRecurrence.md +1 -1
- data/docs/v1/Event.md +1 -1
- data/docs/v1/FormulaAndFunctionApmDependencyStatName.md +15 -0
- data/docs/v1/FormulaAndFunctionApmDependencyStatsDataSource.md +15 -0
- data/docs/v1/FormulaAndFunctionApmDependencyStatsQueryDefinition.md +36 -0
- data/docs/v1/FormulaAndFunctionApmResourceStatName.md +15 -0
- data/docs/v1/FormulaAndFunctionApmResourceStatsDataSource.md +15 -0
- data/docs/v1/FormulaAndFunctionApmResourceStatsQueryDefinition.md +36 -0
- data/docs/v1/FormulaAndFunctionQueryDefinition.md +5 -1
- data/docs/v1/FunnelQuery.md +22 -0
- data/docs/v1/FunnelRequestType.md +15 -0
- data/docs/v1/FunnelSource.md +15 -0
- data/docs/v1/FunnelWidgetDefinition.md +28 -0
- data/docs/v1/FunnelWidgetDefinitionType.md +15 -0
- data/docs/v1/FunnelWidgetRequest.md +20 -0
- data/docs/v1/LogsAPI.md +1 -1
- data/docs/v1/MetricContentEncoding.md +15 -0
- data/docs/v1/MetricsAPI.md +10 -6
- data/docs/v1/MetricsPayload.md +1 -1
- data/docs/v1/MonitorOptions.md +5 -1
- data/docs/v1/MonitorRenotifyStatusType.md +15 -0
- data/docs/v1/MonitorsAPI.md +9 -9
- data/docs/v1/NotebookCreateDataAttributes.md +2 -0
- data/docs/v1/NotebookMetadata.md +22 -0
- data/docs/v1/NotebookMetadataType.md +15 -0
- data/docs/v1/NotebookResponseDataAttributes.md +2 -0
- data/docs/v1/NotebookUpdateDataAttributes.md +2 -0
- data/docs/v1/NotebooksAPI.md +7 -3
- data/docs/v1/NotebooksResponseDataAttributes.md +2 -0
- data/docs/v1/ProcessQueryDefinition.md +1 -1
- data/docs/v1/README.md +31 -3
- data/docs/v1/SLOCorrection.md +1 -1
- data/docs/v1/SLOCorrectionCreateData.md +1 -1
- data/docs/v1/SLOCorrectionCreateRequestAttributes.md +4 -4
- data/docs/v1/SLOCorrectionListResponse.md +1 -1
- data/docs/v1/SLOCorrectionResponseAttributes.md +4 -4
- data/docs/v1/SLOCorrectionUpdateRequestAttributes.md +3 -3
- data/docs/v1/ScatterPlotWidgetDefinitionRequests.md +4 -2
- data/docs/v1/ScatterplotDimension.md +15 -0
- data/docs/v1/ScatterplotTableRequest.md +22 -0
- data/docs/v1/ScatterplotWidgetFormula.md +22 -0
- data/docs/v1/Series.md +1 -1
- data/docs/v1/ServiceChecksAPI.md +1 -1
- data/docs/v1/ServiceLevelObjectiveCorrectionsAPI.md +11 -11
- data/docs/v1/SyntheticsAPI.md +61 -0
- data/docs/v1/SyntheticsAPIStep.md +1 -1
- data/docs/v1/SyntheticsBatchDetails.md +18 -0
- data/docs/v1/SyntheticsBatchDetailsData.md +22 -0
- data/docs/v1/SyntheticsBatchResult.md +36 -0
- data/docs/v1/SyntheticsBrowserError.md +3 -3
- data/docs/v1/SyntheticsCIBatchMetadata.md +20 -0
- data/docs/v1/{SyntheticsCITestMetadataCi.md → SyntheticsCIBatchMetadataCI.md} +2 -2
- data/docs/v1/SyntheticsCIBatchMetadataGit.md +20 -0
- data/docs/v1/SyntheticsCITest.md +1 -1
- data/docs/v1/SyntheticsStatus.md +15 -0
- data/docs/v1/SyntheticsTestDetails.md +2 -0
- data/docs/v1/SyntheticsTestExecutionRule.md +15 -0
- data/docs/v1/SyntheticsTestRequest.md +2 -0
- data/docs/v1/UsageAttributionValues.md +4 -4
- data/docs/v1/UsageMeteringAPI.md +65 -0
- data/docs/v1/UsageSDSHour.md +22 -0
- data/docs/v1/UsageSDSResponse.md +18 -0
- data/docs/v1/UsageSummaryDate.md +4 -0
- data/docs/v1/UsageSummaryDateOrg.md +6 -2
- data/docs/v1/UsageSummaryResponse.md +6 -2
- data/docs/v1/UsageTimeseriesHour.md +1 -1
- data/docs/v1/WebhooksIntegration.md +1 -1
- data/docs/v1/WebhooksIntegrationUpdateRequest.md +1 -1
- data/docs/v1/WidgetDefinition.md +2 -0
- data/docs/v2/IncidentServicesAPI.md +5 -5
- data/docs/v2/IncidentTeamsAPI.md +5 -5
- data/docs/v2/IncidentsAPI.md +5 -5
- data/docs/v2/README.md +5 -0
- data/docs/v2/SecurityMonitoringAPI.md +5 -5
- data/examples/v1/metrics/SubmitMetrics.rbbeta +14 -0
- data/extract-code-blocks.awk +4 -0
- data/lib/datadog_api_client/v1/api/logs_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/metrics_api.rb +5 -2
- data/lib/datadog_api_client/v1/api/monitors_api.rb +9 -9
- data/lib/datadog_api_client/v1/api/notebooks_api.rb +8 -2
- data/lib/datadog_api_client/v1/api/service_checks_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +16 -16
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +73 -0
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +77 -0
- data/lib/datadog_api_client/v1/api_client.rb +14 -0
- data/lib/datadog_api_client/v1/configuration.rb +7 -0
- data/lib/datadog_api_client/v1/models/aws_account.rb +37 -1
- data/lib/datadog_api_client/v1/models/content_encoding.rb +2 -2
- data/lib/datadog_api_client/v1/models/creator.rb +1 -0
- data/lib/datadog_api_client/v1/models/dashboard_summary_definition.rb +1 -0
- data/lib/datadog_api_client/v1/models/downtime_recurrence.rb +1 -1
- data/lib/datadog_api_client/v1/models/event.rb +1 -16
- data/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stat_name.rb +44 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_data_source.rb +38 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_query_definition.rb +356 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stat_name.rb +47 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_data_source.rb +38 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb +348 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb +2 -0
- data/lib/datadog_api_client/v1/models/funnel_query.rb +271 -0
- data/lib/datadog_api_client/v1/models/funnel_request_type.rb +38 -0
- data/lib/datadog_api_client/v1/models/funnel_source.rb +38 -0
- data/lib/datadog_api_client/v1/models/funnel_widget_definition.rb +322 -0
- data/lib/datadog_api_client/v1/models/funnel_widget_definition_type.rb +38 -0
- data/lib/datadog_api_client/v1/models/funnel_widget_request.rb +251 -0
- data/lib/datadog_api_client/v1/models/metric_content_encoding.rb +38 -0
- data/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +1 -0
- data/lib/datadog_api_client/v1/models/monitor.rb +2 -0
- data/lib/datadog_api_client/v1/models/monitor_options.rb +26 -2
- data/lib/datadog_api_client/v1/models/monitor_renotify_status_type.rb +40 -0
- data/lib/datadog_api_client/v1/models/notebook_author.rb +2 -0
- data/lib/datadog_api_client/v1/models/notebook_create_data_attributes.rb +10 -1
- data/lib/datadog_api_client/v1/models/notebook_metadata.rb +259 -0
- data/lib/datadog_api_client/v1/models/notebook_metadata_type.rb +42 -0
- data/lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb +10 -1
- data/lib/datadog_api_client/v1/models/notebook_update_data_attributes.rb +10 -1
- data/lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb +10 -1
- data/lib/datadog_api_client/v1/models/notebooks_response_meta.rb +1 -1
- data/lib/datadog_api_client/v1/models/scatter_plot_widget_definition_requests.rb +10 -11
- data/lib/datadog_api_client/v1/models/scatterplot_dimension.rb +41 -0
- data/lib/datadog_api_client/v1/models/scatterplot_table_request.rb +256 -0
- data/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb +262 -0
- data/lib/datadog_api_client/v1/models/slo_correction.rb +2 -2
- data/lib/datadog_api_client/v1/models/slo_correction_create_data.rb +6 -1
- data/lib/datadog_api_client/v1/models/slo_correction_create_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb +5 -5
- data/lib/datadog_api_client/v1/models/slo_correction_list_response.rb +2 -2
- data/lib/datadog_api_client/v1/models/slo_correction_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb +5 -5
- data/lib/datadog_api_client/v1/models/slo_correction_update_data.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_correction_update_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb +4 -4
- data/lib/datadog_api_client/v1/models/synthetics_batch_details.rb +232 -0
- data/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb +253 -0
- data/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +319 -0
- data/lib/datadog_api_client/v1/models/{synthetics_ci_test_metadata.rb → synthetics_ci_batch_metadata.rb} +6 -6
- data/lib/datadog_api_client/v1/models/{synthetics_ci_test_metadata_ci.rb → synthetics_ci_batch_metadata_ci.rb} +4 -4
- data/lib/datadog_api_client/v1/models/{synthetics_ci_test_metadata_git.rb → synthetics_ci_batch_metadata_git.rb} +5 -5
- data/lib/datadog_api_client/v1/models/synthetics_ci_test.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_status.rb +40 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_details.rb +10 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_execution_rule.rb +40 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +13 -13
- data/lib/datadog_api_client/v1/models/usage_sds_hour.rb +253 -0
- data/lib/datadog_api_client/v1/models/usage_sds_response.rb +235 -0
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +28 -8
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +29 -9
- data/lib/datadog_api_client/v1/models/usage_timeseries_hour.rb +1 -1
- data/lib/datadog_api_client/v1/models/webhooks_integration.rb +1 -1
- data/lib/datadog_api_client/v1/models/webhooks_integration_update_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/widget_definition.rb +1 -0
- data/lib/datadog_api_client/v1.rb +29 -3
- data/lib/datadog_api_client/v2/api/incident_services_api.rb +5 -5
- data/lib/datadog_api_client/v2/api/incident_teams_api.rb +5 -5
- data/lib/datadog_api_client/v2/api/incidents_api.rb +5 -5
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +5 -5
- data/lib/datadog_api_client/v2/api_client.rb +14 -0
- data/lib/datadog_api_client/v2/configuration.rb +5 -0
- data/lib/datadog_api_client/v2/models/incident_field_attributes_multiple_value.rb +1 -0
- data/lib/datadog_api_client/v2/models/incident_field_attributes_single_value.rb +1 -0
- data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +1 -0
- data/lib/datadog_api_client/v2/models/user_attributes.rb +2 -0
- data/lib/datadog_api_client/version.rb +1 -1
- data/spec/v1/models/formula_and_function_apm_dependency_stat_name_spec.rb +31 -0
- data/spec/v1/models/formula_and_function_apm_dependency_stats_data_source_spec.rb +31 -0
- data/spec/v1/models/formula_and_function_apm_dependency_stats_query_definition_spec.rb +91 -0
- data/spec/v1/models/formula_and_function_apm_resource_stat_name_spec.rb +31 -0
- data/spec/v1/models/formula_and_function_apm_resource_stats_data_source_spec.rb +31 -0
- data/spec/v1/models/formula_and_function_apm_resource_stats_query_definition_spec.rb +91 -0
- data/spec/v1/models/funnel_query_spec.rb +49 -0
- data/spec/v1/models/funnel_request_type_spec.rb +31 -0
- data/spec/v1/models/funnel_source_spec.rb +31 -0
- data/spec/v1/models/funnel_widget_definition_spec.rb +67 -0
- data/spec/v1/models/funnel_widget_definition_type_spec.rb +31 -0
- data/spec/v1/models/funnel_widget_request_spec.rb +43 -0
- data/spec/v1/models/metric_content_encoding_spec.rb +31 -0
- data/spec/v1/models/monitor_renotify_status_type_spec.rb +31 -0
- data/spec/v1/models/notebook_metadata_spec.rb +49 -0
- data/spec/v1/models/notebook_metadata_type_spec.rb +31 -0
- data/spec/v1/models/scatterplot_dimension_spec.rb +31 -0
- data/spec/v1/models/scatterplot_table_request_spec.rb +49 -0
- data/spec/v1/models/scatterplot_widget_formula_spec.rb +49 -0
- data/spec/v1/models/synthetics_batch_details_data_spec.rb +49 -0
- data/spec/v1/models/synthetics_batch_details_spec.rb +37 -0
- data/spec/v1/models/synthetics_batch_result_spec.rb +91 -0
- data/spec/v1/models/{synthetics_ci_test_metadata_ci_spec.rb → synthetics_ci_batch_metadata_ci_spec.rb} +6 -6
- data/spec/v1/models/{synthetics_ci_test_metadata_git_spec.rb → synthetics_ci_batch_metadata_git_spec.rb} +6 -6
- data/spec/v1/models/{synthetics_ci_test_metadata_spec.rb → synthetics_ci_batch_metadata_spec.rb} +6 -6
- data/spec/v1/models/synthetics_status_spec.rb +31 -0
- data/spec/v1/models/synthetics_test_execution_rule_spec.rb +31 -0
- data/spec/v1/models/usage_sds_hour_spec.rb +49 -0
- data/spec/v1/models/usage_sds_response_spec.rb +37 -0
- metadata +119 -14
- data/docs/v1/SyntheticsCITestMetadata.md +0 -20
- data/docs/v1/SyntheticsCITestMetadataGit.md +0 -20
@@ -23,7 +23,7 @@
|
|
23
23
|
| **cws_containers_avg_sum** | **Integer** | Shows the average of all distinct Cloud Workload Security containers over all hours in the current months for all organizations. | [optional] |
|
24
24
|
| **cws_host_top99p_sum** | **Integer** | Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current months for all organizations. | [optional] |
|
25
25
|
| **dbm_host_top99p_sum** | **Integer** | Shows the 99th percentile of all Database Monitoring hosts over all hours in the current month for all organizations. | [optional] |
|
26
|
-
| **
|
26
|
+
| **dbm_queries_avg_sum** | **Integer** | Shows the average of all distinct Database Monitoring Normalized Queries over all hours in the current month for all organizations. | [optional] |
|
27
27
|
| **end_date** | **Time** | Shows the last date of usage in the current months for all organizations. | [optional] |
|
28
28
|
| **fargate_tasks_count_avg_sum** | **Integer** | Shows the average of all Fargate tasks over all hours in the current months for all organizations. | [optional] |
|
29
29
|
| **fargate_tasks_count_hwm_sum** | **Integer** | Shows the sum of the high-water marks of all Fargate tasks over all hours in the current months for all organizations. | [optional] |
|
@@ -51,6 +51,8 @@
|
|
51
51
|
| **rehydrated_ingested_bytes_agg_sum** | **Integer** | Shows the sum of all rehydrated logs bytes ingested over all hours in the current months for all organizations (data available as of December 1, 2020). | [optional] |
|
52
52
|
| **rum_session_count_agg_sum** | **Integer** | Shows the sum of all browser RUM Sessions over all hours in the current months for all organizations. | [optional] |
|
53
53
|
| **rum_total_session_count_agg_sum** | **Integer** | Shows the sum of RUM Sessions (browser and mobile) over all hours in the current months for all organizations. | [optional] |
|
54
|
+
| **sds_logs_scanned_bytes_sum** | **Integer** | Shows the sum of all bytes scanned of logs usage by the Sensitive Data Scanner over all hours in the current month for all organizations. | [optional] |
|
55
|
+
| **sds_total_scanned_bytes_sum** | **Integer** | Shows the sum of all bytes scanned across all usage types by the Sensitive Data Scanner over all hours in the current month for all organizations. | [optional] |
|
54
56
|
| **start_date** | **Time** | Shows the first date of usage in the current months for all organizations. | [optional] |
|
55
57
|
| **synthetics_browser_check_calls_count_agg_sum** | **Integer** | Shows the sum of all Synthetic browser tests over all hours in the current months for all organizations. | [optional] |
|
56
58
|
| **synthetics_check_calls_count_agg_sum** | **Integer** | Shows the sum of all Synthetic API tests over all hours in the current months for all organizations. | [optional] |
|
@@ -84,7 +86,7 @@ instance = DatadogAPIClient::V1::UsageSummaryResponse.new(
|
|
84
86
|
cws_containers_avg_sum: null,
|
85
87
|
cws_host_top99p_sum: null,
|
86
88
|
dbm_host_top99p_sum: null,
|
87
|
-
|
89
|
+
dbm_queries_avg_sum: null,
|
88
90
|
end_date: null,
|
89
91
|
fargate_tasks_count_avg_sum: null,
|
90
92
|
fargate_tasks_count_hwm_sum: null,
|
@@ -112,6 +114,8 @@ instance = DatadogAPIClient::V1::UsageSummaryResponse.new(
|
|
112
114
|
rehydrated_ingested_bytes_agg_sum: null,
|
113
115
|
rum_session_count_agg_sum: null,
|
114
116
|
rum_total_session_count_agg_sum: null,
|
117
|
+
sds_logs_scanned_bytes_sum: null,
|
118
|
+
sds_total_scanned_bytes_sum: null,
|
115
119
|
start_date: null,
|
116
120
|
synthetics_browser_check_calls_count_agg_sum: null,
|
117
121
|
synthetics_check_calls_count_agg_sum: null,
|
@@ -7,7 +7,7 @@
|
|
7
7
|
| **hour** | **Time** | The hour for the usage. | [optional] |
|
8
8
|
| **num_custom_input_timeseries** | **Integer** | Contains the number of custom metrics that are inputs for aggregations (metric configured is custom). | [optional] |
|
9
9
|
| **num_custom_output_timeseries** | **Integer** | Contains the number of custom metrics that are outputs for aggregations (metric configured is custom). | [optional] |
|
10
|
-
| **num_custom_timeseries** | **Integer** | Contains
|
10
|
+
| **num_custom_timeseries** | **Integer** | Contains sum of non-aggregation custom metrics and custom metrics that are outputs for aggregations. | [optional] |
|
11
11
|
|
12
12
|
## Example
|
13
13
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **custom_headers** | **String** | If `null`, uses no header. If given a JSON payload, these will be headers attached to your webhook. | [optional] |
|
8
8
|
| **encode_as** | [**WebhooksIntegrationEncoding**](WebhooksIntegrationEncoding.md) | | [optional][default to 'json'] |
|
9
|
-
| **name** | **String** | The name of the webhook. It corresponds with `<WEBHOOK_NAME>`. Learn more on how to use it in [monitor notifications](https://docs.datadoghq.com/monitors/
|
9
|
+
| **name** | **String** | The name of the webhook. It corresponds with `<WEBHOOK_NAME>`. Learn more on how to use it in [monitor notifications](https://docs.datadoghq.com/monitors/notify). | |
|
10
10
|
| **payload** | **String** | If `null`, uses the default payload. If given a JSON payload, the webhook returns the payload specified by the given payload. [Webhooks variable usage](https://docs.datadoghq.com/integrations/webhooks/#usage). | [optional] |
|
11
11
|
| **url** | **String** | URL of the webhook. | |
|
12
12
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **custom_headers** | **String** | If `null`, uses no header. If given a JSON payload, these will be headers attached to your webhook. | [optional] |
|
8
8
|
| **encode_as** | [**WebhooksIntegrationEncoding**](WebhooksIntegrationEncoding.md) | | [optional][default to 'json'] |
|
9
|
-
| **name** | **String** | The name of the webhook. It corresponds with `<WEBHOOK_NAME>`. Learn more on how to use it in [monitor notifications](https://docs.datadoghq.com/monitors/
|
9
|
+
| **name** | **String** | The name of the webhook. It corresponds with `<WEBHOOK_NAME>`. Learn more on how to use it in [monitor notifications](https://docs.datadoghq.com/monitors/notify). | [optional] |
|
10
10
|
| **payload** | **String** | If `null`, uses the default payload. If given a JSON payload, the webhook returns the payload specified by the given payload. [Webhooks variable usage](https://docs.datadoghq.com/integrations/webhooks/#usage). | [optional] |
|
11
11
|
| **url** | **String** | URL of the webhook. | [optional] |
|
12
12
|
|
data/docs/v1/WidgetDefinition.md
CHANGED
@@ -22,6 +22,7 @@ DatadogAPIClient::V1::WidgetDefinition.openapi_one_of
|
|
22
22
|
# :'EventStreamWidgetDefinition',
|
23
23
|
# :'EventTimelineWidgetDefinition',
|
24
24
|
# :'FreeTextWidgetDefinition',
|
25
|
+
# :'FunnelWidgetDefinition',
|
25
26
|
# :'GeomapWidgetDefinition',
|
26
27
|
# :'GroupWidgetDefinition',
|
27
28
|
# :'HeatMapWidgetDefinition',
|
@@ -76,6 +77,7 @@ DatadogAPIClient::V1::WidgetDefinition.build(data_that_doesnt_match)
|
|
76
77
|
- `EventStreamWidgetDefinition`
|
77
78
|
- `EventTimelineWidgetDefinition`
|
78
79
|
- `FreeTextWidgetDefinition`
|
80
|
+
- `FunnelWidgetDefinition`
|
79
81
|
- `GeomapWidgetDefinition`
|
80
82
|
- `GroupWidgetDefinition`
|
81
83
|
- `HeatMapWidgetDefinition`
|
@@ -68,7 +68,7 @@ end
|
|
68
68
|
|
69
69
|
### Authorization
|
70
70
|
|
71
|
-
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
71
|
+
[AuthZ](README.md#AuthZ), [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
72
72
|
|
73
73
|
### HTTP request headers
|
74
74
|
|
@@ -132,7 +132,7 @@ nil (empty response body)
|
|
132
132
|
|
133
133
|
### Authorization
|
134
134
|
|
135
|
-
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
135
|
+
[AuthZ](README.md#AuthZ), [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
136
136
|
|
137
137
|
### HTTP request headers
|
138
138
|
|
@@ -202,7 +202,7 @@ end
|
|
202
202
|
|
203
203
|
### Authorization
|
204
204
|
|
205
|
-
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
205
|
+
[AuthZ](README.md#AuthZ), [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
206
206
|
|
207
207
|
### HTTP request headers
|
208
208
|
|
@@ -275,7 +275,7 @@ end
|
|
275
275
|
|
276
276
|
### Authorization
|
277
277
|
|
278
|
-
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
278
|
+
[AuthZ](README.md#AuthZ), [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
279
279
|
|
280
280
|
### HTTP request headers
|
281
281
|
|
@@ -342,7 +342,7 @@ end
|
|
342
342
|
|
343
343
|
### Authorization
|
344
344
|
|
345
|
-
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
345
|
+
[AuthZ](README.md#AuthZ), [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
346
346
|
|
347
347
|
### HTTP request headers
|
348
348
|
|
data/docs/v2/IncidentTeamsAPI.md
CHANGED
@@ -68,7 +68,7 @@ end
|
|
68
68
|
|
69
69
|
### Authorization
|
70
70
|
|
71
|
-
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
71
|
+
[AuthZ](README.md#AuthZ), [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
72
72
|
|
73
73
|
### HTTP request headers
|
74
74
|
|
@@ -132,7 +132,7 @@ nil (empty response body)
|
|
132
132
|
|
133
133
|
### Authorization
|
134
134
|
|
135
|
-
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
135
|
+
[AuthZ](README.md#AuthZ), [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
136
136
|
|
137
137
|
### HTTP request headers
|
138
138
|
|
@@ -202,7 +202,7 @@ end
|
|
202
202
|
|
203
203
|
### Authorization
|
204
204
|
|
205
|
-
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
205
|
+
[AuthZ](README.md#AuthZ), [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
206
206
|
|
207
207
|
### HTTP request headers
|
208
208
|
|
@@ -275,7 +275,7 @@ end
|
|
275
275
|
|
276
276
|
### Authorization
|
277
277
|
|
278
|
-
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
278
|
+
[AuthZ](README.md#AuthZ), [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
279
279
|
|
280
280
|
### HTTP request headers
|
281
281
|
|
@@ -342,7 +342,7 @@ end
|
|
342
342
|
|
343
343
|
### Authorization
|
344
344
|
|
345
|
-
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
345
|
+
[AuthZ](README.md#AuthZ), [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
346
346
|
|
347
347
|
### HTTP request headers
|
348
348
|
|
data/docs/v2/IncidentsAPI.md
CHANGED
@@ -68,7 +68,7 @@ end
|
|
68
68
|
|
69
69
|
### Authorization
|
70
70
|
|
71
|
-
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
71
|
+
[AuthZ](README.md#AuthZ), [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
72
72
|
|
73
73
|
### HTTP request headers
|
74
74
|
|
@@ -132,7 +132,7 @@ nil (empty response body)
|
|
132
132
|
|
133
133
|
### Authorization
|
134
134
|
|
135
|
-
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
135
|
+
[AuthZ](README.md#AuthZ), [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
136
136
|
|
137
137
|
### HTTP request headers
|
138
138
|
|
@@ -201,7 +201,7 @@ end
|
|
201
201
|
|
202
202
|
### Authorization
|
203
203
|
|
204
|
-
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
204
|
+
[AuthZ](README.md#AuthZ), [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
205
205
|
|
206
206
|
### HTTP request headers
|
207
207
|
|
@@ -272,7 +272,7 @@ end
|
|
272
272
|
|
273
273
|
### Authorization
|
274
274
|
|
275
|
-
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
275
|
+
[AuthZ](README.md#AuthZ), [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
276
276
|
|
277
277
|
### HTTP request headers
|
278
278
|
|
@@ -339,7 +339,7 @@ end
|
|
339
339
|
|
340
340
|
### Authorization
|
341
341
|
|
342
|
-
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
342
|
+
[AuthZ](README.md#AuthZ), [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
343
343
|
|
344
344
|
### HTTP request headers
|
345
345
|
|
data/docs/v2/README.md
CHANGED
@@ -475,7 +475,12 @@ Class | Method | HTTP request | Description
|
|
475
475
|
- dashboards_read: The ability to view dashboards.
|
476
476
|
- dashboards_write: The ability to create and change dashboards.
|
477
477
|
- events_read: The ability to read events data.
|
478
|
+
- incident_read: The ability to view incidents in Datadog.
|
479
|
+
- incident_settings_write: The ability to configure incident settings.
|
480
|
+
- incident_write: The ability to create, view, and manage incidents in Datadog.
|
478
481
|
- metrics_read: The ability to view custom metrics.
|
482
|
+
- security_monitoring_filters_read: The ability to read Security Filters.
|
483
|
+
- security_monitoring_filters_write: The ability to create, edit and delete Security Filters.
|
479
484
|
- security_monitoring_rules_read: The ability to read Detection rules.
|
480
485
|
- security_monitoring_rules_write: The ability to create and edit Detection rules.
|
481
486
|
- security_monitoring_signals_read: The ability to view Security signals.
|
@@ -73,7 +73,7 @@ end
|
|
73
73
|
|
74
74
|
### Authorization
|
75
75
|
|
76
|
-
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
76
|
+
[AuthZ](README.md#AuthZ), [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
77
77
|
|
78
78
|
### HTTP request headers
|
79
79
|
|
@@ -192,7 +192,7 @@ nil (empty response body)
|
|
192
192
|
|
193
193
|
### Authorization
|
194
194
|
|
195
|
-
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
195
|
+
[AuthZ](README.md#AuthZ), [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
196
196
|
|
197
197
|
### HTTP request headers
|
198
198
|
|
@@ -314,7 +314,7 @@ end
|
|
314
314
|
|
315
315
|
### Authorization
|
316
316
|
|
317
|
-
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
317
|
+
[AuthZ](README.md#AuthZ), [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
318
318
|
|
319
319
|
### HTTP request headers
|
320
320
|
|
@@ -431,7 +431,7 @@ This endpoint does not need any parameter.
|
|
431
431
|
|
432
432
|
### Authorization
|
433
433
|
|
434
|
-
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
434
|
+
[AuthZ](README.md#AuthZ), [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
435
435
|
|
436
436
|
### HTTP request headers
|
437
437
|
|
@@ -706,7 +706,7 @@ end
|
|
706
706
|
|
707
707
|
### Authorization
|
708
708
|
|
709
|
-
[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
709
|
+
[AuthZ](README.md#AuthZ), [apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth)
|
710
710
|
|
711
711
|
### HTTP request headers
|
712
712
|
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'datadog_api_client'
|
2
|
+
api_instance = DatadogAPIClient::V1::MetricsAPI.new
|
3
|
+
body = DatadogAPIClient::V1::MetricsPayload.new({series: [DatadogAPIClient::V1::Series.new({metric: 'system.load.1', points: [[Time.now.to_f, 3.56]]})]}) # MetricsPayload |
|
4
|
+
opts = {
|
5
|
+
content_encoding: DatadogAPIClient::V1::MetricContentEncoding::DEFLATE
|
6
|
+
}
|
7
|
+
|
8
|
+
begin
|
9
|
+
# Submit metrics
|
10
|
+
result = api_instance.submit_metrics(body, opts)
|
11
|
+
p result
|
12
|
+
rescue DatadogAPIClient::V1::APIError => e
|
13
|
+
puts "Error when calling MetricsAPI->submit_metrics: #{e}"
|
14
|
+
end
|
data/extract-code-blocks.awk
CHANGED
@@ -53,6 +53,10 @@ function camel(value) {
|
|
53
53
|
}
|
54
54
|
system("mkdir -p " output "/" tag);
|
55
55
|
out_file=output "/" tag "/" operation_id ".rbbeta";
|
56
|
+
if (system("[ -f " out_file " ]") == 0) {
|
57
|
+
printf "skipped: "
|
58
|
+
in_code_block = 0;
|
59
|
+
}
|
56
60
|
print out_file;
|
57
61
|
} else {
|
58
62
|
print "Can't parse " FILENAME > "/dev/stderr"
|
@@ -147,7 +147,7 @@ module DatadogAPIClient::V1
|
|
147
147
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
148
148
|
# HTTP header 'Content-Type'
|
149
149
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/logplex-1', 'text/plain'])
|
150
|
-
header_params[
|
150
|
+
header_params['Content-Encoding'] = opts[:'content_encoding'] if !opts[:'content_encoding'].nil?
|
151
151
|
|
152
152
|
# form parameters
|
153
153
|
form_params = opts[:form_params] || {}
|
@@ -341,6 +341,7 @@ module DatadogAPIClient::V1
|
|
341
341
|
# The metrics end-point allows you to post time-series data that can be graphed on Datadog’s dashboards. The maximum payload size is 3.2 megabytes (3200000 bytes). Compressed payloads must have a decompressed size of less than 62 megabytes (62914560 bytes). If you’re submitting metrics directly to the Datadog API without using DogStatsD, expect: - 64 bits for the timestamp - 32 bits for the value - 20 bytes for the metric names - 50 bytes for the timeseries - The full payload is approximately 100 bytes. However, with the DogStatsD API, compression is applied, which reduces the payload size.
|
342
342
|
# @param body [MetricsPayload]
|
343
343
|
# @param [Hash] opts the optional parameters
|
344
|
+
# @option opts [MetricContentEncoding] :content_encoding HTTP header used to compress the media-type.
|
344
345
|
# @return [IntakePayloadAccepted]
|
345
346
|
def submit_metrics(body, opts = {})
|
346
347
|
data, _status_code, _headers = submit_metrics_with_http_info(body, opts)
|
@@ -351,6 +352,7 @@ module DatadogAPIClient::V1
|
|
351
352
|
# The metrics end-point allows you to post time-series data that can be graphed on Datadog’s dashboards. The maximum payload size is 3.2 megabytes (3200000 bytes). Compressed payloads must have a decompressed size of less than 62 megabytes (62914560 bytes). If you’re submitting metrics directly to the Datadog API without using DogStatsD, expect: - 64 bits for the timestamp - 32 bits for the value - 20 bytes for the metric names - 50 bytes for the timeseries - The full payload is approximately 100 bytes. However, with the DogStatsD API, compression is applied, which reduces the payload size.
|
352
353
|
# @param body [MetricsPayload]
|
353
354
|
# @param [Hash] opts the optional parameters
|
355
|
+
# @option opts [MetricContentEncoding] :content_encoding HTTP header used to compress the media-type.
|
354
356
|
# @return [Array<(IntakePayloadAccepted, Integer, Hash)>] IntakePayloadAccepted data, response status code and response headers
|
355
357
|
def submit_metrics_with_http_info(body, opts = {})
|
356
358
|
|
@@ -379,9 +381,10 @@ module DatadogAPIClient::V1
|
|
379
381
|
# header parameters
|
380
382
|
header_params = opts[:header_params] || {}
|
381
383
|
# HTTP header 'Accept' (if needed)
|
382
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
384
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/json'])
|
383
385
|
# HTTP header 'Content-Type'
|
384
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
386
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['text/json'])
|
387
|
+
header_params['Content-Encoding'] = opts[:'content_encoding'] if !opts[:'content_encoding'].nil?
|
385
388
|
|
386
389
|
# form parameters
|
387
390
|
form_params = opts[:form_params] || {}
|
@@ -60,7 +60,7 @@ module DatadogAPIClient::V1
|
|
60
60
|
|
61
61
|
# query parameters
|
62
62
|
query_params = opts[:query_params] || {}
|
63
|
-
query_params[:'monitor_ids'] = @api_client.build_collection_param(monitor_ids, :
|
63
|
+
query_params[:'monitor_ids'] = @api_client.build_collection_param(monitor_ids, :csv)
|
64
64
|
|
65
65
|
# header parameters
|
66
66
|
header_params = opts[:header_params] || {}
|
@@ -97,7 +97,7 @@ module DatadogAPIClient::V1
|
|
97
97
|
end
|
98
98
|
|
99
99
|
# Create a monitor
|
100
|
-
# Create a monitor using the specified options. #### Monitor Types The type of monitor chosen from: - anomaly: `query alert` - APM: `query alert` or `trace-analytics alert` - composite: `composite` - custom: `service check` - event: `event alert` - forecast: `query alert` - host: `service check` - integration: `query alert` or `service check` - live process: `process alert` - logs: `log alert` - metric: `metric alert` - network: `service check` - outlier: `query alert` - process: `service check` - rum: `rum alert` - SLO: `slo alert` - watchdog: `event alert` - event-v2: `event-v2 alert` - audit: `audit alert` #### Query Types **Metric Alert Query** Example: `time_aggr(time_window):space_aggr:metric{tags} [by {key}] operator #` - `time_aggr`: avg, sum, max, min, change, or pct_change - `time_window`: `last_#m` (with `#` between 1 and 10080 depending on the monitor type) or `last_#h`(with `#` between 1 and 168 depending on the monitor type) or `last_1d`, or `last_1w` - `space_aggr`: avg, sum, min, or max - `tags`: one or more tags (comma-separated), or * - `key`: a 'key' in key:value tag syntax; defines a separate alert for each tag in the group (multi-alert) - `operator`: <, <=, >, >=, ==, or != - `#`: an integer or decimal number used to set the threshold If you are using the `_change_` or `_pct_change_` time aggregator, instead use `change_aggr(time_aggr(time_window), timeshift):space_aggr:metric{tags} [by {key}] operator #` with: - `change_aggr` change, pct_change - `time_aggr` avg, sum, max, min [Learn more](https://docs.datadoghq.com/monitors/
|
100
|
+
# Create a monitor using the specified options. #### Monitor Types The type of monitor chosen from: - anomaly: `query alert` - APM: `query alert` or `trace-analytics alert` - composite: `composite` - custom: `service check` - event: `event alert` - forecast: `query alert` - host: `service check` - integration: `query alert` or `service check` - live process: `process alert` - logs: `log alert` - metric: `metric alert` - network: `service check` - outlier: `query alert` - process: `service check` - rum: `rum alert` - SLO: `slo alert` - watchdog: `event alert` - event-v2: `event-v2 alert` - audit: `audit alert` #### Query Types **Metric Alert Query** Example: `time_aggr(time_window):space_aggr:metric{tags} [by {key}] operator #` - `time_aggr`: avg, sum, max, min, change, or pct_change - `time_window`: `last_#m` (with `#` between 1 and 10080 depending on the monitor type) or `last_#h`(with `#` between 1 and 168 depending on the monitor type) or `last_1d`, or `last_1w` - `space_aggr`: avg, sum, min, or max - `tags`: one or more tags (comma-separated), or * - `key`: a 'key' in key:value tag syntax; defines a separate alert for each tag in the group (multi-alert) - `operator`: <, <=, >, >=, ==, or != - `#`: an integer or decimal number used to set the threshold If you are using the `_change_` or `_pct_change_` time aggregator, instead use `change_aggr(time_aggr(time_window), timeshift):space_aggr:metric{tags} [by {key}] operator #` with: - `change_aggr` change, pct_change - `time_aggr` avg, sum, max, min [Learn more](https://docs.datadoghq.com/monitors/create/types/#define-the-conditions) - `time_window` last\\_#m (between 1 and 2880 depending on the monitor type), last\\_#h (between 1 and 48 depending on the monitor type), or last_#d (1 or 2) - `timeshift` #m_ago (5, 10, 15, or 30), #h_ago (1, 2, or 4), or 1d_ago Use this to create an outlier monitor using the following query: `avg(last_30m):outliers(avg:system.cpu.user{role:es-events-data} by {host}, 'dbscan', 7) > 0` **Service Check Query** Example: `\"check\".over(tags).last(count).by(group).count_by_status()` - **`check`** name of the check, e.g. `datadog.agent.up` - **`tags`** one or more quoted tags (comma-separated), or \"*\". e.g.: `.over(\"env:prod\", \"role:db\")`; **`over`** cannot be blank. - **`count`** must be at greater than or equal to your max threshold (defined in the `options`). It is limited to 100. For example, if you've specified to notify on 1 critical, 3 ok, and 2 warn statuses, `count` should be at least 3. - **`group`** must be specified for check monitors. Per-check grouping is already explicitly known for some service checks. For example, Postgres integration monitors are tagged by `db`, `host`, and `port`, and Network monitors by `host`, `instance`, and `url`. See [Service Checks](https://docs.datadoghq.com/api/latest/service-checks/) documentation for more information. **Event Alert Query** Example: `events('sources:nagios status:error,warning priority:normal tags: \"string query\"').rollup(\"count\").last(\"1h\")\"` - **`event`**, the event query string: - **`string_query`** free text query to match against event title and text. - **`sources`** event sources (comma-separated). - **`status`** event statuses (comma-separated). Valid options: error, warn, and info. - **`priority`** event priorities (comma-separated). Valid options: low, normal, all. - **`host`** event reporting host (comma-separated). - **`tags`** event tags (comma-separated). - **`excluded_tags`** excluded event tags (comma-separated). - **`rollup`** the stats roll-up method. `count` is the only supported method now. - **`last`** the timeframe to roll up the counts. Examples: 45m, 4h. Supported timeframes: m, h and d. This value should not exceed 48 hours. **NOTE** Only available on US1 and EU. **Event V2 Alert Query** Example: `events(query).rollup(rollup_method[, measure]).last(time_window) operator #` - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. - **`#`** an integer or decimal number used to set the threshold. **NOTE** Only available on US1-FED, US3, US5 and in closed beta on EU and US1. **Process Alert Query** Example: `processes(search).over(tags).rollup('count').last(timeframe) operator #` - **`search`** free text search string for querying processes. Matching processes match results on the [Live Processes](https://docs.datadoghq.com/infrastructure/process/?tab=linuxwindows) page. - **`tags`** one or more tags (comma-separated) - **`timeframe`** the timeframe to roll up the counts. Examples: 10m, 4h. Supported timeframes: s, m, h and d - **`operator`** <, <=, >, >=, ==, or != - **`#`** an integer or decimal number used to set the threshold **Logs Alert Query** Example: `logs(query).index(index_name).rollup(rollup_method[, measure]).last(time_window) operator #` - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). - **`index_name`** For multi-index organizations, the log index in which the request is performed. - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. - **`#`** an integer or decimal number used to set the threshold. **Composite Query** Example: `12345 && 67890`, where `12345` and `67890` are the IDs of non-composite monitors * **`name`** [*required*, *default* = **dynamic, based on query**]: The name of the alert. * **`message`** [*required*, *default* = **dynamic, based on query**]: A message to include with notifications for this monitor. Email notifications can be sent to specific users by using the same '@username' notation as events. * **`tags`** [*optional*, *default* = **empty list**]: A list of tags to associate with your monitor. When getting all monitor details via the API, use the `monitor_tags` argument to filter results by these tags. It is only available via the API and isn't visible or editable in the Datadog UI. **SLO Alert Query** Example: `error_budget(\"slo_id\").over(\"time_window\") operator #` - **`slo_id`**: The alphanumeric SLO ID of the SLO you are configuring the alert for. - **`time_window`**: The time window of the SLO target you wish to alert on. Valid options: `7d`, `30d`, `90d`. - **`operator`**: `>=` or `>` **Audit Alert Query** Example: `audits(query).rollup(rollup_method[, measure]).last(time_window) operator #` - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. - **`#`** an integer or decimal number used to set the threshold. **NOTE** Only available on US1-FED and in closed beta on US1, EU, US3, and US5.
|
101
101
|
# @param body [Monitor] Create a monitor request body.
|
102
102
|
# @param [Hash] opts the optional parameters
|
103
103
|
# @return [Monitor]
|
@@ -107,7 +107,7 @@ module DatadogAPIClient::V1
|
|
107
107
|
end
|
108
108
|
|
109
109
|
# Create a monitor
|
110
|
-
# Create a monitor using the specified options. #### Monitor Types The type of monitor chosen from: - anomaly: `query alert` - APM: `query alert` or `trace-analytics alert` - composite: `composite` - custom: `service check` - event: `event alert` - forecast: `query alert` - host: `service check` - integration: `query alert` or `service check` - live process: `process alert` - logs: `log alert` - metric: `metric alert` - network: `service check` - outlier: `query alert` - process: `service check` - rum: `rum alert` - SLO: `slo alert` - watchdog: `event alert` - event-v2: `event-v2 alert` - audit: `audit alert` #### Query Types **Metric Alert Query** Example: `time_aggr(time_window):space_aggr:metric{tags} [by {key}] operator #` - `time_aggr`: avg, sum, max, min, change, or pct_change - `time_window`: `last_#m` (with `#` between 1 and 10080 depending on the monitor type) or `last_#h`(with `#` between 1 and 168 depending on the monitor type) or `last_1d`, or `last_1w` - `space_aggr`: avg, sum, min, or max - `tags`: one or more tags (comma-separated), or * - `key`: a 'key' in key:value tag syntax; defines a separate alert for each tag in the group (multi-alert) - `operator`: <, <=, >, >=, ==, or != - `#`: an integer or decimal number used to set the threshold If you are using the `_change_` or `_pct_change_` time aggregator, instead use `change_aggr(time_aggr(time_window), timeshift):space_aggr:metric{tags} [by {key}] operator #` with: - `change_aggr` change, pct_change - `time_aggr` avg, sum, max, min [Learn more](https://docs.datadoghq.com/monitors/
|
110
|
+
# Create a monitor using the specified options. #### Monitor Types The type of monitor chosen from: - anomaly: `query alert` - APM: `query alert` or `trace-analytics alert` - composite: `composite` - custom: `service check` - event: `event alert` - forecast: `query alert` - host: `service check` - integration: `query alert` or `service check` - live process: `process alert` - logs: `log alert` - metric: `metric alert` - network: `service check` - outlier: `query alert` - process: `service check` - rum: `rum alert` - SLO: `slo alert` - watchdog: `event alert` - event-v2: `event-v2 alert` - audit: `audit alert` #### Query Types **Metric Alert Query** Example: `time_aggr(time_window):space_aggr:metric{tags} [by {key}] operator #` - `time_aggr`: avg, sum, max, min, change, or pct_change - `time_window`: `last_#m` (with `#` between 1 and 10080 depending on the monitor type) or `last_#h`(with `#` between 1 and 168 depending on the monitor type) or `last_1d`, or `last_1w` - `space_aggr`: avg, sum, min, or max - `tags`: one or more tags (comma-separated), or * - `key`: a 'key' in key:value tag syntax; defines a separate alert for each tag in the group (multi-alert) - `operator`: <, <=, >, >=, ==, or != - `#`: an integer or decimal number used to set the threshold If you are using the `_change_` or `_pct_change_` time aggregator, instead use `change_aggr(time_aggr(time_window), timeshift):space_aggr:metric{tags} [by {key}] operator #` with: - `change_aggr` change, pct_change - `time_aggr` avg, sum, max, min [Learn more](https://docs.datadoghq.com/monitors/create/types/#define-the-conditions) - `time_window` last\\_#m (between 1 and 2880 depending on the monitor type), last\\_#h (between 1 and 48 depending on the monitor type), or last_#d (1 or 2) - `timeshift` #m_ago (5, 10, 15, or 30), #h_ago (1, 2, or 4), or 1d_ago Use this to create an outlier monitor using the following query: `avg(last_30m):outliers(avg:system.cpu.user{role:es-events-data} by {host}, 'dbscan', 7) > 0` **Service Check Query** Example: `\"check\".over(tags).last(count).by(group).count_by_status()` - **`check`** name of the check, e.g. `datadog.agent.up` - **`tags`** one or more quoted tags (comma-separated), or \"*\". e.g.: `.over(\"env:prod\", \"role:db\")`; **`over`** cannot be blank. - **`count`** must be at greater than or equal to your max threshold (defined in the `options`). It is limited to 100. For example, if you've specified to notify on 1 critical, 3 ok, and 2 warn statuses, `count` should be at least 3. - **`group`** must be specified for check monitors. Per-check grouping is already explicitly known for some service checks. For example, Postgres integration monitors are tagged by `db`, `host`, and `port`, and Network monitors by `host`, `instance`, and `url`. See [Service Checks](https://docs.datadoghq.com/api/latest/service-checks/) documentation for more information. **Event Alert Query** Example: `events('sources:nagios status:error,warning priority:normal tags: \"string query\"').rollup(\"count\").last(\"1h\")\"` - **`event`**, the event query string: - **`string_query`** free text query to match against event title and text. - **`sources`** event sources (comma-separated). - **`status`** event statuses (comma-separated). Valid options: error, warn, and info. - **`priority`** event priorities (comma-separated). Valid options: low, normal, all. - **`host`** event reporting host (comma-separated). - **`tags`** event tags (comma-separated). - **`excluded_tags`** excluded event tags (comma-separated). - **`rollup`** the stats roll-up method. `count` is the only supported method now. - **`last`** the timeframe to roll up the counts. Examples: 45m, 4h. Supported timeframes: m, h and d. This value should not exceed 48 hours. **NOTE** Only available on US1 and EU. **Event V2 Alert Query** Example: `events(query).rollup(rollup_method[, measure]).last(time_window) operator #` - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. - **`#`** an integer or decimal number used to set the threshold. **NOTE** Only available on US1-FED, US3, US5 and in closed beta on EU and US1. **Process Alert Query** Example: `processes(search).over(tags).rollup('count').last(timeframe) operator #` - **`search`** free text search string for querying processes. Matching processes match results on the [Live Processes](https://docs.datadoghq.com/infrastructure/process/?tab=linuxwindows) page. - **`tags`** one or more tags (comma-separated) - **`timeframe`** the timeframe to roll up the counts. Examples: 10m, 4h. Supported timeframes: s, m, h and d - **`operator`** <, <=, >, >=, ==, or != - **`#`** an integer or decimal number used to set the threshold **Logs Alert Query** Example: `logs(query).index(index_name).rollup(rollup_method[, measure]).last(time_window) operator #` - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). - **`index_name`** For multi-index organizations, the log index in which the request is performed. - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. - **`#`** an integer or decimal number used to set the threshold. **Composite Query** Example: `12345 && 67890`, where `12345` and `67890` are the IDs of non-composite monitors * **`name`** [*required*, *default* = **dynamic, based on query**]: The name of the alert. * **`message`** [*required*, *default* = **dynamic, based on query**]: A message to include with notifications for this monitor. Email notifications can be sent to specific users by using the same '@username' notation as events. * **`tags`** [*optional*, *default* = **empty list**]: A list of tags to associate with your monitor. When getting all monitor details via the API, use the `monitor_tags` argument to filter results by these tags. It is only available via the API and isn't visible or editable in the Datadog UI. **SLO Alert Query** Example: `error_budget(\"slo_id\").over(\"time_window\") operator #` - **`slo_id`**: The alphanumeric SLO ID of the SLO you are configuring the alert for. - **`time_window`**: The time window of the SLO target you wish to alert on. Valid options: `7d`, `30d`, `90d`. - **`operator`**: `>=` or `>` **Audit Alert Query** Example: `audits(query).rollup(rollup_method[, measure]).last(time_window) operator #` - **`query`** The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/). - **`rollup_method`** The stats roll-up method - supports `count`, `avg` and `cardinality`. - **`measure`** For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use. - **`time_window`** #m (between 1 and 2880), #h (between 1 and 48). - **`operator`** `<`, `<=`, `>`, `>=`, `==`, or `!=`. - **`#`** an integer or decimal number used to set the threshold. **NOTE** Only available on US1-FED and in closed beta on US1, EU, US3, and US5.
|
111
111
|
# @param body [Monitor] Create a monitor request body.
|
112
112
|
# @param [Hash] opts the optional parameters
|
113
113
|
# @return [Array<(Monitor, Integer, Hash)>] Monitor data, response status code and response headers
|
@@ -330,7 +330,7 @@ module DatadogAPIClient::V1
|
|
330
330
|
# @option opts [String] :name A string to filter monitors by name.
|
331
331
|
# @option opts [String] :tags A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope. For example, `host:host0`.
|
332
332
|
# @option opts [String] :monitor_tags A comma separated list indicating what service and/or custom tags, if any, should be used to filter the list of monitors. Tags created in the Datadog UI automatically have the service key prepended. For example, `service:my-app`.
|
333
|
-
# @option opts [Boolean] :with_downtimes If this argument is set to true, then the returned data includes all current downtimes for each monitor.
|
333
|
+
# @option opts [Boolean] :with_downtimes If this argument is set to true, then the returned data includes all current active downtimes for each monitor.
|
334
334
|
# @option opts [Integer] :id_offset Monitor ID offset.
|
335
335
|
# @option opts [Integer] :page The page to start paginating from. If this argument is not specified, the request returns all monitors without pagination.
|
336
336
|
# @option opts [Integer] :page_size The number of monitors to return per page. If the page argument is not specified, the default behavior returns all monitors without a `page_size` limit. However, if page is specified and `page_size` is not, the argument defaults to 100.
|
@@ -347,7 +347,7 @@ module DatadogAPIClient::V1
|
|
347
347
|
# @option opts [String] :name A string to filter monitors by name.
|
348
348
|
# @option opts [String] :tags A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope. For example, `host:host0`.
|
349
349
|
# @option opts [String] :monitor_tags A comma separated list indicating what service and/or custom tags, if any, should be used to filter the list of monitors. Tags created in the Datadog UI automatically have the service key prepended. For example, `service:my-app`.
|
350
|
-
# @option opts [Boolean] :with_downtimes If this argument is set to true, then the returned data includes all current downtimes for each monitor.
|
350
|
+
# @option opts [Boolean] :with_downtimes If this argument is set to true, then the returned data includes all current active downtimes for each monitor.
|
351
351
|
# @option opts [Integer] :id_offset Monitor ID offset.
|
352
352
|
# @option opts [Integer] :page The page to start paginating from. If this argument is not specified, the request returns all monitors without pagination.
|
353
353
|
# @option opts [Integer] :page_size The number of monitors to return per page. If the page argument is not specified, the default behavior returns all monitors without a `page_size` limit. However, if page is specified and `page_size` is not, the argument defaults to 100.
|
@@ -421,7 +421,7 @@ module DatadogAPIClient::V1
|
|
421
421
|
# Monitors group search
|
422
422
|
# Search and filter your monitor groups details.
|
423
423
|
# @param [Hash] opts the optional parameters
|
424
|
-
# @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query=\"type:metric status:alert\"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/
|
424
|
+
# @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query=\"type:metric status:alert\"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors
|
425
425
|
# @option opts [Integer] :page Page to start paginating from. (default to 0)
|
426
426
|
# @option opts [Integer] :per_page Number of monitors to return per page. (default to 30)
|
427
427
|
# @option opts [String] :sort String for sort order, composed of field and sort order separate by a comma, e.g. `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: * `name` * `status` * `tags`
|
@@ -434,7 +434,7 @@ module DatadogAPIClient::V1
|
|
434
434
|
# Monitors group search
|
435
435
|
# Search and filter your monitor groups details.
|
436
436
|
# @param [Hash] opts the optional parameters
|
437
|
-
# @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query=\"type:metric status:alert\"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/
|
437
|
+
# @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query=\"type:metric status:alert\"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors
|
438
438
|
# @option opts [Integer] :page Page to start paginating from.
|
439
439
|
# @option opts [Integer] :per_page Number of monitors to return per page.
|
440
440
|
# @option opts [String] :sort String for sort order, composed of field and sort order separate by a comma, e.g. `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: * `name` * `status` * `tags`
|
@@ -500,7 +500,7 @@ module DatadogAPIClient::V1
|
|
500
500
|
# Monitors search
|
501
501
|
# Search and filter your monitors details.
|
502
502
|
# @param [Hash] opts the optional parameters
|
503
|
-
# @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query=\"type:metric status:alert\"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/
|
503
|
+
# @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query=\"type:metric status:alert\"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors
|
504
504
|
# @option opts [Integer] :page Page to start paginating from. (default to 0)
|
505
505
|
# @option opts [Integer] :per_page Number of monitors to return per page. (default to 30)
|
506
506
|
# @option opts [String] :sort String for sort order, composed of field and sort order separate by a comma, e.g. `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: * `name` * `status` * `tags`
|
@@ -513,7 +513,7 @@ module DatadogAPIClient::V1
|
|
513
513
|
# Monitors search
|
514
514
|
# Search and filter your monitors details.
|
515
515
|
# @param [Hash] opts the optional parameters
|
516
|
-
# @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query=\"type:metric status:alert\"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/
|
516
|
+
# @option opts [String] :query After entering a search query in your [Manage Monitor page][1] use the query parameter value in the URL of the page as value for this parameter. Consult the dedicated [manage monitor documentation][2] page to learn more. The query can contain any number of space-separated monitor attributes, for instance `query=\"type:metric status:alert\"`. [1]: https://app.datadoghq.com/monitors/manage [2]: /monitors/manage/#find-the-monitors
|
517
517
|
# @option opts [Integer] :page Page to start paginating from.
|
518
518
|
# @option opts [Integer] :per_page Number of monitors to return per page.
|
519
519
|
# @option opts [String] :sort String for sort order, composed of field and sort order separate by a comma, e.g. `name,asc`. Supported sort directions: `asc`, `desc`. Supported fields: * `name` * `status` * `tags`
|
@@ -250,10 +250,12 @@ module DatadogAPIClient::V1
|
|
250
250
|
# @option opts [String] :exclude_author_handle Return notebooks not created by the given `author_handle`.
|
251
251
|
# @option opts [Integer] :start The index of the first notebook you want returned.
|
252
252
|
# @option opts [Integer] :count The number of notebooks to be returned.
|
253
|
-
# @option opts [String] :sort_field Sort by field `modified` or `
|
253
|
+
# @option opts [String] :sort_field Sort by field `modified`, `name`, or `created`. (default to 'modified')
|
254
254
|
# @option opts [String] :sort_dir Sort by direction `asc` or `desc`. (default to 'desc')
|
255
255
|
# @option opts [String] :query Return only notebooks with `query` string in notebook name or author handle.
|
256
256
|
# @option opts [Boolean] :include_cells Value of `false` excludes the `cells` and global `time` for each notebook. (default to true)
|
257
|
+
# @option opts [Boolean] :is_template True value returns only template notebooks. Default is false (returns only non-template notebooks). (default to false)
|
258
|
+
# @option opts [String] :type If type is provided, returns only notebooks with that metadata type. Default does not have type filtering.
|
257
259
|
# @return [NotebooksResponse]
|
258
260
|
def list_notebooks(opts = {})
|
259
261
|
data, _status_code, _headers = list_notebooks_with_http_info(opts)
|
@@ -267,10 +269,12 @@ module DatadogAPIClient::V1
|
|
267
269
|
# @option opts [String] :exclude_author_handle Return notebooks not created by the given `author_handle`.
|
268
270
|
# @option opts [Integer] :start The index of the first notebook you want returned.
|
269
271
|
# @option opts [Integer] :count The number of notebooks to be returned.
|
270
|
-
# @option opts [String] :sort_field Sort by field `modified` or `
|
272
|
+
# @option opts [String] :sort_field Sort by field `modified`, `name`, or `created`.
|
271
273
|
# @option opts [String] :sort_dir Sort by direction `asc` or `desc`.
|
272
274
|
# @option opts [String] :query Return only notebooks with `query` string in notebook name or author handle.
|
273
275
|
# @option opts [Boolean] :include_cells Value of `false` excludes the `cells` and global `time` for each notebook.
|
276
|
+
# @option opts [Boolean] :is_template True value returns only template notebooks. Default is false (returns only non-template notebooks).
|
277
|
+
# @option opts [String] :type If type is provided, returns only notebooks with that metadata type. Default does not have type filtering.
|
274
278
|
# @return [Array<(NotebooksResponse, Integer, Hash)>] NotebooksResponse data, response status code and response headers
|
275
279
|
def list_notebooks_with_http_info(opts = {})
|
276
280
|
|
@@ -299,6 +303,8 @@ module DatadogAPIClient::V1
|
|
299
303
|
query_params[:'sort_dir'] = opts[:'sort_dir'] if !opts[:'sort_dir'].nil?
|
300
304
|
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
|
301
305
|
query_params[:'include_cells'] = opts[:'include_cells'] if !opts[:'include_cells'].nil?
|
306
|
+
query_params[:'is_template'] = opts[:'is_template'] if !opts[:'is_template'].nil?
|
307
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
302
308
|
|
303
309
|
# header parameters
|
304
310
|
header_params = opts[:header_params] || {}
|
@@ -64,7 +64,7 @@ module DatadogAPIClient::V1
|
|
64
64
|
# header parameters
|
65
65
|
header_params = opts[:header_params] || {}
|
66
66
|
# HTTP header 'Accept' (if needed)
|
67
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
67
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/json'])
|
68
68
|
# HTTP header 'Content-Type'
|
69
69
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
70
70
|
|