From e546a443ff9603f0ae9b43612d2e0e1afec8e6e9 Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Tue, 5 Apr 2022 09:09:46 +0000 Subject: [PATCH] Regenerate client from commit 7e16a5c4 of spec repo (#1424) Co-authored-by: ci.datadog-api-spec Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> --- .apigentools-info | 8 +- .../GetSpecifiedDailyCustomReports.go | 2 +- .../GetSpecifiedMonthlyCustomReports.go | 2 +- .../v1/usage-metering/GetUsageAuditLogs.go | 2 +- .../usage-metering/GetUsageBillableSummary.go | 3 +- examples/v1/usage-metering/GetUsageCWS.go | 2 +- examples/v1/usage-metering/GetUsageDBM.go | 2 +- examples/v1/usage-metering/GetUsageFargate.go | 2 +- examples/v1/usage-metering/GetUsageHosts.go | 2 +- examples/v1/usage-metering/GetUsageLambda.go | 2 +- examples/v1/usage-metering/GetUsageLogs.go | 2 +- .../v1/usage-metering/GetUsageLogsByIndex.go | 2 +- .../usage-metering/GetUsageLogsByRetention.go | 2 +- .../v1/usage-metering/GetUsageNetworkFlows.go | 2 +- .../v1/usage-metering/GetUsageNetworkHosts.go | 2 +- .../v1/usage-metering/GetUsageRumSessions.go | 2 +- .../v1/usage-metering/GetUsageRumUnits.go | 2 +- examples/v1/usage-metering/GetUsageSDS.go | 2 +- .../usage-metering/GetUsageSyntheticsAPI.go | 2 +- .../GetUsageSyntheticsBrowser.go | 2 +- .../v1/usage-metering/GetUsageTimeseries.go | 2 +- .../usage-metering/GetUsageTopAvgMetrics.go | 3 +- ...verage_returns_Bad_Request_response.freeze | 1 + ..._average_returns_Bad_Request_response.yaml | 18 ++ ..._hourly_average_returns_OK_response.freeze | 1 + ...by_hourly_average_returns_OK_response.yaml | 18 ++ ...ention_returns_Bad_Request_response.freeze | 1 + ...etention_returns_Bad_Request_response.yaml | 18 ++ ...ge_by_retention_returns_OK_response.freeze | 1 + ...sage_by_retention_returns_OK_response.yaml | 18 ++ ...rkload_Security_returns_OK_response.freeze | 1 + ...Workload_Security_returns_OK_response.yaml | 65 +++++++ ...base_Monitoring_returns_OK_response.freeze | 1 + ...tabase_Monitoring_returns_OK_response.yaml | 65 +++++++ ...argate_returns_Bad_Request_response.freeze | 1 + ..._Fargate_returns_Bad_Request_response.yaml | 18 ++ ...age_for_Fargate_returns_OK_response.freeze | 1 + ...usage_for_Fargate_returns_OK_response.yaml | 65 +++++++ ...Lambda_returns_Bad_Request_response.freeze | 1 + ...r_Lambda_returns_Bad_Request_response.yaml | 18 ++ ...sage_for_Lambda_returns_OK_response.freeze | 1 + ..._usage_for_Lambda_returns_OK_response.yaml | 65 +++++++ ..._Index_returns_Bad_Request_response.freeze | 1 + ...by_Index_returns_Bad_Request_response.yaml | 18 ++ ...r_Logs_by_Index_returns_OK_response.freeze | 1 + ...for_Logs_by_Index_returns_OK_response.yaml | 18 ++ ...r_Logs_returns_Bad_Request_response.freeze | 1 + ...for_Logs_returns_Bad_Request_response.yaml | 18 ++ ..._usage_for_Logs_returns_OK_response.freeze | 1 + ...ly_usage_for_Logs_returns_OK_response.yaml | 18 ++ ..._Flows_returns_Bad_Request_response.freeze | 1 + ...rk_Flows_returns_Bad_Request_response.yaml | 18 ++ ...r_Network_Flows_returns_OK_response.freeze | 1 + ...for_Network_Flows_returns_OK_response.yaml | 65 +++++++ ..._Hosts_returns_Bad_Request_response.freeze | 1 + ...rk_Hosts_returns_Bad_Request_response.yaml | 18 ++ ...r_Network_Hosts_returns_OK_response.freeze | 1 + ...for_Network_Hosts_returns_OK_response.yaml | 65 +++++++ ...ssions_returns_Bad_Request_response.freeze | 1 + ...Sessions_returns_Bad_Request_response.yaml | 18 ++ ...or_RUM_Sessions_returns_OK_response.freeze | 1 + ..._for_RUM_Sessions_returns_OK_response.yaml | 65 +++++++ ...e_for_RUM_Units_returns_OK_response.freeze | 1 + ...age_for_RUM_Units_returns_OK_response.yaml | 65 +++++++ ...ve_Data_Scanner_returns_OK_response.freeze | 1 + ...tive_Data_Scanner_returns_OK_response.yaml | 65 +++++++ ...Checks_returns_Bad_Request_response.freeze | 1 + ...I_Checks_returns_Bad_Request_response.yaml | 18 ++ ...tics_API_Checks_returns_OK_response.freeze | 1 + ...hetics_API_Checks_returns_OK_response.yaml | 65 +++++++ ...Checks_returns_Bad_Request_response.freeze | 1 + ...r_Checks_returns_Bad_Request_response.yaml | 18 ++ ..._Browser_Checks_returns_OK_response.freeze | 1 + ...cs_Browser_Checks_returns_OK_response.yaml | 65 +++++++ ..._for_audit_logs_returns_OK_response.freeze | 1 + ...ge_for_audit_logs_returns_OK_response.yaml | 65 +++++++ ...etrics_returns_Bad_Request_response.freeze | 1 + ..._metrics_returns_Bad_Request_response.yaml | 18 ++ ..._custom_metrics_returns_OK_response.freeze | 1 + ...or_custom_metrics_returns_OK_response.yaml | 65 +++++++ ...ainers_returns_Bad_Request_response.freeze | 1 + ...ntainers_returns_Bad_Request_response.yaml | 18 ++ ..._and_containers_returns_OK_response.freeze | 1 + ...ts_and_containers_returns_OK_response.yaml | 65 +++++++ ..._custom_reports_returns_OK_response.freeze | 1 + ...ly_custom_reports_returns_OK_response.yaml | 18 ++ ..._custom_reports_returns_OK_response.freeze | 1 + ...ly_custom_reports_returns_OK_response.yaml | 18 ++ ..._custom_reports_returns_OK_response.freeze | 1 + ...ly_custom_reports_returns_OK_response.yaml | 18 ++ ..._custom_reports_returns_OK_response.freeze | 1 + ...ly_custom_reports_returns_OK_response.yaml | 18 ++ .../features/v1/usage_metering.feature | 163 +++++++++++------- 93 files changed, 1447 insertions(+), 91 deletions(-) create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_all_custom_metrics_by_hourly_average_returns_Bad_Request_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_all_custom_metrics_by_hourly_average_returns_Bad_Request_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_all_custom_metrics_by_hourly_average_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_all_custom_metrics_by_hourly_average_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_logs_usage_by_retention_returns_Bad_Request_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_logs_usage_by_retention_returns_Bad_Request_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_logs_usage_by_retention_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_logs_usage_by_retention_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Cloud_Workload_Security_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Cloud_Workload_Security_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Database_Monitoring_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Database_Monitoring_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Fargate_returns_Bad_Request_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Fargate_returns_Bad_Request_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Fargate_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Fargate_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_returns_Bad_Request_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_returns_Bad_Request_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_by_Index_returns_Bad_Request_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_by_Index_returns_Bad_Request_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_by_Index_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_by_Index_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_returns_Bad_Request_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_returns_Bad_Request_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Flows_returns_Bad_Request_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Flows_returns_Bad_Request_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Flows_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Flows_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Hosts_returns_Bad_Request_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Hosts_returns_Bad_Request_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Hosts_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Hosts_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Sessions_returns_Bad_Request_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Sessions_returns_Bad_Request_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Sessions_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Sessions_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Units_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Units_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Sensitive_Data_Scanner_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Sensitive_Data_Scanner_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_API_Checks_returns_Bad_Request_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_API_Checks_returns_Bad_Request_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_API_Checks_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_API_Checks_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_Browser_Checks_returns_Bad_Request_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_Browser_Checks_returns_Bad_Request_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_Browser_Checks_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_Browser_Checks_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_audit_logs_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_audit_logs_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_custom_metrics_returns_Bad_Request_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_custom_metrics_returns_Bad_Request_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_custom_metrics_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_custom_metrics_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_hosts_and_containers_returns_Bad_Request_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_hosts_and_containers_returns_Bad_Request_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_hosts_and_containers_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_hosts_and_containers_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_specified_daily_custom_reports_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_specified_daily_custom_reports_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_specified_monthly_custom_reports_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_specified_monthly_custom_reports_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_the_list_of_available_daily_custom_reports_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_the_list_of_available_daily_custom_reports_returns_OK_response.yaml create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_the_list_of_available_monthly_custom_reports_returns_OK_response.freeze create mode 100644 tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_the_list_of_available_monthly_custom_reports_returns_OK_response.yaml diff --git a/.apigentools-info b/.apigentools-info index d81b42d1b1e..d192b4e1ddd 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.2", - "regenerated": "2022-04-04 14:19:08.560671", - "spec_repo_commit": "d7ce271f" + "regenerated": "2022-04-04 17:26:15.709747", + "spec_repo_commit": "7e16a5c4" }, "v2": { "apigentools_version": "1.6.2", - "regenerated": "2022-04-04 14:19:08.573539", - "spec_repo_commit": "d7ce271f" + "regenerated": "2022-04-04 17:26:15.722075", + "spec_repo_commit": "7e16a5c4" } } } \ No newline at end of file diff --git a/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.go b/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.go index b8d7dd2a199..34d86f0934f 100644 --- a/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.go +++ b/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.go @@ -16,7 +16,7 @@ func main() { configuration := datadog.NewConfiguration() configuration.SetUnstableOperationEnabled("GetSpecifiedDailyCustomReports", true) apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.UsageMeteringApi.GetSpecifiedDailyCustomReports(ctx, "report_id") + resp, r, err := apiClient.UsageMeteringApi.GetSpecifiedDailyCustomReports(ctx, "2022-03-20") if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetSpecifiedDailyCustomReports`: %v\n", err) diff --git a/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.go b/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.go index a340cced422..5007b052366 100644 --- a/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.go +++ b/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.go @@ -16,7 +16,7 @@ func main() { configuration := datadog.NewConfiguration() configuration.SetUnstableOperationEnabled("GetSpecifiedMonthlyCustomReports", true) apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.UsageMeteringApi.GetSpecifiedMonthlyCustomReports(ctx, "report_id") + resp, r, err := apiClient.UsageMeteringApi.GetSpecifiedMonthlyCustomReports(ctx, "2021-05-01") if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetSpecifiedMonthlyCustomReports`: %v\n", err) diff --git a/examples/v1/usage-metering/GetUsageAuditLogs.go b/examples/v1/usage-metering/GetUsageAuditLogs.go index 8380dc0b621..01eb4c87837 100644 --- a/examples/v1/usage-metering/GetUsageAuditLogs.go +++ b/examples/v1/usage-metering/GetUsageAuditLogs.go @@ -16,7 +16,7 @@ func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.UsageMeteringApi.GetUsageAuditLogs(ctx, time.Date(2021, 11, 11, 11, 11, 11, 111000, time.UTC), *datadog.NewGetUsageAuditLogsOptionalParameters()) + resp, r, err := apiClient.UsageMeteringApi.GetUsageAuditLogs(ctx, time.Now().AddDate(0, 0, -5), *datadog.NewGetUsageAuditLogsOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageAuditLogs`: %v\n", err) diff --git a/examples/v1/usage-metering/GetUsageBillableSummary.go b/examples/v1/usage-metering/GetUsageBillableSummary.go index 416f253b5e7..96caf8de621 100644 --- a/examples/v1/usage-metering/GetUsageBillableSummary.go +++ b/examples/v1/usage-metering/GetUsageBillableSummary.go @@ -7,6 +7,7 @@ import ( "encoding/json" "fmt" "os" + "time" datadog "github.com/DataDog/datadog-api-client-go/api/v1/datadog" ) @@ -15,7 +16,7 @@ func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.UsageMeteringApi.GetUsageBillableSummary(ctx, *datadog.NewGetUsageBillableSummaryOptionalParameters()) + resp, r, err := apiClient.UsageMeteringApi.GetUsageBillableSummary(ctx, *datadog.NewGetUsageBillableSummaryOptionalParameters().WithMonth(time.Now().AddDate(0, 0, -3))) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageBillableSummary`: %v\n", err) diff --git a/examples/v1/usage-metering/GetUsageCWS.go b/examples/v1/usage-metering/GetUsageCWS.go index 64d0f92b0ee..eb9c12df12e 100644 --- a/examples/v1/usage-metering/GetUsageCWS.go +++ b/examples/v1/usage-metering/GetUsageCWS.go @@ -16,7 +16,7 @@ func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.UsageMeteringApi.GetUsageCWS(ctx, time.Date(2021, 11, 11, 11, 11, 11, 111000, time.UTC), *datadog.NewGetUsageCWSOptionalParameters()) + resp, r, err := apiClient.UsageMeteringApi.GetUsageCWS(ctx, time.Now().AddDate(0, 0, -5), *datadog.NewGetUsageCWSOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageCWS`: %v\n", err) diff --git a/examples/v1/usage-metering/GetUsageDBM.go b/examples/v1/usage-metering/GetUsageDBM.go index 2ad880b53a8..f12f6968897 100644 --- a/examples/v1/usage-metering/GetUsageDBM.go +++ b/examples/v1/usage-metering/GetUsageDBM.go @@ -16,7 +16,7 @@ func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.UsageMeteringApi.GetUsageDBM(ctx, time.Date(2021, 11, 11, 11, 11, 11, 111000, time.UTC), *datadog.NewGetUsageDBMOptionalParameters()) + resp, r, err := apiClient.UsageMeteringApi.GetUsageDBM(ctx, time.Now().AddDate(0, 0, -5), *datadog.NewGetUsageDBMOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageDBM`: %v\n", err) diff --git a/examples/v1/usage-metering/GetUsageFargate.go b/examples/v1/usage-metering/GetUsageFargate.go index db6d333bb25..8b16047a6db 100644 --- a/examples/v1/usage-metering/GetUsageFargate.go +++ b/examples/v1/usage-metering/GetUsageFargate.go @@ -16,7 +16,7 @@ func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.UsageMeteringApi.GetUsageFargate(ctx, time.Date(2021, 11, 11, 11, 11, 11, 111000, time.UTC), *datadog.NewGetUsageFargateOptionalParameters()) + resp, r, err := apiClient.UsageMeteringApi.GetUsageFargate(ctx, time.Now().AddDate(0, 0, -5), *datadog.NewGetUsageFargateOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageFargate`: %v\n", err) diff --git a/examples/v1/usage-metering/GetUsageHosts.go b/examples/v1/usage-metering/GetUsageHosts.go index cdea3efb51d..ed6f574ba3a 100644 --- a/examples/v1/usage-metering/GetUsageHosts.go +++ b/examples/v1/usage-metering/GetUsageHosts.go @@ -16,7 +16,7 @@ func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.UsageMeteringApi.GetUsageHosts(ctx, time.Date(2021, 11, 11, 11, 11, 11, 111000, time.UTC), *datadog.NewGetUsageHostsOptionalParameters()) + resp, r, err := apiClient.UsageMeteringApi.GetUsageHosts(ctx, time.Now().AddDate(0, 0, -5), *datadog.NewGetUsageHostsOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageHosts`: %v\n", err) diff --git a/examples/v1/usage-metering/GetUsageLambda.go b/examples/v1/usage-metering/GetUsageLambda.go index 9b022f9e0e4..f77649baf3c 100644 --- a/examples/v1/usage-metering/GetUsageLambda.go +++ b/examples/v1/usage-metering/GetUsageLambda.go @@ -16,7 +16,7 @@ func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.UsageMeteringApi.GetUsageLambda(ctx, time.Date(2021, 11, 11, 11, 11, 11, 111000, time.UTC), *datadog.NewGetUsageLambdaOptionalParameters()) + resp, r, err := apiClient.UsageMeteringApi.GetUsageLambda(ctx, time.Now().AddDate(0, 0, -5), *datadog.NewGetUsageLambdaOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageLambda`: %v\n", err) diff --git a/examples/v1/usage-metering/GetUsageLogs.go b/examples/v1/usage-metering/GetUsageLogs.go index 05aad45c37c..2472300f30f 100644 --- a/examples/v1/usage-metering/GetUsageLogs.go +++ b/examples/v1/usage-metering/GetUsageLogs.go @@ -16,7 +16,7 @@ func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.UsageMeteringApi.GetUsageLogs(ctx, time.Date(2021, 11, 11, 11, 11, 11, 111000, time.UTC), *datadog.NewGetUsageLogsOptionalParameters()) + resp, r, err := apiClient.UsageMeteringApi.GetUsageLogs(ctx, time.Now().AddDate(0, 0, -5), *datadog.NewGetUsageLogsOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageLogs`: %v\n", err) diff --git a/examples/v1/usage-metering/GetUsageLogsByIndex.go b/examples/v1/usage-metering/GetUsageLogsByIndex.go index 42cda693a5a..c19f3ce6291 100644 --- a/examples/v1/usage-metering/GetUsageLogsByIndex.go +++ b/examples/v1/usage-metering/GetUsageLogsByIndex.go @@ -16,7 +16,7 @@ func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.UsageMeteringApi.GetUsageLogsByIndex(ctx, time.Date(2021, 11, 11, 11, 11, 11, 111000, time.UTC), *datadog.NewGetUsageLogsByIndexOptionalParameters()) + resp, r, err := apiClient.UsageMeteringApi.GetUsageLogsByIndex(ctx, time.Now().AddDate(0, 0, -5), *datadog.NewGetUsageLogsByIndexOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageLogsByIndex`: %v\n", err) diff --git a/examples/v1/usage-metering/GetUsageLogsByRetention.go b/examples/v1/usage-metering/GetUsageLogsByRetention.go index bb37138cb70..ea584c0f8d8 100644 --- a/examples/v1/usage-metering/GetUsageLogsByRetention.go +++ b/examples/v1/usage-metering/GetUsageLogsByRetention.go @@ -16,7 +16,7 @@ func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.UsageMeteringApi.GetUsageLogsByRetention(ctx, time.Date(2021, 11, 11, 11, 11, 11, 111000, time.UTC), *datadog.NewGetUsageLogsByRetentionOptionalParameters()) + resp, r, err := apiClient.UsageMeteringApi.GetUsageLogsByRetention(ctx, time.Now().AddDate(0, 0, -5), *datadog.NewGetUsageLogsByRetentionOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageLogsByRetention`: %v\n", err) diff --git a/examples/v1/usage-metering/GetUsageNetworkFlows.go b/examples/v1/usage-metering/GetUsageNetworkFlows.go index f876aadf720..4cb20ffe5ad 100644 --- a/examples/v1/usage-metering/GetUsageNetworkFlows.go +++ b/examples/v1/usage-metering/GetUsageNetworkFlows.go @@ -16,7 +16,7 @@ func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.UsageMeteringApi.GetUsageNetworkFlows(ctx, time.Date(2021, 11, 11, 11, 11, 11, 111000, time.UTC), *datadog.NewGetUsageNetworkFlowsOptionalParameters()) + resp, r, err := apiClient.UsageMeteringApi.GetUsageNetworkFlows(ctx, time.Now().AddDate(0, 0, -5), *datadog.NewGetUsageNetworkFlowsOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageNetworkFlows`: %v\n", err) diff --git a/examples/v1/usage-metering/GetUsageNetworkHosts.go b/examples/v1/usage-metering/GetUsageNetworkHosts.go index 04de5c08009..99fce89abcc 100644 --- a/examples/v1/usage-metering/GetUsageNetworkHosts.go +++ b/examples/v1/usage-metering/GetUsageNetworkHosts.go @@ -16,7 +16,7 @@ func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.UsageMeteringApi.GetUsageNetworkHosts(ctx, time.Date(2021, 11, 11, 11, 11, 11, 111000, time.UTC), *datadog.NewGetUsageNetworkHostsOptionalParameters()) + resp, r, err := apiClient.UsageMeteringApi.GetUsageNetworkHosts(ctx, time.Now().AddDate(0, 0, -5), *datadog.NewGetUsageNetworkHostsOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageNetworkHosts`: %v\n", err) diff --git a/examples/v1/usage-metering/GetUsageRumSessions.go b/examples/v1/usage-metering/GetUsageRumSessions.go index 149676410ca..db2aa245e2d 100644 --- a/examples/v1/usage-metering/GetUsageRumSessions.go +++ b/examples/v1/usage-metering/GetUsageRumSessions.go @@ -16,7 +16,7 @@ func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.UsageMeteringApi.GetUsageRumSessions(ctx, time.Date(2021, 11, 11, 11, 11, 11, 111000, time.UTC), *datadog.NewGetUsageRumSessionsOptionalParameters()) + resp, r, err := apiClient.UsageMeteringApi.GetUsageRumSessions(ctx, time.Now().AddDate(0, 0, -5), *datadog.NewGetUsageRumSessionsOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageRumSessions`: %v\n", err) diff --git a/examples/v1/usage-metering/GetUsageRumUnits.go b/examples/v1/usage-metering/GetUsageRumUnits.go index b5455d6bdd5..f2204d05ce7 100644 --- a/examples/v1/usage-metering/GetUsageRumUnits.go +++ b/examples/v1/usage-metering/GetUsageRumUnits.go @@ -16,7 +16,7 @@ func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.UsageMeteringApi.GetUsageRumUnits(ctx, time.Date(2021, 11, 11, 11, 11, 11, 111000, time.UTC), *datadog.NewGetUsageRumUnitsOptionalParameters()) + resp, r, err := apiClient.UsageMeteringApi.GetUsageRumUnits(ctx, time.Now().AddDate(0, 0, -5), *datadog.NewGetUsageRumUnitsOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageRumUnits`: %v\n", err) diff --git a/examples/v1/usage-metering/GetUsageSDS.go b/examples/v1/usage-metering/GetUsageSDS.go index 463c0c40930..2e0c353b938 100644 --- a/examples/v1/usage-metering/GetUsageSDS.go +++ b/examples/v1/usage-metering/GetUsageSDS.go @@ -16,7 +16,7 @@ func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.UsageMeteringApi.GetUsageSDS(ctx, time.Date(2021, 11, 11, 11, 11, 11, 111000, time.UTC), *datadog.NewGetUsageSDSOptionalParameters()) + resp, r, err := apiClient.UsageMeteringApi.GetUsageSDS(ctx, time.Now().AddDate(0, 0, -5), *datadog.NewGetUsageSDSOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageSDS`: %v\n", err) diff --git a/examples/v1/usage-metering/GetUsageSyntheticsAPI.go b/examples/v1/usage-metering/GetUsageSyntheticsAPI.go index fb185698310..d451ce27c01 100644 --- a/examples/v1/usage-metering/GetUsageSyntheticsAPI.go +++ b/examples/v1/usage-metering/GetUsageSyntheticsAPI.go @@ -16,7 +16,7 @@ func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.UsageMeteringApi.GetUsageSyntheticsAPI(ctx, time.Date(2021, 11, 11, 11, 11, 11, 111000, time.UTC), *datadog.NewGetUsageSyntheticsAPIOptionalParameters()) + resp, r, err := apiClient.UsageMeteringApi.GetUsageSyntheticsAPI(ctx, time.Now().AddDate(0, 0, -5), *datadog.NewGetUsageSyntheticsAPIOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageSyntheticsAPI`: %v\n", err) diff --git a/examples/v1/usage-metering/GetUsageSyntheticsBrowser.go b/examples/v1/usage-metering/GetUsageSyntheticsBrowser.go index 42eabb3cb83..e3f1b869720 100644 --- a/examples/v1/usage-metering/GetUsageSyntheticsBrowser.go +++ b/examples/v1/usage-metering/GetUsageSyntheticsBrowser.go @@ -16,7 +16,7 @@ func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.UsageMeteringApi.GetUsageSyntheticsBrowser(ctx, time.Date(2021, 11, 11, 11, 11, 11, 111000, time.UTC), *datadog.NewGetUsageSyntheticsBrowserOptionalParameters()) + resp, r, err := apiClient.UsageMeteringApi.GetUsageSyntheticsBrowser(ctx, time.Now().AddDate(0, 0, -5), *datadog.NewGetUsageSyntheticsBrowserOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageSyntheticsBrowser`: %v\n", err) diff --git a/examples/v1/usage-metering/GetUsageTimeseries.go b/examples/v1/usage-metering/GetUsageTimeseries.go index 3dc02daf36e..f4f9ff7e513 100644 --- a/examples/v1/usage-metering/GetUsageTimeseries.go +++ b/examples/v1/usage-metering/GetUsageTimeseries.go @@ -16,7 +16,7 @@ func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.UsageMeteringApi.GetUsageTimeseries(ctx, time.Date(2021, 11, 11, 11, 11, 11, 111000, time.UTC), *datadog.NewGetUsageTimeseriesOptionalParameters()) + resp, r, err := apiClient.UsageMeteringApi.GetUsageTimeseries(ctx, time.Now().AddDate(0, 0, -5), *datadog.NewGetUsageTimeseriesOptionalParameters().WithEndHr(time.Now().AddDate(0, 0, -3))) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageTimeseries`: %v\n", err) diff --git a/examples/v1/usage-metering/GetUsageTopAvgMetrics.go b/examples/v1/usage-metering/GetUsageTopAvgMetrics.go index 824fdff3723..38a98e16a08 100644 --- a/examples/v1/usage-metering/GetUsageTopAvgMetrics.go +++ b/examples/v1/usage-metering/GetUsageTopAvgMetrics.go @@ -7,6 +7,7 @@ import ( "encoding/json" "fmt" "os" + "time" datadog "github.com/DataDog/datadog-api-client-go/api/v1/datadog" ) @@ -15,7 +16,7 @@ func main() { ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) - resp, r, err := apiClient.UsageMeteringApi.GetUsageTopAvgMetrics(ctx, *datadog.NewGetUsageTopAvgMetricsOptionalParameters()) + resp, r, err := apiClient.UsageMeteringApi.GetUsageTopAvgMetrics(ctx, *datadog.NewGetUsageTopAvgMetricsOptionalParameters().WithDay(time.Now().AddDate(0, 0, -3))) if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsageMeteringApi.GetUsageTopAvgMetrics`: %v\n", err) diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_all_custom_metrics_by_hourly_average_returns_Bad_Request_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_all_custom_metrics_by_hourly_average_returns_Bad_Request_response.freeze new file mode 100644 index 00000000000..aebe9ab1f93 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_all_custom_metrics_by_hourly_average_returns_Bad_Request_response.freeze @@ -0,0 +1 @@ +2022-04-01T00:41:20.681Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_all_custom_metrics_by_hourly_average_returns_Bad_Request_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_all_custom_metrics_by_hourly_average_returns_Bad_Request_response.yaml new file mode 100644 index 00000000000..b34612cd2fb --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_all_custom_metrics_by_hourly_average_returns_Bad_Request_response.yaml @@ -0,0 +1,18 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/top_avg_metrics + response: + body: '{"errors": ["The parameter ''month/day'' is required"]}' + code: 400 + duration: '' + headers: + Content-Type: + - application/json + status: 400 Bad Request +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_all_custom_metrics_by_hourly_average_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_all_custom_metrics_by_hourly_average_returns_OK_response.freeze new file mode 100644 index 00000000000..ea8f0ce597a --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_all_custom_metrics_by_hourly_average_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-04-01T00:41:20.876Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_all_custom_metrics_by_hourly_average_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_all_custom_metrics_by_hourly_average_returns_OK_response.yaml new file mode 100644 index 00000000000..03d8719dc7f --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_all_custom_metrics_by_hourly_average_returns_OK_response.yaml @@ -0,0 +1,18 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/top_avg_metrics?day=2022-03-29T00%3A41%3A20.876Z + response: + body: '{"usage":[{"metric_category":"custom","metric_name":"page.views","max_metric_hour":11,"avg_metric_hour":11},{"metric_category":"custom","metric_name":"datadog_api_client_python_test_create_a_logbased_metric_returns_ok_response_1617189622.037749","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1633000123","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"TestListtagconfigurationswithconfiguredfilterreturnsSuccessresponse1648567994","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632849661","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632909874","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1633006696","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"TestUpdateatagconfigurationreturnsOKresponse1648572624","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1633007533","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632832883","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"foo","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632851109","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632820425","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"ruby_Create_a_log_based_metric_returns_OK_response_1617976084","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632836431","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632827387","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1640112763","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632846619","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1633011091","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Create_a_log_based_metric_returns_OK_response_1637077938","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632844127","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632918172","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"TestListtagsbymetricnamereturnsSuccessresponse1648571864","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632997303","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1633015432","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Create_a_log_based_metric_returns_OK_response_1637078452","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"go.client.test.metric","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Go_TestMetrics_1648512356","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Typescript_Create_a_log_based_metric_returns_OK_response_1614896593.355","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632817303","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632826421","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Typescript_Create_a_log_based_metric_returns_OK_response_1614072176.745","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632888511","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Typescript_Create_a_log_based_metric_returns_OK_response_1613675381.562","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632974958","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632844008","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632986079","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632849879","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632910728","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632328087","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"TestListtagconfigurationswithconfiguredfilterreturnsSuccessresponse1648571107","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"datadog_api_client_python_test_create_a_logbased_metric_returns_ok_response_1607014407.161855","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"datadog_api_client_python_test_create_a_logbased_metric_returns_ok_response_1608595661.620162","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1633003782","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632933825","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632921859","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"TestDeleteatagconfigurationreturnsNoContentresponse1648560475","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Create_a_log_based_metric_returns_OK_response_1637070501","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"TestListtagsbymetricnamereturnsSuccessresponse1648572328","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632833151","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632839523","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"java.client.test.metric","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632904020","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Python_Create_a_log_based_metric_returns_OK_response_1638987055","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Create_a_log_based_metric_returns_OK_response_1618491718","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"datadog_api_client_python_test_create_a_logbased_metric_returns_ok_response_1617014547.984513","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Java_Create_a_log_based_metric_returns_OK_response_1618407299","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632913792","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Create_a_log_based_metric_returns_OK_response_1637141184","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Typescript_Create_a_log_based_metric_returns_OK_response_1613674902.961","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632842468","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632907313","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"TestListtagconfigurationswithconfiguredfilterreturnsSuccessresponse1648567875","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632848436","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632848876","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632841151","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"TestUpdateatagconfigurationreturnsOKresponse1648572582","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"TestListtagsbymetricnamereturnsSuccessresponse1648572404","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632820224","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632843061","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"TestListtagconfigurationswithconfiguredfilterreturnsSuccessresponse1648571244","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632919560","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632899187","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1633011226","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"TestListdistinctmetricvolumesbymetricnamereturnsSuccessresponse1648563345","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632928242","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632828986","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"TestListdistinctmetricvolumesbymetricnamereturnsSuccessresponse1648563421","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Typescript_Create_a_log_based_metric_returns_OK_response_1616149774.73","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"TestListtagconfigurationswithconfiguredfilterreturnsSuccessresponse1648568220","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632848076","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632821487","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"TestListtagconfigurationswithconfiguredfilterreturnsSuccessresponse1648566682","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Create_a_log_based_metric_returns_OK_response_1637063323","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Create_a_log_based_metric_returns_OK_response_1640112922","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632922194","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Create_a_log_based_metric_returns_OK_response_1618831542","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632908380","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632898971","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632989750","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1633004062","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Go_Create_a_log_based_metric_returns_OK_response_1634316108","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632824835","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632839540","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1642756658","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632821189","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632919344","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632903468","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632839741","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"Test_Typescript_Create_a_log_based_metric_returns_OK_response_1632847587","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"datadog_api_client_python_test_create_a_logbased_metric_returns_ok_response_1617190464.536072","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"TestListtagsbymetricnamereturnsSuccessresponse1648572378","max_metric_hour":1,"avg_metric_hour":1},{"metric_category":"custom","metric_name":"java_metricsTests_local_1648524015","max_metric_hour":1,"avg_metric_hour":1}],"metadata":{"pagination":{"next_record_id":null,"limit":500,"total_number_of_records":null},"day":"2022-03-29T00:00:00+00:00"}}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_logs_usage_by_retention_returns_Bad_Request_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_logs_usage_by_retention_returns_Bad_Request_response.freeze new file mode 100644 index 00000000000..ce171bc092d --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_logs_usage_by_retention_returns_Bad_Request_response.freeze @@ -0,0 +1 @@ +2022-04-01T00:41:21.295Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_logs_usage_by_retention_returns_Bad_Request_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_logs_usage_by_retention_returns_Bad_Request_response.yaml new file mode 100644 index 00000000000..12a4349a755 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_logs_usage_by_retention_returns_Bad_Request_response.yaml @@ -0,0 +1,18 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/logs-by-retention?start_hr=2022-03-29T00%3A41%3A21.295Z&end_hr=2022-03-27T00%3A41%3A21.295Z + response: + body: '{"errors": ["start_hr [YYYY-MM-DDThh] must be before end_hr [YYYY-MM-DDThh]"]}' + code: 400 + duration: '' + headers: + Content-Type: + - application/json + status: 400 Bad Request +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_logs_usage_by_retention_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_logs_usage_by_retention_returns_OK_response.freeze new file mode 100644 index 00000000000..5181b6edee3 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_logs_usage_by_retention_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-04-01T00:41:21.397Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_logs_usage_by_retention_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_logs_usage_by_retention_returns_OK_response.yaml new file mode 100644 index 00000000000..91afba3842a --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_logs_usage_by_retention_returns_OK_response.yaml @@ -0,0 +1,18 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/logs-by-retention?start_hr=2022-03-27T00%3A41%3A21.397Z&end_hr=2022-03-29T00%3A41%3A21.397Z + response: + body: '{"usage":[{"retention":"15","indexed_events_count":11325,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T00:00:00+00:00","live_indexed_events_count":11325},{"retention":"15","indexed_events_count":11262,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T01:00:00+00:00","live_indexed_events_count":11262},{"retention":"15","indexed_events_count":11230,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T02:00:00+00:00","live_indexed_events_count":11230},{"retention":"15","indexed_events_count":11237,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T03:00:00+00:00","live_indexed_events_count":11237},{"retention":"15","indexed_events_count":11231,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T04:00:00+00:00","live_indexed_events_count":11231},{"retention":"15","indexed_events_count":11169,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T05:00:00+00:00","live_indexed_events_count":11169},{"retention":"15","indexed_events_count":11225,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T06:00:00+00:00","live_indexed_events_count":11225},{"retention":"15","indexed_events_count":11256,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T07:00:00+00:00","live_indexed_events_count":11256},{"retention":"15","indexed_events_count":11314,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T08:00:00+00:00","live_indexed_events_count":11314},{"retention":"15","indexed_events_count":11257,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T09:00:00+00:00","live_indexed_events_count":11257},{"retention":"15","indexed_events_count":11221,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T10:00:00+00:00","live_indexed_events_count":11221},{"retention":"15","indexed_events_count":11168,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T11:00:00+00:00","live_indexed_events_count":11168},{"retention":"15","indexed_events_count":11314,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T12:00:00+00:00","live_indexed_events_count":11314},{"retention":"15","indexed_events_count":11257,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T13:00:00+00:00","live_indexed_events_count":11257},{"retention":"15","indexed_events_count":11265,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T14:00:00+00:00","live_indexed_events_count":11265},{"retention":"15","indexed_events_count":11232,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T15:00:00+00:00","live_indexed_events_count":11232},{"retention":"15","indexed_events_count":11314,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T16:00:00+00:00","live_indexed_events_count":11314},{"retention":"15","indexed_events_count":11113,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T17:00:00+00:00","live_indexed_events_count":11113},{"retention":"15","indexed_events_count":11285,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T18:00:00+00:00","live_indexed_events_count":11285},{"retention":"15","indexed_events_count":11256,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T19:00:00+00:00","live_indexed_events_count":11256},{"retention":"15","indexed_events_count":11250,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T20:00:00+00:00","live_indexed_events_count":11250},{"retention":"15","indexed_events_count":11257,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T21:00:00+00:00","live_indexed_events_count":11257},{"retention":"15","indexed_events_count":11285,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T22:00:00+00:00","live_indexed_events_count":11285},{"retention":"15","indexed_events_count":11196,"rehydrated_indexed_events_count":0,"hour":"2022-03-27T23:00:00+00:00","live_indexed_events_count":11196},{"retention":"15","indexed_events_count":11325,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T00:00:00+00:00","live_indexed_events_count":11325},{"retention":"15","indexed_events_count":11202,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T01:00:00+00:00","live_indexed_events_count":11202},{"retention":"15","indexed_events_count":11226,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T02:00:00+00:00","live_indexed_events_count":11226},{"retention":"15","indexed_events_count":11261,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T03:00:00+00:00","live_indexed_events_count":11261},{"retention":"15","indexed_events_count":11319,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T04:00:00+00:00","live_indexed_events_count":11319},{"retention":"15","indexed_events_count":11197,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T05:00:00+00:00","live_indexed_events_count":11197},{"retention":"15","indexed_events_count":11285,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T06:00:00+00:00","live_indexed_events_count":11285},{"retention":"15","indexed_events_count":11256,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T07:00:00+00:00","live_indexed_events_count":11256},{"retention":"15","indexed_events_count":11254,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T08:00:00+00:00","live_indexed_events_count":11254},{"retention":"15","indexed_events_count":11203,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T09:00:00+00:00","live_indexed_events_count":11203},{"retention":"15","indexed_events_count":11172,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T10:00:00+00:00","live_indexed_events_count":11172},{"retention":"15","indexed_events_count":11285,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T11:00:00+00:00","live_indexed_events_count":11285},{"retention":"15","indexed_events_count":11290,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T12:00:00+00:00","live_indexed_events_count":11290},{"retention":"15","indexed_events_count":11257,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T13:00:00+00:00","live_indexed_events_count":11257},{"retention":"15","indexed_events_count":11285,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T14:00:00+00:00","live_indexed_events_count":11285},{"retention":"15","indexed_events_count":11232,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T15:00:00+00:00","live_indexed_events_count":11232},{"retention":"15","indexed_events_count":11266,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T16:00:00+00:00","live_indexed_events_count":11266},{"retention":"15","indexed_events_count":11257,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T17:00:00+00:00","live_indexed_events_count":11257},{"retention":"15","indexed_events_count":11285,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T18:00:00+00:00","live_indexed_events_count":11285},{"retention":"15","indexed_events_count":11172,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T19:00:00+00:00","live_indexed_events_count":11172},{"retention":"15","indexed_events_count":11294,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T20:00:00+00:00","live_indexed_events_count":11294},{"retention":"15","indexed_events_count":11180,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T21:00:00+00:00","live_indexed_events_count":11180},{"retention":"15","indexed_events_count":11197,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T22:00:00+00:00","live_indexed_events_count":11197},{"retention":"15","indexed_events_count":11208,"rehydrated_indexed_events_count":0,"hour":"2022-03-28T23:00:00+00:00","live_indexed_events_count":11208}]}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Cloud_Workload_Security_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Cloud_Workload_Security_returns_OK_response.freeze new file mode 100644 index 00000000000..e7d90b13fde --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Cloud_Workload_Security_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-04-01T00:41:21.858Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Cloud_Workload_Security_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Cloud_Workload_Security_returns_OK_response.yaml new file mode 100644 index 00000000000..fd5176b5e11 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Cloud_Workload_Security_returns_OK_response.yaml @@ -0,0 +1,65 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/cws?start_hr=2022-03-27T00%3A41%3A21.858Z&end_hr=2022-03-29T00%3A41%3A21.858Z + response: + body: '{"usage":[{"cws_host_count":null,"org_name":"DD Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T00:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T01:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T02:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T03:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T04:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T05:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T06:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T07:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T08:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T09:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T10:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T11:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T12:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T13:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T14:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T15:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T16:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T17:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T18:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T19:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T20:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T21:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T22:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T23:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T00:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T01:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T02:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T03:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T04:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T05:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T06:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T07:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T08:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T09:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T10:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T11:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T12:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T13:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T14:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T15:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T16:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T17:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T18:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T19:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T20:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T21:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T22:00:00+00:00"},{"cws_host_count":null,"org_name":"DD + Integration Tests (321813)","cws_container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T23:00:00+00:00"}]}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Database_Monitoring_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Database_Monitoring_returns_OK_response.freeze new file mode 100644 index 00000000000..23800b8dbf7 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Database_Monitoring_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-04-01T15:43:36.948Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Database_Monitoring_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Database_Monitoring_returns_OK_response.yaml new file mode 100644 index 00000000000..38022987e46 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Database_Monitoring_returns_OK_response.yaml @@ -0,0 +1,65 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/dbm?start_hr=2022-03-27T15%3A43%3A36.948Z&end_hr=2022-03-29T15%3A43%3A36.948Z + response: + body: '{"usage":[{"org_name":"DD Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T15:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T16:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T17:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T18:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T19:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T20:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T21:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T22:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T23:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T00:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T01:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T02:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T03:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T04:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T05:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T06:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T07:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T08:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T09:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T10:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T11:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T12:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T13:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T14:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T15:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T16:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T17:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T18:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T19:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T20:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T21:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T22:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T23:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T00:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T01:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T02:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T03:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T04:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T05:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T06:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T07:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T08:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T09:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T10:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T11:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T12:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T13:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","dbm_host_count":null,"dbm_queries_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T14:00:00+00:00"}]}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Fargate_returns_Bad_Request_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Fargate_returns_Bad_Request_response.freeze new file mode 100644 index 00000000000..aa9702e65c1 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Fargate_returns_Bad_Request_response.freeze @@ -0,0 +1 @@ +2022-04-01T00:41:23.099Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Fargate_returns_Bad_Request_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Fargate_returns_Bad_Request_response.yaml new file mode 100644 index 00000000000..cff8cf693d2 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Fargate_returns_Bad_Request_response.yaml @@ -0,0 +1,18 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/fargate?start_hr=2022-03-29T00%3A41%3A23.099Z&end_hr=2022-03-27T00%3A41%3A23.099Z + response: + body: '{"errors": ["start_hr [YYYY-MM-DDThh] must be before end_hr [YYYY-MM-DDThh]"]}' + code: 400 + duration: '' + headers: + Content-Type: + - application/json + status: 400 Bad Request +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Fargate_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Fargate_returns_OK_response.freeze new file mode 100644 index 00000000000..358d141a264 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Fargate_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-04-01T00:41:23.206Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Fargate_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Fargate_returns_OK_response.yaml new file mode 100644 index 00000000000..eff70d6f0bc --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Fargate_returns_OK_response.yaml @@ -0,0 +1,65 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/fargate?start_hr=2022-03-27T00%3A41%3A23.206Z&end_hr=2022-03-29T00%3A41%3A23.206Z + response: + body: '{"usage":[{"org_name":"DD Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T00:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T01:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T02:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T03:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T04:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T05:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T06:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T07:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T08:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T09:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T10:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T11:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T12:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T13:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T14:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T15:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T16:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T17:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T18:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T19:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T20:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T21:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T22:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T23:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T00:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T01:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T02:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T03:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T04:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T05:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T06:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T07:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T08:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T09:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T10:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T11:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T12:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T13:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T14:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T15:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T16:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T17:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T18:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T19:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T20:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T21:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T22:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T23:00:00+00:00","avg_tasks_count":null,"tasks_count":null,"avg_profiled_fargate_tasks":null}]}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_returns_Bad_Request_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_returns_Bad_Request_response.freeze new file mode 100644 index 00000000000..32245c45ab4 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_returns_Bad_Request_response.freeze @@ -0,0 +1 @@ +2022-04-01T00:41:23.917Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_returns_Bad_Request_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_returns_Bad_Request_response.yaml new file mode 100644 index 00000000000..0fc72ef13f0 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_returns_Bad_Request_response.yaml @@ -0,0 +1,18 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/aws_lambda?start_hr=2022-03-29T00%3A41%3A23.917Z&end_hr=2022-03-27T00%3A41%3A23.917Z + response: + body: '{"errors": ["start_hr [YYYY-MM-DDThh] must be before end_hr [YYYY-MM-DDThh]"]}' + code: 400 + duration: '' + headers: + Content-Type: + - application/json + status: 400 Bad Request +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_returns_OK_response.freeze new file mode 100644 index 00000000000..01d4582f548 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-04-01T00:41:24.021Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_returns_OK_response.yaml new file mode 100644 index 00000000000..8b1d361d55b --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Lambda_returns_OK_response.yaml @@ -0,0 +1,65 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/aws_lambda?start_hr=2022-03-27T00%3A41%3A24.021Z&end_hr=2022-03-29T00%3A41%3A24.021Z + response: + body: '{"usage":[{"org_name":"DD Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T00:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T01:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T02:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T03:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T04:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T05:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T06:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T07:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T08:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T09:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T10:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T11:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T12:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T13:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T14:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T15:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T16:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T17:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T18:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T19:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T20:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T21:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T22:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T23:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T00:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T01:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T02:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T03:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T04:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T05:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T06:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T07:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T08:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T09:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T10:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T11:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T12:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T13:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T14:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T15:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T16:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T17:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T18:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T19:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T20:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T21:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T22:00:00+00:00","invocations_sum":0},{"org_name":"DD + Integration Tests (321813)","func_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T23:00:00+00:00","invocations_sum":0}]}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_by_Index_returns_Bad_Request_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_by_Index_returns_Bad_Request_response.freeze new file mode 100644 index 00000000000..a60db953bd7 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_by_Index_returns_Bad_Request_response.freeze @@ -0,0 +1 @@ +2022-04-01T17:01:53.545Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_by_Index_returns_Bad_Request_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_by_Index_returns_Bad_Request_response.yaml new file mode 100644 index 00000000000..2f4c1951295 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_by_Index_returns_Bad_Request_response.yaml @@ -0,0 +1,18 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/logs_by_index?start_hr=2022-03-29T17%3A01%3A53.545Z&end_hr=2022-03-27T17%3A01%3A53.545Z + response: + body: '{"errors": ["start_hr [YYYY-MM-DDThh] must be before end_hr [YYYY-MM-DDThh]"]}' + code: 400 + duration: '' + headers: + Content-Type: + - application/json + status: 400 Bad Request +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_by_Index_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_by_Index_returns_OK_response.freeze new file mode 100644 index 00000000000..bb16e334da0 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_by_Index_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-04-01T15:43:39.457Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_by_Index_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_by_Index_returns_OK_response.yaml new file mode 100644 index 00000000000..388f6dd0c60 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_by_Index_returns_OK_response.yaml @@ -0,0 +1,18 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/logs_by_index?start_hr=2022-03-27T15%3A43%3A39.457Z&end_hr=2022-03-29T15%3A43%3A39.457Z + response: + body: '{"usage":[{"rehydrated_indexed":0,"hour":"2022-03-27T15:00:00+00:00","event_count":11232,"org_id":321813,"live_index_indexed":11232,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-27T16:00:00+00:00","event_count":11314,"org_id":321813,"live_index_indexed":11314,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-27T17:00:00+00:00","event_count":11113,"org_id":321813,"live_index_indexed":11113,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-27T18:00:00+00:00","event_count":11285,"org_id":321813,"live_index_indexed":11285,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-27T19:00:00+00:00","event_count":11256,"org_id":321813,"live_index_indexed":11256,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-27T20:00:00+00:00","event_count":11250,"org_id":321813,"live_index_indexed":11250,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-27T21:00:00+00:00","event_count":11257,"org_id":321813,"live_index_indexed":11257,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-27T22:00:00+00:00","event_count":11285,"org_id":321813,"live_index_indexed":11285,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-27T23:00:00+00:00","event_count":11196,"org_id":321813,"live_index_indexed":11196,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T00:00:00+00:00","event_count":11325,"org_id":321813,"live_index_indexed":11325,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T01:00:00+00:00","event_count":11202,"org_id":321813,"live_index_indexed":11202,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T02:00:00+00:00","event_count":11226,"org_id":321813,"live_index_indexed":11226,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T03:00:00+00:00","event_count":11261,"org_id":321813,"live_index_indexed":11261,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T04:00:00+00:00","event_count":11319,"org_id":321813,"live_index_indexed":11319,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T05:00:00+00:00","event_count":11197,"org_id":321813,"live_index_indexed":11197,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T06:00:00+00:00","event_count":11285,"org_id":321813,"live_index_indexed":11285,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T07:00:00+00:00","event_count":11256,"org_id":321813,"live_index_indexed":11256,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T08:00:00+00:00","event_count":11254,"org_id":321813,"live_index_indexed":11254,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T09:00:00+00:00","event_count":11203,"org_id":321813,"live_index_indexed":11203,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T10:00:00+00:00","event_count":11172,"org_id":321813,"live_index_indexed":11172,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T11:00:00+00:00","event_count":11285,"org_id":321813,"live_index_indexed":11285,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T12:00:00+00:00","event_count":11290,"org_id":321813,"live_index_indexed":11290,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T13:00:00+00:00","event_count":11257,"org_id":321813,"live_index_indexed":11257,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T14:00:00+00:00","event_count":11285,"org_id":321813,"live_index_indexed":11285,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T15:00:00+00:00","event_count":11232,"org_id":321813,"live_index_indexed":11232,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T16:00:00+00:00","event_count":11266,"org_id":321813,"live_index_indexed":11266,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T17:00:00+00:00","event_count":11257,"org_id":321813,"live_index_indexed":11257,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T18:00:00+00:00","event_count":11285,"org_id":321813,"live_index_indexed":11285,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T19:00:00+00:00","event_count":11172,"org_id":321813,"live_index_indexed":11172,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T20:00:00+00:00","event_count":11294,"org_id":321813,"live_index_indexed":11294,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T21:00:00+00:00","event_count":11180,"org_id":321813,"live_index_indexed":11180,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T22:00:00+00:00","event_count":11197,"org_id":321813,"live_index_indexed":11197,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-28T23:00:00+00:00","event_count":11208,"org_id":321813,"live_index_indexed":11208,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-29T00:00:00+00:00","event_count":11305,"org_id":321813,"live_index_indexed":11305,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-29T01:00:00+00:00","event_count":11262,"org_id":321813,"live_index_indexed":11262,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-29T02:00:00+00:00","event_count":11170,"org_id":321813,"live_index_indexed":11170,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-29T03:00:00+00:00","event_count":11113,"org_id":321813,"live_index_indexed":11113,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-29T04:00:00+00:00","event_count":11290,"org_id":321813,"live_index_indexed":11290,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-29T05:00:00+00:00","event_count":11286,"org_id":321813,"live_index_indexed":11286,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-29T06:00:00+00:00","event_count":11285,"org_id":321813,"live_index_indexed":11285,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-29T07:00:00+00:00","event_count":11256,"org_id":321813,"live_index_indexed":11256,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-29T08:00:00+00:00","event_count":11254,"org_id":321813,"live_index_indexed":11254,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-29T09:00:00+00:00","event_count":11193,"org_id":321813,"live_index_indexed":11193,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-29T10:00:00+00:00","event_count":11236,"org_id":321813,"live_index_indexed":11236,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-29T11:00:00+00:00","event_count":11261,"org_id":321813,"live_index_indexed":11261,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-29T12:00:00+00:00","event_count":11314,"org_id":321813,"live_index_indexed":11314,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-29T13:00:00+00:00","event_count":11233,"org_id":321813,"live_index_indexed":11233,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15},{"rehydrated_indexed":0,"hour":"2022-03-29T14:00:00+00:00","event_count":11225,"org_id":321813,"live_index_indexed":11225,"index_name":"main","rate_limited":false,"filtered":false,"index_id":"33715","retention":15}]}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_returns_Bad_Request_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_returns_Bad_Request_response.freeze new file mode 100644 index 00000000000..2181d1c75e5 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_returns_Bad_Request_response.freeze @@ -0,0 +1 @@ +2022-04-01T15:43:39.812Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_returns_Bad_Request_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_returns_Bad_Request_response.yaml new file mode 100644 index 00000000000..09f7b6a77f2 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_returns_Bad_Request_response.yaml @@ -0,0 +1,18 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/logs?start_hr=2022-03-29T15%3A43%3A39.812Z&end_hr=2022-03-27T15%3A43%3A39.812Z + response: + body: '{"errors": ["start_hr [YYYY-MM-DDThh] must be before end_hr [YYYY-MM-DDThh]"]}' + code: 400 + duration: '' + headers: + Content-Type: + - application/json + status: 400 Bad Request +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_returns_OK_response.freeze new file mode 100644 index 00000000000..35adbcdf768 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-04-01T15:43:39.992Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_returns_OK_response.yaml new file mode 100644 index 00000000000..15e9341579d --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Logs_returns_OK_response.yaml @@ -0,0 +1,18 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/logs?start_hr=2022-03-27T15%3A43%3A39.992Z&end_hr=2022-03-29T15%3A43%3A39.992Z + response: + body: '{"usage":[{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-27T15:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11232,"logs_live_indexed_count":11232},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-27T16:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11314,"logs_live_indexed_count":11314},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-27T17:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11113,"logs_live_indexed_count":11113},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-27T18:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11285,"logs_live_indexed_count":11285},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-27T19:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11256,"logs_live_indexed_count":11256},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-27T20:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11250,"logs_live_indexed_count":11250},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-27T21:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11257,"logs_live_indexed_count":11257},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-27T22:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11285,"logs_live_indexed_count":11285},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-27T23:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11196,"logs_live_indexed_count":11196},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T00:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11325,"logs_live_indexed_count":11325},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T01:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11202,"logs_live_indexed_count":11202},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T02:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11226,"logs_live_indexed_count":11226},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T03:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11261,"logs_live_indexed_count":11261},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T04:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11319,"logs_live_indexed_count":11319},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T05:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11197,"logs_live_indexed_count":11197},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T06:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11285,"logs_live_indexed_count":11285},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T07:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11256,"logs_live_indexed_count":11256},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T08:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11254,"logs_live_indexed_count":11254},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T09:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11203,"logs_live_indexed_count":11203},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T10:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11172,"logs_live_indexed_count":11172},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T11:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11285,"logs_live_indexed_count":11285},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T12:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11290,"logs_live_indexed_count":11290},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T13:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11257,"logs_live_indexed_count":11257},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T14:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11285,"logs_live_indexed_count":11285},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T15:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11232,"logs_live_indexed_count":11232},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T16:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11266,"logs_live_indexed_count":11266},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T17:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11257,"logs_live_indexed_count":11257},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T18:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11285,"logs_live_indexed_count":11285},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T19:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11172,"logs_live_indexed_count":11172},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T20:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11294,"logs_live_indexed_count":11294},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T21:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11180,"logs_live_indexed_count":11180},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T22:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11197,"logs_live_indexed_count":11197},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-28T23:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11208,"logs_live_indexed_count":11208},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-29T00:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11305,"logs_live_indexed_count":11305},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-29T01:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11262,"logs_live_indexed_count":11262},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-29T02:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11170,"logs_live_indexed_count":11170},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-29T03:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11113,"logs_live_indexed_count":11113},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-29T04:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11290,"logs_live_indexed_count":11290},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-29T05:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11286,"logs_live_indexed_count":11286},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-29T06:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11285,"logs_live_indexed_count":11285},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-29T07:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11256,"logs_live_indexed_count":11256},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-29T08:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11254,"logs_live_indexed_count":11254},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-29T09:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11193,"logs_live_indexed_count":11193},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-29T10:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11236,"logs_live_indexed_count":11236},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-29T11:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11261,"logs_live_indexed_count":11261},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-29T12:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11314,"logs_live_indexed_count":11314},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-29T13:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11233,"logs_live_indexed_count":11233},{"logs_live_ingested_bytes":0,"ingested_events_bytes":0,"hour":"2022-03-29T14:00:00+00:00","logs_rehydrated_indexed_count":0,"logs_rehydrated_ingested_bytes":0,"billable_ingested_bytes":0,"indexed_events_count":11225,"logs_live_indexed_count":11225}]}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Flows_returns_Bad_Request_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Flows_returns_Bad_Request_response.freeze new file mode 100644 index 00000000000..8db5a043e0b --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Flows_returns_Bad_Request_response.freeze @@ -0,0 +1 @@ +2022-04-01T15:43:40.233Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Flows_returns_Bad_Request_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Flows_returns_Bad_Request_response.yaml new file mode 100644 index 00000000000..61e2c9618df --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Flows_returns_Bad_Request_response.yaml @@ -0,0 +1,18 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/network_flows?start_hr=2022-03-29T15%3A43%3A40.233Z&end_hr=2022-03-27T15%3A43%3A40.233Z + response: + body: '{"errors": ["start_hr [YYYY-MM-DDThh] must be before end_hr [YYYY-MM-DDThh]"]}' + code: 400 + duration: '' + headers: + Content-Type: + - application/json + status: 400 Bad Request +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Flows_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Flows_returns_OK_response.freeze new file mode 100644 index 00000000000..143eddfd805 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Flows_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-04-01T15:43:40.429Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Flows_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Flows_returns_OK_response.yaml new file mode 100644 index 00000000000..90d1e2aff3b --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Flows_returns_OK_response.yaml @@ -0,0 +1,65 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/network_flows?start_hr=2022-03-27T15%3A43%3A40.429Z&end_hr=2022-03-29T15%3A43%3A40.429Z + response: + body: '{"usage":[{"org_name":"DD Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-27T15:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-27T16:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-27T17:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-27T18:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-27T19:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-27T20:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-27T21:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-27T22:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-27T23:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T00:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T01:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T02:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T03:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T04:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T05:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T06:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T07:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T08:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T09:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T10:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T11:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T12:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T13:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T14:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T15:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T16:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T17:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T18:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T19:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T20:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T21:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T22:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-28T23:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-29T00:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-29T01:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-29T02:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-29T03:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-29T04:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-29T05:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-29T06:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-29T07:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-29T08:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-29T09:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-29T10:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-29T11:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-29T12:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-29T13:00:00+00:00"},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","indexed_events_count":0,"hour":"2022-03-29T14:00:00+00:00"}]}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Hosts_returns_Bad_Request_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Hosts_returns_Bad_Request_response.freeze new file mode 100644 index 00000000000..e8eb372ac43 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Hosts_returns_Bad_Request_response.freeze @@ -0,0 +1 @@ +2022-04-01T17:01:55.545Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Hosts_returns_Bad_Request_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Hosts_returns_Bad_Request_response.yaml new file mode 100644 index 00000000000..f25bd781385 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Hosts_returns_Bad_Request_response.yaml @@ -0,0 +1,18 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/network_hosts?start_hr=2022-03-29T17%3A01%3A55.545Z&end_hr=2022-03-27T17%3A01%3A55.545Z + response: + body: '{"errors": ["start_hr [YYYY-MM-DDThh] must be before end_hr [YYYY-MM-DDThh]"]}' + code: 400 + duration: '' + headers: + Content-Type: + - application/json + status: 400 Bad Request +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Hosts_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Hosts_returns_OK_response.freeze new file mode 100644 index 00000000000..906494e282c --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Hosts_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-04-01T15:43:40.923Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Hosts_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Hosts_returns_OK_response.yaml new file mode 100644 index 00000000000..3845f77ae08 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Network_Hosts_returns_OK_response.yaml @@ -0,0 +1,65 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/network_hosts?start_hr=2022-03-27T15%3A43%3A40.923Z&end_hr=2022-03-29T15%3A43%3A40.923Z + response: + body: '{"usage":[{"host_count":0,"org_name":"DD Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T15:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T16:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T17:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T18:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T19:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T20:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T21:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T22:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T23:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T00:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T01:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T02:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T03:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T04:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T05:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T06:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T07:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T08:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T09:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T10:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T11:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T12:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T13:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T14:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T15:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T16:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T17:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T18:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T19:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T20:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T21:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T22:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T23:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T00:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T01:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T02:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T03:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T04:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T05:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T06:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T07:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T08:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T09:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T10:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T11:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T12:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T13:00:00+00:00"},{"host_count":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T14:00:00+00:00"}]}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Sessions_returns_Bad_Request_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Sessions_returns_Bad_Request_response.freeze new file mode 100644 index 00000000000..b982f9f9673 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Sessions_returns_Bad_Request_response.freeze @@ -0,0 +1 @@ +2022-04-01T00:41:26.836Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Sessions_returns_Bad_Request_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Sessions_returns_Bad_Request_response.yaml new file mode 100644 index 00000000000..6a9c158104a --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Sessions_returns_Bad_Request_response.yaml @@ -0,0 +1,18 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/rum_sessions?start_hr=2022-03-29T00%3A41%3A26.836Z&end_hr=2022-03-27T00%3A41%3A26.836Z + response: + body: '{"errors": ["start_hr [YYYY-MM-DDThh] must be before end_hr [YYYY-MM-DDThh]"]}' + code: 400 + duration: '' + headers: + Content-Type: + - application/json + status: 400 Bad Request +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Sessions_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Sessions_returns_OK_response.freeze new file mode 100644 index 00000000000..cd0cd7e96d7 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Sessions_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-04-01T00:41:26.958Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Sessions_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Sessions_returns_OK_response.yaml new file mode 100644 index 00000000000..9967fec7c51 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Sessions_returns_OK_response.yaml @@ -0,0 +1,65 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/rum_sessions?start_hr=2022-03-27T00%3A41%3A26.958Z&end_hr=2022-03-29T00%3A41%3A26.958Z + response: + body: '{"usage":[{"org_name":"DD Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T00:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T01:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T02:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T03:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T04:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T05:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T06:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T07:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T08:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T09:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T10:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T11:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T12:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T13:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T14:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T15:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T16:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T17:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T18:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T19:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T20:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T21:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T22:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T23:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T00:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T01:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T02:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T03:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T04:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T05:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T06:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T07:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T08:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T09:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T10:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T11:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T12:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T13:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T14:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T15:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T16:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T17:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T18:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T19:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T20:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T21:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T22:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T23:00:00+00:00","indexed_events_count":null,"session_count":null,"replay_session_count":0}]}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Units_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Units_returns_OK_response.freeze new file mode 100644 index 00000000000..afe024a895f --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Units_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-04-01T00:41:27.572Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Units_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Units_returns_OK_response.yaml new file mode 100644 index 00000000000..b707aaddb78 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_RUM_Units_returns_OK_response.yaml @@ -0,0 +1,65 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/rum?start_hr=2022-03-27T00%3A41%3A27.572Z&end_hr=2022-03-29T00%3A41%3A27.572Z + response: + body: '{"usage":[{"org_name":"DD Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T00:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T01:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T02:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T03:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T04:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T05:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T06:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T07:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T08:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T09:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T10:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T11:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T12:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T13:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T14:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T15:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T16:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T17:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T18:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T19:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T20:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T21:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T22:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-27T23:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T00:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T01:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T02:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T03:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T04:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T05:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T06:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T07:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T08:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T09:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T10:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T11:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T12:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T13:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T14:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T15:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T16:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T17:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T18:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T19:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T20:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T21:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T22:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"},{"org_name":"DD + Integration Tests (321813)","browser_rum_units":null,"hour":"2022-03-28T23:00:00+00:00","rum_units":0,"mobile_rum_units":null,"public_id":"fasjyydbcgwwc2uc"}]}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Sensitive_Data_Scanner_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Sensitive_Data_Scanner_returns_OK_response.freeze new file mode 100644 index 00000000000..7456ca5fdaa --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Sensitive_Data_Scanner_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-04-01T00:41:27.888Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Sensitive_Data_Scanner_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Sensitive_Data_Scanner_returns_OK_response.yaml new file mode 100644 index 00000000000..226c16870ac --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Sensitive_Data_Scanner_returns_OK_response.yaml @@ -0,0 +1,65 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/sds?start_hr=2022-03-27T00%3A41%3A27.888Z&end_hr=2022-03-29T00%3A41%3A27.888Z + response: + body: '{"usage":[{"total_scanned_bytes":0,"org_name":"DD Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T00:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T01:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T02:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T03:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T04:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T05:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T06:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T07:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T08:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T09:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T10:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T11:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T12:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T13:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T14:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T15:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T16:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T17:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T18:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T19:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T20:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T21:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T22:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T23:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T00:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T01:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T02:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T03:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T04:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T05:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T06:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T07:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T08:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T09:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T10:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T11:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T12:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T13:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T14:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T15:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T16:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T17:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T18:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T19:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T20:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T21:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T22:00:00+00:00","logs_scanned_bytes":0},{"total_scanned_bytes":0,"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T23:00:00+00:00","logs_scanned_bytes":0}]}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_API_Checks_returns_Bad_Request_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_API_Checks_returns_Bad_Request_response.freeze new file mode 100644 index 00000000000..f29030d982b --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_API_Checks_returns_Bad_Request_response.freeze @@ -0,0 +1 @@ +2022-04-01T15:43:44.039Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_API_Checks_returns_Bad_Request_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_API_Checks_returns_Bad_Request_response.yaml new file mode 100644 index 00000000000..86cb3cb6118 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_API_Checks_returns_Bad_Request_response.yaml @@ -0,0 +1,18 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/synthetics_api?start_hr=2022-03-29T15%3A43%3A44.039Z&end_hr=2022-03-27T15%3A43%3A44.039Z + response: + body: '{"errors": ["start_hr [YYYY-MM-DDThh] must be before end_hr [YYYY-MM-DDThh]"]}' + code: 400 + duration: '' + headers: + Content-Type: + - application/json + status: 400 Bad Request +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_API_Checks_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_API_Checks_returns_OK_response.freeze new file mode 100644 index 00000000000..1d061da942d --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_API_Checks_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-04-01T15:43:44.274Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_API_Checks_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_API_Checks_returns_OK_response.yaml new file mode 100644 index 00000000000..8b17c36ece1 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_API_Checks_returns_OK_response.yaml @@ -0,0 +1,65 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/synthetics_api?start_hr=2022-03-27T15%3A43%3A44.274Z&end_hr=2022-03-29T15%3A43%3A44.274Z + response: + body: '{"usage":[{"org_name":"DD Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T15:00:00+00:00","check_calls_count":1171},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T16:00:00+00:00","check_calls_count":1172},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T17:00:00+00:00","check_calls_count":1182},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T18:00:00+00:00","check_calls_count":1171},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T19:00:00+00:00","check_calls_count":1150},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T20:00:00+00:00","check_calls_count":1155},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T21:00:00+00:00","check_calls_count":1182},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T22:00:00+00:00","check_calls_count":1173},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T23:00:00+00:00","check_calls_count":1161},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T00:00:00+00:00","check_calls_count":1189},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T01:00:00+00:00","check_calls_count":1200},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T02:00:00+00:00","check_calls_count":1183},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T03:00:00+00:00","check_calls_count":1175},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T04:00:00+00:00","check_calls_count":1185},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T05:00:00+00:00","check_calls_count":1177},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T06:00:00+00:00","check_calls_count":1178},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T07:00:00+00:00","check_calls_count":1169},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T08:00:00+00:00","check_calls_count":1151},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T09:00:00+00:00","check_calls_count":1178},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T10:00:00+00:00","check_calls_count":1170},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T11:00:00+00:00","check_calls_count":1138},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T12:00:00+00:00","check_calls_count":1169},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T13:00:00+00:00","check_calls_count":1161},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T14:00:00+00:00","check_calls_count":1165},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T15:00:00+00:00","check_calls_count":1155},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T16:00:00+00:00","check_calls_count":1157},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T17:00:00+00:00","check_calls_count":1173},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T18:00:00+00:00","check_calls_count":567},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T19:00:00+00:00","check_calls_count":0},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T20:00:00+00:00","check_calls_count":0},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T21:00:00+00:00","check_calls_count":49},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T22:00:00+00:00","check_calls_count":0},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T23:00:00+00:00","check_calls_count":0},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T00:00:00+00:00","check_calls_count":21},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T01:00:00+00:00","check_calls_count":29},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T02:00:00+00:00","check_calls_count":15},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T03:00:00+00:00","check_calls_count":17},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T04:00:00+00:00","check_calls_count":13},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T05:00:00+00:00","check_calls_count":12},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T06:00:00+00:00","check_calls_count":0},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T07:00:00+00:00","check_calls_count":0},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T08:00:00+00:00","check_calls_count":0},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T09:00:00+00:00","check_calls_count":13},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T10:00:00+00:00","check_calls_count":0},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T11:00:00+00:00","check_calls_count":0},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":8,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T12:00:00+00:00","check_calls_count":7},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T13:00:00+00:00","check_calls_count":17},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-29T14:00:00+00:00","check_calls_count":0}]}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_Browser_Checks_returns_Bad_Request_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_Browser_Checks_returns_Bad_Request_response.freeze new file mode 100644 index 00000000000..523dac4bc8c --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_Browser_Checks_returns_Bad_Request_response.freeze @@ -0,0 +1 @@ +2022-04-01T00:41:28.391Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_Browser_Checks_returns_Bad_Request_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_Browser_Checks_returns_Bad_Request_response.yaml new file mode 100644 index 00000000000..3f0c6a12c8f --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_Browser_Checks_returns_Bad_Request_response.yaml @@ -0,0 +1,18 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/synthetics_browser?start_hr=2022-03-29T00%3A41%3A28.391Z&end_hr=2022-03-27T00%3A41%3A28.391Z + response: + body: '{"errors": ["start_hr [YYYY-MM-DDThh] must be before end_hr [YYYY-MM-DDThh]"]}' + code: 400 + duration: '' + headers: + Content-Type: + - application/json + status: 400 Bad Request +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_Browser_Checks_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_Browser_Checks_returns_OK_response.freeze new file mode 100644 index 00000000000..3211cc686bc --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_Browser_Checks_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-04-01T00:41:28.503Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_Browser_Checks_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_Browser_Checks_returns_OK_response.yaml new file mode 100644 index 00000000000..c2770848ea3 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_Synthetics_Browser_Checks_returns_OK_response.yaml @@ -0,0 +1,65 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/synthetics_browser?start_hr=2022-03-27T00%3A41%3A28.503Z&end_hr=2022-03-29T00%3A41%3A28.503Z + response: + body: '{"usage":[{"org_name":"DD Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T00:00:00+00:00","check_calls_count":1181},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T01:00:00+00:00","check_calls_count":1190},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T02:00:00+00:00","check_calls_count":1180},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T03:00:00+00:00","check_calls_count":1197},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T04:00:00+00:00","check_calls_count":1178},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T05:00:00+00:00","check_calls_count":1180},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T06:00:00+00:00","check_calls_count":1174},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T07:00:00+00:00","check_calls_count":1163},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T08:00:00+00:00","check_calls_count":1167},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T09:00:00+00:00","check_calls_count":1182},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T10:00:00+00:00","check_calls_count":1195},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T11:00:00+00:00","check_calls_count":1178},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T12:00:00+00:00","check_calls_count":1170},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T13:00:00+00:00","check_calls_count":1192},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T14:00:00+00:00","check_calls_count":1170},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T15:00:00+00:00","check_calls_count":1171},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T16:00:00+00:00","check_calls_count":1172},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T17:00:00+00:00","check_calls_count":1182},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T18:00:00+00:00","check_calls_count":1171},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T19:00:00+00:00","check_calls_count":1150},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T20:00:00+00:00","check_calls_count":1155},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T21:00:00+00:00","check_calls_count":1182},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T22:00:00+00:00","check_calls_count":1173},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T23:00:00+00:00","check_calls_count":1161},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T00:00:00+00:00","check_calls_count":1189},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T01:00:00+00:00","check_calls_count":1200},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T02:00:00+00:00","check_calls_count":1183},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T03:00:00+00:00","check_calls_count":1175},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T04:00:00+00:00","check_calls_count":1185},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T05:00:00+00:00","check_calls_count":1177},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T06:00:00+00:00","check_calls_count":1178},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T07:00:00+00:00","check_calls_count":1169},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T08:00:00+00:00","check_calls_count":1151},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T09:00:00+00:00","check_calls_count":1178},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T10:00:00+00:00","check_calls_count":1170},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T11:00:00+00:00","check_calls_count":1138},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T12:00:00+00:00","check_calls_count":1169},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T13:00:00+00:00","check_calls_count":1161},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T14:00:00+00:00","check_calls_count":1165},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T15:00:00+00:00","check_calls_count":1155},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T16:00:00+00:00","check_calls_count":1157},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T17:00:00+00:00","check_calls_count":1173},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T18:00:00+00:00","check_calls_count":567},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T19:00:00+00:00","check_calls_count":0},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T20:00:00+00:00","check_calls_count":0},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T21:00:00+00:00","check_calls_count":49},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T22:00:00+00:00","check_calls_count":0},{"org_name":"DD + Integration Tests (321813)","browser_check_calls_count":0,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T23:00:00+00:00","check_calls_count":0}]}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_audit_logs_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_audit_logs_returns_OK_response.freeze new file mode 100644 index 00000000000..6074c793c0e --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_audit_logs_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-04-01T00:41:28.687Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_audit_logs_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_audit_logs_returns_OK_response.yaml new file mode 100644 index 00000000000..bcfb9e1be59 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_audit_logs_returns_OK_response.yaml @@ -0,0 +1,65 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/audit_logs?start_hr=2022-03-27T00%3A41%3A28.687Z&end_hr=2022-03-29T00%3A41%3A28.687Z + response: + body: '{"usage":[{"org_name":"DD Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T00:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T01:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T02:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T03:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T04:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T05:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T06:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T07:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T08:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T09:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T10:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T11:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T12:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T13:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T14:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T15:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T16:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T17:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T18:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T19:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T20:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T21:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T22:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T23:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T00:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T01:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T02:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T03:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T04:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T05:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T06:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T07:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T08:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T09:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T10:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T11:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T12:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T13:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T14:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T15:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T16:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T17:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T18:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T19:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T20:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T21:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T22:00:00+00:00","lines_indexed":0},{"org_name":"DD + Integration Tests (321813)","public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T23:00:00+00:00","lines_indexed":0}]}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_custom_metrics_returns_Bad_Request_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_custom_metrics_returns_Bad_Request_response.freeze new file mode 100644 index 00000000000..b86a1d83302 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_custom_metrics_returns_Bad_Request_response.freeze @@ -0,0 +1 @@ +2022-04-01T00:41:29.079Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_custom_metrics_returns_Bad_Request_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_custom_metrics_returns_Bad_Request_response.yaml new file mode 100644 index 00000000000..4ea88214ecf --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_custom_metrics_returns_Bad_Request_response.yaml @@ -0,0 +1,18 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/timeseries?start_hr=2022-03-29T00%3A41%3A29.079Z&end_hr=2022-03-27T00%3A41%3A29.079Z + response: + body: '{"errors": ["start_hr [YYYY-MM-DDThh] must be before end_hr [YYYY-MM-DDThh]"]}' + code: 400 + duration: '' + headers: + Content-Type: + - application/json + status: 400 Bad Request +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_custom_metrics_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_custom_metrics_returns_OK_response.freeze new file mode 100644 index 00000000000..289d792f4aa --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_custom_metrics_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-04-01T00:41:29.168Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_custom_metrics_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_custom_metrics_returns_OK_response.yaml new file mode 100644 index 00000000000..84eb4edace9 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_custom_metrics_returns_OK_response.yaml @@ -0,0 +1,65 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/timeseries?start_hr=2022-03-27T00%3A41%3A29.168Z&end_hr=2022-03-29T00%3A41%3A29.168Z + response: + body: '{"usage":[{"org_name":"DD Integration Tests (321813)","num_standard_output_timeseries":93,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":1,"hour":"2022-03-27T00:00:00+00:00","num_standard_timeseries":36425,"num_custom_output_timeseries":83,"num_custom_timeseries":96,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":93,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-27T01:00:00+00:00","num_standard_timeseries":36424,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":93,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-27T02:00:00+00:00","num_standard_timeseries":36359,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":93,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-27T03:00:00+00:00","num_standard_timeseries":36368,"num_custom_output_timeseries":82,"num_custom_timeseries":95,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":93,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-27T04:00:00+00:00","num_standard_timeseries":36372,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-27T05:00:00+00:00","num_standard_timeseries":36372,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-27T06:00:00+00:00","num_standard_timeseries":36301,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-27T07:00:00+00:00","num_standard_timeseries":36308,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-27T08:00:00+00:00","num_standard_timeseries":36293,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-27T09:00:00+00:00","num_standard_timeseries":36365,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-27T10:00:00+00:00","num_standard_timeseries":36295,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-27T11:00:00+00:00","num_standard_timeseries":36304,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":87,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":1,"hour":"2022-03-27T12:00:00+00:00","num_standard_timeseries":36363,"num_custom_output_timeseries":83,"num_custom_timeseries":94,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-27T13:00:00+00:00","num_standard_timeseries":36358,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-27T14:00:00+00:00","num_standard_timeseries":36298,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-27T15:00:00+00:00","num_standard_timeseries":36306,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-27T16:00:00+00:00","num_standard_timeseries":36295,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-27T17:00:00+00:00","num_standard_timeseries":36364,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-27T18:00:00+00:00","num_standard_timeseries":36300,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-27T19:00:00+00:00","num_standard_timeseries":36289,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-27T20:00:00+00:00","num_standard_timeseries":36294,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-27T21:00:00+00:00","num_standard_timeseries":36372,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-27T22:00:00+00:00","num_standard_timeseries":36327,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-27T23:00:00+00:00","num_standard_timeseries":36295,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":103,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":1,"hour":"2022-03-28T00:00:00+00:00","num_standard_timeseries":36417,"num_custom_output_timeseries":83,"num_custom_timeseries":96,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":93,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-28T01:00:00+00:00","num_standard_timeseries":36427,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":93,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-28T02:00:00+00:00","num_standard_timeseries":36370,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":93,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-28T03:00:00+00:00","num_standard_timeseries":36366,"num_custom_output_timeseries":82,"num_custom_timeseries":95,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":93,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-28T04:00:00+00:00","num_standard_timeseries":36361,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-28T05:00:00+00:00","num_standard_timeseries":36371,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-28T06:00:00+00:00","num_standard_timeseries":36292,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-28T07:00:00+00:00","num_standard_timeseries":36304,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-28T08:00:00+00:00","num_standard_timeseries":36308,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-28T09:00:00+00:00","num_standard_timeseries":36378,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-28T10:00:00+00:00","num_standard_timeseries":36304,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-28T11:00:00+00:00","num_standard_timeseries":36307,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":1,"hour":"2022-03-28T12:00:00+00:00","num_standard_timeseries":36363,"num_custom_output_timeseries":83,"num_custom_timeseries":94,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-28T13:00:00+00:00","num_standard_timeseries":36382,"num_custom_output_timeseries":82,"num_custom_timeseries":94,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-28T14:00:00+00:00","num_standard_timeseries":36293,"num_custom_output_timeseries":82,"num_custom_timeseries":94,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-28T15:00:00+00:00","num_standard_timeseries":36295,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-28T16:00:00+00:00","num_standard_timeseries":36299,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-28T17:00:00+00:00","num_standard_timeseries":36356,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":1,"hour":"2022-03-28T18:00:00+00:00","num_standard_timeseries":36387,"num_custom_output_timeseries":87,"num_custom_timeseries":105,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-28T19:00:00+00:00","num_standard_timeseries":36083,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":2,"hour":"2022-03-28T20:00:00+00:00","num_standard_timeseries":36082,"num_custom_output_timeseries":82,"num_custom_timeseries":101,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":93,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-28T21:00:00+00:00","num_standard_timeseries":36312,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-28T22:00:00+00:00","num_standard_timeseries":36073,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0},{"org_name":"DD + Integration Tests (321813)","num_standard_output_timeseries":77,"public_id":"fasjyydbcgwwc2uc","num_custom_input_timeseries":0,"hour":"2022-03-28T23:00:00+00:00","num_standard_timeseries":36078,"num_custom_output_timeseries":82,"num_custom_timeseries":93,"num_standard_input_timeseries":0}]}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_hosts_and_containers_returns_Bad_Request_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_hosts_and_containers_returns_Bad_Request_response.freeze new file mode 100644 index 00000000000..72182ad1290 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_hosts_and_containers_returns_Bad_Request_response.freeze @@ -0,0 +1 @@ +2022-04-01T00:41:30.106Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_hosts_and_containers_returns_Bad_Request_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_hosts_and_containers_returns_Bad_Request_response.yaml new file mode 100644 index 00000000000..0f1389ab8f6 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_hosts_and_containers_returns_Bad_Request_response.yaml @@ -0,0 +1,18 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/hosts?start_hr=2022-03-29T00%3A41%3A30.106Z&end_hr=2022-03-27T00%3A41%3A30.106Z + response: + body: '{"errors": ["start_hr [YYYY-MM-DDThh] must be before end_hr [YYYY-MM-DDThh]"]}' + code: 400 + duration: '' + headers: + Content-Type: + - application/json + status: 400 Bad Request +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_hosts_and_containers_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_hosts_and_containers_returns_OK_response.freeze new file mode 100644 index 00000000000..82d7f7b67ae --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_hosts_and_containers_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-04-01T00:41:30.234Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_hosts_and_containers_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_hosts_and_containers_returns_OK_response.yaml new file mode 100644 index 00000000000..edd738a91d1 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_hourly_usage_for_hosts_and_containers_returns_OK_response.yaml @@ -0,0 +1,65 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/usage/hosts?start_hr=2022-03-27T00%3A41%3A30.234Z&end_hr=2022-03-29T00%3A41%3A30.234Z + response: + body: '{"usage":[{"host_count":14,"org_name":"DD Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T00:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T01:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T02:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T03:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T04:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T05:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T06:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T07:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T08:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T09:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T10:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T11:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T12:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T13:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T14:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T15:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T16:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T17:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T18:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T19:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T20:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T21:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T22:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-27T23:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T00:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T01:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T02:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T03:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T04:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T05:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T06:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T07:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T08:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T09:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T10:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T11:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T12:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T13:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T14:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T15:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T16:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T17:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T18:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T19:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T20:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T21:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T22:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0},{"host_count":14,"org_name":"DD + Integration Tests (321813)","container_count":null,"public_id":"fasjyydbcgwwc2uc","hour":"2022-03-28T23:00:00+00:00","alibaba_host_count":0,"agent_host_count":14,"apm_host_count":8,"org_id":321813,"apm_trace_count":0,"npm_host_count":null,"vsphere_host_count":0,"azure_host_count":0,"apm_azure_app_service_host_count":0,"gcp_host_count":0,"heroku_host_count":0,"infra_azure_app_service":0,"aws_host_count":0,"opentelemetry_host_count":0,"unbillable_host_count":0}]}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_specified_daily_custom_reports_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_specified_daily_custom_reports_returns_OK_response.freeze new file mode 100644 index 00000000000..89dd3f2f746 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_specified_daily_custom_reports_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-03-30T18:31:15.252Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_specified_daily_custom_reports_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_specified_daily_custom_reports_returns_OK_response.yaml new file mode 100644 index 00000000000..fe0c841aaf3 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_specified_daily_custom_reports_returns_OK_response.yaml @@ -0,0 +1,18 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/daily_custom_reports/2022-03-20 + response: + body: '{"meta":{"page":{"total_count":1}},"data":{"type":"reports","id":"2022-03-20","attributes":{"tags":["project"],"start_date":"2022-03-20","end_date":"2022-03-20","size":10247,"computed_on":"2022-03-21T11:48:01+00:00","location":"https://dd-michelada-custom-reporting-prod.s3.amazonaws.com/subscription_job_zipper/1.0/2022/03/20/1/550/daily_report_2022-03-20.zip?AWSAccessKeyId=ASIAWYLNJGWWCXCR4V7V&Signature=I7cpEqhY5%2BXEFlsYzxA57a%2BYnHk%3D&x-amz-security-token=IQoJb3JpZ2luX2VjEGsaCXVzLWVhc3QtMSJHMEUCIEXGsulBAsPHdZRek1V56QMDUifIBwCWlJLQbiXZtZeZAiEA7XmK8wJwFM9FYFTuWqXd%2FAZOgScwd2EElr%2FUMJU8EHYqtAII9P%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARAAGgw0NjQ2MjI1MzIwMTIiDIBxf%2FLE%2F8pisemenyqIAvOZUzJItp6MlR%2BAasSF7mKWn8dqAbcSWsSIk26bBfnZnJKIapLNO87CNK5XY%2BRQGlQtiedFTeM70882IMR4yeTbHR2V%2F1IhNorCwuitJ9Bt3pfyEIA5wfFm30vPk%2F8TpTxh3kU9yDksIy3LKhh72zH%2BOE58W41Xsbe%2B1Up7EjH6MvwgGTnkdro%2BADAaC%2Bk2E7ziAzRTh8bVqDbyt6nFw38sCiAxISIzLyKUNSE2LF4V6R%2FoKM2OYjKkCAtcEyuaZlruLuyq64HDXOasTZPGdPEPnKn1HDYa95i4SDoJcRJeFNQFmG2xtueUx63zOg8dMRfEeCEwOhbS6y9pmcCsqYOMzcVDW8UNxDD1wZKSBjqdARNDm0Wuz7QRUfPFC9L4WZPg1POnUSKJ40XYyzWYbn9hKNocw0vyFUVx07mFUUBKZhPBJQHFTWhabDq%2FmVWCV%2FDQ73ruhCMjx7%2Bo0tnGUGuY3fTzBkDTSfoEsoAKYdWcMWXcFwnnItX3Q3Y8TwWUoy1hyB1QDc1zIVxid1PqnV5%2FBnTYYzGw8Z2zFaPR%2FMt%2FCJaLPwBEvc%2F7v6IrqUA%3D&Expires=1648665975"}}}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_specified_monthly_custom_reports_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_specified_monthly_custom_reports_returns_OK_response.freeze new file mode 100644 index 00000000000..88149649cd9 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_specified_monthly_custom_reports_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-03-30T18:31:15.717Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_specified_monthly_custom_reports_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_specified_monthly_custom_reports_returns_OK_response.yaml new file mode 100644 index 00000000000..ff4ad256dba --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_specified_monthly_custom_reports_returns_OK_response.yaml @@ -0,0 +1,18 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/monthly_custom_reports/2021-05-01 + response: + body: '{"meta":{"page":{"total_count":1}},"data":{"type":"reports","id":"2021-05-01","attributes":{"tags":["project"],"start_date":"2021-05-01","end_date":"2021-06-01","size":12397,"computed_on":"2021-06-01T18:47:43+00:00","location":"https://dd-michelada-custom-reporting-prod.s3.amazonaws.com/org_month_custom_reporting/1.0/2021/05/0/550/monthly_report_2021-05.zip?AWSAccessKeyId=ASIAWYLNJGWWCXCR4V7V&Signature=izgOSTDQwRnELRSMM%2BF10Nlhq8A%3D&x-amz-security-token=IQoJb3JpZ2luX2VjEGsaCXVzLWVhc3QtMSJHMEUCIEXGsulBAsPHdZRek1V56QMDUifIBwCWlJLQbiXZtZeZAiEA7XmK8wJwFM9FYFTuWqXd%2FAZOgScwd2EElr%2FUMJU8EHYqtAII9P%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARAAGgw0NjQ2MjI1MzIwMTIiDIBxf%2FLE%2F8pisemenyqIAvOZUzJItp6MlR%2BAasSF7mKWn8dqAbcSWsSIk26bBfnZnJKIapLNO87CNK5XY%2BRQGlQtiedFTeM70882IMR4yeTbHR2V%2F1IhNorCwuitJ9Bt3pfyEIA5wfFm30vPk%2F8TpTxh3kU9yDksIy3LKhh72zH%2BOE58W41Xsbe%2B1Up7EjH6MvwgGTnkdro%2BADAaC%2Bk2E7ziAzRTh8bVqDbyt6nFw38sCiAxISIzLyKUNSE2LF4V6R%2FoKM2OYjKkCAtcEyuaZlruLuyq64HDXOasTZPGdPEPnKn1HDYa95i4SDoJcRJeFNQFmG2xtueUx63zOg8dMRfEeCEwOhbS6y9pmcCsqYOMzcVDW8UNxDD1wZKSBjqdARNDm0Wuz7QRUfPFC9L4WZPg1POnUSKJ40XYyzWYbn9hKNocw0vyFUVx07mFUUBKZhPBJQHFTWhabDq%2FmVWCV%2FDQ73ruhCMjx7%2Bo0tnGUGuY3fTzBkDTSfoEsoAKYdWcMWXcFwnnItX3Q3Y8TwWUoy1hyB1QDc1zIVxid1PqnV5%2FBnTYYzGw8Z2zFaPR%2FMt%2FCJaLPwBEvc%2F7v6IrqUA%3D&Expires=1648665976"}}}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_the_list_of_available_daily_custom_reports_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_the_list_of_available_daily_custom_reports_returns_OK_response.freeze new file mode 100644 index 00000000000..dc8ccc79132 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_the_list_of_available_daily_custom_reports_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-04-01T00:41:30.689Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_the_list_of_available_daily_custom_reports_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_the_list_of_available_daily_custom_reports_returns_OK_response.yaml new file mode 100644 index 00000000000..42c34d829c6 --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_the_list_of_available_daily_custom_reports_returns_OK_response.yaml @@ -0,0 +1,18 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/daily_custom_reports + response: + body: '{"meta":{"page":{"total_count":397}},"data":[{"type":"reports","id":"2022-03-30","attributes":{"tags":["project"],"start_date":"2022-03-30","end_date":"2022-03-30","size":11887,"computed_on":"2022-03-31T13:22:53+00:00"}},{"type":"reports","id":"2022-03-29","attributes":{"tags":["project"],"start_date":"2022-03-29","end_date":"2022-03-29","size":11141,"computed_on":"2022-03-30T19:59:17+00:00"}},{"type":"reports","id":"2022-03-28","attributes":{"tags":["project"],"start_date":"2022-03-28","end_date":"2022-03-28","size":11088,"computed_on":"2022-03-29T11:57:38+00:00"}},{"type":"reports","id":"2022-03-27","attributes":{"tags":["project"],"start_date":"2022-03-27","end_date":"2022-03-27","size":11277,"computed_on":"2022-03-28T12:39:05+00:00"}},{"type":"reports","id":"2022-03-26","attributes":{"tags":["project"],"start_date":"2022-03-26","end_date":"2022-03-26","size":11277,"computed_on":"2022-03-27T12:33:52+00:00"}},{"type":"reports","id":"2022-03-25","attributes":{"tags":["project"],"start_date":"2022-03-25","end_date":"2022-03-25","size":11259,"computed_on":"2022-03-26T11:33:26+00:00"}},{"type":"reports","id":"2022-03-24","attributes":{"tags":["project"],"start_date":"2022-03-24","end_date":"2022-03-24","size":11253,"computed_on":"2022-03-25T12:35:16+00:00"}},{"type":"reports","id":"2022-03-23","attributes":{"tags":["project"],"start_date":"2022-03-23","end_date":"2022-03-23","size":10890,"computed_on":"2022-03-24T11:40:57+00:00"}},{"type":"reports","id":"2022-03-22","attributes":{"tags":["project"],"start_date":"2022-03-22","end_date":"2022-03-22","size":11134,"computed_on":"2022-03-23T11:53:55+00:00"}},{"type":"reports","id":"2022-03-21","attributes":{"tags":["project"],"start_date":"2022-03-21","end_date":"2022-03-21","size":10850,"computed_on":"2022-03-22T11:45:29+00:00"}},{"type":"reports","id":"2022-03-20","attributes":{"tags":["project"],"start_date":"2022-03-20","end_date":"2022-03-20","size":10247,"computed_on":"2022-03-21T11:48:01+00:00"}},{"type":"reports","id":"2022-03-19","attributes":{"tags":["project"],"start_date":"2022-03-19","end_date":"2022-03-19","size":10247,"computed_on":"2022-03-20T12:35:11+00:00"}},{"type":"reports","id":"2022-03-18","attributes":{"tags":["project"],"start_date":"2022-03-18","end_date":"2022-03-18","size":10970,"computed_on":"2022-03-19T12:16:44+00:00"}},{"type":"reports","id":"2022-03-17","attributes":{"tags":["project"],"start_date":"2022-03-17","end_date":"2022-03-17","size":11253,"computed_on":"2022-03-18T15:36:07+00:00"}},{"type":"reports","id":"2022-03-16","attributes":{"tags":["project"],"start_date":"2022-03-16","end_date":"2022-03-16","size":11257,"computed_on":"2022-03-17T11:46:13+00:00"}},{"type":"reports","id":"2022-03-15","attributes":{"tags":["project"],"start_date":"2022-03-15","end_date":"2022-03-15","size":11253,"computed_on":"2022-03-16T12:02:15+00:00"}},{"type":"reports","id":"2022-03-14","attributes":{"tags":["project"],"start_date":"2022-03-14","end_date":"2022-03-14","size":11257,"computed_on":"2022-03-15T12:10:44+00:00"}},{"type":"reports","id":"2022-03-13","attributes":{"tags":["project"],"start_date":"2022-03-13","end_date":"2022-03-13","size":11253,"computed_on":"2022-03-31T18:56:21+00:00"}},{"type":"reports","id":"2022-03-12","attributes":{"tags":["project"],"start_date":"2022-03-12","end_date":"2022-03-12","size":11253,"computed_on":"2022-03-31T18:38:30+00:00"}},{"type":"reports","id":"2022-03-11","attributes":{"tags":["project"],"start_date":"2022-03-11","end_date":"2022-03-11","size":11256,"computed_on":"2022-03-31T18:20:09+00:00"}},{"type":"reports","id":"2022-03-10","attributes":{"tags":["project"],"start_date":"2022-03-10","end_date":"2022-03-10","size":11253,"computed_on":"2022-03-31T18:01:15+00:00"}},{"type":"reports","id":"2022-03-09","attributes":{"tags":["project"],"start_date":"2022-03-09","end_date":"2022-03-09","size":11250,"computed_on":"2022-03-31T17:43:15+00:00"}},{"type":"reports","id":"2022-03-08","attributes":{"tags":["project"],"start_date":"2022-03-08","end_date":"2022-03-08","size":11067,"computed_on":"2022-03-31T17:24:33+00:00"}},{"type":"reports","id":"2022-03-07","attributes":{"tags":["project"],"start_date":"2022-03-07","end_date":"2022-03-07","size":11132,"computed_on":"2022-03-31T17:05:58+00:00"}},{"type":"reports","id":"2022-03-06","attributes":{"tags":["project"],"start_date":"2022-03-06","end_date":"2022-03-06","size":11253,"computed_on":"2022-03-31T16:47:01+00:00"}},{"type":"reports","id":"2022-03-05","attributes":{"tags":["project"],"start_date":"2022-03-05","end_date":"2022-03-05","size":11251,"computed_on":"2022-03-31T16:29:16+00:00"}},{"type":"reports","id":"2022-03-04","attributes":{"tags":["project"],"start_date":"2022-03-04","end_date":"2022-03-04","size":11021,"computed_on":"2022-03-31T16:11:45+00:00"}},{"type":"reports","id":"2022-03-03","attributes":{"tags":["project"],"start_date":"2022-03-03","end_date":"2022-03-03","size":10168,"computed_on":"2022-03-31T15:54:47+00:00"}},{"type":"reports","id":"2022-03-02","attributes":{"tags":["project"],"start_date":"2022-03-02","end_date":"2022-03-02","size":10295,"computed_on":"2022-03-31T15:37:20+00:00"}},{"type":"reports","id":"2022-03-01","attributes":{"tags":["project"],"start_date":"2022-03-01","end_date":"2022-03-01","size":10112,"computed_on":"2022-03-31T15:20:26+00:00"}},{"type":"reports","id":"2022-02-28","attributes":{"tags":["project"],"start_date":"2022-02-28","end_date":"2022-02-28","size":9623,"computed_on":"2022-03-01T11:42:11+00:00"}},{"type":"reports","id":"2022-02-27","attributes":{"tags":["project"],"start_date":"2022-02-27","end_date":"2022-02-27","size":9635,"computed_on":"2022-02-28T11:31:54+00:00"}},{"type":"reports","id":"2022-02-26","attributes":{"tags":["project"],"start_date":"2022-02-26","end_date":"2022-02-26","size":9635,"computed_on":"2022-02-27T11:19:34+00:00"}},{"type":"reports","id":"2022-02-25","attributes":{"tags":["project"],"start_date":"2022-02-25","end_date":"2022-02-25","size":10325,"computed_on":"2022-02-26T11:31:41+00:00"}},{"type":"reports","id":"2022-02-24","attributes":{"tags":["project"],"start_date":"2022-02-24","end_date":"2022-02-24","size":10162,"computed_on":"2022-02-25T11:42:33+00:00"}},{"type":"reports","id":"2022-02-23","attributes":{"tags":["project"],"start_date":"2022-02-23","end_date":"2022-02-23","size":11840,"computed_on":"2022-02-24T11:52:42+00:00"}},{"type":"reports","id":"2022-02-22","attributes":{"tags":["project"],"start_date":"2022-02-22","end_date":"2022-02-22","size":10201,"computed_on":"2022-02-23T13:44:21+00:00"}},{"type":"reports","id":"2022-02-21","attributes":{"tags":["project"],"start_date":"2022-02-21","end_date":"2022-02-21","size":10253,"computed_on":"2022-02-22T12:54:00+00:00"}},{"type":"reports","id":"2022-02-20","attributes":{"tags":["project"],"start_date":"2022-02-20","end_date":"2022-02-20","size":10253,"computed_on":"2022-02-21T11:42:26+00:00"}},{"type":"reports","id":"2022-02-19","attributes":{"tags":["project"],"start_date":"2022-02-19","end_date":"2022-02-19","size":10253,"computed_on":"2022-02-20T11:59:36+00:00"}},{"type":"reports","id":"2022-02-18","attributes":{"tags":["project"],"start_date":"2022-02-18","end_date":"2022-02-18","size":10253,"computed_on":"2022-02-19T13:20:42+00:00"}},{"type":"reports","id":"2022-02-17","attributes":{"tags":["project"],"start_date":"2022-02-17","end_date":"2022-02-17","size":10253,"computed_on":"2022-02-18T13:19:10+00:00"}},{"type":"reports","id":"2022-02-16","attributes":{"tags":["project"],"start_date":"2022-02-16","end_date":"2022-02-16","size":11200,"computed_on":"2022-02-17T12:43:57+00:00"}},{"type":"reports","id":"2022-02-15","attributes":{"tags":["project"],"start_date":"2022-02-15","end_date":"2022-02-15","size":11839,"computed_on":"2022-02-16T11:40:11+00:00"}},{"type":"reports","id":"2022-02-14","attributes":{"tags":["project"],"start_date":"2022-02-14","end_date":"2022-02-14","size":10488,"computed_on":"2022-02-15T13:56:48+00:00"}},{"type":"reports","id":"2022-02-13","attributes":{"tags":["project"],"start_date":"2022-02-13","end_date":"2022-02-13","size":9222,"computed_on":"2022-02-14T11:18:48+00:00"}},{"type":"reports","id":"2022-02-12","attributes":{"tags":["project"],"start_date":"2022-02-12","end_date":"2022-02-12","size":9219,"computed_on":"2022-02-13T12:09:53+00:00"}},{"type":"reports","id":"2022-02-11","attributes":{"tags":["project"],"start_date":"2022-02-11","end_date":"2022-02-11","size":15226,"computed_on":"2022-02-12T11:29:42+00:00"}},{"type":"reports","id":"2022-02-10","attributes":{"tags":["project"],"start_date":"2022-02-10","end_date":"2022-02-10","size":12803,"computed_on":"2022-02-11T12:58:43+00:00"}},{"type":"reports","id":"2022-02-09","attributes":{"tags":["project"],"start_date":"2022-02-09","end_date":"2022-02-09","size":9818,"computed_on":"2022-02-10T13:23:20+00:00"}},{"type":"reports","id":"2022-02-08","attributes":{"tags":["project"],"start_date":"2022-02-08","end_date":"2022-02-08","size":10105,"computed_on":"2022-02-09T13:13:24+00:00"}},{"type":"reports","id":"2022-02-07","attributes":{"tags":["project"],"start_date":"2022-02-07","end_date":"2022-02-07","size":10232,"computed_on":"2022-02-08T13:00:00+00:00"}},{"type":"reports","id":"2022-02-06","attributes":{"tags":["project"],"start_date":"2022-02-06","end_date":"2022-02-06","size":10229,"computed_on":"2022-02-07T11:01:35+00:00"}},{"type":"reports","id":"2022-02-05","attributes":{"tags":["project"],"start_date":"2022-02-05","end_date":"2022-02-05","size":10229,"computed_on":"2022-02-06T11:52:57+00:00"}},{"type":"reports","id":"2022-02-04","attributes":{"tags":["project"],"start_date":"2022-02-04","end_date":"2022-02-04","size":9855,"computed_on":"2022-02-05T11:53:22+00:00"}},{"type":"reports","id":"2022-02-03","attributes":{"tags":["project"],"start_date":"2022-02-03","end_date":"2022-02-03","size":11314,"computed_on":"2022-02-04T12:26:10+00:00"}},{"type":"reports","id":"2022-02-02","attributes":{"tags":["project"],"start_date":"2022-02-02","end_date":"2022-02-02","size":9535,"computed_on":"2022-02-03T15:30:14+00:00"}},{"type":"reports","id":"2022-02-01","attributes":{"tags":["project"],"start_date":"2022-02-01","end_date":"2022-02-01","size":9202,"computed_on":"2022-02-02T12:30:57+00:00"}},{"type":"reports","id":"2022-01-31","attributes":{"tags":["project"],"start_date":"2022-01-31","end_date":"2022-01-31","size":9277,"computed_on":"2022-02-01T12:46:32+00:00"}},{"type":"reports","id":"2022-01-30","attributes":{"tags":["project"],"start_date":"2022-01-30","end_date":"2022-01-30","size":9275,"computed_on":"2022-01-31T12:27:45+00:00"}}]}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_the_list_of_available_monthly_custom_reports_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_the_list_of_available_monthly_custom_reports_returns_OK_response.freeze new file mode 100644 index 00000000000..d99f7f8b23d --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_the_list_of_available_monthly_custom_reports_returns_OK_response.freeze @@ -0,0 +1 @@ +2022-04-01T00:41:31.006Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_the_list_of_available_monthly_custom_reports_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_the_list_of_available_monthly_custom_reports_returns_OK_response.yaml new file mode 100644 index 00000000000..60071a8beaa --- /dev/null +++ b/tests/scenarios/cassettes/TestScenarios/v1/Feature_Usage_Metering/Scenario_Get_the_list_of_available_monthly_custom_reports_returns_OK_response.yaml @@ -0,0 +1,18 @@ +interactions: +- request: + body: '' + form: {} + headers: + Accept: + - application/json;datetime-format=rfc3339 + method: GET + url: https://api.datadoghq.com/api/v1/monthly_custom_reports + response: + body: '{"meta":{"page":{"total_count":13}},"data":[{"type":"reports","id":"2022-02-01","attributes":{"tags":["project"],"start_date":"2022-02-01","end_date":"2022-03-01","size":20340,"computed_on":"2022-03-08T20:44:56+00:00"}},{"type":"reports","id":"2022-01-01","attributes":{"tags":["project"],"start_date":"2022-01-01","end_date":"2022-02-01","size":22697,"computed_on":"2022-02-01T16:50:14+00:00"}},{"type":"reports","id":"2021-12-01","attributes":{"tags":["project"],"start_date":"2021-12-01","end_date":"2022-01-01","size":29169,"computed_on":"2022-01-01T15:54:13+00:00"}},{"type":"reports","id":"2021-11-01","attributes":{"tags":["project"],"start_date":"2021-11-01","end_date":"2021-12-01","size":19416,"computed_on":"2021-12-01T18:17:01+00:00"}},{"type":"reports","id":"2021-10-01","attributes":{"tags":["project"],"start_date":"2021-10-01","end_date":"2021-11-01","size":27977,"computed_on":"2021-11-01T15:14:43+00:00"}},{"type":"reports","id":"2021-09-01","attributes":{"tags":["project"],"start_date":"2021-09-01","end_date":"2021-10-01","size":20126,"computed_on":"2021-10-01T17:53:32+00:00"}},{"type":"reports","id":"2021-08-01","attributes":{"tags":["project"],"start_date":"2021-08-01","end_date":"2021-09-01","size":21429,"computed_on":"2021-09-01T18:05:42+00:00"}},{"type":"reports","id":"2021-07-01","attributes":{"tags":["project"],"start_date":"2021-07-01","end_date":"2021-08-01","size":21226,"computed_on":"2021-08-01T21:02:05+00:00"}},{"type":"reports","id":"2021-06-01","attributes":{"tags":["project"],"start_date":"2021-06-01","end_date":"2021-07-01","size":19206,"computed_on":"2021-07-02T01:10:11+00:00"}},{"type":"reports","id":"2021-05-01","attributes":{"tags":["project"],"start_date":"2021-05-01","end_date":"2021-06-01","size":12397,"computed_on":"2021-06-01T18:47:43+00:00"}},{"type":"reports","id":"2021-04-01","attributes":{"tags":["project"],"start_date":"2021-04-01","end_date":"2021-05-01","size":24230,"computed_on":"2021-05-01T20:21:29+00:00"}},{"type":"reports","id":"2021-03-01","attributes":{"tags":["project"],"start_date":"2021-03-01","end_date":"2021-04-01","size":33516,"computed_on":"2021-04-15T18:59:09+00:00"}},{"type":"reports","id":"2021-02-01","attributes":{"tags":["project"],"start_date":"2021-02-01","end_date":"2021-03-01","size":35757,"computed_on":"2021-03-02T15:37:35+00:00"}}]}' + code: 200 + duration: '' + headers: + Content-Type: + - application/json + status: 200 OK +version: 1 diff --git a/tests/scenarios/features/v1/usage_metering.feature b/tests/scenarios/features/v1/usage_metering.feature index 730d1e0da61..1c45c27f234 100644 --- a/tests/scenarios/features/v1/usage_metering.feature +++ b/tests/scenarios/features/v1/usage_metering.feature @@ -61,15 +61,16 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get all custom metrics by hourly average returns "Bad Request" response Given new "GetUsageTopAvgMetrics" request When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get all custom metrics by hourly average returns "OK" response Given new "GetUsageTopAvgMetrics" request + And request contains "day" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK @@ -82,20 +83,23 @@ Feature: Usage Metering @generated @skip @team:DataDog/red-zone-revenue-query Scenario: Get billable usage across your account returns "OK" response Given new "GetUsageBillableSummary" request + And request contains "month" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly logs usage by retention returns "Bad Request" response Given new "GetUsageLogsByRetention" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 5d') }}" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly logs usage by retention returns "OK" response Given new "GetUsageLogsByRetention" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK @@ -136,10 +140,11 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for Cloud Workload Security returns "OK" response Given new "GetUsageCWS" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK @@ -150,24 +155,27 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for Database Monitoring returns "OK" response Given new "GetUsageDBM" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for Fargate returns "Bad Request" response Given new "GetUsageFargate" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 5d') }}" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for Fargate returns "OK" response Given new "GetUsageFargate" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK @@ -187,73 +195,83 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for Lambda returns "Bad Request" response Given new "GetUsageLambda" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 5d') }}" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for Lambda returns "OK" response Given new "GetUsageLambda" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for Logs by Index returns "Bad Request" response Given new "GetUsageLogsByIndex" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 5d') }}" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for Logs by Index returns "OK" response Given new "GetUsageLogsByIndex" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for Logs returns "Bad Request" response Given new "GetUsageLogs" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 5d') }}" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for Logs returns "OK" response Given new "GetUsageLogs" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for Network Flows returns "Bad Request" response Given new "GetUsageNetworkFlows" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 5d') }}" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for Network Flows returns "OK" response Given new "GetUsageNetworkFlows" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for Network Hosts returns "Bad Request" response Given new "GetUsageNetworkHosts" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 5d') }}" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for Network Hosts returns "OK" response Given new "GetUsageNetworkHosts" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK @@ -273,17 +291,19 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for RUM Sessions returns "Bad Request" response Given new "GetUsageRumSessions" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 5d') }}" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for RUM Sessions returns "OK" response Given new "GetUsageRumSessions" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK @@ -294,10 +314,11 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for RUM Units returns "OK" response Given new "GetUsageRumUnits" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK @@ -324,38 +345,43 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for Sensitive Data Scanner returns "OK" response Given new "GetUsageSDS" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for Synthetics API Checks returns "Bad Request" response Given new "GetUsageSyntheticsAPI" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 5d') }}" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for Synthetics API Checks returns "OK" response Given new "GetUsageSyntheticsAPI" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for Synthetics Browser Checks returns "Bad Request" response Given new "GetUsageSyntheticsBrowser" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 5d') }}" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for Synthetics Browser Checks returns "OK" response Given new "GetUsageSyntheticsBrowser" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK @@ -396,38 +422,43 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for audit logs returns "OK" response Given new "GetUsageAuditLogs" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for custom metrics returns "Bad Request" response Given new "GetUsageTimeseries" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 5d') }}" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for custom metrics returns "OK" response Given new "GetUsageTimeseries" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for hosts and containers returns "Bad Request" response Given new "GetUsageHosts" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 5d') }}" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get hourly usage for hosts and containers returns "OK" response Given new "GetUsageHosts" request - And request contains "start_hr" parameter from "REPLACE.ME" + And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" + And request contains "end_hr" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK @@ -503,11 +534,11 @@ Feature: Usage Metering When the request is sent Then the response status is 404 Not Found - @generated @skip @team:DataDog/red-zone-revenue-query + @replay-only @team:DataDog/red-zone-revenue-query Scenario: Get specified daily custom reports returns "OK" response Given operation "GetSpecifiedDailyCustomReports" enabled And new "GetSpecifiedDailyCustomReports" request - And request contains "report_id" parameter from "REPLACE.ME" + And request contains "report_id" parameter with value "2022-03-20" When the request is sent Then the response status is 200 OK @@ -527,22 +558,22 @@ Feature: Usage Metering When the request is sent Then the response status is 404 Not Found - @generated @skip @team:DataDog/red-zone-revenue-query + @replay-only @team:DataDog/red-zone-revenue-query Scenario: Get specified monthly custom reports returns "OK" response Given operation "GetSpecifiedMonthlyCustomReports" enabled And new "GetSpecifiedMonthlyCustomReports" request - And request contains "report_id" parameter from "REPLACE.ME" + And request contains "report_id" parameter with value "2021-05-01" When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get the list of available daily custom reports returns "OK" response Given operation "GetDailyCustomReports" enabled And new "GetDailyCustomReports" request When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/red-zone-revenue-query + @team:DataDog/red-zone-revenue-query Scenario: Get the list of available monthly custom reports returns "OK" response Given operation "GetMonthlyCustomReports" enabled And new "GetMonthlyCustomReports" request