Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.4",
"regenerated": "2023-04-11 13:58:07.893056",
"spec_repo_commit": "27919220"
"regenerated": "2023-04-11 20:40:44.790896",
"spec_repo_commit": "9b02c84d"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-04-11 13:58:07.909090",
"spec_repo_commit": "27919220"
"regenerated": "2023-04-11 20:40:44.803533",
"spec_repo_commit": "9b02c84d"
}
}
}
9 changes: 5 additions & 4 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16763,6 +16763,7 @@ components:
format: int64
type: integer
audit_logs_lines_indexed_sum:
deprecated: true
description: Shows the sum of audit logs lines indexed over all hours in
the current date for all organizations.
format: int64
Expand Down Expand Up @@ -17164,6 +17165,7 @@ components:
format: int64
type: integer
audit_logs_lines_indexed_sum:
deprecated: true
description: Shows the sum of all audit logs lines indexed over all hours
in the current date for the given org.
format: int64
Expand Down Expand Up @@ -17568,6 +17570,7 @@ components:
format: int64
type: integer
audit_logs_lines_indexed_agg_sum:
deprecated: true
description: Shows the sum of all audit logs lines indexed over all hours
in the current months for all organizations.
format: int64
Expand Down Expand Up @@ -28073,12 +28076,10 @@ paths:
- Usage Metering
/api/v1/usage/audit_logs:
get:
deprecated: true
description: 'Get hourly usage for audit logs.

**Note:** hourly usage data for all products is now available in the [Get
hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family).
Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/)
for the associated migration guide.'
**Note:** This endpoint has been deprecated.'
operationId: GetUsageAuditLogs
parameters:
- description: 'Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]`
Expand Down
7 changes: 4 additions & 3 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23154,8 +23154,7 @@ paths:
- description: 'Comma separated list of product families to retrieve. Available
families are `all`, `analyzed_logs`,

`application_security`, `audit_logs`, `audit_trail`, `serverless`, `ci_app`,
`cloud_cost_management`,
`application_security`, `audit_trail`, `serverless`, `ci_app`, `cloud_cost_management`,

`cspm`, `custom_events`, `cws`, `dbm`, `fargate`,

Expand All @@ -23168,7 +23167,9 @@ paths:
`sds`, `snmp`,

`synthetics_api`, `synthetics_browser`, `synthetics_parallel_testing`, and
`timeseries`.'
`timeseries`.

