Skip to content

Commit 0c1bda2

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add synthetics mobile application testing to usage metering API (#1967)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 4732cc1 commit 0c1bda2

File tree

10 files changed

+228
-18
lines changed

10 files changed

+228
-18
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.5",
7-
"regenerated": "2023-09-13 15:18:05.497778",
8-
"spec_repo_commit": "ec46249d"
7+
"regenerated": "2023-09-14 14:35:26.859009",
8+
"spec_repo_commit": "1d834ec1"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-09-13 15:18:05.516562",
13-
"spec_repo_commit": "ec46249d"
12+
"regenerated": "2023-09-14 14:35:26.875218",
13+
"spec_repo_commit": "1d834ec1"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3920,6 +3920,7 @@ components:
39203920
- functions_usage
39213921
- infra_host_usage
39223922
- invocations_usage
3923+
- mobile_app_testing_usage
39233924
- npm_host_usage
39243925
- obs_pipeline_bytes_usage
39253926
- profiled_container_usage
@@ -3958,6 +3959,7 @@ components:
39583959
- FUNCTIONS_USAGE
39593960
- INFRA_HOST_USAGE
39603961
- INVOCATIONS_USAGE
3962+
- MOBILE_APP_TESTING_USAGE
39613963
- NPM_HOST_USAGE
39623964
- OBS_PIPELINE_BYTES_USAGE
39633965
- PROFILED_CONTAINER_USAGE
@@ -7489,6 +7491,8 @@ components:
74897491
- infra_host_percentage
74907492
- invocations_usage
74917493
- invocations_percentage
7494+
- mobile_app_testing_percentage
7495+
- mobile_app_testing_usage
74927496
- npm_host_usage
74937497
- npm_host_percentage
74947498
- obs_pipeline_bytes_usage
@@ -7564,6 +7568,8 @@ components:
75647568
- INFRA_HOST_PERCENTAGE
75657569
- INVOCATIONS_USAGE
75667570
- INVOCATIONS_PERCENTAGE
7571+
- MOBILE_APP_TESTING_USAGE
7572+
- MOBILE_APP_TESTING_PERCENTAGE
75677573
- NPM_HOST_USAGE
75687574
- NPM_HOST_PERCENTAGE
75697575
- OBS_PIPELINE_BYTES_USAGE
@@ -7811,6 +7817,15 @@ components:
78117817
description: The Lambda invocation usage by tag(s).
78127818
format: double
78137819
type: number
7820+
mobile_app_testing_percentage:
7821+
description: The percentage of Synthetic mobile application test usage by
7822+
tag(s).
7823+
format: double
7824+
type: number
7825+
mobile_app_testing_usage:
7826+
description: The Synthetic mobile application test usage by tag(s).
7827+
format: double
7828+
type: number
78147829
npm_host_percentage:
78157830
description: The percentage of network host usage by tag(s).
78167831
format: double
@@ -17963,6 +17978,11 @@ components:
1796317978
the current date for all organizations.
1796417979
format: int64
1796517980
type: integer
17981+
synthetics_mobile_test_runs_sum:
17982+
description: Shows the sum of all Synthetic mobile application tests over
17983+
all hours in the current date for all organizations.
17984+
format: int64
17985+
type: integer
1796617986
synthetics_parallel_testing_max_slots_hwm:
1796717987
description: Shows the high-water mark of used synthetics parallel testing
1796817988
slots over all hours in the current date for all organizations.
@@ -18404,6 +18424,11 @@ components:
1840418424
the current date for the given org.
1840518425
format: int64
1840618426
type: integer
18427+
synthetics_mobile_test_runs_sum:
18428+
description: Shows the sum of all Synthetic mobile application tests over
18429+
all hours in the current date for the given org.
18430+
format: int64
18431+
type: integer
1840718432
synthetics_parallel_testing_max_slots_hwm:
1840818433
description: Shows the high-water mark of used synthetics parallel testing
1840918434
slots over all hours in the current date for the given org.
@@ -18887,6 +18912,11 @@ components:
1888718912
the current months for all organizations.
1888818913
format: int64
1888918914
type: integer
18915+
synthetics_mobile_test_runs_agg_sum:
18916+
description: Shows the sum of Synthetic mobile application tests over all
18917+
hours in the current months for all organizations.
18918+
format: int64
18919+
type: integer
1889018920
synthetics_parallel_testing_max_slots_hwm_sum:
1889118921
description: Shows the sum of the high-water marks of used synthetics parallel
1889218922
testing slots over all hours in the current month for all organizations.

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27082,8 +27082,8 @@ paths:
2708227082
`online_archive`, `profiling`, `rum`, `rum_browser_sessions`, `rum_mobile_sessions`,
2708327083
`sds`, `snmp`,
2708427084

27085-
`synthetics_api`, `synthetics_browser`, `synthetics_parallel_testing`, and
27086-
`timeseries`.
27085+
`synthetics_api`, `synthetics_browser`, `synthetics_mobile`, `synthetics_parallel_testing`,
27086+
and `timeseries`.
2708727087

2708827088
The following product family has been **deprecated**: `audit_logs`.'
2708927089
in: query

src/main/java/com/datadog/api/client/v1/model/HourlyUsageAttributionUsageType.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public class HourlyUsageAttributionUsageType extends ModelEnum<String> {
5252
"functions_usage",
5353
"infra_host_usage",
5454
"invocations_usage",
55+
"mobile_app_testing_usage",
5556
"npm_host_usage",
5657
"obs_pipeline_bytes_usage",
5758
"profiled_container_usage",
@@ -115,6 +116,8 @@ public class HourlyUsageAttributionUsageType extends ModelEnum<String> {
115116
new HourlyUsageAttributionUsageType("infra_host_usage");
116117
public static final HourlyUsageAttributionUsageType INVOCATIONS_USAGE =
117118
new HourlyUsageAttributionUsageType("invocations_usage");
119+
public static final HourlyUsageAttributionUsageType MOBILE_APP_TESTING_USAGE =
120+
new HourlyUsageAttributionUsageType("mobile_app_testing_usage");
118121
public static final HourlyUsageAttributionUsageType NPM_HOST_USAGE =
119122
new HourlyUsageAttributionUsageType("npm_host_usage");
120123
public static final HourlyUsageAttributionUsageType OBS_PIPELINE_BYTES_USAGE =

src/main/java/com/datadog/api/client/v1/model/MonthlyUsageAttributionSupportedMetrics.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ public class MonthlyUsageAttributionSupportedMetrics extends ModelEnum<String> {
8080
"infra_host_percentage",
8181
"invocations_usage",
8282
"invocations_percentage",
83+
"mobile_app_testing_percentage",
84+
"mobile_app_testing_usage",
8385
"npm_host_usage",
8486
"npm_host_percentage",
8587
"obs_pipeline_bytes_usage",
@@ -207,6 +209,10 @@ public class MonthlyUsageAttributionSupportedMetrics extends ModelEnum<String> {
207209
new MonthlyUsageAttributionSupportedMetrics("invocations_usage");
208210
public static final MonthlyUsageAttributionSupportedMetrics INVOCATIONS_PERCENTAGE =
209211
new MonthlyUsageAttributionSupportedMetrics("invocations_percentage");
212+
public static final MonthlyUsageAttributionSupportedMetrics MOBILE_APP_TESTING_USAGE =
213+
new MonthlyUsageAttributionSupportedMetrics("mobile_app_testing_percentage");
214+
public static final MonthlyUsageAttributionSupportedMetrics MOBILE_APP_TESTING_PERCENTAGE =
215+
new MonthlyUsageAttributionSupportedMetrics("mobile_app_testing_usage");
210216
public static final MonthlyUsageAttributionSupportedMetrics NPM_HOST_USAGE =
211217
new MonthlyUsageAttributionSupportedMetrics("npm_host_usage");
212218
public static final MonthlyUsageAttributionSupportedMetrics NPM_HOST_PERCENTAGE =

src/main/java/com/datadog/api/client/v1/model/MonthlyUsageAttributionValues.java

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@
7272
MonthlyUsageAttributionValues.JSON_PROPERTY_INFRA_HOST_USAGE,
7373
MonthlyUsageAttributionValues.JSON_PROPERTY_INVOCATIONS_PERCENTAGE,
7474
MonthlyUsageAttributionValues.JSON_PROPERTY_INVOCATIONS_USAGE,
75+
MonthlyUsageAttributionValues.JSON_PROPERTY_MOBILE_APP_TESTING_PERCENTAGE,
76+
MonthlyUsageAttributionValues.JSON_PROPERTY_MOBILE_APP_TESTING_USAGE,
7577
MonthlyUsageAttributionValues.JSON_PROPERTY_NPM_HOST_PERCENTAGE,
7678
MonthlyUsageAttributionValues.JSON_PROPERTY_NPM_HOST_USAGE,
7779
MonthlyUsageAttributionValues.JSON_PROPERTY_OBS_PIPELINE_BYTES_PERCENTAGE,
@@ -274,6 +276,13 @@ public class MonthlyUsageAttributionValues {
274276
public static final String JSON_PROPERTY_INVOCATIONS_USAGE = "invocations_usage";
275277
private Double invocationsUsage;
276278

279+
public static final String JSON_PROPERTY_MOBILE_APP_TESTING_PERCENTAGE =
280+
"mobile_app_testing_percentage";
281+
private Double mobileAppTestingPercentage;
282+
283+
public static final String JSON_PROPERTY_MOBILE_APP_TESTING_USAGE = "mobile_app_testing_usage";
284+
private Double mobileAppTestingUsage;
285+
277286
public static final String JSON_PROPERTY_NPM_HOST_PERCENTAGE = "npm_host_percentage";
278287
private Double npmHostPercentage;
279288

@@ -1482,6 +1491,49 @@ public void setInvocationsUsage(Double invocationsUsage) {
14821491
this.invocationsUsage = invocationsUsage;
14831492
}
14841493

1494+
public MonthlyUsageAttributionValues mobileAppTestingPercentage(
1495+
Double mobileAppTestingPercentage) {
1496+
this.mobileAppTestingPercentage = mobileAppTestingPercentage;
1497+
return this;
1498+
}
1499+
1500+
/**
1501+
* The percentage of Synthetic mobile application test usage by tag(s).
1502+
*
1503+
* @return mobileAppTestingPercentage
1504+
*/
1505+
@jakarta.annotation.Nullable
1506+
@JsonProperty(JSON_PROPERTY_MOBILE_APP_TESTING_PERCENTAGE)
1507+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1508+
public Double getMobileAppTestingPercentage() {
1509+
return mobileAppTestingPercentage;
1510+
}
1511+
1512+
public void setMobileAppTestingPercentage(Double mobileAppTestingPercentage) {
1513+
this.mobileAppTestingPercentage = mobileAppTestingPercentage;
1514+
}
1515+
1516+
public MonthlyUsageAttributionValues mobileAppTestingUsage(Double mobileAppTestingUsage) {
1517+
this.mobileAppTestingUsage = mobileAppTestingUsage;
1518+
return this;
1519+
}
1520+
1521+
/**
1522+
* The Synthetic mobile application test usage by tag(s).
1523+
*
1524+
* @return mobileAppTestingUsage
1525+
*/
1526+
@jakarta.annotation.Nullable
1527+
@JsonProperty(JSON_PROPERTY_MOBILE_APP_TESTING_USAGE)
1528+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1529+
public Double getMobileAppTestingUsage() {
1530+
return mobileAppTestingUsage;
1531+
}
1532+
1533+
public void setMobileAppTestingUsage(Double mobileAppTestingUsage) {
1534+
this.mobileAppTestingUsage = mobileAppTestingUsage;
1535+
}
1536+
14851537
public MonthlyUsageAttributionValues npmHostPercentage(Double npmHostPercentage) {
14861538
this.npmHostPercentage = npmHostPercentage;
14871539
return this;
@@ -2016,6 +2068,11 @@ public boolean equals(Object o) {
20162068
&& Objects.equals(
20172069
this.invocationsPercentage, monthlyUsageAttributionValues.invocationsPercentage)
20182070
&& Objects.equals(this.invocationsUsage, monthlyUsageAttributionValues.invocationsUsage)
2071+
&& Objects.equals(
2072+
this.mobileAppTestingPercentage,
2073+
monthlyUsageAttributionValues.mobileAppTestingPercentage)
2074+
&& Objects.equals(
2075+
this.mobileAppTestingUsage, monthlyUsageAttributionValues.mobileAppTestingUsage)
20192076
&& Objects.equals(this.npmHostPercentage, monthlyUsageAttributionValues.npmHostPercentage)
20202077
&& Objects.equals(this.npmHostUsage, monthlyUsageAttributionValues.npmHostUsage)
20212078
&& Objects.equals(
@@ -2113,6 +2170,8 @@ public int hashCode() {
21132170
infraHostUsage,
21142171
invocationsPercentage,
21152172
invocationsUsage,
2173+
mobileAppTestingPercentage,
2174+
mobileAppTestingUsage,
21162175
npmHostPercentage,
21172176
npmHostUsage,
21182177
obsPipelineBytesPercentage,
@@ -2250,6 +2309,12 @@ public String toString() {
22502309
.append(toIndentedString(invocationsPercentage))
22512310
.append("\n");
22522311
sb.append(" invocationsUsage: ").append(toIndentedString(invocationsUsage)).append("\n");
2312+
sb.append(" mobileAppTestingPercentage: ")
2313+
.append(toIndentedString(mobileAppTestingPercentage))
2314+
.append("\n");
2315+
sb.append(" mobileAppTestingUsage: ")
2316+
.append(toIndentedString(mobileAppTestingUsage))
2317+
.append("\n");
22532318
sb.append(" npmHostPercentage: ").append(toIndentedString(npmHostPercentage)).append("\n");
22542319
sb.append(" npmHostUsage: ").append(toIndentedString(npmHostUsage)).append("\n");
22552320
sb.append(" obsPipelineBytesPercentage: ")

src/main/java/com/datadog/api/client/v1/model/UsageSummaryDate.java

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
UsageSummaryDate.JSON_PROPERTY_SDS_TOTAL_SCANNED_BYTES_SUM,
101101
UsageSummaryDate.JSON_PROPERTY_SYNTHETICS_BROWSER_CHECK_CALLS_COUNT_SUM,
102102
UsageSummaryDate.JSON_PROPERTY_SYNTHETICS_CHECK_CALLS_COUNT_SUM,
103+
UsageSummaryDate.JSON_PROPERTY_SYNTHETICS_MOBILE_TEST_RUNS_SUM,
103104
UsageSummaryDate.JSON_PROPERTY_SYNTHETICS_PARALLEL_TESTING_MAX_SLOTS_HWM,
104105
UsageSummaryDate.JSON_PROPERTY_TRACE_SEARCH_INDEXED_EVENTS_COUNT_SUM,
105106
UsageSummaryDate.JSON_PROPERTY_TWOL_INGESTED_EVENTS_BYTES_SUM,
@@ -384,6 +385,10 @@ public class UsageSummaryDate {
384385
"synthetics_check_calls_count_sum";
385386
private Long syntheticsCheckCallsCountSum;
386387

388+
public static final String JSON_PROPERTY_SYNTHETICS_MOBILE_TEST_RUNS_SUM =
389+
"synthetics_mobile_test_runs_sum";
390+
private Long syntheticsMobileTestRunsSum;
391+
387392
public static final String JSON_PROPERTY_SYNTHETICS_PARALLEL_TESTING_MAX_SLOTS_HWM =
388393
"synthetics_parallel_testing_max_slots_hwm";
389394
private Long syntheticsParallelTestingMaxSlotsHwm;
@@ -2165,6 +2170,28 @@ public void setSyntheticsCheckCallsCountSum(Long syntheticsCheckCallsCountSum) {
21652170
this.syntheticsCheckCallsCountSum = syntheticsCheckCallsCountSum;
21662171
}
21672172

2173+
public UsageSummaryDate syntheticsMobileTestRunsSum(Long syntheticsMobileTestRunsSum) {
2174+
this.syntheticsMobileTestRunsSum = syntheticsMobileTestRunsSum;
2175+
return this;
2176+
}
2177+
2178+
/**
2179+
* Shows the sum of all Synthetic mobile application tests over all hours in the current date for
2180+
* all organizations.
2181+
*
2182+
* @return syntheticsMobileTestRunsSum
2183+
*/
2184+
@jakarta.annotation.Nullable
2185+
@JsonProperty(JSON_PROPERTY_SYNTHETICS_MOBILE_TEST_RUNS_SUM)
2186+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
2187+
public Long getSyntheticsMobileTestRunsSum() {
2188+
return syntheticsMobileTestRunsSum;
2189+
}
2190+
2191+
public void setSyntheticsMobileTestRunsSum(Long syntheticsMobileTestRunsSum) {
2192+
this.syntheticsMobileTestRunsSum = syntheticsMobileTestRunsSum;
2193+
}
2194+
21682195
public UsageSummaryDate syntheticsParallelTestingMaxSlotsHwm(
21692196
Long syntheticsParallelTestingMaxSlotsHwm) {
21702197
this.syntheticsParallelTestingMaxSlotsHwm = syntheticsParallelTestingMaxSlotsHwm;
@@ -2486,6 +2513,8 @@ public boolean equals(Object o) {
24862513
usageSummaryDate.syntheticsBrowserCheckCallsCountSum)
24872514
&& Objects.equals(
24882515
this.syntheticsCheckCallsCountSum, usageSummaryDate.syntheticsCheckCallsCountSum)
2516+
&& Objects.equals(
2517+
this.syntheticsMobileTestRunsSum, usageSummaryDate.syntheticsMobileTestRunsSum)
24892518
&& Objects.equals(
24902519
this.syntheticsParallelTestingMaxSlotsHwm,
24912520
usageSummaryDate.syntheticsParallelTestingMaxSlotsHwm)
@@ -2587,6 +2616,7 @@ public int hashCode() {
25872616
sdsTotalScannedBytesSum,
25882617
syntheticsBrowserCheckCallsCountSum,
25892618
syntheticsCheckCallsCountSum,
2619+
syntheticsMobileTestRunsSum,
25902620
syntheticsParallelTestingMaxSlotsHwm,
25912621
traceSearchIndexedEventsCountSum,
25922622
twolIngestedEventsBytesSum,
@@ -2780,6 +2810,9 @@ public String toString() {
27802810
sb.append(" syntheticsCheckCallsCountSum: ")
27812811
.append(toIndentedString(syntheticsCheckCallsCountSum))
27822812
.append("\n");
2813+
sb.append(" syntheticsMobileTestRunsSum: ")
2814+
.append(toIndentedString(syntheticsMobileTestRunsSum))
2815+
.append("\n");
27832816
sb.append(" syntheticsParallelTestingMaxSlotsHwm: ")
27842817
.append(toIndentedString(syntheticsParallelTestingMaxSlotsHwm))
27852818
.append("\n");

0 commit comments

Comments
 (0)