Package com.datadog.api.client.v2.api
Class UsageMeteringApi.GetMonthlyCostAttributionOptionalParameters
java.lang.Object
com.datadog.api.client.v2.api.UsageMeteringApi.GetMonthlyCostAttributionOptionalParameters
- Enclosing class:
- UsageMeteringApi
Manage optional parameters to getMonthlyCostAttribution.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendMonth(OffsetDateTime endMonth) Set endMonth.includeDescendants(Boolean includeDescendants) Set includeDescendants.nextRecordId(String nextRecordId) Set nextRecordId.sortDirection(SortDirection sortDirection) Set sortDirection.Set sortName.tagBreakdownKeys(String tagBreakdownKeys) Set tagBreakdownKeys.
-
Constructor Details
-
GetMonthlyCostAttributionOptionalParameters
public GetMonthlyCostAttributionOptionalParameters()
-
-
Method Details
-
endMonth
public UsageMeteringApi.GetMonthlyCostAttributionOptionalParameters endMonth(OffsetDateTime endMonth) Set endMonth.- Parameters:
endMonth- Datetime in ISO-8601 format, UTC, precise to month:[YYYY-MM]for cost ending this month. (optional)- Returns:
- GetMonthlyCostAttributionOptionalParameters
-
sortDirection
public UsageMeteringApi.GetMonthlyCostAttributionOptionalParameters sortDirection(SortDirection sortDirection) Set sortDirection.- Parameters:
sortDirection- The direction to sort by:[desc, asc]. (optional, default to "desc")- Returns:
- GetMonthlyCostAttributionOptionalParameters
-
sortName
Set sortName.- Parameters:
sortName- The billing dimension to sort by. Always sorted by total cost. Example:infra_host. (optional)- Returns:
- GetMonthlyCostAttributionOptionalParameters
-
tagBreakdownKeys
public UsageMeteringApi.GetMonthlyCostAttributionOptionalParameters tagBreakdownKeys(String tagBreakdownKeys) Set tagBreakdownKeys.- Parameters:
tagBreakdownKeys- Comma separated list of tag keys used to group cost. If no value is provided the cost will not be broken down by tags. To see which tags are available, look for the value oftag_config_sourcein the API response. (optional)- Returns:
- GetMonthlyCostAttributionOptionalParameters
-
nextRecordId
public UsageMeteringApi.GetMonthlyCostAttributionOptionalParameters nextRecordId(String nextRecordId) Set nextRecordId.- Parameters:
nextRecordId- List following results with a next_record_id provided in the previous query. (optional)- Returns:
- GetMonthlyCostAttributionOptionalParameters
-
includeDescendants
public UsageMeteringApi.GetMonthlyCostAttributionOptionalParameters includeDescendants(Boolean includeDescendants) Set includeDescendants.- Parameters:
includeDescendants- Include child org cost in the response. Defaults totrue. (optional, default to true)- Returns:
- GetMonthlyCostAttributionOptionalParameters
-