Skip to content

Commit d2cb5d1

Browse files
api-clients-generation-pipeline[bot]Rolf BatesRolfBatesci.datadog-api-spec
authored
[RQ-610] Add Azure app services fields to usage v1 endpoints (#591)
* add apm aas host type tests * fix test — json formatting * Regenerate client from commit 2554c85 of spec repo Co-authored-by: Rolf Bates <rolf.bates@datadoghq.com> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Co-authored-by: Rolf Bates <RolfBates@users.noreply.github.com> Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent e7178c3 commit d2cb5d1

File tree

12 files changed

+241
-11
lines changed

12 files changed

+241
-11
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.4.1.dev2",
7-
"regenerated": "2020-12-28 16:56:42.720322",
8-
"spec_repo_commit": "4e7ddc2"
7+
"regenerated": "2020-12-29 08:50:49.572551",
8+
"spec_repo_commit": "2554c85"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev2",
12-
"regenerated": "2020-12-28 16:56:51.497835",
13-
"spec_repo_commit": "4e7ddc2"
12+
"regenerated": "2020-12-29 08:51:00.069703",
13+
"spec_repo_commit": "2554c85"
1414
}
1515
}
1616
}

api_docs/v1/UsageHostHour.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
1010
**agentHostCount** | **Long** | Contains the total number of infrastructure hosts reporting during a given hour that were running the Datadog Agent. | [optional]
1111
**alibabaHostCount** | **Long** | Contains the total number of hosts that reported via Alibaba integration (and were NOT running the Datadog Agent). | [optional]
12+
**apmAzureAppServiceHostCount** | **Long** | Contains the total number of Azure App Services hosts using APM. | [optional]
1213
**apmHostCount** | **Long** | Shows the total number of hosts using APM during the hour, these are counted as billable (except during trial periods). | [optional]
1314
**awsHostCount** | **Long** | Contains the total number of hosts that reported via the AWS integration (and were NOT running the Datadog Agent). | [optional]
1415
**azureHostCount** | **Long** | Contains the total number of hosts that reported via Azure integration (and were NOT running the Datadog Agent). | [optional]
1516
**containerCount** | **Long** | Shows the total number of containers reported by the Docker integration during the hour. | [optional]
1617
**gcpHostCount** | **Long** | Contains the total number of hosts that reported via the Google Cloud integration (and were NOT running the Datadog Agent). | [optional]
1718
**hostCount** | **Long** | Contains the total number of billable infrastructure hosts reporting during a given hour. This is the sum of &#x60;agent_host_count&#x60;, &#x60;aws_host_count&#x60;, and &#x60;gcp_host_count&#x60;. | [optional]
1819
**hour** | **OffsetDateTime** | The hour for the usage. | [optional]
20+
**infraAzureAppService** | **Long** | Contains the total number of hosts that reported via the Azure App Services integration (and were NOT running the Datadog Agent). | [optional]
1921

2022

2123

api_docs/v1/UsageSummaryDate.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Response with hourly report of all data billed by Datadog all organizations.
88
Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
1010
**agentHostTop99p** | **Long** | Shows the 99th percentile of all agent hosts over all hours in the current date for all organizations. | [optional]
11+
**apmAzureAppServiceHostTop99p** | **Long** | Shows the 99th percentile of all Azure app services using APM over all hours in the current date all organizations. | [optional]
1112
**apmHostTop99p** | **Long** | Shows the 99th percentile of all distinct APM hosts over all hours in the current date for all organizations. | [optional]
1213
**awsHostTop99p** | **Long** | Shows the 99th percentile of all AWS hosts over all hours in the current date for all organizations. | [optional]
1314
**awsLambdaFuncCount** | **Long** | Shows the average of the number of functions that executed 1 or more times each hour in the current date for all organizations. | [optional]

