Skip to content
Open
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
102 changes: 22 additions & 80 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37462,12 +37462,14 @@ components:
- none
- basic
- bearer
- custom
example: basic
type: string
x-enum-varnames:
- NONE
- BASIC
- BEARER
- CUSTOM
ObservabilityPipelineHttpClientSourceType:
default: http_client
description: The source type. The value should always be `http_client`.
Expand Down Expand Up @@ -38030,6 +38032,8 @@ components:
description: The index to write logs to.
example: logs-index
type: string
data_stream:
$ref: '#/components/schemas/ObservabilityPipelineOpenSearchDestinationDataStream'
id:
description: The unique identifier for this component.
example: opensearch-destination
Expand All @@ -38051,6 +38055,23 @@ components:
type: object
x-pipeline-types:
- logs
ObservabilityPipelineOpenSearchDestinationDataStream:
description: Configuration options for writing to OpenSearch Data Streams instead
of a fixed index.
properties:
dataset:
description: The data stream dataset for your logs. This groups logs by
their source or application.
type: string
dtype:
description: The data stream type for your logs. This determines how logs
are categorized within the data stream.
type: string
namespace:
description: The data stream namespace for your logs. This separates logs
into different environments or domains.
type: string
type: object
ObservabilityPipelineOpenSearchDestinationType:
default: opensearch
description: The destination type. The value should always be `opensearch`.
Expand Down Expand Up @@ -49256,18 +49277,6 @@ components:
meta:
$ref: '#/components/schemas/ResponseMetaAttributes'
type: object
SecurityMonitoringPaginatedSuppressionsResponse:
description: Response object containing the available suppression rules with
pagination metadata.
properties:
data:
description: A list of suppressions objects.
items:
$ref: '#/components/schemas/SecurityMonitoringSuppression'
type: array
meta:
$ref: '#/components/schemas/SecurityMonitoringSuppressionsMeta'
type: object
SecurityMonitoringReferenceTable:
description: Reference tables used in the queries.
properties:
Expand Down Expand Up @@ -51417,31 +51426,6 @@ components:
data:
$ref: '#/components/schemas/SecurityMonitoringSuppression'
type: object
SecurityMonitoringSuppressionSort:
description: The sort parameters used for querying suppression rules.
enum:
- name
- start_date
- expiration_date
- update_date
- enabled
- -name
- -start_date
- -expiration_date
- -update_date
- -enabled
type: string
x-enum-varnames:
- NAME
- START_DATE
- EXPIRATION_DATE
- UPDATE_DATE
- ENABLED
- NAME_DESCENDING
- START_DATE_DESCENDING
- EXPIRATION_DATE_DESCENDING
- UPDATE_DATE_DESCENDING
- ENABLED_DESCENDING
SecurityMonitoringSuppressionType:
default: suppressions
description: The type of the resource. The value should always be `suppressions`.
Expand Down Expand Up @@ -51537,31 +51521,6 @@ components:
required:
- data
type: object
SecurityMonitoringSuppressionsMeta:
description: Metadata for the suppression list response.
properties:
page:
$ref: '#/components/schemas/SecurityMonitoringSuppressionsPageMeta'
type: object
SecurityMonitoringSuppressionsPageMeta:
description: Pagination metadata.
properties:
pageNumber:
description: Current page number.
example: 0
format: int64
type: integer
pageSize:
description: Current page size.
example: 2
format: int64
type: integer
totalCount:
description: Total count of suppressions.
example: 2
format: int64
type: integer
type: object
SecurityMonitoringSuppressionsResponse:
description: Response object containing the available suppression rules.
properties:
Expand Down Expand Up @@ -85732,29 +85691,12 @@ paths:
required: false
schema:
type: string
- description: Attribute used to sort the list of suppression rules. Prefix
with `-` to sort in descending order.
in: query
name: sort
required: false
schema:
$ref: '#/components/schemas/SecurityMonitoringSuppressionSort'
- description: Size for a given page. Use `-1` to return all items.
in: query
name: page[size]
required: false
schema:
default: -1
example: 10
format: int64
type: integer
- $ref: '#/components/parameters/PageNumber'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/SecurityMonitoringPaginatedSuppressionsResponse'
$ref: '#/components/schemas/SecurityMonitoringSuppressionsResponse'
description: OK
'403':
$ref: '#/components/responses/NotAuthorizedResponse'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.SecurityMonitoringApi;
import com.datadog.api.client.v2.model.SecurityMonitoringPaginatedSuppressionsResponse;
import com.datadog.api.client.v2.model.SecurityMonitoringSuppressionsResponse;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient);

try {
SecurityMonitoringPaginatedSuppressionsResponse result =
SecurityMonitoringSuppressionsResponse result =
apiInstance.listSecurityMonitoringSuppressions();
System.out.println(result);
} catch (ApiException e) {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading