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
317 changes: 292 additions & 25 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4053,6 +4053,86 @@ components:
type: string
type: array
type: object
AccountFilters:
description: The account filters for a cloud account.
properties:
attributes:
$ref: "#/components/schemas/AccountFiltersAttributes"
id:
description: The ID of the cloud account.
example: "123456789123"
type: string
type:
$ref: "#/components/schemas/AccountFiltersType"
required:
- attributes
- type
type: object
AccountFiltersAttributes:
description: Attributes for the account filters of a cloud account.
properties:
account_filters:
$ref: "#/components/schemas/AccountFilteringConfig"
account_id:
description: The cloud account ID.
example: "123456789123"
type: string
cloud:
description: The cloud provider of the account, for example `aws`, `aws_cur2`, or `oci`.
example: "aws_cur2"
type: string
type: object
AccountFiltersPatchData:
description: Account filters patch data.
properties:
attributes:
$ref: "#/components/schemas/AccountFiltersPatchRequestAttributes"
type:
$ref: "#/components/schemas/AccountFiltersPatchRequestType"
required:
- attributes
- type
type: object
AccountFiltersPatchRequest:
description: Account filters patch request.
properties:
data:
$ref: "#/components/schemas/AccountFiltersPatchData"
required:
- data
type: object
AccountFiltersPatchRequestAttributes:
description: Attributes for an account filters patch request.
properties:
account_filters:
$ref: "#/components/schemas/AccountFilteringConfig"
required:
- account_filters
type: object
AccountFiltersPatchRequestType:
default: account_filters_patch_request
description: Type of account filters patch request.
enum:
- account_filters_patch_request
example: account_filters_patch_request
type: string
x-enum-varnames:
- ACCOUNT_FILTERS_PATCH_REQUEST
AccountFiltersResponse:
description: Response containing the account filters for a cloud account.
properties:
data:
$ref: "#/components/schemas/AccountFilters"
type: object
AccountFiltersType:
default: account_filters
description: Type of account filters.
enum:
- account_filters
example: account_filters
type: string
x-enum-varnames:
- ACCOUNT_FILTERS
ActionConnectionAttributes:
description: The definition of `ActionConnectionAttributes` object.
properties:
Expand Down Expand Up @@ -70492,6 +70572,8 @@ components:
$ref: "#/components/schemas/ObservabilityPipelineTagCardinalityLimitProcessorPerMetricLimit"
maxItems: 100
type: array
tracking_mode:
$ref: "#/components/schemas/ObservabilityPipelineTagCardinalityLimitProcessorTrackingMode"
type:
$ref: "#/components/schemas/ObservabilityPipelineTagCardinalityLimitProcessorType"
value_limit:
Expand All @@ -70506,6 +70588,7 @@ components:
- type
- include
- limit_exceeded_action
- tracking_mode
- value_limit
- enabled
type: object
Expand All @@ -70520,6 +70603,16 @@ components:
x-enum-varnames:
- DROP_TAG
- DROP_EVENT
ObservabilityPipelineTagCardinalityLimitProcessorOverrideType:
description: How the override is applied. `limit_override` enforces a custom limit; `excluded` omits the metric or tag from cardinality tracking.
enum:
- limit_override
- excluded
example: limit_override
type: string
x-enum-varnames:
- LIMIT_OVERRIDE
- EXCLUDED
ObservabilityPipelineTagCardinalityLimitProcessorPerMetricLimit:
description: A cardinality override applied to a specific metric.
properties:
Expand All @@ -70529,65 +70622,63 @@ components:
description: The name of the metric this override applies to.
example: "system.cpu.user"
type: string
mode:
$ref: "#/components/schemas/ObservabilityPipelineTagCardinalityLimitProcessorPerMetricMode"
override_type:
$ref: "#/components/schemas/ObservabilityPipelineTagCardinalityLimitProcessorOverrideType"
per_tag_limits:
description: A list of per-tag cardinality overrides that apply within this metric. Must be omitted when `mode` is `excluded`.
description: A list of per-tag cardinality overrides that apply within this metric. Must be omitted when `override_type` is `excluded`.
items:
$ref: "#/components/schemas/ObservabilityPipelineTagCardinalityLimitProcessorPerTagLimit"
maxItems: 50
type: array
value_limit:
description: The maximum number of distinct tag value combinations allowed for this metric. Required when `mode` is `tracked`. Must be omitted when `mode` is `excluded`.
description: The maximum number of distinct tag value combinations allowed for this metric. Required when `override_type` is `limit_override`. Must be omitted when `override_type` is `excluded`.
example: 10000
format: int64
maximum: 1000000
minimum: 0
type: integer
required:
- metric_name
- mode
- override_type
type: object
ObservabilityPipelineTagCardinalityLimitProcessorPerMetricMode:
description: How the per-metric override is applied. `tracked` enforces a custom limit; `excluded` skips the metric entirely.
enum:
- tracked
- excluded
example: tracked
type: string
x-enum-varnames:
- TRACKED
- EXCLUDED
ObservabilityPipelineTagCardinalityLimitProcessorPerTagLimit:
description: A cardinality override for a specific tag key within a per-metric limit.
properties:
mode:
$ref: "#/components/schemas/ObservabilityPipelineTagCardinalityLimitProcessorPerTagMode"
override_type:
$ref: "#/components/schemas/ObservabilityPipelineTagCardinalityLimitProcessorOverrideType"
tag_key:
description: The tag key this override applies to.
example: "host"
type: string
value_limit:
description: The maximum number of distinct values allowed for this tag. Required when `mode` is `limit_override`. Must be omitted when `mode` is `excluded`.
description: The maximum number of distinct values allowed for this tag. Required when `override_type` is `limit_override`. Must be omitted when `override_type` is `excluded`.
example: 5000
format: int64
maximum: 1000000
minimum: 0
type: integer
required:
- tag_key
- override_type
type: object
ObservabilityPipelineTagCardinalityLimitProcessorTrackingMode:
description: Controls whether the processor uses exact or probabilistic tag tracking.
properties:
mode:
$ref: "#/components/schemas/ObservabilityPipelineTagCardinalityLimitProcessorTrackingModeMode"
required:
- mode
type: object
ObservabilityPipelineTagCardinalityLimitProcessorPerTagMode:
description: How the per-tag override is applied. `limit_override` enforces a custom limit on the tag; `excluded` skips the tag from cardinality tracking.
ObservabilityPipelineTagCardinalityLimitProcessorTrackingModeMode:
description: The cardinality tracking algorithm to use.
enum:
- limit_override
- excluded
example: limit_override
- exact_fingerprint
- probabilistic
example: exact_fingerprint
type: string
x-enum-varnames:
- LIMIT_OVERRIDE
- EXCLUDED
- EXACT_FINGERPRINT
- PROBABILISTIC
ObservabilityPipelineTagCardinalityLimitProcessorType:
default: tag_cardinality_limit
description: The processor type. The value must be `tag_cardinality_limit`.
Expand Down Expand Up @@ -125706,6 +125797,182 @@ paths:
"x-permission":
operator: OPEN
permissions: []
/api/v2/cost/account_filters/{cloud_account_id}:
get:
description: Get the account filters for a cloud account (AWS CUR 1.0/2.0, OCI, and other clouds).
operationId: GetCostAccountFilters
parameters:
- $ref: "#/components/parameters/CloudAccountID"
responses:
"200":
content:
application/json:
examples:
default:
summary: Include new accounts and exclude specific accounts
value:
data:
attributes:
account_filters:
excluded_accounts:
- "123456789123"
- "123456789143"
include_new_accounts: true
account_id: "123456789123"
cloud: aws_cur2
id: "123"
type: account_filters
include_accounts:
summary: Exclude new accounts and include specific accounts
value:
data:
attributes:
account_filters:
include_new_accounts: false
included_accounts:
- "123456789123"
- "123456789143"
account_id: "123456789123"
cloud: aws_cur2
id: "123"
type: account_filters
schema:
$ref: "#/components/schemas/AccountFiltersResponse"
description: OK
"400":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Bad Request
"403":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Forbidden
"404":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Not Found
"429":
$ref: "#/components/responses/TooManyRequestsResponse"
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cloud_cost_management_read
summary: Get account filters
tags:
- Cloud Cost Management
"x-permission":
operator: OR
permissions:
- cloud_cost_management_read
patch:
description: Update the account filters for a cloud account (AWS CUR 1.0/2.0, OCI, and other clouds).
operationId: UpdateCostAccountFilters
parameters:
- $ref: "#/components/parameters/CloudAccountID"
requestBody:
content:
application/json:
examples:
default:
summary: Exclude new accounts and include specific accounts
value:
data:
attributes:
account_filters:
include_new_accounts: false
included_accounts:
- "123456789123"
- "123456789143"
type: account_filters_patch_request
exclude_accounts:
summary: Include new accounts and exclude specific accounts
value:
data:
attributes:
account_filters:
excluded_accounts:
- "123456789123"
- "123456789143"
include_new_accounts: true
type: account_filters_patch_request
schema:
$ref: "#/components/schemas/AccountFiltersPatchRequest"
required: true
responses:
"200":
content:
application/json:
examples:
default:
summary: Exclude new accounts and include specific accounts
value:
data:
attributes:
account_filters:
include_new_accounts: false
included_accounts:
- "123456789123"
- "123456789143"
account_id: "123456789123"
cloud: aws_cur2
id: "123"
type: account_filters
exclude_accounts:
summary: Include new accounts and exclude specific accounts
value:
data:
attributes:
account_filters:
excluded_accounts:
- "123456789123"
- "123456789143"
include_new_accounts: true
account_id: "123456789123"
cloud: aws_cur2
id: "123"
type: account_filters
schema:
$ref: "#/components/schemas/AccountFiltersResponse"
description: OK
"400":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Bad Request
"403":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Forbidden
"404":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Not Found
"429":
$ref: "#/components/responses/TooManyRequestsResponse"
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cloud_cost_management_write
summary: Update account filters
tags:
- Cloud Cost Management
"x-permission":
operator: OR
permissions:
- cloud_cost_management_write
/api/v2/cost/anomalies:
get:
description: List detected Cloud Cost Management anomalies for the organization.
Expand Down
Loading
Loading