Skip to content

Commit

Permalink
Add new keys for CWS Fargate Task in summary usage and usage attribut…
Browse files Browse the repository at this point in the history
…ion endpoints (#2563)

* Regenerate client from commit ae3b5463 of spec repo

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

* pre-commit fixes

---------

Co-authored-by: ci.datadog-api-spec <[email protected]>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Nov 11, 2024
1 parent 6a628a3 commit b1d214b
Show file tree
Hide file tree
Showing 11 changed files with 212 additions and 23 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-11-08 14:25:33.219329",
"spec_repo_commit": "d907813e"
"regenerated": "2024-11-08 19:36:31.312421",
"spec_repo_commit": "ae3b5463"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-11-08 14:25:33.237800",
"spec_repo_commit": "d907813e"
"regenerated": "2024-11-08 19:36:31.331092",
"spec_repo_commit": "ae3b5463"
}
}
}
32 changes: 31 additions & 1 deletion .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4187,6 +4187,7 @@ components:
- custom_ingested_timeseries_usage
- custom_timeseries_usage
- cws_containers_usage
- cws_fargate_task_usage
- cws_hosts_usage
- data_jobs_monitoring_usage
- data_stream_monitoring_usage
Expand Down Expand Up @@ -4259,6 +4260,7 @@ components:
- CUSTOM_INGESTED_TIMESERIES_USAGE
- CUSTOM_TIMESERIES_USAGE
- CWS_CONTAINERS_USAGE
- CWS_FARGATE_TASK_USAGE
- CWS_HOSTS_USAGE
- DATA_JOBS_MONITORING_USAGE
- DATA_STREAM_MONITORING_USAGE
Expand Down Expand Up @@ -7939,6 +7941,8 @@ components:
- custom_ingested_timeseries_percentage
- cws_containers_percentage
- cws_containers_usage
- cws_fargate_task_percentage
- cws_fargate_task_usage
- cws_hosts_percentage
- cws_hosts_usage
- data_jobs_monitoring_usage
Expand Down Expand Up @@ -8078,6 +8082,8 @@ components:
- CUSTOM_INGESTED_TIMESERIES_PERCENTAGE
- CWS_CONTAINERS_PERCENTAGE
- CWS_CONTAINERS_USAGE
- CWS_FARGATE_TASK_PERCENTAGE
- CWS_FARGATE_TASK_USAGE
- CWS_HOSTS_PERCENTAGE
- CWS_HOSTS_USAGE
- DATA_JOBS_MONITORING_USAGE
Expand Down Expand Up @@ -8357,6 +8363,15 @@ components:
description: The Cloud Workload Security container usage by tag(s).
format: double
type: number
cws_fargate_task_percentage:
description: The percentage of Cloud Workload Security Fargate task usage
by tag(s).
format: double
type: number
cws_fargate_task_usage:
description: The Cloud Workload Security Fargate task usage by tag(s).
format: double
type: number
cws_hosts_percentage:
description: The percentage of Cloud Workload Security host usage by tag(s).
format: double
Expand Down Expand Up @@ -19909,6 +19924,11 @@ components:
over all hours in the current date for all organizations.
format: int64
type: integer
cws_fargate_task_avg:
description: Shows the average of all distinct Cloud Workload Security Fargate
tasks over all hours in the current date for all organizations.
format: int64
type: integer
cws_host_top99p:
description: Shows the 99th percentile of all Cloud Workload Security hosts
over all hours in the current date for all organizations.
Expand Down Expand Up @@ -20679,6 +20699,11 @@ components:
over all hours in the current date for the given org.
format: int64
type: integer
cws_fargate_task_avg:
description: Shows the average of all distinct Cloud Workload Security Fargate
tasks over all hours in the current date for the given org.
format: int64
type: integer
cws_host_top99p:
description: Shows the 99th percentile of all Cloud Workload Security hosts
over all hours in the current date for the given org.
Expand Down Expand Up @@ -21443,11 +21468,16 @@ components:
hours in the current month for all organizations.
format: int64
type: integer
cws_containers_avg_sum:
cws_container_avg_sum:
description: Shows the average of all distinct Cloud Workload Security containers
over all hours in the current month for all organizations.
format: int64
type: integer
cws_fargate_task_avg_sum:
description: Shows the average of all distinct Cloud Workload Security Fargate
tasks over all hours in the current month for all organizations.
format: int64
type: integer
cws_host_top99p_sum:
description: Shows the 99th percentile of all Cloud Workload Security hosts
over all hours in the current month for all organizations.
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/security-monitoring/CancelHistoricalJob.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.runHistoricalJob", true);
defaultClient.setUnstableOperationEnabled("v2.cancelHistoricalJob", true);
defaultClient.setUnstableOperationEnabled("v2.runHistoricalJob", true);
SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient);

