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
178 changes: 178 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6353,6 +6353,62 @@ components:
type: string
x-enum-varnames:
- ARBITRARY_RULE
ArbitraryRuleStatusResponseArray:
description: Processing statuses for all custom allocation rules in the specified organization.
example:
data:
- attributes:
processing_status: processing
id: "123"
type: arbitrary_rule_status
- attributes:
processing_status: done
id: "456"
type: arbitrary_rule_status
properties:
data:
description: Processing status for a custom allocation rule.
items:
$ref: "#/components/schemas/ArbitraryRuleStatusResponseData"
type: array
required:
- data
type: object
ArbitraryRuleStatusResponseData:
description: Processing status for a custom allocation rule.
properties:
attributes:
$ref: "#/components/schemas/ArbitraryRuleStatusResponseDataAttributes"
id:
description: The unique identifier of the custom allocation rule.
example: "123"
type: string
type:
$ref: "#/components/schemas/ArbitraryRuleStatusResponseDataType"
required:
- id
- type
- attributes
type: object
ArbitraryRuleStatusResponseDataAttributes:
description: Processing status for a custom allocation rule.
properties:
processing_status:
description: The processing status of the custom allocation rule.
example: processing
type: string
required:
- processing_status
type: object
ArbitraryRuleStatusResponseDataType:
default: arbitrary_rule_status
description: Custom allocation rule status resource type.
enum:
- arbitrary_rule_status
example: arbitrary_rule_status
type: string
x-enum-varnames:
- ARBITRARY_RULE_STATUS
Argument:
description: A named argument for a custom static analysis rule.
properties:
Expand Down Expand Up @@ -60251,6 +60307,62 @@ components:
type: string
x-enum-varnames:
- RULESET
RulesetStatusRespArray:
description: Processing statuses for all tag pipeline rulesets in the specified organization.
example:
data:
- attributes:
processing_status: processing
id: 55ef2385-9ae1-4410-90c4-5ac1b60fec10
type: ruleset_status
- attributes:
processing_status: done
id: a7b8c9d0-1234-5678-9abc-def012345678
type: ruleset_status
properties:
data:
description: Processing status for a tag pipeline ruleset.
items:
$ref: "#/components/schemas/RulesetStatusRespData"
type: array
required:
- data
type: object
RulesetStatusRespData:
description: Processing status for a tag pipeline ruleset.
properties:
attributes:
$ref: "#/components/schemas/RulesetStatusRespDataAttributes"
id:
description: The unique identifier of the ruleset.
example: 55ef2385-9ae1-4410-90c4-5ac1b60fec10
type: string
type:
$ref: "#/components/schemas/RulesetStatusRespDataType"
required:
- id
- type
- attributes
type: object
RulesetStatusRespDataAttributes:
description: Processing status for a tag pipeline ruleset.
properties:
processing_status:
description: The processing status of the ruleset.
example: processing
type: string
required:
- processing_status
type: object
RulesetStatusRespDataType:
default: ruleset_status
description: Ruleset status resource type.
enum:
- ruleset_status
example: ruleset_status
type: string
x-enum-varnames:
- RULESET_STATUS
RumCrossProductSampling:
description: The configuration for cross-product retention filters.
properties:
Expand Down Expand Up @@ -94692,6 +94804,39 @@ paths:
summary: Reorder custom allocation rules
tags:
- Cloud Cost Management
/api/v2/cost/arbitrary_rule/status:
get:
description: List the processing status of all custom allocation rules. Returns only the ID and processing status for each rule.
operationId: ListCustomAllocationRulesStatus
responses:
"200":
content:
application/json:
examples:
default:
value:
data:
- attributes:
processing_status: processing
id: "123"
type: arbitrary_rule_status
- attributes:
processing_status: done
id: "456"
type: arbitrary_rule_status
schema:
$ref: "#/components/schemas/ArbitraryRuleStatusResponseArray"
description: OK
"429":
$ref: "#/components/responses/TooManyRequestsResponse"
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cloud_cost_management_read
summary: List custom allocation rule statuses
tags:
- Cloud Cost Management
/api/v2/cost/arbitrary_rule/{rule_id}:
delete:
description: Delete a custom allocation rule - Delete an existing custom allocation rule by its ID
Expand Down Expand Up @@ -140761,6 +140906,39 @@ paths:
summary: Reorder tag pipeline rulesets
tags:
- Cloud Cost Management
/api/v2/tags/enrichment/status:
get:
description: List the processing status of all tag pipeline rulesets. Returns only the ID and processing status for each ruleset.
operationId: ListTagPipelinesRulesetsStatus
responses:
"200":
content:
application/json:
examples:
default:
value:
data:
- attributes:
processing_status: processing
id: 55ef2385-9ae1-4410-90c4-5ac1b60fec10
type: ruleset_status
- attributes:
processing_status: done
id: a7b8c9d0-1234-5678-9abc-def012345678
type: ruleset_status
schema:
$ref: "#/components/schemas/RulesetStatusRespArray"
description: OK
"429":
$ref: "#/components/responses/TooManyRequestsResponse"
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cloud_cost_management_read
summary: List tag pipeline ruleset statuses
tags:
- Cloud Cost Management
/api/v2/tags/enrichment/validate-query:
post:
description: Validate a tag pipeline query - Validate the syntax and structure of a tag pipeline query
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// List custom allocation rule statuses returns "OK" response

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.CloudCostManagementApi;
import com.datadog.api.client.v2.model.ArbitraryRuleStatusResponseArray;

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

try {
ArbitraryRuleStatusResponseArray result = apiInstance.listCustomAllocationRulesStatus();
System.out.println(result);
} catch (ApiException e) {
System.err.println(
"Exception when calling CloudCostManagementApi#listCustomAllocationRulesStatus");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// List tag pipeline ruleset statuses returns "OK" response

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.CloudCostManagementApi;
import com.datadog.api.client.v2.model.RulesetStatusRespArray;

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

try {
RulesetStatusRespArray result = apiInstance.listTagPipelinesRulesetsStatus();
System.out.println(result);
} catch (ApiException e) {
System.err.println(
"Exception when calling CloudCostManagementApi#listTagPipelinesRulesetsStatus");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Loading
Loading