api_docs/v1/UsageSummaryDateOrg.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ Global hourly report of all data billed by Datadog for a given organization.
88
Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
1010
**agentHostTop99p** | **Long** | Shows the 99th percentile of all agent hosts over all hours in the current date for the given org. | [optional]
11+
**apmAzureAppServiceHostTop99p** | **Long** | Shows the 99th percentile of all Azure app services using APM over all hours in the current date for the given org. | [optional]
1112
**apmHostTop99p** | **Long** | Shows the 99th percentile of all distinct APM hosts over all hours in the current date for the given org. | [optional]
1213
**awsHostTop99p** | **Long** | Shows the 99th percentile of all AWS hosts over all hours in the current date for the given org. | [optional]
1314
**awsLambdaFuncCount** | **Long** | Shows the sum of all AWS Lambda invocations over all hours in the current date for the given org. | [optional]
1415
**awsLambdaInvocationsSum** | **Long** | Shows the sum of all AWS Lambda invocations over all hours in the current date for the given org. | [optional]
16+
**azureAppServiceTop99p** | **Long** | Shows the 99th percentile of all Azure app services over all hours in the current date for the given org. | [optional]
1517
**billableIngestedBytesSum** | **Long** | Shows the sum of all log bytes ingested over all hours in the current date for the given org. | [optional]
1618
**containerAvg** | **Long** | Shows the average of all distinct containers over all hours in the current date for the given org. | [optional]
1719
**containerHwm** | **Long** | Shows the high-water mark of all distinct containers over all hours in the current date for the given org. | [optional]

api_docs/v1/UsageSummaryResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Response with hourly report of all data billed by Datadog all organizations.
88
Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
1010
**agentHostTop99pSum** | **Long** | Shows the 99th percentile of all agent hosts over all hours in the current months for all organizations. | [optional]
11+
**apmAzureAppServiceHostTop99pSum** | **Long** | Shows the 99th percentile of all Azure app services using APM over all hours in the current months all organizations. | [optional]
1112
**apmHostTop99pSum** | **Long** | Shows the 99th percentile of all distinct APM hosts over all hours in the current months for all organizations. | [optional]
1213
**awsHostTop99pSum** | **Long** | Shows the 99th percentile of all AWS hosts over all hours in the current months for all organizations. | [optional]
1314
**awsLambdaFuncCount** | **Long** | Shows the average of the number of functions that executed 1 or more times each hour in the current months for all organizations. | [optional]

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

