Skip to content

Commit eb9f2cf

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit fcaea40 of spec repo
1 parent af4cea8 commit eb9f2cf

38 files changed

Lines changed: 3416 additions & 2 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 575 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Scalar cross product query with apm_resource_stats data source returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::MetricsAPI.new
5+
6+
body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({
7+
data: DatadogAPIClient::V2::ScalarFormulaRequest.new({
8+
attributes: DatadogAPIClient::V2::ScalarFormulaRequestAttributes.new({
9+
formulas: [
10+
DatadogAPIClient::V2::QueryFormula.new({
11+
formula: "a",
12+
limit: DatadogAPIClient::V2::FormulaLimit.new({
13+
count: 10,
14+
order: DatadogAPIClient::V2::QuerySortOrder::DESC,
15+
}),
16+
}),
17+
],
18+
from: 1636625471000,
19+
queries: [
20+
DatadogAPIClient::V2::ApmResourceStatsQuery.new({
21+
data_source: DatadogAPIClient::V2::ApmResourceStatsDataSource::APM_RESOURCE_STATS,
22+
name: "a",
23+
env: "staging",
24+
service: "azure-bill-import",
25+
stat: DatadogAPIClient::V2::ApmResourceStatName::HITS,
26+
operation_name: "cassandra.query",
27+
group_by: [
28+
"resource_name",
29+
],
30+
primary_tag_name: "datacenter",
31+
primary_tag_value: "*",
32+
}),
33+
],
34+
to: 1636629071000,
35+
}),
36+
type: DatadogAPIClient::V2::ScalarFormulaRequestType::SCALAR_REQUEST,
37+
}),
38+
})
39+
p api_instance.query_scalar_data(body)
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Scalar cross product query with apm_metrics data source returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::MetricsAPI.new
5+
6+
body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({
7+
data: DatadogAPIClient::V2::ScalarFormulaRequest.new({
8+
attributes: DatadogAPIClient::V2::ScalarFormulaRequestAttributes.new({
9+
formulas: [
10+
DatadogAPIClient::V2::QueryFormula.new({
11+
formula: "a",
12+
limit: DatadogAPIClient::V2::FormulaLimit.new({
13+
count: 10,
14+
order: DatadogAPIClient::V2::QuerySortOrder::DESC,
15+
}),
16+
}),
17+
],
18+
from: 1636625471000,
19+
queries: [
20+
DatadogAPIClient::V2::ApmMetricsQuery.new({
21+
data_source: DatadogAPIClient::V2::ApmMetricsDataSource::APM_METRICS,
22+
name: "a",
23+
stat: DatadogAPIClient::V2::ApmMetricsStat::HITS,
24+
service: "web-store",
25+
query_filter: "env:prod",
26+
group_by: [
27+
"resource_name",
28+
],
29+
}),
30+
],
31+
to: 1636629071000,
32+
}),
33+
type: DatadogAPIClient::V2::ScalarFormulaRequestType::SCALAR_REQUEST,
34+
}),
35+
})
36+
p api_instance.query_scalar_data(body)
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Scalar cross product query with slo data source returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::MetricsAPI.new
5+
6+
body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({
7+
data: DatadogAPIClient::V2::ScalarFormulaRequest.new({
8+
attributes: DatadogAPIClient::V2::ScalarFormulaRequestAttributes.new({
9+
formulas: [
10+
DatadogAPIClient::V2::QueryFormula.new({
11+
formula: "a",
12+
limit: DatadogAPIClient::V2::FormulaLimit.new({
13+
count: 10,
14+
order: DatadogAPIClient::V2::QuerySortOrder::DESC,
15+
}),
16+
}),
17+
],
18+
from: 1636625471000,
19+
queries: [
20+
DatadogAPIClient::V2::SloQuery.new({
21+
data_source: DatadogAPIClient::V2::SloDataSource::SLO,
22+
name: "a",
23+
slo_id: "12345678910",
24+
measure: DatadogAPIClient::V2::SlosMeasure::SLO_STATUS,
25+
slo_query_type: DatadogAPIClient::V2::SlosQueryType::METRIC,
26+
group_mode: DatadogAPIClient::V2::SlosGroupMode::OVERALL,
27+
additional_query_filters: "*",
28+
}),
29+
],
30+
to: 1636629071000,
31+
}),
32+
type: DatadogAPIClient::V2::ScalarFormulaRequestType::SCALAR_REQUEST,
33+
}),
34+
})
35+
p api_instance.query_scalar_data(body)
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Scalar cross product query with apm_dependency_stats data source returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::MetricsAPI.new
5+
6+
body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({
7+
data: DatadogAPIClient::V2::ScalarFormulaRequest.new({
8+
attributes: DatadogAPIClient::V2::ScalarFormulaRequestAttributes.new({
9+
formulas: [
10+
DatadogAPIClient::V2::QueryFormula.new({
11+
formula: "a",
12+
limit: DatadogAPIClient::V2::FormulaLimit.new({
13+
count: 10,
14+
order: DatadogAPIClient::V2::QuerySortOrder::DESC,
15+
}),
16+
}),
17+
],
18+
from: 1636625471000,
19+
queries: [
20+
DatadogAPIClient::V2::ApmDependencyStatsQuery.new({
21+
data_source: DatadogAPIClient::V2::ApmDependencyStatsDataSource::APM_DEPENDENCY_STATS,
22+
name: "a",
23+
env: "ci",
24+
service: "cassandra",
25+
stat: DatadogAPIClient::V2::ApmDependencyStatName::AVG_DURATION,
26+
operation_name: "cassandra.query",
27+
resource_name: "DELETE FROM monitor_history.monitor_state_change_history WHERE org_id = ? AND monitor_id IN ? AND group = ?",
28+
primary_tag_name: "datacenter",
29+
primary_tag_value: "edge-eu1.prod.dog",
30+
}),
31+
],
32+
to: 1636629071000,
33+
}),
34+
type: DatadogAPIClient::V2::ScalarFormulaRequestType::SCALAR_REQUEST,
35+
}),
36+
})
37+
p api_instance.query_scalar_data(body)
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Scalar cross product query with process data source returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::MetricsAPI.new
5+
6+
body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({
7+
data: DatadogAPIClient::V2::ScalarFormulaRequest.new({
8+
attributes: DatadogAPIClient::V2::ScalarFormulaRequestAttributes.new({
9+
formulas: [
10+
DatadogAPIClient::V2::QueryFormula.new({
11+
formula: "a",
12+
limit: DatadogAPIClient::V2::FormulaLimit.new({
13+
count: 10,
14+
order: DatadogAPIClient::V2::QuerySortOrder::DESC,
15+
}),
16+
}),
17+
],
18+
from: 1636625471000,
19+
queries: [
20+
DatadogAPIClient::V2::ProcessScalarQuery.new({
21+
data_source: DatadogAPIClient::V2::ProcessDataSource::PROCESS,
22+
name: "a",
23+
metric: "process.stat.cpu.total_pct",
24+
aggregator: "avg",
25+
text_filter: "",
26+
tag_filters: [],
27+
limit: 10,
28+
sort: "desc",
29+
is_normalized_cpu: false,
30+
}),
31+
],
32+
to: 1636629071000,
33+
}),
34+
type: DatadogAPIClient::V2::ScalarFormulaRequestType::SCALAR_REQUEST,
35+
}),
36+
})
37+
p api_instance.query_scalar_data(body)
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Scalar cross product query with container data source returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::MetricsAPI.new
5+
6+
body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({
7+
data: DatadogAPIClient::V2::ScalarFormulaRequest.new({
8+
attributes: DatadogAPIClient::V2::ScalarFormulaRequestAttributes.new({
9+
formulas: [
10+
DatadogAPIClient::V2::QueryFormula.new({
11+
formula: "a",
12+
limit: DatadogAPIClient::V2::FormulaLimit.new({
13+
count: 10,
14+
order: DatadogAPIClient::V2::QuerySortOrder::DESC,
15+
}),
16+
}),
17+
],
18+
from: 1636625471000,
19+
queries: [
20+
DatadogAPIClient::V2::ContainerScalarQuery.new({
21+
data_source: DatadogAPIClient::V2::ContainerDataSource::CONTAINER,
22+
name: "a",
23+
metric: "process.stat.container.cpu.system_pct",
24+
aggregator: "avg",
25+
tag_filters: [],
26+
limit: 10,
27+
sort: "desc",
28+
}),
29+
],
30+
to: 1636629071000,
31+
}),
32+
type: DatadogAPIClient::V2::ScalarFormulaRequestType::SCALAR_REQUEST,
33+
}),
34+
})
35+
p api_instance.query_scalar_data(body)
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Timeseries cross product query with slo data source returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::MetricsAPI.new
5+
6+
body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({
7+
data: DatadogAPIClient::V2::TimeseriesFormulaRequest.new({
8+
attributes: DatadogAPIClient::V2::TimeseriesFormulaRequestAttributes.new({
9+
formulas: [
10+
DatadogAPIClient::V2::QueryFormula.new({
11+
formula: "a",
12+
limit: DatadogAPIClient::V2::FormulaLimit.new({
13+
count: 10,
14+
order: DatadogAPIClient::V2::QuerySortOrder::DESC,
15+
}),
16+
}),
17+
],
18+
from: 1636625471000,
19+
interval: 5000,
20+
queries: [
21+
DatadogAPIClient::V2::SloQuery.new({
22+
data_source: DatadogAPIClient::V2::SloDataSource::SLO,
23+
name: "a",
24+
slo_id: "12345678910",
25+
measure: DatadogAPIClient::V2::SlosMeasure::SLO_STATUS,
26+
slo_query_type: DatadogAPIClient::V2::SlosQueryType::METRIC,
27+
group_mode: DatadogAPIClient::V2::SlosGroupMode::OVERALL,
28+
additional_query_filters: "*",
29+
}),
30+
],
31+
to: 1636629071000,
32+
}),
33+
type: DatadogAPIClient::V2::TimeseriesFormulaRequestType::TIMESERIES_REQUEST,
34+
}),
35+
})
36+
p api_instance.query_timeseries_data(body)
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Timeseries cross product query with process data source returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::MetricsAPI.new
5+
6+
body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({
7+
data: DatadogAPIClient::V2::TimeseriesFormulaRequest.new({
8+
attributes: DatadogAPIClient::V2::TimeseriesFormulaRequestAttributes.new({
9+
formulas: [
10+
DatadogAPIClient::V2::QueryFormula.new({
11+
formula: "a",
12+
limit: DatadogAPIClient::V2::FormulaLimit.new({
13+
count: 10,
14+
order: DatadogAPIClient::V2::QuerySortOrder::DESC,
15+
}),
16+
}),
17+
],
18+
from: 1636625471000,
19+
interval: 5000,
20+
queries: [
21+
DatadogAPIClient::V2::ProcessTimeseriesQuery.new({
22+
data_source: DatadogAPIClient::V2::ProcessDataSource::PROCESS,
23+
name: "a",
24+
metric: "process.stat.cpu.total_pct",
25+
text_filter: "",
26+
tag_filters: [],
27+
limit: 10,
28+
sort: "desc",
29+
is_normalized_cpu: false,
30+
}),
31+
],
32+
to: 1636629071000,
33+
}),
34+
type: DatadogAPIClient::V2::TimeseriesFormulaRequestType::TIMESERIES_REQUEST,
35+
}),
36+
})
37+
p api_instance.query_timeseries_data(body)
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Timeseries cross product query with container data source returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::MetricsAPI.new
5+
6+
body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({
7+
data: DatadogAPIClient::V2::TimeseriesFormulaRequest.new({
8+
attributes: DatadogAPIClient::V2::TimeseriesFormulaRequestAttributes.new({
9+
formulas: [
10+
DatadogAPIClient::V2::QueryFormula.new({
11+
formula: "a",
12+
limit: DatadogAPIClient::V2::FormulaLimit.new({
13+
count: 10,
14+
order: DatadogAPIClient::V2::QuerySortOrder::DESC,
15+
}),
16+
}),
17+
],
18+
from: 1636625471000,
19+
interval: 5000,
20+
queries: [
21+
DatadogAPIClient::V2::ContainerTimeseriesQuery.new({
22+
data_source: DatadogAPIClient::V2::ContainerDataSource::CONTAINER,
23+
name: "a",
24+
metric: "process.stat.container.cpu.system_pct",
25+
tag_filters: [],
26+
limit: 10,
27+
sort: "desc",
28+
}),
29+
],
30+
to: 1636629071000,
31+
}),
32+
type: DatadogAPIClient::V2::TimeseriesFormulaRequestType::TIMESERIES_REQUEST,
33+
}),
34+
})
35+
p api_instance.query_timeseries_data(body)

0 commit comments

Comments
 (0)