datadog_api_client 2.21.0 → 2.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +308 -695
- data/.generator/schemas/v2/openapi.yaml +664 -185
- data/.github/workflows/prepare_release.yml +2 -2
- data/.github/workflows/publish.yml +2 -2
- data/.github/workflows/release.yml +2 -2
- data/.github/workflows/test.yml +1 -1
- data/CHANGELOG.md +41 -0
- data/Gemfile +1 -1
- data/examples/v1/aws-integration/CreateAWSAccount.rb +1 -1
- data/examples/v1/aws-integration/CreateNewAWSExternalID.rb +1 -0
- data/examples/v1/aws-integration/UpdateAWSAccount.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1241981394.rb +118 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +9 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_960766374.rb +8 -0
- data/examples/v1/synthetics/UpdateAPITest.rb +8 -0
- data/examples/v1/synthetics/UpdateBrowserTest.rb +3 -0
- data/examples/v2/apm-retention-filters/UpdateApmRetentionFilter.rb +2 -2
- data/examples/v2/authn-mappings/CreateAuthNMapping.rb +1 -1
- data/examples/v2/authn-mappings/UpdateAuthNMapping.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/CreateCSMThreatsAgentRule.rb +2 -2
- data/examples/v2/{cloud-workload-security → csm-threats}/CreateCloudWorkloadSecurityAgentRule.rb +2 -2
- data/examples/v2/{cloud-workload-security → csm-threats}/DeleteCSMThreatsAgentRule.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/DeleteCloudWorkloadSecurityAgentRule.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/DownloadCSMThreatsPolicy.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/DownloadCloudWorkloadPolicyFile.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/GetCSMThreatsAgentRule.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/GetCloudWorkloadSecurityAgentRule.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/ListCSMThreatsAgentRules.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/ListCloudWorkloadSecurityAgentRules.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/UpdateCSMThreatsAgentRule.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/UpdateCloudWorkloadSecurityAgentRule.rb +1 -1
- data/examples/v2/gcp-integration/CreateGCPSTSAccount.rb +1 -1
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_109518525.rb +1 -1
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb +1 -1
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_194782945.rb +1 -1
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb +1 -1
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_4235664992.rb +1 -1
- data/examples/v2/gcp-integration/UpdateGCPSTSAccount.rb +1 -1
- data/examples/v2/gcp-integration/UpdateGCPSTSAccount_2241994060.rb +1 -1
- data/examples/v2/gcp-integration/UpdateGCPSTSAccount_3205636354.rb +1 -1
- data/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination.rb +4 -0
- data/examples/v2/metrics/QueryScalarData_3112571352.rb +2 -2
- data/examples/v2/metrics/QueryTimeseriesData_301142940.rb +3 -3
- data/examples/v2/roles/CreateRole.rb +14 -2
- data/examples/v2/roles/CreateRole_3862893229.rb +27 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.rb +1 -1
- data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.rb +19 -0
- data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule.rb +42 -0
- data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +4 -0
- data/examples/v2/service-level-objectives/CreateSLOReportJob.rb +20 -0
- data/examples/v2/service-level-objectives/GetSLOReport.rb +8 -0
- data/examples/v2/service-level-objectives/GetSLOReportJobStatus.rb +11 -0
- data/lib/datadog_api_client/configuration.rb +3 -0
- data/lib/datadog_api_client/inflector.rb +26 -8
- data/lib/datadog_api_client/v1/api/authentication_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/aws_integration_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/logs_indexes_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/logs_pipelines_api.rb +3 -3
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +112 -135
- data/lib/datadog_api_client/v1/api/users_api.rb +1 -1
- data/lib/datadog_api_client/v1/models/aws_account.rb +12 -2
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +3 -0
- data/lib/datadog_api_client/v1/models/monitor_options.rb +4 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +6 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +61 -1
- data/lib/datadog_api_client/v1/models/series.rb +1 -1
- data/lib/datadog_api_client/v1/models/service_level_objective.rb +2 -1
- data/lib/datadog_api_client/v1/models/service_level_objective_request.rb +2 -1
- data/lib/datadog_api_client/v1/models/slo_history_monitor.rb +7 -1
- data/lib/datadog_api_client/v1/models/slo_history_sli_data.rb +8 -1
- data/lib/datadog_api_client/v1/models/slo_overall_statuses.rb +2 -1
- data/lib/datadog_api_client/v1/models/slo_response_data.rb +2 -1
- data/lib/datadog_api_client/v1/models/slo_threshold.rb +2 -1
- data/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb +14 -2
- data/lib/datadog_api_client/v1/models/slo_time_slice_interval.rb +29 -0
- data/lib/datadog_api_client/v1/models/slo_time_slice_spec.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_timeframe.rb +2 -1
- data/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb +14 -4
- data/lib/datadog_api_client/v1/models/synthetics_assertion.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_meta_schema.rb +27 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_operator.rb +26 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target.rb +129 -0
- data/lib/datadog_api_client/v1/models/{usage_attribution_metadata.rb → synthetics_assertion_json_schema_target_target.rb} +19 -21
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +13 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb +175 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_request_body_type.rb +2 -0
- data/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb +11 -1
- data/lib/datadog_api_client/v2/api/apm_retention_filters_api.rb +8 -2
- data/lib/datadog_api_client/v2/api/authn_mappings_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/case_management_api.rb +17 -16
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +10 -10
- data/lib/datadog_api_client/v2/api/{cloud_workload_security_api.rb → csm_threats_api.rb} +35 -35
- data/lib/datadog_api_client/v2/api/events_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/ip_allowlist_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/logs_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/logs_archives_api.rb +4 -4
- data/lib/datadog_api_client/v2/api/logs_metrics_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/metrics_api.rb +4 -4
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +69 -1
- data/lib/datadog_api_client/v2/api/service_level_objectives_api.rb +245 -0
- data/lib/datadog_api_client/v2/api/spans_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +22 -4
- data/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/authn_mapping_create_relationships.rb +37 -54
- data/lib/datadog_api_client/v2/models/authn_mapping_included.rb +2 -1
- data/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_role.rb +98 -0
- data/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_team.rb +98 -0
- data/lib/datadog_api_client/v2/models/authn_mapping_relationships.rb +14 -4
- data/lib/datadog_api_client/v2/models/authn_mapping_team.rb +100 -0
- data/lib/datadog_api_client/v2/models/authn_mapping_team_attributes.rb +212 -0
- data/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/authn_mapping_update_relationships.rb +37 -54
- data/lib/datadog_api_client/v2/models/custom_destination_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_query_filter.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_storage_tier.rb +2 -1
- data/lib/datadog_api_client/v2/models/metric_series.rb +1 -1
- data/lib/datadog_api_client/v2/models/relationship_to_team.rb +80 -0
- data/lib/datadog_api_client/{v1/models/usage_attribution_response.rb → v2/models/relationship_to_team_data.rb} +21 -23
- data/lib/datadog_api_client/v2/models/retention_filter_create_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/retention_filter_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb +183 -0
- data/lib/datadog_api_client/v2/models/retention_filter_update_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +14 -2
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +13 -14
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +13 -1
- data/lib/datadog_api_client/v2/models/slo_report_create_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/slo_report_create_request_attributes.rb +160 -0
- data/lib/datadog_api_client/{v1/models/usage_attribution_pagination.rb → v2/models/slo_report_create_request_data.rb} +29 -51
- data/lib/datadog_api_client/v2/models/slo_report_interval.rb +27 -0
- data/lib/datadog_api_client/v2/models/slo_report_post_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/slo_report_post_response_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/slo_report_status.rb +29 -0
- data/lib/datadog_api_client/v2/models/slo_report_status_get_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/slo_report_status_get_response_attributes.rb +80 -0
- data/lib/datadog_api_client/v2/models/slo_report_status_get_response_data.rb +100 -0
- data/lib/datadog_api_client/v2/models/timeseries_response_series.rb +8 -0
- data/lib/datadog_api_client/v2/models/user_team_included.rb +2 -1
- data/lib/datadog_api_client/v2/models/user_teams_response.rb +13 -1
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +70 -46
- data/examples/v1/usage-metering/GetUsageAttribution.rb +0 -9
- data/lib/datadog_api_client/v1/models/usage_attribution_body.rb +0 -152
- data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +0 -63
- data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +0 -74
- data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +0 -590
|
@@ -84,7 +84,7 @@ module DatadogAPIClient::V1
|
|
|
84
84
|
return_type = opts[:debug_return_type] || 'UsageCustomReportsResponse'
|
|
85
85
|
|
|
86
86
|
# auth_names
|
|
87
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
|
87
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
88
88
|
|
|
89
89
|
new_options = opts.merge(
|
|
90
90
|
:operation => :get_daily_custom_reports,
|
|
@@ -152,7 +152,7 @@ module DatadogAPIClient::V1
|
|
|
152
152
|
fail ArgumentError, "Missing the required parameter 'usage_type' when calling UsageMeteringAPI.get_hourly_usage_attribution"
|
|
153
153
|
end
|
|
154
154
|
# verify enum value
|
|
155
|
-
allowable_values = ['api_usage', 'apm_fargate_usage', 'apm_host_usage', 'apm_usm_usage', 'appsec_fargate_usage', 'appsec_usage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'browser_usage', 'ci_pipeline_indexed_spans_usage', 'ci_test_indexed_spans_usage', 'ci_visibility_itr_usage', 'cloud_siem_usage', 'container_excl_agent_usage', 'container_usage', 'cspm_containers_usage', 'cspm_hosts_usage', 'custom_event_usage', 'custom_ingested_timeseries_usage', 'custom_timeseries_usage', 'cws_containers_usage', 'cws_hosts_usage', 'dbm_hosts_usage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_spans_usage', 'estimated_ingested_logs_usage', 'estimated_ingested_spans_usage', 'estimated_rum_sessions_usage', 'fargate_usage', 'functions_usage', 'indexed_spans_usage', 'infra_host_usage', 'ingested_logs_bytes_usage', 'ingested_spans_bytes_usage', 'invocations_usage', 'lambda_traced_invocations_usage', 'logs_indexed_15day_usage', 'logs_indexed_180day_usage', 'logs_indexed_30day_usage', 'logs_indexed_360day_usage', 'logs_indexed_3day_usage', 'logs_indexed_45day_usage', 'logs_indexed_60day_usage', 'logs_indexed_7day_usage', 'logs_indexed_90day_usage', 'logs_indexed_custom_retention_usage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'npm_host_usage', 'obs_pipeline_bytes_usage', 'obs_pipelines_vcpu_usage', 'profiled_container_usage', 'profiled_fargate_usage', 'profiled_host_usage', 'rum_browser_mobile_sessions_usage', 'rum_replay_sessions_usage', 'sds_scanned_bytes_usage', 'serverless_apps_usage', 'siem_ingested_bytes_usage', 'snmp_usage', 'universal_service_monitoring_usage', 'vuln_management_hosts_usage', 'workflow_executions_usage']
|
|
155
|
+
allowable_values = ['api_usage', 'apm_fargate_usage', 'apm_host_usage', 'apm_usm_usage', 'appsec_fargate_usage', 'appsec_usage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'browser_usage', 'ci_pipeline_indexed_spans_usage', 'ci_test_indexed_spans_usage', 'ci_visibility_itr_usage', 'cloud_siem_usage', 'container_excl_agent_usage', 'container_usage', 'cspm_containers_usage', 'cspm_hosts_usage', 'custom_event_usage', 'custom_ingested_timeseries_usage', 'custom_timeseries_usage', 'cws_containers_usage', 'cws_hosts_usage', 'dbm_hosts_usage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_spans_usage', 'estimated_ingested_logs_usage', 'estimated_ingested_spans_usage', 'estimated_rum_sessions_usage', 'fargate_usage', 'functions_usage', 'incident_management_monthly_active_users_usage', 'indexed_spans_usage', 'infra_host_usage', 'ingested_logs_bytes_usage', 'ingested_spans_bytes_usage', 'invocations_usage', 'lambda_traced_invocations_usage', 'logs_indexed_15day_usage', 'logs_indexed_180day_usage', 'logs_indexed_1day_usage', 'logs_indexed_30day_usage', 'logs_indexed_360day_usage', 'logs_indexed_3day_usage', 'logs_indexed_45day_usage', 'logs_indexed_60day_usage', 'logs_indexed_7day_usage', 'logs_indexed_90day_usage', 'logs_indexed_custom_retention_usage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'npm_host_usage', 'obs_pipeline_bytes_usage', 'obs_pipelines_vcpu_usage', 'online_archive_usage', 'profiled_container_usage', 'profiled_fargate_usage', 'profiled_host_usage', 'rum_browser_mobile_sessions_usage', 'rum_replay_sessions_usage', 'sds_scanned_bytes_usage', 'serverless_apps_usage', 'siem_ingested_bytes_usage', 'snmp_usage', 'universal_service_monitoring_usage', 'vuln_management_hosts_usage', 'workflow_executions_usage']
|
|
156
156
|
if @api_client.config.client_side_validation && !allowable_values.include?(usage_type)
|
|
157
157
|
fail ArgumentError, "invalid value for \"usage_type\", must be one of #{allowable_values}"
|
|
158
158
|
end
|
|
@@ -214,13 +214,16 @@ module DatadogAPIClient::V1
|
|
|
214
214
|
# Get hourly usage for incident management.
|
|
215
215
|
#
|
|
216
216
|
# Get hourly usage for incident management.
|
|
217
|
-
# **Note:**
|
|
217
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
218
|
+
#
|
|
219
|
+
# @deprecated This API is deprecated.
|
|
218
220
|
#
|
|
219
221
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
220
222
|
# @param opts [Hash] the optional parameters
|
|
221
223
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour.
|
|
222
224
|
# @return [Array<(UsageIncidentManagementResponse, Integer, Hash)>] UsageIncidentManagementResponse data, response status code and response headers
|
|
223
225
|
def get_incident_management_with_http_info(start_hr, opts = {})
|
|
226
|
+
warn "[DEPRECATION] `GetIncidentManagement` is deprecated."
|
|
224
227
|
|
|
225
228
|
if @api_client.config.debugging
|
|
226
229
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_incident_management ...'
|
|
@@ -283,13 +286,16 @@ module DatadogAPIClient::V1
|
|
|
283
286
|
# Get hourly usage for ingested spans.
|
|
284
287
|
#
|
|
285
288
|
# Get hourly usage for ingested spans.
|
|
286
|
-
# **Note:**
|
|
289
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
290
|
+
#
|
|
291
|
+
# @deprecated This API is deprecated.
|
|
287
292
|
#
|
|
288
293
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
289
294
|
# @param opts [Hash] the optional parameters
|
|
290
295
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour.
|
|
291
296
|
# @return [Array<(UsageIngestedSpansResponse, Integer, Hash)>] UsageIngestedSpansResponse data, response status code and response headers
|
|
292
297
|
def get_ingested_spans_with_http_info(start_hr, opts = {})
|
|
298
|
+
warn "[DEPRECATION] `GetIngestedSpans` is deprecated."
|
|
293
299
|
|
|
294
300
|
if @api_client.config.debugging
|
|
295
301
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_ingested_spans ...'
|
|
@@ -402,7 +408,7 @@ module DatadogAPIClient::V1
|
|
|
402
408
|
return_type = opts[:debug_return_type] || 'UsageCustomReportsResponse'
|
|
403
409
|
|
|
404
410
|
# auth_names
|
|
405
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
|
411
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
406
412
|
|
|
407
413
|
new_options = opts.merge(
|
|
408
414
|
:operation => :get_monthly_custom_reports,
|
|
@@ -472,7 +478,7 @@ module DatadogAPIClient::V1
|
|
|
472
478
|
fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_monthly_usage_attribution"
|
|
473
479
|
end
|
|
474
480
|
# verify enum value
|
|
475
|
-
allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'cloud_siem_usage', 'cloud_siem_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'lambda_traced_invocations_usage', 'lambda_traced_invocations_percentage', 'mobile_app_testing_percentage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'ndm_netflow_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'obs_pipelines_vcpu_usage', 'obs_pipelines_vcpu_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'serverless_apps_usage', 'serverless_apps_percentage', 'snmp_usage', 'snmp_percentage', 'estimated_rum_sessions_usage', 'estimated_rum_sessions_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', 'ci_test_indexed_spans_usage', 'ci_test_indexed_spans_percentage', 'ingested_logs_bytes_usage', 'ingested_logs_bytes_percentage', 'ci_pipeline_indexed_spans_usage', 'ci_pipeline_indexed_spans_percentage', 'indexed_spans_usage', 'indexed_spans_percentage', 'custom_event_usage', 'custom_event_percentage', 'logs_indexed_custom_retention_usage', 'logs_indexed_custom_retention_percentage', 'logs_indexed_360day_usage', 'logs_indexed_360day_percentage', 'logs_indexed_180day_usage', 'logs_indexed_180day_percentage', 'logs_indexed_90day_usage', 'logs_indexed_90day_percentage', 'logs_indexed_60day_usage', 'logs_indexed_60day_percentage', 'logs_indexed_45day_usage', 'logs_indexed_45day_percentage', 'logs_indexed_30day_usage', 'logs_indexed_30day_percentage', 'logs_indexed_15day_usage', 'logs_indexed_15day_percentage', 'logs_indexed_7day_usage', 'logs_indexed_7day_percentage', 'logs_indexed_3day_usage', 'logs_indexed_3day_percentage', 'rum_replay_sessions_usage', 'rum_replay_sessions_percentage', 'rum_browser_mobile_sessions_usage', 'rum_browser_mobile_sessions_percentage', 'ingested_spans_bytes_usage', 'ingested_spans_bytes_percentage', 'siem_ingested_bytes_usage', 'siem_ingested_bytes_percentage', 'workflow_executions_usage', 'workflow_executions_percentage', '*']
|
|
481
|
+
allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'cloud_siem_usage', 'cloud_siem_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'incident_management_monthly_active_users_usage', 'incident_management_monthly_active_users_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'lambda_traced_invocations_usage', 'lambda_traced_invocations_percentage', 'mobile_app_testing_percentage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'ndm_netflow_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'obs_pipelines_vcpu_usage', 'obs_pipelines_vcpu_percentage', 'online_archive_usage', 'online_archive_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'serverless_apps_usage', 'serverless_apps_percentage', 'snmp_usage', 'snmp_percentage', 'estimated_rum_sessions_usage', 'estimated_rum_sessions_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', 'ci_test_indexed_spans_usage', 'ci_test_indexed_spans_percentage', 'ingested_logs_bytes_usage', 'ingested_logs_bytes_percentage', 'ci_pipeline_indexed_spans_usage', 'ci_pipeline_indexed_spans_percentage', 'indexed_spans_usage', 'indexed_spans_percentage', 'custom_event_usage', 'custom_event_percentage', 'logs_indexed_custom_retention_usage', 'logs_indexed_custom_retention_percentage', 'logs_indexed_360day_usage', 'logs_indexed_360day_percentage', 'logs_indexed_180day_usage', 'logs_indexed_180day_percentage', 'logs_indexed_90day_usage', 'logs_indexed_90day_percentage', 'logs_indexed_60day_usage', 'logs_indexed_60day_percentage', 'logs_indexed_45day_usage', 'logs_indexed_45day_percentage', 'logs_indexed_30day_usage', 'logs_indexed_30day_percentage', 'logs_indexed_15day_usage', 'logs_indexed_15day_percentage', 'logs_indexed_7day_usage', 'logs_indexed_7day_percentage', 'logs_indexed_3day_usage', 'logs_indexed_3day_percentage', 'logs_indexed_1day_usage', 'logs_indexed_1day_percentage', 'rum_replay_sessions_usage', 'rum_replay_sessions_percentage', 'rum_browser_mobile_sessions_usage', 'rum_browser_mobile_sessions_percentage', 'ingested_spans_bytes_usage', 'ingested_spans_bytes_percentage', 'siem_ingested_bytes_usage', 'siem_ingested_bytes_percentage', 'workflow_executions_usage', 'workflow_executions_percentage', '*']
|
|
476
482
|
if @api_client.config.client_side_validation && !allowable_values.include?(fields)
|
|
477
483
|
fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}"
|
|
478
484
|
end
|
|
@@ -480,7 +486,7 @@ module DatadogAPIClient::V1
|
|
|
480
486
|
if @api_client.config.client_side_validation && opts[:'sort_direction'] && !allowable_values.include?(opts[:'sort_direction'])
|
|
481
487
|
fail ArgumentError, "invalid value for \"sort_direction\", must be one of #{allowable_values}"
|
|
482
488
|
end
|
|
483
|
-
allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'cloud_siem_usage', 'cloud_siem_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'lambda_traced_invocations_usage', 'lambda_traced_invocations_percentage', 'mobile_app_testing_percentage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'ndm_netflow_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'obs_pipelines_vcpu_usage', 'obs_pipelines_vcpu_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'serverless_apps_usage', 'serverless_apps_percentage', 'snmp_usage', 'snmp_percentage', 'estimated_rum_sessions_usage', 'estimated_rum_sessions_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', 'ci_test_indexed_spans_usage', 'ci_test_indexed_spans_percentage', 'ingested_logs_bytes_usage', 'ingested_logs_bytes_percentage', 'ci_pipeline_indexed_spans_usage', 'ci_pipeline_indexed_spans_percentage', 'indexed_spans_usage', 'indexed_spans_percentage', 'custom_event_usage', 'custom_event_percentage', 'logs_indexed_custom_retention_usage', 'logs_indexed_custom_retention_percentage', 'logs_indexed_360day_usage', 'logs_indexed_360day_percentage', 'logs_indexed_180day_usage', 'logs_indexed_180day_percentage', 'logs_indexed_90day_usage', 'logs_indexed_90day_percentage', 'logs_indexed_60day_usage', 'logs_indexed_60day_percentage', 'logs_indexed_45day_usage', 'logs_indexed_45day_percentage', 'logs_indexed_30day_usage', 'logs_indexed_30day_percentage', 'logs_indexed_15day_usage', 'logs_indexed_15day_percentage', 'logs_indexed_7day_usage', 'logs_indexed_7day_percentage', 'logs_indexed_3day_usage', 'logs_indexed_3day_percentage', 'rum_replay_sessions_usage', 'rum_replay_sessions_percentage', 'rum_browser_mobile_sessions_usage', 'rum_browser_mobile_sessions_percentage', 'ingested_spans_bytes_usage', 'ingested_spans_bytes_percentage', 'siem_ingested_bytes_usage', 'siem_ingested_bytes_percentage', 'workflow_executions_usage', 'workflow_executions_percentage', '*']
|
|
489
|
+
allowable_values = ['api_usage', 'api_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'apm_host_usage', 'apm_host_percentage', 'apm_usm_usage', 'apm_usm_percentage', 'appsec_usage', 'appsec_percentage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', 'browser_usage', 'browser_percentage', 'ci_visibility_itr_usage', 'ci_visibility_itr_percentage', 'cloud_siem_usage', 'cloud_siem_percentage', 'container_excl_agent_usage', 'container_excl_agent_percentage', 'container_usage', 'container_percentage', 'cspm_containers_percentage', 'cspm_containers_usage', 'cspm_hosts_percentage', 'cspm_hosts_usage', 'custom_timeseries_usage', 'custom_timeseries_percentage', 'custom_ingested_timeseries_usage', 'custom_ingested_timeseries_percentage', 'cws_containers_percentage', 'cws_containers_usage', 'cws_hosts_percentage', 'cws_hosts_usage', 'dbm_hosts_percentage', 'dbm_hosts_usage', 'dbm_queries_percentage', 'dbm_queries_usage', 'error_tracking_usage', 'error_tracking_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'fargate_usage', 'fargate_percentage', 'functions_usage', 'functions_percentage', 'incident_management_monthly_active_users_usage', 'incident_management_monthly_active_users_percentage', 'infra_host_usage', 'infra_host_percentage', 'invocations_usage', 'invocations_percentage', 'lambda_traced_invocations_usage', 'lambda_traced_invocations_percentage', 'mobile_app_testing_percentage', 'mobile_app_testing_usage', 'ndm_netflow_usage', 'ndm_netflow_percentage', 'npm_host_usage', 'npm_host_percentage', 'obs_pipeline_bytes_usage', 'obs_pipeline_bytes_percentage', 'obs_pipelines_vcpu_usage', 'obs_pipelines_vcpu_percentage', 'online_archive_usage', 'online_archive_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'profiled_fargate_usage', 'profiled_fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'serverless_apps_usage', 'serverless_apps_percentage', 'snmp_usage', 'snmp_percentage', 'estimated_rum_sessions_usage', 'estimated_rum_sessions_percentage', 'universal_service_monitoring_usage', 'universal_service_monitoring_percentage', 'vuln_management_hosts_usage', 'vuln_management_hosts_percentage', 'sds_scanned_bytes_usage', 'sds_scanned_bytes_percentage', 'ci_test_indexed_spans_usage', 'ci_test_indexed_spans_percentage', 'ingested_logs_bytes_usage', 'ingested_logs_bytes_percentage', 'ci_pipeline_indexed_spans_usage', 'ci_pipeline_indexed_spans_percentage', 'indexed_spans_usage', 'indexed_spans_percentage', 'custom_event_usage', 'custom_event_percentage', 'logs_indexed_custom_retention_usage', 'logs_indexed_custom_retention_percentage', 'logs_indexed_360day_usage', 'logs_indexed_360day_percentage', 'logs_indexed_180day_usage', 'logs_indexed_180day_percentage', 'logs_indexed_90day_usage', 'logs_indexed_90day_percentage', 'logs_indexed_60day_usage', 'logs_indexed_60day_percentage', 'logs_indexed_45day_usage', 'logs_indexed_45day_percentage', 'logs_indexed_30day_usage', 'logs_indexed_30day_percentage', 'logs_indexed_15day_usage', 'logs_indexed_15day_percentage', 'logs_indexed_7day_usage', 'logs_indexed_7day_percentage', 'logs_indexed_3day_usage', 'logs_indexed_3day_percentage', 'logs_indexed_1day_usage', 'logs_indexed_1day_percentage', 'rum_replay_sessions_usage', 'rum_replay_sessions_percentage', 'rum_browser_mobile_sessions_usage', 'rum_browser_mobile_sessions_percentage', 'ingested_spans_bytes_usage', 'ingested_spans_bytes_percentage', 'siem_ingested_bytes_usage', 'siem_ingested_bytes_percentage', 'workflow_executions_usage', 'workflow_executions_percentage', '*']
|
|
484
490
|
if @api_client.config.client_side_validation && opts[:'sort_name'] && !allowable_values.include?(opts[:'sort_name'])
|
|
485
491
|
fail ArgumentError, "invalid value for \"sort_name\", must be one of #{allowable_values}"
|
|
486
492
|
end
|
|
@@ -583,7 +589,7 @@ module DatadogAPIClient::V1
|
|
|
583
589
|
return_type = opts[:debug_return_type] || 'UsageSpecifiedCustomReportsResponse'
|
|
584
590
|
|
|
585
591
|
# auth_names
|
|
586
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
|
592
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
587
593
|
|
|
588
594
|
new_options = opts.merge(
|
|
589
595
|
:operation => :get_specified_daily_custom_reports,
|
|
@@ -653,7 +659,7 @@ module DatadogAPIClient::V1
|
|
|
653
659
|
return_type = opts[:debug_return_type] || 'UsageSpecifiedCustomReportsResponse'
|
|
654
660
|
|
|
655
661
|
# auth_names
|
|
656
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
|
662
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
657
663
|
|
|
658
664
|
new_options = opts.merge(
|
|
659
665
|
:operation => :get_specified_monthly_custom_reports,
|
|
@@ -684,13 +690,16 @@ module DatadogAPIClient::V1
|
|
|
684
690
|
# Get hourly usage for analyzed logs.
|
|
685
691
|
#
|
|
686
692
|
# Get hourly usage for analyzed logs (Security Monitoring).
|
|
687
|
-
# **Note:**
|
|
693
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
694
|
+
#
|
|
695
|
+
# @deprecated This API is deprecated.
|
|
688
696
|
#
|
|
689
697
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
690
698
|
# @param opts [Hash] the optional parameters
|
|
691
699
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour.
|
|
692
700
|
# @return [Array<(UsageAnalyzedLogsResponse, Integer, Hash)>] UsageAnalyzedLogsResponse data, response status code and response headers
|
|
693
701
|
def get_usage_analyzed_logs_with_http_info(start_hr, opts = {})
|
|
702
|
+
warn "[DEPRECATION] `GetUsageAnalyzedLogs` is deprecated."
|
|
694
703
|
|
|
695
704
|
if @api_client.config.debugging
|
|
696
705
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_analyzed_logs ...'
|
|
@@ -742,108 +751,6 @@ module DatadogAPIClient::V1
|
|
|
742
751
|
return data, status_code, headers
|
|
743
752
|
end
|
|
744
753
|
|
|
745
|
-
# Get usage attribution.
|
|
746
|
-
#
|
|
747
|
-
# @see #get_usage_attribution_with_http_info
|
|
748
|
-
def get_usage_attribution(start_month, fields, opts = {})
|
|
749
|
-
data, _status_code, _headers = get_usage_attribution_with_http_info(start_month, fields, opts)
|
|
750
|
-
data
|
|
751
|
-
end
|
|
752
|
-
|
|
753
|
-
# Get usage attribution.
|
|
754
|
-
#
|
|
755
|
-
# Get usage attribution.
|
|
756
|
-
# **Note:** This endpoint will be fully deprecated on December 1, 2022.
|
|
757
|
-
# Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
|
|
758
|
-
#
|
|
759
|
-
# @deprecated This API is deprecated.
|
|
760
|
-
#
|
|
761
|
-
# @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago.
|
|
762
|
-
# @param fields [UsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types.
|
|
763
|
-
# @param opts [Hash] the optional parameters
|
|
764
|
-
# @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month.
|
|
765
|
-
# @option opts [UsageSortDirection] :sort_direction The direction to sort by: `[desc, asc]`.
|
|
766
|
-
# @option opts [UsageAttributionSort] :sort_name The field to sort by.
|
|
767
|
-
# @option opts [Boolean] :include_descendants Include child org usage in the response. Defaults to false.
|
|
768
|
-
# @option opts [Integer] :offset Number of records to skip before beginning to return.
|
|
769
|
-
# @option opts [Integer] :limit Maximum number of records to be returned.
|
|
770
|
-
# @return [Array<(UsageAttributionResponse, Integer, Hash)>] UsageAttributionResponse data, response status code and response headers
|
|
771
|
-
def get_usage_attribution_with_http_info(start_month, fields, opts = {})
|
|
772
|
-
warn "[DEPRECATION] `GetUsageAttribution` is deprecated."
|
|
773
|
-
|
|
774
|
-
if @api_client.config.debugging
|
|
775
|
-
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_attribution ...'
|
|
776
|
-
end
|
|
777
|
-
# verify the required parameter 'start_month' is set
|
|
778
|
-
if @api_client.config.client_side_validation && start_month.nil?
|
|
779
|
-
fail ArgumentError, "Missing the required parameter 'start_month' when calling UsageMeteringAPI.get_usage_attribution"
|
|
780
|
-
end
|
|
781
|
-
# verify the required parameter 'fields' is set
|
|
782
|
-
if @api_client.config.client_side_validation && fields.nil?
|
|
783
|
-
fail ArgumentError, "Missing the required parameter 'fields' when calling UsageMeteringAPI.get_usage_attribution"
|
|
784
|
-
end
|
|
785
|
-
# verify enum value
|
|
786
|
-
allowable_values = ['custom_timeseries_usage', 'container_usage', 'snmp_percentage', 'apm_host_usage', 'browser_usage', 'npm_host_percentage', 'infra_host_usage', 'custom_timeseries_percentage', 'container_percentage', 'api_usage', 'apm_host_percentage', 'infra_host_percentage', 'snmp_usage', 'browser_percentage', 'api_percentage', 'npm_host_usage', 'lambda_functions_usage', 'lambda_functions_percentage', 'lambda_invocations_usage', 'lambda_invocations_percentage', 'fargate_usage', 'fargate_percentage', 'profiled_host_usage', 'profiled_host_percentage', 'profiled_container_usage', 'profiled_container_percentage', 'dbm_hosts_usage', 'dbm_hosts_percentage', 'dbm_queries_usage', 'dbm_queries_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'appsec_usage', 'appsec_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'estimated_rum_usage_attribution_usage', 'estimated_rum_usage_attribution_percentage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage', '*']
|
|
787
|
-
if @api_client.config.client_side_validation && !allowable_values.include?(fields)
|
|
788
|
-
fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}"
|
|
789
|
-
end
|
|
790
|
-
allowable_values = ['desc', 'asc']
|
|
791
|
-
if @api_client.config.client_side_validation && opts[:'sort_direction'] && !allowable_values.include?(opts[:'sort_direction'])
|
|
792
|
-
fail ArgumentError, "invalid value for \"sort_direction\", must be one of #{allowable_values}"
|
|
793
|
-
end
|
|
794
|
-
allowable_values = ['api_percentage', 'snmp_usage', 'apm_host_usage', 'api_usage', 'appsec_usage', 'appsec_percentage', 'container_usage', 'custom_timeseries_percentage', 'container_percentage', 'apm_host_percentage', 'npm_host_percentage', 'browser_percentage', 'browser_usage', 'infra_host_percentage', 'snmp_percentage', 'npm_host_usage', 'infra_host_usage', 'custom_timeseries_usage', 'lambda_functions_usage', 'lambda_functions_percentage', 'lambda_invocations_usage', 'lambda_invocations_percentage', 'estimated_indexed_logs_usage', 'estimated_indexed_logs_percentage', 'estimated_ingested_logs_usage', 'estimated_ingested_logs_percentage', 'estimated_indexed_spans_usage', 'estimated_indexed_spans_percentage', 'estimated_ingested_spans_usage', 'estimated_ingested_spans_percentage', 'apm_fargate_usage', 'apm_fargate_percentage', 'appsec_fargate_usage', 'appsec_fargate_percentage', 'estimated_rum_usage_attribution_usage', 'estimated_rum_usage_attribution_percentage', 'asm_serverless_traced_invocations_usage', 'asm_serverless_traced_invocations_percentage']
|
|
795
|
-
if @api_client.config.client_side_validation && opts[:'sort_name'] && !allowable_values.include?(opts[:'sort_name'])
|
|
796
|
-
fail ArgumentError, "invalid value for \"sort_name\", must be one of #{allowable_values}"
|
|
797
|
-
end
|
|
798
|
-
# resource path
|
|
799
|
-
local_var_path = '/api/v1/usage/attribution'
|
|
800
|
-
|
|
801
|
-
# query parameters
|
|
802
|
-
query_params = opts[:query_params] || {}
|
|
803
|
-
query_params[:'start_month'] = start_month
|
|
804
|
-
query_params[:'fields'] = fields
|
|
805
|
-
query_params[:'end_month'] = opts[:'end_month'] if !opts[:'end_month'].nil?
|
|
806
|
-
query_params[:'sort_direction'] = opts[:'sort_direction'] if !opts[:'sort_direction'].nil?
|
|
807
|
-
query_params[:'sort_name'] = opts[:'sort_name'] if !opts[:'sort_name'].nil?
|
|
808
|
-
query_params[:'include_descendants'] = opts[:'include_descendants'] if !opts[:'include_descendants'].nil?
|
|
809
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
810
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
811
|
-
|
|
812
|
-
# header parameters
|
|
813
|
-
header_params = opts[:header_params] || {}
|
|
814
|
-
# HTTP header 'Accept' (if needed)
|
|
815
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json;datetime-format=rfc3339'])
|
|
816
|
-
|
|
817
|
-
# form parameters
|
|
818
|
-
form_params = opts[:form_params] || {}
|
|
819
|
-
|
|
820
|
-
# http body (model)
|
|
821
|
-
post_body = opts[:debug_body]
|
|
822
|
-
|
|
823
|
-
# return_type
|
|
824
|
-
return_type = opts[:debug_return_type] || 'UsageAttributionResponse'
|
|
825
|
-
|
|
826
|
-
# auth_names
|
|
827
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
828
|
-
|
|
829
|
-
new_options = opts.merge(
|
|
830
|
-
:operation => :get_usage_attribution,
|
|
831
|
-
:header_params => header_params,
|
|
832
|
-
:query_params => query_params,
|
|
833
|
-
:form_params => form_params,
|
|
834
|
-
:body => post_body,
|
|
835
|
-
:auth_names => auth_names,
|
|
836
|
-
:return_type => return_type,
|
|
837
|
-
:api_version => "V1"
|
|
838
|
-
)
|
|
839
|
-
|
|
840
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
841
|
-
if @api_client.config.debugging
|
|
842
|
-
@api_client.config.logger.debug "API called: UsageMeteringAPI#get_usage_attribution\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
843
|
-
end
|
|
844
|
-
return data, status_code, headers
|
|
845
|
-
end
|
|
846
|
-
|
|
847
754
|
# Get hourly usage for audit logs.
|
|
848
755
|
#
|
|
849
756
|
# @see #get_usage_audit_logs_with_http_info
|
|
@@ -928,6 +835,8 @@ module DatadogAPIClient::V1
|
|
|
928
835
|
#
|
|
929
836
|
# Get billable usage across your account.
|
|
930
837
|
#
|
|
838
|
+
# This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/).
|
|
839
|
+
#
|
|
931
840
|
# @param opts [Hash] the optional parameters
|
|
932
841
|
# @option opts [Time] :month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage starting this month.
|
|
933
842
|
# @return [Array<(UsageBillableSummaryResponse, Integer, Hash)>] UsageBillableSummaryResponse data, response status code and response headers
|
|
@@ -989,13 +898,16 @@ module DatadogAPIClient::V1
|
|
|
989
898
|
# Get hourly usage for CI visibility.
|
|
990
899
|
#
|
|
991
900
|
# Get hourly usage for CI visibility (tests, pipeline, and spans).
|
|
992
|
-
# **Note:**
|
|
901
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
902
|
+
#
|
|
903
|
+
# @deprecated This API is deprecated.
|
|
993
904
|
#
|
|
994
905
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
995
906
|
# @param opts [Hash] the optional parameters
|
|
996
907
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour.
|
|
997
908
|
# @return [Array<(UsageCIVisibilityResponse, Integer, Hash)>] UsageCIVisibilityResponse data, response status code and response headers
|
|
998
909
|
def get_usage_ci_app_with_http_info(start_hr, opts = {})
|
|
910
|
+
warn "[DEPRECATION] `GetUsageCIApp` is deprecated."
|
|
999
911
|
|
|
1000
912
|
if @api_client.config.debugging
|
|
1001
913
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_ci_app ...'
|
|
@@ -1058,13 +970,16 @@ module DatadogAPIClient::V1
|
|
|
1058
970
|
# Get hourly usage for CSM Pro.
|
|
1059
971
|
#
|
|
1060
972
|
# Get hourly usage for cloud security management (CSM) pro.
|
|
1061
|
-
# **Note:**
|
|
973
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
974
|
+
#
|
|
975
|
+
# @deprecated This API is deprecated.
|
|
1062
976
|
#
|
|
1063
977
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
1064
978
|
# @param opts [Hash] the optional parameters
|
|
1065
979
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour.
|
|
1066
980
|
# @return [Array<(UsageCloudSecurityPostureManagementResponse, Integer, Hash)>] UsageCloudSecurityPostureManagementResponse data, response status code and response headers
|
|
1067
981
|
def get_usage_cloud_security_posture_management_with_http_info(start_hr, opts = {})
|
|
982
|
+
warn "[DEPRECATION] `GetUsageCloudSecurityPostureManagement` is deprecated."
|
|
1068
983
|
|
|
1069
984
|
if @api_client.config.debugging
|
|
1070
985
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_cloud_security_posture_management ...'
|
|
@@ -1127,13 +1042,16 @@ module DatadogAPIClient::V1
|
|
|
1127
1042
|
# Get hourly usage for cloud workload security.
|
|
1128
1043
|
#
|
|
1129
1044
|
# Get hourly usage for cloud workload security.
|
|
1130
|
-
# **Note:**
|
|
1045
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1046
|
+
#
|
|
1047
|
+
# @deprecated This API is deprecated.
|
|
1131
1048
|
#
|
|
1132
1049
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
1133
1050
|
# @param opts [Hash] the optional parameters
|
|
1134
1051
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour.
|
|
1135
1052
|
# @return [Array<(UsageCWSResponse, Integer, Hash)>] UsageCWSResponse data, response status code and response headers
|
|
1136
1053
|
def get_usage_cws_with_http_info(start_hr, opts = {})
|
|
1054
|
+
warn "[DEPRECATION] `GetUsageCWS` is deprecated."
|
|
1137
1055
|
|
|
1138
1056
|
if @api_client.config.debugging
|
|
1139
1057
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_cws ...'
|
|
@@ -1196,13 +1114,16 @@ module DatadogAPIClient::V1
|
|
|
1196
1114
|
# Get hourly usage for database monitoring.
|
|
1197
1115
|
#
|
|
1198
1116
|
# Get hourly usage for database monitoring
|
|
1199
|
-
# **Note:**
|
|
1117
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1118
|
+
#
|
|
1119
|
+
# @deprecated This API is deprecated.
|
|
1200
1120
|
#
|
|
1201
1121
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
1202
1122
|
# @param opts [Hash] the optional parameters
|
|
1203
1123
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour.
|
|
1204
1124
|
# @return [Array<(UsageDBMResponse, Integer, Hash)>] UsageDBMResponse data, response status code and response headers
|
|
1205
1125
|
def get_usage_dbm_with_http_info(start_hr, opts = {})
|
|
1126
|
+
warn "[DEPRECATION] `GetUsageDBM` is deprecated."
|
|
1206
1127
|
|
|
1207
1128
|
if @api_client.config.debugging
|
|
1208
1129
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_dbm ...'
|
|
@@ -1265,13 +1186,16 @@ module DatadogAPIClient::V1
|
|
|
1265
1186
|
# Get hourly usage for Fargate.
|
|
1266
1187
|
#
|
|
1267
1188
|
# Get hourly usage for [Fargate](https://docs.datadoghq.com/integrations/ecs_fargate/).
|
|
1268
|
-
# **Note:**
|
|
1189
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1190
|
+
#
|
|
1191
|
+
# @deprecated This API is deprecated.
|
|
1269
1192
|
#
|
|
1270
1193
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
|
|
1271
1194
|
# @param opts [Hash] the optional parameters
|
|
1272
1195
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour.
|
|
1273
1196
|
# @return [Array<(UsageFargateResponse, Integer, Hash)>] UsageFargateResponse data, response status code and response headers
|
|
1274
1197
|
def get_usage_fargate_with_http_info(start_hr, opts = {})
|
|
1198
|
+
warn "[DEPRECATION] `GetUsageFargate` is deprecated."
|
|
1275
1199
|
|
|
1276
1200
|
if @api_client.config.debugging
|
|
1277
1201
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_fargate ...'
|
|
@@ -1334,13 +1258,16 @@ module DatadogAPIClient::V1
|
|
|
1334
1258
|
# Get hourly usage for hosts and containers.
|
|
1335
1259
|
#
|
|
1336
1260
|
# Get hourly usage for hosts and containers.
|
|
1337
|
-
# **Note:**
|
|
1261
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1262
|
+
#
|
|
1263
|
+
# @deprecated This API is deprecated.
|
|
1338
1264
|
#
|
|
1339
1265
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
|
|
1340
1266
|
# @param opts [Hash] the optional parameters
|
|
1341
1267
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour.
|
|
1342
1268
|
# @return [Array<(UsageHostsResponse, Integer, Hash)>] UsageHostsResponse data, response status code and response headers
|
|
1343
1269
|
def get_usage_hosts_with_http_info(start_hr, opts = {})
|
|
1270
|
+
warn "[DEPRECATION] `GetUsageHosts` is deprecated."
|
|
1344
1271
|
|
|
1345
1272
|
if @api_client.config.debugging
|
|
1346
1273
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_hosts ...'
|
|
@@ -1403,13 +1330,16 @@ module DatadogAPIClient::V1
|
|
|
1403
1330
|
# Get hourly usage for indexed spans.
|
|
1404
1331
|
#
|
|
1405
1332
|
# Get hourly usage for indexed spans.
|
|
1406
|
-
# **Note:**
|
|
1333
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1334
|
+
#
|
|
1335
|
+
# @deprecated This API is deprecated.
|
|
1407
1336
|
#
|
|
1408
1337
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
1409
1338
|
# @param opts [Hash] the optional parameters
|
|
1410
1339
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour.
|
|
1411
1340
|
# @return [Array<(UsageIndexedSpansResponse, Integer, Hash)>] UsageIndexedSpansResponse data, response status code and response headers
|
|
1412
1341
|
def get_usage_indexed_spans_with_http_info(start_hr, opts = {})
|
|
1342
|
+
warn "[DEPRECATION] `GetUsageIndexedSpans` is deprecated."
|
|
1413
1343
|
|
|
1414
1344
|
if @api_client.config.debugging
|
|
1415
1345
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_indexed_spans ...'
|
|
@@ -1472,13 +1402,16 @@ module DatadogAPIClient::V1
|
|
|
1472
1402
|
# Get hourly usage for IoT.
|
|
1473
1403
|
#
|
|
1474
1404
|
# Get hourly usage for IoT.
|
|
1475
|
-
# **Note:**
|
|
1405
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1406
|
+
#
|
|
1407
|
+
# @deprecated This API is deprecated.
|
|
1476
1408
|
#
|
|
1477
1409
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
1478
1410
|
# @param opts [Hash] the optional parameters
|
|
1479
1411
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour.
|
|
1480
1412
|
# @return [Array<(UsageIoTResponse, Integer, Hash)>] UsageIoTResponse data, response status code and response headers
|
|
1481
1413
|
def get_usage_internet_of_things_with_http_info(start_hr, opts = {})
|
|
1414
|
+
warn "[DEPRECATION] `GetUsageInternetOfThings` is deprecated."
|
|
1482
1415
|
|
|
1483
1416
|
if @api_client.config.debugging
|
|
1484
1417
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_internet_of_things ...'
|
|
@@ -1541,13 +1474,16 @@ module DatadogAPIClient::V1
|
|
|
1541
1474
|
# Get hourly usage for Lambda.
|
|
1542
1475
|
#
|
|
1543
1476
|
# Get hourly usage for Lambda.
|
|
1544
|
-
# **Note:**
|
|
1477
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1478
|
+
#
|
|
1479
|
+
# @deprecated This API is deprecated.
|
|
1545
1480
|
#
|
|
1546
1481
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
|
|
1547
1482
|
# @param opts [Hash] the optional parameters
|
|
1548
1483
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour.
|
|
1549
1484
|
# @return [Array<(UsageLambdaResponse, Integer, Hash)>] UsageLambdaResponse data, response status code and response headers
|
|
1550
1485
|
def get_usage_lambda_with_http_info(start_hr, opts = {})
|
|
1486
|
+
warn "[DEPRECATION] `GetUsageLambda` is deprecated."
|
|
1551
1487
|
|
|
1552
1488
|
if @api_client.config.debugging
|
|
1553
1489
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_lambda ...'
|
|
@@ -1610,13 +1546,16 @@ module DatadogAPIClient::V1
|
|
|
1610
1546
|
# Get hourly usage for logs.
|
|
1611
1547
|
#
|
|
1612
1548
|
# Get hourly usage for logs.
|
|
1613
|
-
# **Note:**
|
|
1549
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1550
|
+
#
|
|
1551
|
+
# @deprecated This API is deprecated.
|
|
1614
1552
|
#
|
|
1615
1553
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
|
|
1616
1554
|
# @param opts [Hash] the optional parameters
|
|
1617
1555
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour.
|
|
1618
1556
|
# @return [Array<(UsageLogsResponse, Integer, Hash)>] UsageLogsResponse data, response status code and response headers
|
|
1619
1557
|
def get_usage_logs_with_http_info(start_hr, opts = {})
|
|
1558
|
+
warn "[DEPRECATION] `GetUsageLogs` is deprecated."
|
|
1620
1559
|
|
|
1621
1560
|
if @api_client.config.debugging
|
|
1622
1561
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_logs ...'
|
|
@@ -1749,13 +1688,16 @@ module DatadogAPIClient::V1
|
|
|
1749
1688
|
# Get hourly logs usage by retention.
|
|
1750
1689
|
#
|
|
1751
1690
|
# Get hourly usage for indexed logs by retention period.
|
|
1752
|
-
# **Note:**
|
|
1691
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1692
|
+
#
|
|
1693
|
+
# @deprecated This API is deprecated.
|
|
1753
1694
|
#
|
|
1754
1695
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
1755
1696
|
# @param opts [Hash] the optional parameters
|
|
1756
1697
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour.
|
|
1757
1698
|
# @return [Array<(UsageLogsByRetentionResponse, Integer, Hash)>] UsageLogsByRetentionResponse data, response status code and response headers
|
|
1758
1699
|
def get_usage_logs_by_retention_with_http_info(start_hr, opts = {})
|
|
1700
|
+
warn "[DEPRECATION] `GetUsageLogsByRetention` is deprecated."
|
|
1759
1701
|
|
|
1760
1702
|
if @api_client.config.debugging
|
|
1761
1703
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_logs_by_retention ...'
|
|
@@ -1818,13 +1760,16 @@ module DatadogAPIClient::V1
|
|
|
1818
1760
|
# get hourly usage for network flows.
|
|
1819
1761
|
#
|
|
1820
1762
|
# Get hourly usage for network flows.
|
|
1821
|
-
# **Note:**
|
|
1763
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1764
|
+
#
|
|
1765
|
+
# @deprecated This API is deprecated.
|
|
1822
1766
|
#
|
|
1823
1767
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
1824
1768
|
# @param opts [Hash] the optional parameters
|
|
1825
1769
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour.
|
|
1826
1770
|
# @return [Array<(UsageNetworkFlowsResponse, Integer, Hash)>] UsageNetworkFlowsResponse data, response status code and response headers
|
|
1827
1771
|
def get_usage_network_flows_with_http_info(start_hr, opts = {})
|
|
1772
|
+
warn "[DEPRECATION] `GetUsageNetworkFlows` is deprecated."
|
|
1828
1773
|
|
|
1829
1774
|
if @api_client.config.debugging
|
|
1830
1775
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_network_flows ...'
|
|
@@ -1887,13 +1832,16 @@ module DatadogAPIClient::V1
|
|
|
1887
1832
|
# Get hourly usage for network hosts.
|
|
1888
1833
|
#
|
|
1889
1834
|
# Get hourly usage for network hosts.
|
|
1890
|
-
# **Note:**
|
|
1835
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1836
|
+
#
|
|
1837
|
+
# @deprecated This API is deprecated.
|
|
1891
1838
|
#
|
|
1892
1839
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
|
|
1893
1840
|
# @param opts [Hash] the optional parameters
|
|
1894
1841
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour.
|
|
1895
1842
|
# @return [Array<(UsageNetworkHostsResponse, Integer, Hash)>] UsageNetworkHostsResponse data, response status code and response headers
|
|
1896
1843
|
def get_usage_network_hosts_with_http_info(start_hr, opts = {})
|
|
1844
|
+
warn "[DEPRECATION] `GetUsageNetworkHosts` is deprecated."
|
|
1897
1845
|
|
|
1898
1846
|
if @api_client.config.debugging
|
|
1899
1847
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_network_hosts ...'
|
|
@@ -1956,13 +1904,16 @@ module DatadogAPIClient::V1
|
|
|
1956
1904
|
# Get hourly usage for online archive.
|
|
1957
1905
|
#
|
|
1958
1906
|
# Get hourly usage for online archive.
|
|
1959
|
-
# **Note:**
|
|
1907
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1908
|
+
#
|
|
1909
|
+
# @deprecated This API is deprecated.
|
|
1960
1910
|
#
|
|
1961
1911
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
1962
1912
|
# @param opts [Hash] the optional parameters
|
|
1963
1913
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour.
|
|
1964
1914
|
# @return [Array<(UsageOnlineArchiveResponse, Integer, Hash)>] UsageOnlineArchiveResponse data, response status code and response headers
|
|
1965
1915
|
def get_usage_online_archive_with_http_info(start_hr, opts = {})
|
|
1916
|
+
warn "[DEPRECATION] `GetUsageOnlineArchive` is deprecated."
|
|
1966
1917
|
|
|
1967
1918
|
if @api_client.config.debugging
|
|
1968
1919
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_online_archive ...'
|
|
@@ -2025,13 +1976,16 @@ module DatadogAPIClient::V1
|
|
|
2025
1976
|
# Get hourly usage for profiled hosts.
|
|
2026
1977
|
#
|
|
2027
1978
|
# Get hourly usage for profiled hosts.
|
|
2028
|
-
# **Note:**
|
|
1979
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
1980
|
+
#
|
|
1981
|
+
# @deprecated This API is deprecated.
|
|
2029
1982
|
#
|
|
2030
1983
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
2031
1984
|
# @param opts [Hash] the optional parameters
|
|
2032
1985
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour.
|
|
2033
1986
|
# @return [Array<(UsageProfilingResponse, Integer, Hash)>] UsageProfilingResponse data, response status code and response headers
|
|
2034
1987
|
def get_usage_profiling_with_http_info(start_hr, opts = {})
|
|
1988
|
+
warn "[DEPRECATION] `GetUsageProfiling` is deprecated."
|
|
2035
1989
|
|
|
2036
1990
|
if @api_client.config.debugging
|
|
2037
1991
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_profiling ...'
|
|
@@ -2094,7 +2048,9 @@ module DatadogAPIClient::V1
|
|
|
2094
2048
|
# Get hourly usage for RUM sessions.
|
|
2095
2049
|
#
|
|
2096
2050
|
# Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) Sessions.
|
|
2097
|
-
# **Note:**
|
|
2051
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
2052
|
+
#
|
|
2053
|
+
# @deprecated This API is deprecated.
|
|
2098
2054
|
#
|
|
2099
2055
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
|
|
2100
2056
|
# @param opts [Hash] the optional parameters
|
|
@@ -2102,6 +2058,7 @@ module DatadogAPIClient::V1
|
|
|
2102
2058
|
# @option opts [String] :type RUM type: `[browser, mobile]`. Defaults to `browser`.
|
|
2103
2059
|
# @return [Array<(UsageRumSessionsResponse, Integer, Hash)>] UsageRumSessionsResponse data, response status code and response headers
|
|
2104
2060
|
def get_usage_rum_sessions_with_http_info(start_hr, opts = {})
|
|
2061
|
+
warn "[DEPRECATION] `GetUsageRumSessions` is deprecated."
|
|
2105
2062
|
|
|
2106
2063
|
if @api_client.config.debugging
|
|
2107
2064
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_rum_sessions ...'
|
|
@@ -2165,13 +2122,16 @@ module DatadogAPIClient::V1
|
|
|
2165
2122
|
# Get hourly usage for RUM units.
|
|
2166
2123
|
#
|
|
2167
2124
|
# Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) Units.
|
|
2168
|
-
# **Note:**
|
|
2125
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
2126
|
+
#
|
|
2127
|
+
# @deprecated This API is deprecated.
|
|
2169
2128
|
#
|
|
2170
2129
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
|
|
2171
2130
|
# @param opts [Hash] the optional parameters
|
|
2172
2131
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour.
|
|
2173
2132
|
# @return [Array<(UsageRumUnitsResponse, Integer, Hash)>] UsageRumUnitsResponse data, response status code and response headers
|
|
2174
2133
|
def get_usage_rum_units_with_http_info(start_hr, opts = {})
|
|
2134
|
+
warn "[DEPRECATION] `GetUsageRumUnits` is deprecated."
|
|
2175
2135
|
|
|
2176
2136
|
if @api_client.config.debugging
|
|
2177
2137
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_rum_units ...'
|
|
@@ -2234,13 +2194,16 @@ module DatadogAPIClient::V1
|
|
|
2234
2194
|
# Get hourly usage for sensitive data scanner.
|
|
2235
2195
|
#
|
|
2236
2196
|
# Get hourly usage for sensitive data scanner.
|
|
2237
|
-
# **Note:**
|
|
2197
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
2198
|
+
#
|
|
2199
|
+
# @deprecated This API is deprecated.
|
|
2238
2200
|
#
|
|
2239
2201
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
2240
2202
|
# @param opts [Hash] the optional parameters
|
|
2241
2203
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour.
|
|
2242
2204
|
# @return [Array<(UsageSDSResponse, Integer, Hash)>] UsageSDSResponse data, response status code and response headers
|
|
2243
2205
|
def get_usage_sds_with_http_info(start_hr, opts = {})
|
|
2206
|
+
warn "[DEPRECATION] `GetUsageSDS` is deprecated."
|
|
2244
2207
|
|
|
2245
2208
|
if @api_client.config.debugging
|
|
2246
2209
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_sds ...'
|
|
@@ -2303,13 +2266,16 @@ module DatadogAPIClient::V1
|
|
|
2303
2266
|
# Get hourly usage for SNMP devices.
|
|
2304
2267
|
#
|
|
2305
2268
|
# Get hourly usage for SNMP devices.
|
|
2306
|
-
# **Note:**
|
|
2269
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
2270
|
+
#
|
|
2271
|
+
# @deprecated This API is deprecated.
|
|
2307
2272
|
#
|
|
2308
2273
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
2309
2274
|
# @param opts [Hash] the optional parameters
|
|
2310
2275
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage ending **before** this hour.
|
|
2311
2276
|
# @return [Array<(UsageSNMPResponse, Integer, Hash)>] UsageSNMPResponse data, response status code and response headers
|
|
2312
2277
|
def get_usage_snmp_with_http_info(start_hr, opts = {})
|
|
2278
|
+
warn "[DEPRECATION] `GetUsageSNMP` is deprecated."
|
|
2313
2279
|
|
|
2314
2280
|
if @api_client.config.debugging
|
|
2315
2281
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_snmp ...'
|
|
@@ -2373,6 +2339,8 @@ module DatadogAPIClient::V1
|
|
|
2373
2339
|
#
|
|
2374
2340
|
# Get all usage across your account.
|
|
2375
2341
|
#
|
|
2342
|
+
# This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/).
|
|
2343
|
+
#
|
|
2376
2344
|
# @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago.
|
|
2377
2345
|
# @param opts [Hash] the optional parameters
|
|
2378
2346
|
# @option opts [Time] :end_month Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage ending this month.
|
|
@@ -2442,7 +2410,7 @@ module DatadogAPIClient::V1
|
|
|
2442
2410
|
# Get hourly usage for synthetics checks.
|
|
2443
2411
|
#
|
|
2444
2412
|
# Get hourly usage for [synthetics checks](https://docs.datadoghq.com/synthetics/).
|
|
2445
|
-
# **Note:**
|
|
2413
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
2446
2414
|
#
|
|
2447
2415
|
# @deprecated This API is deprecated.
|
|
2448
2416
|
#
|
|
@@ -2514,13 +2482,16 @@ module DatadogAPIClient::V1
|
|
|
2514
2482
|
# Get hourly usage for synthetics API checks.
|
|
2515
2483
|
#
|
|
2516
2484
|
# Get hourly usage for [synthetics API checks](https://docs.datadoghq.com/synthetics/).
|
|
2517
|
-
# **Note:**
|
|
2485
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
2486
|
+
#
|
|
2487
|
+
# @deprecated This API is deprecated.
|
|
2518
2488
|
#
|
|
2519
2489
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
|
|
2520
2490
|
# @param opts [Hash] the optional parameters
|
|
2521
2491
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour.
|
|
2522
2492
|
# @return [Array<(UsageSyntheticsAPIResponse, Integer, Hash)>] UsageSyntheticsAPIResponse data, response status code and response headers
|
|
2523
2493
|
def get_usage_synthetics_api_with_http_info(start_hr, opts = {})
|
|
2494
|
+
warn "[DEPRECATION] `GetUsageSyntheticsAPI` is deprecated."
|
|
2524
2495
|
|
|
2525
2496
|
if @api_client.config.debugging
|
|
2526
2497
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_synthetics_api ...'
|
|
@@ -2583,13 +2554,16 @@ module DatadogAPIClient::V1
|
|
|
2583
2554
|
# Get hourly usage for synthetics browser checks.
|
|
2584
2555
|
#
|
|
2585
2556
|
# Get hourly usage for synthetics browser checks.
|
|
2586
|
-
# **Note:**
|
|
2557
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
2558
|
+
#
|
|
2559
|
+
# @deprecated This API is deprecated.
|
|
2587
2560
|
#
|
|
2588
2561
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
|
|
2589
2562
|
# @param opts [Hash] the optional parameters
|
|
2590
2563
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour.
|
|
2591
2564
|
# @return [Array<(UsageSyntheticsBrowserResponse, Integer, Hash)>] UsageSyntheticsBrowserResponse data, response status code and response headers
|
|
2592
2565
|
def get_usage_synthetics_browser_with_http_info(start_hr, opts = {})
|
|
2566
|
+
warn "[DEPRECATION] `GetUsageSyntheticsBrowser` is deprecated."
|
|
2593
2567
|
|
|
2594
2568
|
if @api_client.config.debugging
|
|
2595
2569
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_synthetics_browser ...'
|
|
@@ -2652,13 +2626,16 @@ module DatadogAPIClient::V1
|
|
|
2652
2626
|
# Get hourly usage for custom metrics.
|
|
2653
2627
|
#
|
|
2654
2628
|
# Get hourly usage for [custom metrics](https://docs.datadoghq.com/developers/metrics/custom_metrics/).
|
|
2655
|
-
# **Note:**
|
|
2629
|
+
# **Note:** This endpoint has been deprecated. Hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
2630
|
+
#
|
|
2631
|
+
# @deprecated This API is deprecated.
|
|
2656
2632
|
#
|
|
2657
2633
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
|
|
2658
2634
|
# @param opts [Hash] the optional parameters
|
|
2659
2635
|
# @option opts [Time] :end_hr Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour.
|
|
2660
2636
|
# @return [Array<(UsageTimeseriesResponse, Integer, Hash)>] UsageTimeseriesResponse data, response status code and response headers
|
|
2661
2637
|
def get_usage_timeseries_with_http_info(start_hr, opts = {})
|
|
2638
|
+
warn "[DEPRECATION] `GetUsageTimeseries` is deprecated."
|
|
2662
2639
|
|
|
2663
2640
|
if @api_client.config.debugging
|
|
2664
2641
|
@api_client.config.logger.debug 'Calling API: UsageMeteringAPI.get_usage_timeseries ...'
|