From a85456e8453a7a30cca6ee7a9a83f40be9432379 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 5 May 2026 12:19:15 +0000 Subject: [PATCH] Regenerate client from commit 2a0e5a8 of spec repo --- tests/v1/features/usage_metering.feature | 188 +++++++++++------------ tests/v2/features/usage_metering.feature | 54 +++---- 2 files changed, 121 insertions(+), 121 deletions(-) diff --git a/tests/v1/features/usage_metering.feature b/tests/v1/features/usage_metering.feature index ea9e1ca4b4..e8651834ac 100644 --- a/tests/v1/features/usage_metering.feature +++ b/tests/v1/features/usage_metering.feature @@ -14,32 +14,32 @@ Feature: Usage Metering And a valid "appKeyAuth" key in the system And an instance of "UsageMetering" API - @team:DataDog/revenue-query + @team:DataDog/billing-hub 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 - @team:DataDog/revenue-query + @team:DataDog/billing-hub 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 - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get billable usage across your account returns "Bad Request" response Given new "GetUsageBillableSummary" request When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get billable usage across your account returns "OK" response Given new "GetUsageBillableSummary" request When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly logs usage by retention returns "Bad Request" response Given new "GetUsageLogsByRetention" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -47,7 +47,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly logs usage by retention returns "OK" response Given new "GetUsageLogsByRetention" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -55,7 +55,7 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage attribution returns "Bad Request" response Given new "GetHourlyUsageAttribution" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -63,7 +63,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @team:DataDog/revenue-query + @team:DataDog/billing-hub Scenario: Get hourly usage attribution returns "OK" response Given new "GetHourlyUsageAttribution" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -71,7 +71,7 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for CI visibility returns "Bad Request" response Given new "GetUsageCIApp" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -79,7 +79,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for CI visibility returns "OK" response Given new "GetUsageCIApp" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -87,21 +87,21 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for CSM Pro returns "Bad Request" response Given new "GetUsageCloudSecurityPostureManagement" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for CSM Pro returns "OK" response Given new "GetUsageCloudSecurityPostureManagement" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for Database Monitoring returns "OK" response Given new "GetUsageDBM" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -109,7 +109,7 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for Fargate returns "Bad Request" response Given new "GetUsageFargate" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -117,7 +117,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for Fargate returns "OK" response Given new "GetUsageFargate" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -125,7 +125,7 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for IoT returns "Bad Request" response Given new "GetUsageInternetOfThings" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -133,7 +133,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for IoT returns "OK" response Given new "GetUsageInternetOfThings" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -141,7 +141,7 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for Lambda returns "Bad Request" response Given new "GetUsageLambda" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -149,7 +149,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for Lambda returns "OK" response Given new "GetUsageLambda" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -157,7 +157,7 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @team:DataDog/revenue-query + @team:DataDog/billing-hub Scenario: Get hourly usage for Logs by Index returns "Bad Request" response Given new "GetUsageLogsByIndex" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -165,7 +165,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @team:DataDog/revenue-query + @team:DataDog/billing-hub Scenario: Get hourly usage for Logs by Index returns "OK" response Given new "GetUsageLogsByIndex" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -173,7 +173,7 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for Logs returns "Bad Request" response Given new "GetUsageLogs" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -181,7 +181,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for Logs returns "OK" response Given new "GetUsageLogs" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -189,7 +189,7 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for Network Flows returns "Bad Request" response Given new "GetUsageNetworkFlows" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -197,7 +197,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for Network Flows returns "OK" response Given new "GetUsageNetworkFlows" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -205,7 +205,7 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for Network Hosts returns "Bad Request" response Given new "GetUsageNetworkHosts" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -213,7 +213,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for Network Hosts returns "OK" response Given new "GetUsageNetworkHosts" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -221,7 +221,7 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for Online Archive returns "Bad Request" response Given new "GetUsageOnlineArchive" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -229,7 +229,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for Online Archive returns "OK" response Given new "GetUsageOnlineArchive" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -237,7 +237,7 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for RUM Sessions returns "Bad Request" response Given new "GetUsageRumSessions" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -245,7 +245,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for RUM Sessions returns "OK" response Given new "GetUsageRumSessions" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -253,7 +253,7 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for RUM Units returns "OK" response Given new "GetUsageRumUnits" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -261,35 +261,35 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for RUM sessions returns "Bad Request" response Given new "GetUsageRumSessions" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for RUM sessions returns "OK" response Given new "GetUsageRumSessions" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for RUM units returns "Bad Request" response Given new "GetUsageRumUnits" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for RUM units returns "OK" response Given new "GetUsageRumUnits" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for SNMP devices returns "Bad Request" response Given new "GetUsageSNMP" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -297,7 +297,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for SNMP devices returns "OK" response Given new "GetUsageSNMP" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -305,7 +305,7 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for Sensitive Data Scanner returns "OK" response Given new "GetUsageSDS" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -313,7 +313,7 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for Synthetics API Checks returns "Bad Request" response Given new "GetUsageSyntheticsAPI" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -321,7 +321,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for Synthetics API Checks returns "OK" response Given new "GetUsageSyntheticsAPI" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -329,7 +329,7 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for Synthetics Browser Checks returns "Bad Request" response Given new "GetUsageSyntheticsBrowser" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -337,7 +337,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for Synthetics Browser Checks returns "OK" response Given new "GetUsageSyntheticsBrowser" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -345,7 +345,7 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for analyzed logs returns "Bad Request" response Given new "GetUsageAnalyzedLogs" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -353,7 +353,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for analyzed logs returns "OK" response Given new "GetUsageAnalyzedLogs" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -361,14 +361,14 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for audit logs returns "Bad Request" response Given new "GetUsageAuditLogs" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for audit logs returns "OK" response Given new "GetUsageAuditLogs" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -376,14 +376,14 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for cloud workload security returns "Bad Request" response Given new "GetUsageCWS" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for cloud workload security returns "OK" response Given new "GetUsageCWS" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -391,7 +391,7 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for custom metrics returns "Bad Request" response Given new "GetUsageTimeseries" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -399,7 +399,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for custom metrics returns "OK" response Given new "GetUsageTimeseries" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -407,21 +407,21 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for database monitoring returns "Bad Request" response Given new "GetUsageDBM" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for database monitoring returns "OK" response Given new "GetUsageDBM" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for hosts and containers returns "Bad Request" response Given new "GetUsageHosts" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -429,7 +429,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for hosts and containers returns "OK" response Given new "GetUsageHosts" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -437,7 +437,7 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for incident management returns "Bad Request" response Given new "GetIncidentManagement" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -445,7 +445,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for incident management returns "OK" response Given new "GetIncidentManagement" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -453,7 +453,7 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for indexed spans returns "Bad Request" response Given new "GetUsageIndexedSpans" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -461,7 +461,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for indexed spans returns "OK" response Given new "GetUsageIndexedSpans" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -469,7 +469,7 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for ingested spans returns "Bad Request" response Given new "GetIngestedSpans" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -477,7 +477,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for ingested spans returns "OK" response Given new "GetIngestedSpans" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -485,63 +485,63 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub 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" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for logs by index returns "OK" response Given new "GetUsageLogsByIndex" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for logs returns "Bad Request" response Given new "GetUsageLogs" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for logs returns "OK" response Given new "GetUsageLogs" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for network hosts returns "Bad Request" response Given new "GetUsageNetworkHosts" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for network hosts returns "OK" response Given new "GetUsageNetworkHosts" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for online archive returns "Bad Request" response Given new "GetUsageOnlineArchive" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for online archive returns "OK" response Given new "GetUsageOnlineArchive" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for profiled hosts returns "Bad Request" response Given new "GetUsageProfiling" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -549,7 +549,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get hourly usage for profiled hosts returns "OK" response Given new "GetUsageProfiling" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -557,63 +557,63 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for sensitive data scanner returns "Bad Request" response Given new "GetUsageSDS" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for sensitive data scanner returns "OK" response Given new "GetUsageSDS" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub 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" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for synthetics API checks returns "OK" response Given new "GetUsageSyntheticsAPI" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub 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" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for synthetics browser checks returns "OK" response Given new "GetUsageSyntheticsBrowser" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for synthetics checks returns "Bad Request" response Given new "GetUsageSynthetics" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for synthetics checks returns "OK" response Given new "GetUsageSynthetics" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get mobile hourly usage for RUM Sessions returns "OK" response Given new "GetUsageRumSessions" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -622,7 +622,7 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get monthly usage attribution returns "Bad Request" response Given new "GetMonthlyUsageAttribution" request And request contains "start_month" parameter with value "{{ timeISO('now - 3d') }}" @@ -630,7 +630,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @team:DataDog/revenue-query + @team:DataDog/billing-hub Scenario: Get monthly usage attribution returns "OK" response Given new "GetMonthlyUsageAttribution" request And request contains "start_month" parameter with value "{{ timeISO('now - 3d') }}" @@ -638,68 +638,68 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get specified daily custom reports returns "Not Found" response Given new "GetSpecifiedDailyCustomReports" request And request contains "report_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Not Found - @replay-only @team:DataDog/revenue-query + @replay-only @team:DataDog/billing-hub Scenario: Get specified daily custom reports returns "OK" response Given new "GetSpecifiedDailyCustomReports" request And request contains "report_id" parameter with value "2022-03-20" When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get specified monthly custom reports returns "Bad Request" response Given new "GetSpecifiedMonthlyCustomReports" request And request contains "report_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get specified monthly custom reports returns "Not Found" response Given new "GetSpecifiedMonthlyCustomReports" request And request contains "report_id" parameter from "REPLACE.ME" When the request is sent Then the response status is 404 Not Found - @replay-only @team:DataDog/revenue-query + @replay-only @team:DataDog/billing-hub Scenario: Get specified monthly custom reports returns "OK" response Given new "GetSpecifiedMonthlyCustomReports" request And request contains "report_id" parameter with value "2021-05-01" When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get the list of available daily custom reports returns "OK" response Given new "GetDailyCustomReports" request When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get the list of available monthly custom reports returns "OK" response Given new "GetMonthlyCustomReports" request When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get usage across your account returns "Bad Request" response Given new "GetUsageSummary" request And request contains "start_month" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get usage across your account returns "OK" response Given new "GetUsageSummary" request And request contains "start_month" parameter from "REPLACE.ME" When the request is sent Then the response status is 200 OK - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Paginate monthly usage attribution Given there is a valid "monthly_usage_attribution" response And new "GetMonthlyUsageAttribution" request @@ -709,14 +709,14 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: get hourly usage for network flows returns "Bad Request" response Given new "GetUsageNetworkFlows" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: get hourly usage for network flows returns "OK" response Given new "GetUsageNetworkFlows" request And request contains "start_hr" parameter from "REPLACE.ME" diff --git a/tests/v2/features/usage_metering.feature b/tests/v2/features/usage_metering.feature index d953a11c08..aedd42d8d5 100644 --- a/tests/v2/features/usage_metering.feature +++ b/tests/v2/features/usage_metering.feature @@ -14,7 +14,7 @@ Feature: Usage Metering And a valid "appKeyAuth" key in the system And an instance of "UsageMetering" API - @replay-only @team:DataDog/revenue-query + @replay-only @team:DataDog/billing-hub Scenario: Get Monthly Cost Attribution returns "Bad Request" response Given new "GetMonthlyCostAttribution" request And request contains "start_month" parameter with value "{{ timeISO('now - 5d') }}" @@ -23,7 +23,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @replay-only @team:DataDog/revenue-query + @replay-only @team:DataDog/billing-hub Scenario: Get Monthly Cost Attribution returns "OK" response Given new "GetMonthlyCostAttribution" request And request contains "start_month" parameter with value "{{ timeISO('now - 5d') }}" @@ -32,64 +32,64 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get active billing dimensions for cost attribution returns "Bad Request" response Given new "GetActiveBillingDimensions" request When the request is sent Then the response status is 400 Bad Request - @team:DataDog/revenue-query + @team:DataDog/billing-hub Scenario: Get active billing dimensions for cost attribution returns "OK" response Given new "GetActiveBillingDimensions" request When the request is sent Then the response status is 200 OK - @team:DataDog/revenue-query + @team:DataDog/billing-hub Scenario: Get billing dimension mapping for usage endpoints returns "Bad Request" response Given new "GetBillingDimensionMapping" request When the request is sent Then the response status is 400 Bad Request - @skip @team:DataDog/revenue-query + @skip @team:DataDog/billing-hub Scenario: Get billing dimension mapping for usage endpoints returns "OK" response Given new "GetBillingDimensionMapping" request When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get cost across multi-org account returns "Bad Request" response Given new "GetCostByOrg" request And request contains "start_month" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request - @replay-only @team:DataDog/revenue-query + @replay-only @team:DataDog/billing-hub Scenario: Get cost across multi-org account returns "OK" response Given new "GetCostByOrg" request And request contains "start_month" parameter with value "{{ timeISO('now - 3d') }}" When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get estimated cost across your account returns "Bad Request" response Given new "GetEstimatedCostByOrg" request When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get estimated cost across your account returns "OK" response Given new "GetEstimatedCostByOrg" request When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get historical cost across your account returns "Bad Request" response Given new "GetHistoricalCostByOrg" request And request contains "start_month" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request - @replay-only @team:DataDog/revenue-query + @replay-only @team:DataDog/billing-hub Scenario: Get historical cost across your account returns "OK" response Given new "GetHistoricalCostByOrg" request And request contains "start_month" parameter with value "{{ timeISO('now - 2M') }}" @@ -97,7 +97,7 @@ Feature: Usage Metering When the request is sent Then the response status is 200 OK - @team:DataDog/revenue-query + @team:DataDog/billing-hub Scenario: Get hourly usage by product family returns "Bad Request" response Given new "GetHourlyUsage" request And request contains "filter[timestamp][start]" parameter with value "{{ timeISO('now - 3d') }}" @@ -106,7 +106,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @team:DataDog/revenue-query + @team:DataDog/billing-hub Scenario: Get hourly usage by product family returns "OK" response Given new "GetHourlyUsage" request And request contains "filter[timestamp][start]" parameter with value "{{ timeISO('now - 3d') }}" @@ -116,7 +116,7 @@ Feature: Usage Metering And the response "data[0].type" is equal to "usage_timeseries" And the response "data[0].attributes.region" is equal to "us" - @team:DataDog/revenue-query + @team:DataDog/billing-hub Scenario: Get hourly usage for Application Security returns "Bad Request" response Given new "GetUsageApplicationSecurityMonitoring" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -124,7 +124,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @team:DataDog/revenue-query + @team:DataDog/billing-hub Scenario: Get hourly usage for Lambda traced invocations returns "Bad Request" response Given new "GetUsageLambdaTracedInvocations" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -132,7 +132,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @team:DataDog/revenue-query + @team:DataDog/billing-hub Scenario: Get hourly usage for Lambda traced invocations returns "OK" response Given new "GetUsageLambdaTracedInvocations" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -142,7 +142,7 @@ Feature: Usage Metering And the response "data[0].type" is equal to "usage_timeseries" And the response "data[0].attributes.product_family" is equal to "lambda-traced-invocations" - @team:DataDog/revenue-query + @team:DataDog/billing-hub Scenario: Get hourly usage for Observability Pipelines returns "Bad Request" response Given new "GetUsageObservabilityPipelines" request And request contains "start_hr" parameter with value "{{ timeISO('now - 3d') }}" @@ -150,14 +150,14 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for application security returns "Bad Request" response Given new "GetUsageApplicationSecurityMonitoring" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request - @team:DataDog/revenue-query + @team:DataDog/billing-hub Scenario: Get hourly usage for application security returns "OK" response Given new "GetUsageApplicationSecurityMonitoring" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -167,14 +167,14 @@ Feature: Usage Metering And the response "data[0].type" is equal to "usage_timeseries" And the response "data[0].attributes.product_family" is equal to "app-sec" - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get hourly usage for observability pipelines returns "Bad Request" response Given new "GetUsageObservabilityPipelines" request And request contains "start_hr" parameter from "REPLACE.ME" When the request is sent Then the response status is 400 Bad Request - @team:DataDog/revenue-query + @team:DataDog/billing-hub Scenario: Get hourly usage for observability pipelines returns "OK" response Given new "GetUsageObservabilityPipelines" request And request contains "start_hr" parameter with value "{{ timeISO('now - 5d') }}" @@ -184,26 +184,26 @@ Feature: Usage Metering And the response "data[0].type" is equal to "usage_timeseries" And the response "data[0].attributes.product_family" is equal to "observability-pipelines" - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get projected cost across your account returns "Bad Request" response Given new "GetProjectedCost" request When the request is sent Then the response status is 400 Bad Request - @replay-only @team:DataDog/revenue-query + @replay-only @team:DataDog/billing-hub Scenario: Get projected cost across your account returns "OK" response Given new "GetProjectedCost" request And request contains "view" parameter with value "sub-org" When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/revenue-query + @generated @skip @team:DataDog/billing-hub Scenario: Get usage attribution types returns "OK" response Given new "GetUsageAttributionTypes" request When the request is sent Then the response status is 200 OK - @team:DataDog/revenue-query + @team:DataDog/billing-hub Scenario: GetEstimatedCostByOrg with both start_month and start_date returns "Bad Request" response Given new "GetEstimatedCostByOrg" request And request contains "view" parameter with value "sub-org" @@ -212,7 +212,7 @@ Feature: Usage Metering When the request is sent Then the response status is 400 Bad Request - @replay-only @team:DataDog/revenue-query + @replay-only @team:DataDog/billing-hub Scenario: GetEstimatedCostByOrg with start_month returns "OK" response Given new "GetEstimatedCostByOrg" request And request contains "view" parameter with value "sub-org"