The following product family has been **deprecated**: `audit_logs`.'
in: query
name: filter[product_families]
required: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2537,7 +2537,9 @@ public GetUsageAuditLogsOptionalParameters endHr(OffsetDateTime endHr) {
* for usage beginning at this hour. (required)
* @return UsageAuditLogsResponse
* @throws ApiException if fails to make API call
* @deprecated
*/
@Deprecated
public UsageAuditLogsResponse getUsageAuditLogs(OffsetDateTime startHr) throws ApiException {
return getUsageAuditLogsWithHttpInfo(startHr, new GetUsageAuditLogsOptionalParameters())
.getData();
Expand All @@ -2551,7 +2553,9 @@ public UsageAuditLogsResponse getUsageAuditLogs(OffsetDateTime startHr) throws A
* @param startHr Datetime in ISO-8601 format, UTC, precise to hour: <code>[YYYY-MM-DDThh]</code>
* for usage beginning at this hour. (required)
* @return CompletableFuture&lt;UsageAuditLogsResponse&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<UsageAuditLogsResponse> getUsageAuditLogsAsync(OffsetDateTime startHr) {
return getUsageAuditLogsWithHttpInfoAsync(startHr, new GetUsageAuditLogsOptionalParameters())
.thenApply(
Expand All @@ -2570,7 +2574,9 @@ public CompletableFuture<UsageAuditLogsResponse> getUsageAuditLogsAsync(OffsetDa
* @param parameters Optional parameters for the request.
* @return UsageAuditLogsResponse
* @throws ApiException if fails to make API call
* @deprecated
*/
@Deprecated
public UsageAuditLogsResponse getUsageAuditLogs(
OffsetDateTime startHr, GetUsageAuditLogsOptionalParameters parameters) throws ApiException {
return getUsageAuditLogsWithHttpInfo(startHr, parameters).getData();
Expand All @@ -2585,7 +2591,9 @@ public UsageAuditLogsResponse getUsageAuditLogs(
* for usage beginning at this hour. (required)
* @param parameters Optional parameters for the request.
* @return CompletableFuture&lt;UsageAuditLogsResponse&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<UsageAuditLogsResponse> getUsageAuditLogsAsync(
OffsetDateTime startHr, GetUsageAuditLogsOptionalParameters parameters) {
return getUsageAuditLogsWithHttpInfoAsync(startHr, parameters)
Expand All @@ -2596,12 +2604,7 @@ public CompletableFuture<UsageAuditLogsResponse> getUsageAuditLogsAsync(
}

/**
* Get hourly usage for audit logs. <strong>Note:</strong> hourly usage data for all products is
* now available in the <a
* href="https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family">Get
* hourly usage by product family API</a>. Refer to <a
* href="https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/">Migrating
* from the V1 Hourly Usage APIs to V2</a> for the associated migration guide.
* Get hourly usage for audit logs. <strong>Note:</strong> This endpoint has been deprecated.
*
* @param startHr Datetime in ISO-8601 format, UTC, precise to hour: <code>[YYYY-MM-DDThh]</code>
* for usage beginning at this hour. (required)
Expand All @@ -2617,7 +2620,10 @@ public CompletableFuture<UsageAuditLogsResponse> getUsageAuditLogsAsync(
* <tr><td> 403 </td><td> Forbidden - User is not authorized </td><td> - </td></tr>
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
* </table>
*
* @deprecated
*/
@Deprecated
public ApiResponse<UsageAuditLogsResponse> getUsageAuditLogsWithHttpInfo(
OffsetDateTime startHr, GetUsageAuditLogsOptionalParameters parameters) throws ApiException {
Object localVarPostBody = null;
Expand Down Expand Up @@ -2666,7 +2672,9 @@ public ApiResponse<UsageAuditLogsResponse> getUsageAuditLogsWithHttpInfo(
* for usage beginning at this hour. (required)
* @param parameters Optional parameters for the request.
* @return CompletableFuture&lt;ApiResponse&lt;UsageAuditLogsResponse&gt;&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<ApiResponse<UsageAuditLogsResponse>> getUsageAuditLogsWithHttpInfoAsync(
OffsetDateTime startHr, GetUsageAuditLogsOptionalParameters parameters) {
Object localVarPostBody = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -496,14 +496,17 @@ public UsageSummaryDate auditLogsLinesIndexedSum(Long auditLogsLinesIndexedSum)
* organizations.
*
* @return auditLogsLinesIndexedSum
* @deprecated
*/
@Deprecated
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_AUDIT_LOGS_LINES_INDEXED_SUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getAuditLogsLinesIndexedSum() {
return auditLogsLinesIndexedSum;
}

@Deprecated
public void setAuditLogsLinesIndexedSum(Long auditLogsLinesIndexedSum) {
this.auditLogsLinesIndexedSum = auditLogsLinesIndexedSum;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -497,14 +497,17 @@ public UsageSummaryDateOrg auditLogsLinesIndexedSum(Long auditLogsLinesIndexedSu
* org.
*
* @return auditLogsLinesIndexedSum
* @deprecated
*/
@Deprecated
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_AUDIT_LOGS_LINES_INDEXED_SUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getAuditLogsLinesIndexedSum() {
return auditLogsLinesIndexedSum;
}

@Deprecated
public void setAuditLogsLinesIndexedSum(Long auditLogsLinesIndexedSum) {
this.auditLogsLinesIndexedSum = auditLogsLinesIndexedSum;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -557,14 +557,17 @@ public UsageSummaryResponse auditLogsLinesIndexedAggSum(Long auditLogsLinesIndex
* organizations.
*
* @return auditLogsLinesIndexedAggSum
* @deprecated
*/
@Deprecated
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_AUDIT_LOGS_LINES_INDEXED_AGG_SUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getAuditLogsLinesIndexedAggSum() {
return auditLogsLinesIndexedAggSum;
}

@Deprecated
public void setAuditLogsLinesIndexedAggSum(Long auditLogsLinesIndexedAggSum) {
this.auditLogsLinesIndexedAggSum = auditLogsLinesIndexedAggSum;
}
Expand Down
Loading