Skip to content

Commit 0c50683

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Live and historical custom timeseries docs (#2068)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent aeabea6 commit 0c50683

File tree

4 files changed

+144
-4
lines changed

4 files changed

+144
-4
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.6",
7-
"regenerated": "2023-11-17 19:36:46.563000",
8-
"spec_repo_commit": "506ed2d8"
7+
"regenerated": "2023-11-17 20:28:34.664609",
8+
"spec_repo_commit": "7fb616ae"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-11-17 19:36:46.586573",
13-
"spec_repo_commit": "506ed2d8"
12+
"regenerated": "2023-11-17 20:28:34.680209",
13+
"spec_repo_commit": "7fb616ae"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19226,6 +19226,16 @@ components:
1922619226
Pro hosts over all hours in the current date for the given org.
1922719227
format: int64
1922819228
type: integer
19229+
custom_historical_ts_avg:
19230+
description: Shows the average number of distinct historical custom metrics
19231+
over all hours in the current date for the given org.
19232+
format: int64
19233+
type: integer
19234+
custom_live_ts_avg:
19235+
description: Shows the average number of distinct live custom metrics over
19236+
all hours in the current date for the given org.
19237+
format: int64
19238+
type: integer
1922919239
custom_ts_avg:
1923019240
description: Shows the average number of distinct custom metrics over all
1923119241
hours in the current date for the given org.
@@ -19757,6 +19767,16 @@ components:
1975719767
Pro hosts over all hours in the current months for all organizations.
1975819768
format: int64
1975919769
type: integer
19770+
custom_historical_ts_sum:
19771+
description: Shows the average number of distinct historical custom metrics
19772+
over all hours in the current months for all organizations.
19773+
format: int64
19774+
type: integer
19775+
custom_live_ts_sum:
19776+
description: Shows the average number of distinct live custom metrics over
19777+
all hours in the current months for all organizations.
19778+
format: int64
19779+
type: integer
1976019780
custom_ts_sum:
1976119781
description: Shows the average number of distinct custom metrics over all
1976219782
hours in the current months for all organizations.

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

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
UsageSummaryDateOrg.JSON_PROPERTY_CSPM_CONTAINER_HWM,
6464
UsageSummaryDateOrg.JSON_PROPERTY_CSPM_GCP_HOST_TOP99P,
6565
UsageSummaryDateOrg.JSON_PROPERTY_CSPM_HOST_TOP99P,
66+
UsageSummaryDateOrg.JSON_PROPERTY_CUSTOM_HISTORICAL_TS_AVG,
67+
UsageSummaryDateOrg.JSON_PROPERTY_CUSTOM_LIVE_TS_AVG,
6668
UsageSummaryDateOrg.JSON_PROPERTY_CUSTOM_TS_AVG,
6769
UsageSummaryDateOrg.JSON_PROPERTY_CWS_CONTAINER_COUNT_AVG,
6870
UsageSummaryDateOrg.JSON_PROPERTY_CWS_HOST_TOP99P,
@@ -286,6 +288,12 @@ public class UsageSummaryDateOrg {
286288
public static final String JSON_PROPERTY_CSPM_HOST_TOP99P = "cspm_host_top99p";
287289
private Long cspmHostTop99p;
288290

291+
public static final String JSON_PROPERTY_CUSTOM_HISTORICAL_TS_AVG = "custom_historical_ts_avg";
292+
private Long customHistoricalTsAvg;
293+
294+
public static final String JSON_PROPERTY_CUSTOM_LIVE_TS_AVG = "custom_live_ts_avg";
295+
private Long customLiveTsAvg;
296+
289297
public static final String JSON_PROPERTY_CUSTOM_TS_AVG = "custom_ts_avg";
290298
private Long customTsAvg;
291299

@@ -1496,6 +1504,50 @@ public void setCspmHostTop99p(Long cspmHostTop99p) {
14961504
this.cspmHostTop99p = cspmHostTop99p;
14971505
}
14981506

1507+
public UsageSummaryDateOrg customHistoricalTsAvg(Long customHistoricalTsAvg) {
1508+
this.customHistoricalTsAvg = customHistoricalTsAvg;
1509+
return this;
1510+
}
1511+
1512+
/**
1513+
* Shows the average number of distinct historical custom metrics over all hours in the current
1514+
* date for the given org.
1515+
*
1516+
* @return customHistoricalTsAvg
1517+
*/
1518+
@jakarta.annotation.Nullable
1519+
@JsonProperty(JSON_PROPERTY_CUSTOM_HISTORICAL_TS_AVG)
1520+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1521+
public Long getCustomHistoricalTsAvg() {
1522+
return customHistoricalTsAvg;
1523+
}
1524+
1525+
public void setCustomHistoricalTsAvg(Long customHistoricalTsAvg) {
1526+
this.customHistoricalTsAvg = customHistoricalTsAvg;
1527+
}
1528+
1529+
public UsageSummaryDateOrg customLiveTsAvg(Long customLiveTsAvg) {
1530+
this.customLiveTsAvg = customLiveTsAvg;
1531+
return this;
1532+
}
1533+
1534+
/**
1535+
* Shows the average number of distinct live custom metrics over all hours in the current date for
1536+
* the given org.
1537+
*
1538+
* @return customLiveTsAvg
1539+
*/
1540+
@jakarta.annotation.Nullable
1541+
@JsonProperty(JSON_PROPERTY_CUSTOM_LIVE_TS_AVG)
1542+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1543+
public Long getCustomLiveTsAvg() {
1544+
return customLiveTsAvg;
1545+
}
1546+
1547+
public void setCustomLiveTsAvg(Long customLiveTsAvg) {
1548+
this.customLiveTsAvg = customLiveTsAvg;
1549+
}
1550+
14991551
public UsageSummaryDateOrg customTsAvg(Long customTsAvg) {
15001552
this.customTsAvg = customTsAvg;
15011553
return this;
@@ -2925,6 +2977,8 @@ public boolean equals(Object o) {
29252977
&& Objects.equals(this.cspmContainerHwm, usageSummaryDateOrg.cspmContainerHwm)
29262978
&& Objects.equals(this.cspmGcpHostTop99p, usageSummaryDateOrg.cspmGcpHostTop99p)
29272979
&& Objects.equals(this.cspmHostTop99p, usageSummaryDateOrg.cspmHostTop99p)
2980+
&& Objects.equals(this.customHistoricalTsAvg, usageSummaryDateOrg.customHistoricalTsAvg)
2981+
&& Objects.equals(this.customLiveTsAvg, usageSummaryDateOrg.customLiveTsAvg)
29282982
&& Objects.equals(this.customTsAvg, usageSummaryDateOrg.customTsAvg)
29292983
&& Objects.equals(this.cwsContainerCountAvg, usageSummaryDateOrg.cwsContainerCountAvg)
29302984
&& Objects.equals(this.cwsHostTop99p, usageSummaryDateOrg.cwsHostTop99p)
@@ -3072,6 +3126,8 @@ public int hashCode() {
30723126
cspmContainerHwm,
30733127
cspmGcpHostTop99p,
30743128
cspmHostTop99p,
3129+
customHistoricalTsAvg,
3130+
customLiveTsAvg,
30753131
customTsAvg,
30763132
cwsContainerCountAvg,
30773133
cwsHostTop99p,
@@ -3243,6 +3299,10 @@ public String toString() {
32433299
sb.append(" cspmContainerHwm: ").append(toIndentedString(cspmContainerHwm)).append("\n");
32443300
sb.append(" cspmGcpHostTop99p: ").append(toIndentedString(cspmGcpHostTop99p)).append("\n");
32453301
sb.append(" cspmHostTop99p: ").append(toIndentedString(cspmHostTop99p)).append("\n");
3302+
sb.append(" customHistoricalTsAvg: ")
3303+
.append(toIndentedString(customHistoricalTsAvg))
3304+
.append("\n");
3305+
sb.append(" customLiveTsAvg: ").append(toIndentedString(customLiveTsAvg)).append("\n");
32463306
sb.append(" customTsAvg: ").append(toIndentedString(customTsAvg)).append("\n");
32473307
sb.append(" cwsContainerCountAvg: ")
32483308
.append(toIndentedString(cwsContainerCountAvg))

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

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@
7070
UsageSummaryResponse.JSON_PROPERTY_CSPM_CONTAINER_HWM_SUM,
7171
UsageSummaryResponse.JSON_PROPERTY_CSPM_GCP_HOST_TOP99P_SUM,
7272
UsageSummaryResponse.JSON_PROPERTY_CSPM_HOST_TOP99P_SUM,
73+
UsageSummaryResponse.JSON_PROPERTY_CUSTOM_HISTORICAL_TS_SUM,
74+
UsageSummaryResponse.JSON_PROPERTY_CUSTOM_LIVE_TS_SUM,
7375
UsageSummaryResponse.JSON_PROPERTY_CUSTOM_TS_SUM,
7476
UsageSummaryResponse.JSON_PROPERTY_CWS_CONTAINERS_AVG_SUM,
7577
UsageSummaryResponse.JSON_PROPERTY_CWS_HOST_TOP99P_SUM,
@@ -308,6 +310,12 @@ public class UsageSummaryResponse {
308310
public static final String JSON_PROPERTY_CSPM_HOST_TOP99P_SUM = "cspm_host_top99p_sum";
309311
private Long cspmHostTop99pSum;
310312

313+
public static final String JSON_PROPERTY_CUSTOM_HISTORICAL_TS_SUM = "custom_historical_ts_sum";
314+
private Long customHistoricalTsSum;
315+
316+
public static final String JSON_PROPERTY_CUSTOM_LIVE_TS_SUM = "custom_live_ts_sum";
317+
private Long customLiveTsSum;
318+
311319
public static final String JSON_PROPERTY_CUSTOM_TS_SUM = "custom_ts_sum";
312320
private Long customTsSum;
313321

@@ -1589,6 +1597,50 @@ public void setCspmHostTop99pSum(Long cspmHostTop99pSum) {
15891597
this.cspmHostTop99pSum = cspmHostTop99pSum;
15901598
}
15911599

1600+
public UsageSummaryResponse customHistoricalTsSum(Long customHistoricalTsSum) {
1601+
this.customHistoricalTsSum = customHistoricalTsSum;
1602+
return this;
1603+
}
1604+
1605+
/**
1606+
* Shows the average number of distinct historical custom metrics over all hours in the current
1607+
* months for all organizations.
1608+
*
1609+
* @return customHistoricalTsSum
1610+
*/
1611+
@jakarta.annotation.Nullable
1612+
@JsonProperty(JSON_PROPERTY_CUSTOM_HISTORICAL_TS_SUM)
1613+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1614+
public Long getCustomHistoricalTsSum() {
1615+
return customHistoricalTsSum;
1616+
}
1617+
1618+
public void setCustomHistoricalTsSum(Long customHistoricalTsSum) {
1619+
this.customHistoricalTsSum = customHistoricalTsSum;
1620+
}
1621+
1622+
public UsageSummaryResponse customLiveTsSum(Long customLiveTsSum) {
1623+
this.customLiveTsSum = customLiveTsSum;
1624+
return this;
1625+
}
1626+
1627+
/**
1628+
* Shows the average number of distinct live custom metrics over all hours in the current months
1629+
* for all organizations.
1630+
*
1631+
* @return customLiveTsSum
1632+
*/
1633+
@jakarta.annotation.Nullable
1634+
@JsonProperty(JSON_PROPERTY_CUSTOM_LIVE_TS_SUM)
1635+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
1636+
public Long getCustomLiveTsSum() {
1637+
return customLiveTsSum;
1638+
}
1639+
1640+
public void setCustomLiveTsSum(Long customLiveTsSum) {
1641+
this.customLiveTsSum = customLiveTsSum;
1642+
}
1643+
15921644
public UsageSummaryResponse customTsSum(Long customTsSum) {
15931645
this.customTsSum = customTsSum;
15941646
return this;
@@ -3198,6 +3250,8 @@ public boolean equals(Object o) {
31983250
&& Objects.equals(this.cspmContainerHwmSum, usageSummaryResponse.cspmContainerHwmSum)
31993251
&& Objects.equals(this.cspmGcpHostTop99pSum, usageSummaryResponse.cspmGcpHostTop99pSum)
32003252
&& Objects.equals(this.cspmHostTop99pSum, usageSummaryResponse.cspmHostTop99pSum)
3253+
&& Objects.equals(this.customHistoricalTsSum, usageSummaryResponse.customHistoricalTsSum)
3254+
&& Objects.equals(this.customLiveTsSum, usageSummaryResponse.customLiveTsSum)
32013255
&& Objects.equals(this.customTsSum, usageSummaryResponse.customTsSum)
32023256
&& Objects.equals(this.cwsContainersAvgSum, usageSummaryResponse.cwsContainersAvgSum)
32033257
&& Objects.equals(this.cwsHostTop99pSum, usageSummaryResponse.cwsHostTop99pSum)
@@ -3378,6 +3432,8 @@ public int hashCode() {
33783432
cspmContainerHwmSum,
33793433
cspmGcpHostTop99pSum,
33803434
cspmHostTop99pSum,
3435+
customHistoricalTsSum,
3436+
customLiveTsSum,
33813437
customTsSum,
33823438
cwsContainersAvgSum,
33833439
cwsHostTop99pSum,
@@ -3572,6 +3628,10 @@ public String toString() {
35723628
.append(toIndentedString(cspmGcpHostTop99pSum))
35733629
.append("\n");
35743630
sb.append(" cspmHostTop99pSum: ").append(toIndentedString(cspmHostTop99pSum)).append("\n");
3631+
sb.append(" customHistoricalTsSum: ")
3632+
.append(toIndentedString(customHistoricalTsSum))
3633+
.append("\n");
3634+
sb.append(" customLiveTsSum: ").append(toIndentedString(customLiveTsSum)).append("\n");
35753635
sb.append(" customTsSum: ").append(toIndentedString(customTsSum)).append("\n");
35763636
sb.append(" cwsContainersAvgSum: ")
35773637
.append(toIndentedString(cwsContainersAvgSum))

0 commit comments

Comments
 (0)