// there is a valid "historical_job" in the system
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/security-monitoring/GetHistoricalJob.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.runHistoricalJob", true);
defaultClient.setUnstableOperationEnabled("v2.getHistoricalJob", true);
defaultClient.setUnstableOperationEnabled("v2.runHistoricalJob", true);
SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient);

// there is a valid "historical_job" in the system
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/security-monitoring/ListHistoricalJobs.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
defaultClient.setUnstableOperationEnabled("v2.runHistoricalJob", true);
defaultClient.setUnstableOperationEnabled("v2.listHistoricalJobs", true);
defaultClient.setUnstableOperationEnabled("v2.runHistoricalJob", true);
SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient);

// there is a valid "historical_job" in the system
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public class HourlyUsageAttributionUsageType extends ModelEnum<String> {
"custom_ingested_timeseries_usage",
"custom_timeseries_usage",
"cws_containers_usage",
"cws_fargate_task_usage",
"cws_hosts_usage",
"data_jobs_monitoring_usage",
"data_stream_monitoring_usage",
Expand Down Expand Up @@ -139,6 +140,8 @@ public class HourlyUsageAttributionUsageType extends ModelEnum<String> {
new HourlyUsageAttributionUsageType("custom_timeseries_usage");
public static final HourlyUsageAttributionUsageType CWS_CONTAINERS_USAGE =
new HourlyUsageAttributionUsageType("cws_containers_usage");
public static final HourlyUsageAttributionUsageType CWS_FARGATE_TASK_USAGE =
new HourlyUsageAttributionUsageType("cws_fargate_task_usage");
public static final HourlyUsageAttributionUsageType CWS_HOSTS_USAGE =
new HourlyUsageAttributionUsageType("cws_hosts_usage");
public static final HourlyUsageAttributionUsageType DATA_JOBS_MONITORING_USAGE =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public class MonthlyUsageAttributionSupportedMetrics extends ModelEnum<String> {
"custom_ingested_timeseries_percentage",
"cws_containers_percentage",
"cws_containers_usage",
"cws_fargate_task_percentage",
"cws_fargate_task_usage",
"cws_hosts_percentage",
"cws_hosts_usage",
"data_jobs_monitoring_usage",
Expand Down Expand Up @@ -238,6 +240,10 @@ public class MonthlyUsageAttributionSupportedMetrics extends ModelEnum<String> {
new MonthlyUsageAttributionSupportedMetrics("cws_containers_percentage");
public static final MonthlyUsageAttributionSupportedMetrics CWS_CONTAINERS_USAGE =
new MonthlyUsageAttributionSupportedMetrics("cws_containers_usage");
public static final MonthlyUsageAttributionSupportedMetrics CWS_FARGATE_TASK_PERCENTAGE =
new MonthlyUsageAttributionSupportedMetrics("cws_fargate_task_percentage");
public static final MonthlyUsageAttributionSupportedMetrics CWS_FARGATE_TASK_USAGE =
new MonthlyUsageAttributionSupportedMetrics("cws_fargate_task_usage");
public static final MonthlyUsageAttributionSupportedMetrics CWS_HOSTS_PERCENTAGE =
new MonthlyUsageAttributionSupportedMetrics("cws_hosts_percentage");
public static final MonthlyUsageAttributionSupportedMetrics CWS_HOSTS_USAGE =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
MonthlyUsageAttributionValues.JSON_PROPERTY_CUSTOM_TIMESERIES_USAGE,
MonthlyUsageAttributionValues.JSON_PROPERTY_CWS_CONTAINERS_PERCENTAGE,
MonthlyUsageAttributionValues.JSON_PROPERTY_CWS_CONTAINERS_USAGE,
MonthlyUsageAttributionValues.JSON_PROPERTY_CWS_FARGATE_TASK_PERCENTAGE,
MonthlyUsageAttributionValues.JSON_PROPERTY_CWS_FARGATE_TASK_USAGE,
MonthlyUsageAttributionValues.JSON_PROPERTY_CWS_HOSTS_PERCENTAGE,
MonthlyUsageAttributionValues.JSON_PROPERTY_CWS_HOSTS_USAGE,
MonthlyUsageAttributionValues.JSON_PROPERTY_DATA_JOBS_MONITORING_USAGE,
Expand Down Expand Up @@ -290,6 +292,13 @@ public class MonthlyUsageAttributionValues {
public static final String JSON_PROPERTY_CWS_CONTAINERS_USAGE = "cws_containers_usage";
private Double cwsContainersUsage;

public static final String JSON_PROPERTY_CWS_FARGATE_TASK_PERCENTAGE =
"cws_fargate_task_percentage";
private Double cwsFargateTaskPercentage;

public static final String JSON_PROPERTY_CWS_FARGATE_TASK_USAGE = "cws_fargate_task_usage";
private Double cwsFargateTaskUsage;

public static final String JSON_PROPERTY_CWS_HOSTS_PERCENTAGE = "cws_hosts_percentage";
private Double cwsHostsPercentage;

Expand Down Expand Up @@ -1466,6 +1475,48 @@ public void setCwsContainersUsage(Double cwsContainersUsage) {
this.cwsContainersUsage = cwsContainersUsage;
}

public MonthlyUsageAttributionValues cwsFargateTaskPercentage(Double cwsFargateTaskPercentage) {
this.cwsFargateTaskPercentage = cwsFargateTaskPercentage;
return this;
}

/**
* The percentage of Cloud Workload Security Fargate task usage by tag(s).
*
* @return cwsFargateTaskPercentage
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CWS_FARGATE_TASK_PERCENTAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Double getCwsFargateTaskPercentage() {
return cwsFargateTaskPercentage;
}

public void setCwsFargateTaskPercentage(Double cwsFargateTaskPercentage) {
this.cwsFargateTaskPercentage = cwsFargateTaskPercentage;
}

public MonthlyUsageAttributionValues cwsFargateTaskUsage(Double cwsFargateTaskUsage) {
this.cwsFargateTaskUsage = cwsFargateTaskUsage;
return this;
}

/**
* The Cloud Workload Security Fargate task usage by tag(s).
*
* @return cwsFargateTaskUsage
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CWS_FARGATE_TASK_USAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Double getCwsFargateTaskUsage() {
return cwsFargateTaskUsage;
}

public void setCwsFargateTaskUsage(Double cwsFargateTaskUsage) {
this.cwsFargateTaskUsage = cwsFargateTaskUsage;
}

public MonthlyUsageAttributionValues cwsHostsPercentage(Double cwsHostsPercentage) {
this.cwsHostsPercentage = cwsHostsPercentage;
return this;
Expand Down Expand Up @@ -3605,6 +3656,10 @@ public boolean equals(Object o) {
&& Objects.equals(
this.cwsContainersPercentage, monthlyUsageAttributionValues.cwsContainersPercentage)
&& Objects.equals(this.cwsContainersUsage, monthlyUsageAttributionValues.cwsContainersUsage)
&& Objects.equals(
this.cwsFargateTaskPercentage, monthlyUsageAttributionValues.cwsFargateTaskPercentage)
&& Objects.equals(
this.cwsFargateTaskUsage, monthlyUsageAttributionValues.cwsFargateTaskUsage)
&& Objects.equals(this.cwsHostsPercentage, monthlyUsageAttributionValues.cwsHostsPercentage)
&& Objects.equals(this.cwsHostsUsage, monthlyUsageAttributionValues.cwsHostsUsage)
&& Objects.equals(
Expand Down Expand Up @@ -3853,6 +3908,8 @@ public int hashCode() {
customTimeseriesUsage,
cwsContainersPercentage,
cwsContainersUsage,
cwsFargateTaskPercentage,
cwsFargateTaskUsage,
cwsHostsPercentage,
cwsHostsUsage,
dataJobsMonitoringUsage,
Expand Down Expand Up @@ -4040,6 +4097,12 @@ public String toString() {
.append(toIndentedString(cwsContainersPercentage))
.append("\n");
sb.append(" cwsContainersUsage: ").append(toIndentedString(cwsContainersUsage)).append("\n");
sb.append(" cwsFargateTaskPercentage: ")
.append(toIndentedString(cwsFargateTaskPercentage))
.append("\n");
sb.append(" cwsFargateTaskUsage: ")
.append(toIndentedString(cwsFargateTaskUsage))
.append("\n");
sb.append(" cwsHostsPercentage: ").append(toIndentedString(cwsHostsPercentage)).append("\n");
sb.append(" cwsHostsUsage: ").append(toIndentedString(cwsHostsUsage)).append("\n");
sb.append(" dataJobsMonitoringUsage: ")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
UsageSummaryDate.JSON_PROPERTY_CSPM_HOST_TOP99P,
UsageSummaryDate.JSON_PROPERTY_CUSTOM_TS_AVG,
UsageSummaryDate.JSON_PROPERTY_CWS_CONTAINER_COUNT_AVG,
UsageSummaryDate.JSON_PROPERTY_CWS_FARGATE_TASK_AVG,
UsageSummaryDate.JSON_PROPERTY_CWS_HOST_TOP99P,
UsageSummaryDate.JSON_PROPERTY_DATA_JOBS_MONITORING_HOST_HR_SUM,
UsageSummaryDate.JSON_PROPERTY_DATE,
Expand Down Expand Up @@ -348,6 +349,9 @@ public class UsageSummaryDate {
public static final String JSON_PROPERTY_CWS_CONTAINER_COUNT_AVG = "cws_container_count_avg";
private Long cwsContainerCountAvg;

public static final String JSON_PROPERTY_CWS_FARGATE_TASK_AVG = "cws_fargate_task_avg";
private Long cwsFargateTaskAvg;

public static final String JSON_PROPERTY_CWS_HOST_TOP99P = "cws_host_top99p";
private Long cwsHostTop99p;

Expand Down Expand Up @@ -1830,6 +1834,28 @@ public void setCwsContainerCountAvg(Long cwsContainerCountAvg) {
this.cwsContainerCountAvg = cwsContainerCountAvg;
}

public UsageSummaryDate cwsFargateTaskAvg(Long cwsFargateTaskAvg) {
this.cwsFargateTaskAvg = cwsFargateTaskAvg;
return this;
}

/**
* Shows the average of all distinct Cloud Workload Security Fargate tasks over all hours in the
* current date for all organizations.
*
* @return cwsFargateTaskAvg
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CWS_FARGATE_TASK_AVG)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getCwsFargateTaskAvg() {
return cwsFargateTaskAvg;
}

public void setCwsFargateTaskAvg(Long cwsFargateTaskAvg) {
this.cwsFargateTaskAvg = cwsFargateTaskAvg;
}

public UsageSummaryDate cwsHostTop99p(Long cwsHostTop99p) {
this.cwsHostTop99p = cwsHostTop99p;
return this;
Expand Down Expand Up @@ -3949,6 +3975,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.cspmHostTop99p, usageSummaryDate.cspmHostTop99p)
&& Objects.equals(this.customTsAvg, usageSummaryDate.customTsAvg)
&& Objects.equals(this.cwsContainerCountAvg, usageSummaryDate.cwsContainerCountAvg)
&& Objects.equals(this.cwsFargateTaskAvg, usageSummaryDate.cwsFargateTaskAvg)
&& Objects.equals(this.cwsHostTop99p, usageSummaryDate.cwsHostTop99p)
&& Objects.equals(
this.dataJobsMonitoringHostHrSum, usageSummaryDate.dataJobsMonitoringHostHrSum)
Expand Down Expand Up @@ -4154,6 +4181,7 @@ public int hashCode() {
cspmHostTop99p,
customTsAvg,
cwsContainerCountAvg,
cwsFargateTaskAvg,
cwsHostTop99p,
dataJobsMonitoringHostHrSum,
date,
Expand Down Expand Up @@ -4370,6 +4398,7 @@ public String toString() {
sb.append(" cwsContainerCountAvg: ")
.append(toIndentedString(cwsContainerCountAvg))
.append("\n");
sb.append(" cwsFargateTaskAvg: ").append(toIndentedString(cwsFargateTaskAvg)).append("\n");
sb.append(" cwsHostTop99p: ").append(toIndentedString(cwsHostTop99p)).append("\n");
sb.append(" dataJobsMonitoringHostHrSum: ")
.append(toIndentedString(dataJobsMonitoringHostHrSum))
Expand Down
Loading

0 comments on commit b1d214b

Please sign in to comment.