@@ -344,6 +344,60 @@ Feature: Metrics
344344 And the response "data.type" is equal to "scalar_response"
345345 And the response "data.attributes.columns[0].name" is equal to "a"
346346
347+ @skip-validation @team:Datadog/timeseries-query
348+ Scenario : Scalar cross product query with apm_dependency_stats data source returns "OK" response
349+ Given a valid "appKeyAuth" key in the system
350+ And new "QueryScalarData" request
351+ And body with value {"data" : {"attributes" : {"formulas" : [{"formula" : "a" , "limit" : {"count" : 10, "order" : "desc" }}], "from" : {{ timestamp('now - 1h' ) }}000, "queries" : [{"data_source" : "apm_dependency_stats" , "name" : "a" , "env" : "ci" , "service" : "cassandra" , "stat" : "avg_duration" , "operation_name" : "cassandra.query" , "resource_name" : "DELETE FROM monitor_history.monitor_state_change_history WHERE org_id = ? AND monitor_id IN ? AND group = ?" , "primary_tag_name" : "datacenter" , "primary_tag_value" : "edge-eu1.prod.dog" }], "to" : {{ timestamp('now' ) }}000}, "type" : "scalar_request" }}
352+ When the request is sent
353+ Then the response status is 200 OK
354+ And the response "data.type" is equal to "scalar_response"
355+
356+ @skip-validation @team:Datadog/timeseries-query
357+ Scenario : Scalar cross product query with apm_metrics data source returns "OK" response
358+ Given a valid "appKeyAuth" key in the system
359+ And new "QueryScalarData" request
360+ And body with value {"data" : {"attributes" : {"formulas" : [{"formula" : "a" , "limit" : {"count" : 10, "order" : "desc" }}], "from" : {{ timestamp('now - 1h' ) }}000, "queries" : [{"data_source" : "apm_metrics" , "name" : "a" , "stat" : "hits" , "service" : "web-store" , "query_filter" : "env:prod" , "group_by" : ["resource_name" ]}], "to" : {{ timestamp('now' ) }}000}, "type" : "scalar_request" }}
361+ When the request is sent
362+ Then the response status is 200 OK
363+ And the response "data.type" is equal to "scalar_response"
364+
365+ @skip-validation @team:Datadog/timeseries-query
366+ Scenario : Scalar cross product query with apm_resource_stats data source returns "OK" response
367+ Given a valid "appKeyAuth" key in the system
368+ And new "QueryScalarData" request
369+ And body with value {"data" : {"attributes" : {"formulas" : [{"formula" : "a" , "limit" : {"count" : 10, "order" : "desc" }}], "from" : {{ timestamp('now - 1h' ) }}000, "queries" : [{"data_source" : "apm_resource_stats" , "name" : "a" , "env" : "staging" , "service" : "azure-bill-import" , "stat" : "hits" , "operation_name" : "cassandra.query" , "group_by" : ["resource_name" ], "primary_tag_name" : "datacenter" , "primary_tag_value" : "*" }], "to" : {{ timestamp('now' ) }}000}, "type" : "scalar_request" }}
370+ When the request is sent
371+ Then the response status is 200 OK
372+ And the response "data.type" is equal to "scalar_response"
373+
374+ @skip-validation @team:Datadog/timeseries-query
375+ Scenario : Scalar cross product query with container data source returns "OK" response
376+ Given a valid "appKeyAuth" key in the system
377+ And new "QueryScalarData" request
378+ And body with value {"data" : {"attributes" : {"formulas" : [{"formula" : "a" , "limit" : {"count" : 10, "order" : "desc" }}], "from" : {{ timestamp('now - 1h' ) }}000, "queries" : [{"data_source" : "container" , "name" : "a" , "metric" : "container.cpu.usage" , "tag_filters" : [], "limit" : 10, "sort" : "desc" }], "to" : {{ timestamp('now' ) }}000}, "type" : "scalar_request" }}
379+ When the request is sent
380+ Then the response status is 200 OK
381+ And the response "data.type" is equal to "scalar_response"
382+
383+ @skip-validation @team:Datadog/timeseries-query
384+ Scenario : Scalar cross product query with process data source returns "OK" response
385+ Given a valid "appKeyAuth" key in the system
386+ And new "QueryScalarData" request
387+ And body with value {"data" : {"attributes" : {"formulas" : [{"formula" : "a" , "limit" : {"count" : 10, "order" : "desc" }}], "from" : {{ timestamp('now - 1h' ) }}000, "queries" : [{"data_source" : "process" , "name" : "a" , "metric" : "process.stat.cpu.total_pct" , "text_filter" : "" , "tag_filters" : [], "limit" : 10, "sort" : "desc" , "is_normalized_cpu" : false}], "to" : {{ timestamp('now' ) }}000}, "type" : "scalar_request" }}
388+ When the request is sent
389+ Then the response status is 200 OK
390+ And the response "data.type" is equal to "scalar_response"
391+
392+ @skip-validation @team:Datadog/timeseries-query
393+ Scenario : Scalar cross product query with slo data source returns "OK" response
394+ Given a valid "appKeyAuth" key in the system
395+ And new "QueryScalarData" request
396+ And body with value {"data" : {"attributes" : {"formulas" : [{"formula" : "a" , "limit" : {"count" : 10, "order" : "desc" }}], "from" : {{ timestamp('now - 1h' ) }}000, "queries" : [{"data_source" : "slo" , "name" : "a" , "slo_id" : "12345678910" , "measure" : "slo_status" , "slo_query_type" : "metric" , "group_mode" : "overall" , "additional_query_filters" : "*" }], "to" : {{ timestamp('now' ) }}000}, "type" : "scalar_request" }}
397+ When the request is sent
398+ Then the response status is 200 OK
399+ And the response "data.type" is equal to "scalar_response"
400+
347401 @generated @skip @team:DataDog/metrics-intake
348402 Scenario : Submit metrics returns "Bad Request" response
349403 Given new "SubmitMetrics" request
@@ -415,6 +469,60 @@ Feature: Metrics
415469 Then the response status is 200 OK
416470 And the response "data.type" is equal to "timeseries_response"
417471
472+ @skip-validation @team:Datadog/timeseries-query
473+ Scenario : Timeseries cross product query with apm_dependency_stats data source returns "OK" response
474+ Given a valid "appKeyAuth" key in the system
475+ And new "QueryTimeseriesData" request
476+ And body with value {"data" : {"attributes" : {"formulas" : [{"formula" : "a" , "limit" : {"count" : 10, "order" : "desc" }}], "from" : {{ timestamp('now - 1h' ) }}000, "interval" : 5000, "queries" : [{"data_source" : "apm_dependency_stats" , "name" : "a" , "env" : "ci" , "service" : "cassandra" , "stat" : "avg_duration" , "operation_name" : "cassandra.query" , "resource_name" : "DELETE FROM monitor_history.monitor_state_change_history WHERE org_id = ? AND monitor_id IN ? AND group = ?" , "primary_tag_name" : "datacenter" , "primary_tag_value" : "edge-eu1.prod.dog" }], "to" : {{ timestamp('now' ) }}000}, "type" : "timeseries_request" }}
477+ When the request is sent
478+ Then the response status is 200 OK
479+ And the response "data.type" is equal to "timeseries_response"
480+
481+ @skip-validation @team:Datadog/timeseries-query
482+ Scenario : Timeseries cross product query with apm_metrics data source returns "OK" response
483+ Given a valid "appKeyAuth" key in the system
484+ And new "QueryTimeseriesData" request
485+ And body with value {"data" : {"attributes" : {"formulas" : [{"formula" : "a" , "limit" : {"count" : 10, "order" : "desc" }}], "from" : {{ timestamp('now - 1h' ) }}000, "interval" : 5000, "queries" : [{"data_source" : "apm_metrics" , "name" : "a" , "stat" : "hits" , "service" : "web-store" , "query_filter" : "env:prod" , "group_by" : ["resource_name" ]}], "to" : {{ timestamp('now' ) }}000}, "type" : "timeseries_request" }}
486+ When the request is sent
487+ Then the response status is 200 OK
488+ And the response "data.type" is equal to "timeseries_response"
489+
490+ @skip-validation @team:Datadog/timeseries-query
491+ Scenario : Timeseries cross product query with apm_resource_stats data source returns "OK" response
492+ Given a valid "appKeyAuth" key in the system
493+ And new "QueryTimeseriesData" request
494+ And body with value {"data" : {"attributes" : {"formulas" : [{"formula" : "a" , "limit" : {"count" : 10, "order" : "desc" }}], "from" : {{ timestamp('now - 1h' ) }}000, "interval" : 5000, "queries" : [{"data_source" : "apm_resource_stats" , "name" : "a" , "env" : "staging" , "service" : "azure-bill-import" , "stat" : "hits" , "operation_name" : "cassandra.query" , "group_by" : ["resource_name" ], "primary_tag_name" : "datacenter" , "primary_tag_value" : "*" }], "to" : {{ timestamp('now' ) }}000}, "type" : "timeseries_request" }}
495+ When the request is sent
496+ Then the response status is 200 OK
497+ And the response "data.type" is equal to "timeseries_response"
498+
499+ @skip-validation @team:Datadog/timeseries-query
500+ Scenario : Timeseries cross product query with container data source returns "OK" response
501+ Given a valid "appKeyAuth" key in the system
502+ And new "QueryTimeseriesData" request
503+ And body with value {"data" : {"attributes" : {"formulas" : [{"formula" : "a" , "limit" : {"count" : 10, "order" : "desc" }}], "from" : {{ timestamp('now - 1h' ) }}000, "interval" : 5000, "queries" : [{"data_source" : "container" , "name" : "a" , "metric" : "container.cpu.usage" , "tag_filters" : [], "limit" : 10, "sort" : "desc" }], "to" : {{ timestamp('now' ) }}000}, "type" : "timeseries_request" }}
504+ When the request is sent
505+ Then the response status is 200 OK
506+ And the response "data.type" is equal to "timeseries_response"
507+
508+ @skip-validation @team:Datadog/timeseries-query
509+ Scenario : Timeseries cross product query with process data source returns "OK" response
510+ Given a valid "appKeyAuth" key in the system
511+ And new "QueryTimeseriesData" request
512+ And body with value {"data" : {"attributes" : {"formulas" : [{"formula" : "a" , "limit" : {"count" : 10, "order" : "desc" }}], "from" : {{ timestamp('now - 1h' ) }}000, "interval" : 5000, "queries" : [{"data_source" : "process" , "name" : "a" , "metric" : "process.stat.cpu.total_pct" , "text_filter" : "" , "tag_filters" : [], "limit" : 10, "sort" : "desc" , "is_normalized_cpu" : false}], "to" : {{ timestamp('now' ) }}000}, "type" : "timeseries_request" }}
513+ When the request is sent
514+ Then the response status is 200 OK
515+ And the response "data.type" is equal to "timeseries_response"
516+
517+ @skip-validation @team:Datadog/timeseries-query
518+ Scenario : Timeseries cross product query with slo data source returns "OK" response
519+ Given a valid "appKeyAuth" key in the system
520+ And new "QueryTimeseriesData" request
521+ And body with value {"data" : {"attributes" : {"formulas" : [{"formula" : "a" , "limit" : {"count" : 10, "order" : "desc" }}], "from" : {{ timestamp('now - 1h' ) }}000, "interval" : 5000, "queries" : [{"data_source" : "slo" , "name" : "a" , "slo_id" : "12345678910" , "measure" : "slo_status" , "slo_query_type" : "metric" , "group_mode" : "overall" , "additional_query_filters" : "*" }], "to" : {{ timestamp('now' ) }}000}, "type" : "timeseries_request" }}
522+ When the request is sent
523+ Then the response status is 200 OK
524+ And the response "data.type" is equal to "timeseries_response"
525+
418526 @generated @skip @team:DataDog/metrics-experience
419527 Scenario : Update a tag configuration returns "Bad Request" response
420528 Given a valid "appKeyAuth" key in the system
0 commit comments