Lines changed: 63 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,15 @@
3434
@JsonPropertyOrder({
3535
UsageHostHour.JSON_PROPERTY_AGENT_HOST_COUNT,
3636
UsageHostHour.JSON_PROPERTY_ALIBABA_HOST_COUNT,
37+
UsageHostHour.JSON_PROPERTY_APM_AZURE_APP_SERVICE_HOST_COUNT,
3738
UsageHostHour.JSON_PROPERTY_APM_HOST_COUNT,
3839
UsageHostHour.JSON_PROPERTY_AWS_HOST_COUNT,
3940
UsageHostHour.JSON_PROPERTY_AZURE_HOST_COUNT,
4041
UsageHostHour.JSON_PROPERTY_CONTAINER_COUNT,
4142
UsageHostHour.JSON_PROPERTY_GCP_HOST_COUNT,
4243
UsageHostHour.JSON_PROPERTY_HOST_COUNT,
43-
UsageHostHour.JSON_PROPERTY_HOUR
44+
UsageHostHour.JSON_PROPERTY_HOUR,
45+
UsageHostHour.JSON_PROPERTY_INFRA_AZURE_APP_SERVICE
4446
})
4547
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
4648
public class UsageHostHour {
@@ -50,6 +52,9 @@ public class UsageHostHour {
5052
public static final String JSON_PROPERTY_ALIBABA_HOST_COUNT = "alibaba_host_count";
5153
private Long alibabaHostCount;
5254

55+
public static final String JSON_PROPERTY_APM_AZURE_APP_SERVICE_HOST_COUNT = "apm_azure_app_service_host_count";
56+
private Long apmAzureAppServiceHostCount;
57+
5358
public static final String JSON_PROPERTY_APM_HOST_COUNT = "apm_host_count";
5459
private Long apmHostCount;
5560

@@ -71,6 +76,9 @@ public class UsageHostHour {
7176
public static final String JSON_PROPERTY_HOUR = "hour";
7277
private OffsetDateTime hour;
7378

79+
public static final String JSON_PROPERTY_INFRA_AZURE_APP_SERVICE = "infra_azure_app_service";
80+
private Long infraAzureAppService;
81+
7482

7583
public UsageHostHour agentHostCount(Long agentHostCount) {
7684
this.agentHostCount = agentHostCount;
@@ -120,6 +128,30 @@ public void setAlibabaHostCount(Long alibabaHostCount) {
120128
}
121129

122130

131+
public UsageHostHour apmAzureAppServiceHostCount(Long apmAzureAppServiceHostCount) {
132+
this.apmAzureAppServiceHostCount = apmAzureAppServiceHostCount;
133+
return this;
134+
}
135+
136+
/**
137+
* Contains the total number of Azure App Services hosts using APM.
138+
* @return apmAzureAppServiceHostCount
139+
**/
140+
@javax.annotation.Nullable
141+
@ApiModelProperty(value = "Contains the total number of Azure App Services hosts using APM.")
142+
@JsonProperty(JSON_PROPERTY_APM_AZURE_APP_SERVICE_HOST_COUNT)
143+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
144+
145+
public Long getApmAzureAppServiceHostCount() {
146+
return apmAzureAppServiceHostCount;
147+
}
148+
149+
150+
public void setApmAzureAppServiceHostCount(Long apmAzureAppServiceHostCount) {
151+
this.apmAzureAppServiceHostCount = apmAzureAppServiceHostCount;
152+
}
153+
154+
123155
public UsageHostHour apmHostCount(Long apmHostCount) {
124156
this.apmHostCount = apmHostCount;
125157
return this;
@@ -288,6 +320,30 @@ public void setHour(OffsetDateTime hour) {
288320
}
289321

290322

323+
public UsageHostHour infraAzureAppService(Long infraAzureAppService) {
324+
this.infraAzureAppService = infraAzureAppService;
325+
return this;
326+
}
327+
328+
/**
329+
* Contains the total number of hosts that reported via the Azure App Services integration (and were NOT running the Datadog Agent).
330+
* @return infraAzureAppService
331+
**/
332+
@javax.annotation.Nullable
333+
@ApiModelProperty(value = "Contains the total number of hosts that reported via the Azure App Services integration (and were NOT running the Datadog Agent).")
334+
@JsonProperty(JSON_PROPERTY_INFRA_AZURE_APP_SERVICE)
335+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
336+
337+
public Long getInfraAzureAppService() {
338+
return infraAzureAppService;
339+
}
340+
341+
342+
public void setInfraAzureAppService(Long infraAzureAppService) {
343+
this.infraAzureAppService = infraAzureAppService;
344+
}
345+
346+
291347
/**
292348
* Return true if this UsageHostHour object is equal to o.
293349
*/
@@ -302,18 +358,20 @@ public boolean equals(Object o) {
302358
UsageHostHour usageHostHour = (UsageHostHour) o;
303359
return Objects.equals(this.agentHostCount, usageHostHour.agentHostCount) &&
304360
Objects.equals(this.alibabaHostCount, usageHostHour.alibabaHostCount) &&
361+
Objects.equals(this.apmAzureAppServiceHostCount, usageHostHour.apmAzureAppServiceHostCount) &&
305362
Objects.equals(this.apmHostCount, usageHostHour.apmHostCount) &&
306363
Objects.equals(this.awsHostCount, usageHostHour.awsHostCount) &&
307364
Objects.equals(this.azureHostCount, usageHostHour.azureHostCount) &&
308365
Objects.equals(this.containerCount, usageHostHour.containerCount) &&
309366
Objects.equals(this.gcpHostCount, usageHostHour.gcpHostCount) &&
310367
Objects.equals(this.hostCount, usageHostHour.hostCount) &&
311-
Objects.equals(this.hour, usageHostHour.hour);
368+
Objects.equals(this.hour, usageHostHour.hour) &&
369+
Objects.equals(this.infraAzureAppService, usageHostHour.infraAzureAppService);
312370
}
313371

314372
@Override
315373
public int hashCode() {
316-
return Objects.hash(agentHostCount, alibabaHostCount, apmHostCount, awsHostCount, azureHostCount, containerCount, gcpHostCount, hostCount, hour);
374+
return Objects.hash(agentHostCount, alibabaHostCount, apmAzureAppServiceHostCount, apmHostCount, awsHostCount, azureHostCount, containerCount, gcpHostCount, hostCount, hour, infraAzureAppService);
317375
}
318376

319377

@@ -323,13 +381,15 @@ public String toString() {
323381
sb.append("class UsageHostHour {\n");
324382
sb.append(" agentHostCount: ").append(toIndentedString(agentHostCount)).append("\n");
325383
sb.append(" alibabaHostCount: ").append(toIndentedString(alibabaHostCount)).append("\n");
384+
sb.append(" apmAzureAppServiceHostCount: ").append(toIndentedString(apmAzureAppServiceHostCount)).append("\n");
326385
sb.append(" apmHostCount: ").append(toIndentedString(apmHostCount)).append("\n");
327386
sb.append(" awsHostCount: ").append(toIndentedString(awsHostCount)).append("\n");
328387
sb.append(" azureHostCount: ").append(toIndentedString(azureHostCount)).append("\n");
329388
sb.append(" containerCount: ").append(toIndentedString(containerCount)).append("\n");
330389
sb.append(" gcpHostCount: ").append(toIndentedString(gcpHostCount)).append("\n");
331390
sb.append(" hostCount: ").append(toIndentedString(hostCount)).append("\n");
332391
sb.append(" hour: ").append(toIndentedString(hour)).append("\n");
392+
sb.append(" infraAzureAppService: ").append(toIndentedString(infraAzureAppService)).append("\n");
333393
sb.append("}");
334394
return sb.toString();
335395
}

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

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
@ApiModel(description = "Response with hourly report of all data billed by Datadog all organizations.")
3737
@JsonPropertyOrder({
3838
UsageSummaryDate.JSON_PROPERTY_AGENT_HOST_TOP99P,
39+
UsageSummaryDate.JSON_PROPERTY_APM_AZURE_APP_SERVICE_HOST_TOP99P,
3940
UsageSummaryDate.JSON_PROPERTY_APM_HOST_TOP99P,
4041
UsageSummaryDate.JSON_PROPERTY_AWS_HOST_TOP99P,
4142
UsageSummaryDate.JSON_PROPERTY_AWS_LAMBDA_FUNC_COUNT,
@@ -72,6 +73,9 @@ public class UsageSummaryDate {
7273
public static final String JSON_PROPERTY_AGENT_HOST_TOP99P = "agent_host_top99p";
7374
private Long agentHostTop99p;
7475

76+
public static final String JSON_PROPERTY_APM_AZURE_APP_SERVICE_HOST_TOP99P = "apm_azure_app_service_host_top99p";
77+
private Long apmAzureAppServiceHostTop99p;
78+
7579
public static final String JSON_PROPERTY_APM_HOST_TOP99P = "apm_host_top99p";
7680
private Long apmHostTop99p;
7781

@@ -187,6 +191,30 @@ public void setAgentHostTop99p(Long agentHostTop99p) {
187191
}
188192

189193

194+
public UsageSummaryDate apmAzureAppServiceHostTop99p(Long apmAzureAppServiceHostTop99p) {
195+
this.apmAzureAppServiceHostTop99p = apmAzureAppServiceHostTop99p;
196+
return this;
197+
}
198+
199+
/**
200+
* Shows the 99th percentile of all Azure app services using APM over all hours in the current date all organizations.
201+
* @return apmAzureAppServiceHostTop99p
202+
**/
203+
@javax.annotation.Nullable
204+
@ApiModelProperty(value = "Shows the 99th percentile of all Azure app services using APM over all hours in the current date all organizations.")
205+
@JsonProperty(JSON_PROPERTY_APM_AZURE_APP_SERVICE_HOST_TOP99P)
206+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
207+
208+
public Long getApmAzureAppServiceHostTop99p() {
209+
return apmAzureAppServiceHostTop99p;
210+
}
211+
212+
213+
public void setApmAzureAppServiceHostTop99p(Long apmAzureAppServiceHostTop99p) {
214+
this.apmAzureAppServiceHostTop99p = apmAzureAppServiceHostTop99p;
215+
}
216+
217+
190218
public UsageSummaryDate apmHostTop99p(Long apmHostTop99p) {
191219
this.apmHostTop99p = apmHostTop99p;
192220
return this;
@@ -928,6 +956,7 @@ public boolean equals(Object o) {
928956
}
929957
UsageSummaryDate usageSummaryDate = (UsageSummaryDate) o;
930958
return Objects.equals(this.agentHostTop99p, usageSummaryDate.agentHostTop99p) &&
959+
Objects.equals(this.apmAzureAppServiceHostTop99p, usageSummaryDate.apmAzureAppServiceHostTop99p) &&
931960
Objects.equals(this.apmHostTop99p, usageSummaryDate.apmHostTop99p) &&
932961
Objects.equals(this.awsHostTop99p, usageSummaryDate.awsHostTop99p) &&
933962
Objects.equals(this.awsLambdaFuncCount, usageSummaryDate.awsLambdaFuncCount) &&
@@ -962,7 +991,7 @@ public boolean equals(Object o) {
962991

963992
@Override
964993
public int hashCode() {
965-
return Objects.hash(agentHostTop99p, apmHostTop99p, awsHostTop99p, awsLambdaFuncCount, awsLambdaInvocationsSum, azureAppServiceTop99p, billableIngestedBytesSum, containerAvg, containerHwm, customTsAvg, date, fargateTasksCountAvg, fargateTasksCountHwm, gcpHostTop99p, incidentManagementMonthlyActiveUsersHwm, indexedEventsCountSum, infraHostTop99p, ingestedEventsBytesSum, mobileRumSessionCountAndroidSum, mobileRumSessionCountIosSum, mobileRumSessionCountSum, netflowIndexedEventsCountSum, npmHostTop99p, orgs, profilingHostTop99p, rumSessionCountSum, rumTotalSessionCountSum, syntheticsBrowserCheckCallsCountSum, syntheticsCheckCallsCountSum, traceSearchIndexedEventsCountSum, twolIngestedEventsBytesSum);
994+
return Objects.hash(agentHostTop99p, apmAzureAppServiceHostTop99p, apmHostTop99p, awsHostTop99p, awsLambdaFuncCount, awsLambdaInvocationsSum, azureAppServiceTop99p, billableIngestedBytesSum, containerAvg, containerHwm, customTsAvg, date, fargateTasksCountAvg, fargateTasksCountHwm, gcpHostTop99p, incidentManagementMonthlyActiveUsersHwm, indexedEventsCountSum, infraHostTop99p, ingestedEventsBytesSum, mobileRumSessionCountAndroidSum, mobileRumSessionCountIosSum, mobileRumSessionCountSum, netflowIndexedEventsCountSum, npmHostTop99p, orgs, profilingHostTop99p, rumSessionCountSum, rumTotalSessionCountSum, syntheticsBrowserCheckCallsCountSum, syntheticsCheckCallsCountSum, traceSearchIndexedEventsCountSum, twolIngestedEventsBytesSum);
966995
}
967996

968997

@@ -971,6 +1000,7 @@ public String toString() {
9711000
StringBuilder sb = new StringBuilder();
9721001
sb.append("class UsageSummaryDate {\n");
9731002
sb.append(" agentHostTop99p: ").append(toIndentedString(agentHostTop99p)).append("\n");
1003+
sb.append(" apmAzureAppServiceHostTop99p: ").append(toIndentedString(apmAzureAppServiceHostTop99p)).append("\n");
9741004
sb.append(" apmHostTop99p: ").append(toIndentedString(apmHostTop99p)).append("\n");
9751005
sb.append(" awsHostTop99p: ").append(toIndentedString(awsHostTop99p)).append("\n");
9761006
sb.append(" awsLambdaFuncCount: ").append(toIndentedString(awsLambdaFuncCount)).append("\n");

0 commit comments

Comments
 (0)