Package com.datadog.api.client.v1.api
Class UsageMeteringApi.GetMonthlyUsageAttributionOptionalParameters
java.lang.Object
com.datadog.api.client.v1.api.UsageMeteringApi.GetMonthlyUsageAttributionOptionalParameters
- Enclosing class:
- UsageMeteringApi
Manage optional parameters to getMonthlyUsageAttribution.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendMonth(OffsetDateTime endMonth) Set endMonth.includeDescendants(Boolean includeDescendants) Set includeDescendants.nextRecordId(String nextRecordId) Set nextRecordId.sortDirection(UsageSortDirection sortDirection) Set sortDirection.Set sortName.tagBreakdownKeys(String tagBreakdownKeys) Set tagBreakdownKeys.
-
Constructor Details
-
GetMonthlyUsageAttributionOptionalParameters
public GetMonthlyUsageAttributionOptionalParameters()
-
-
Method Details
-
endMonth
public UsageMeteringApi.GetMonthlyUsageAttributionOptionalParameters endMonth(OffsetDateTime endMonth) Set endMonth.- Parameters:
endMonth- Datetime in ISO-8601 format, UTC, precise to month:[YYYY-MM]for usage ending this month. (optional)- Returns:
- GetMonthlyUsageAttributionOptionalParameters
-
sortDirection
public UsageMeteringApi.GetMonthlyUsageAttributionOptionalParameters sortDirection(UsageSortDirection sortDirection) Set sortDirection.- Parameters:
sortDirection- The direction to sort by:[desc, asc]. (optional, default to "desc")- Returns:
- GetMonthlyUsageAttributionOptionalParameters
-
sortName
public UsageMeteringApi.GetMonthlyUsageAttributionOptionalParameters sortName(MonthlyUsageAttributionSupportedMetrics sortName) Set sortName.- Parameters:
sortName- The field to sort by. Sort fields are in the format<usage_type>_usage. Example:infra_host_usageTo obtain the complete list of usage attribution types that can be used to replace<usage_type>in the field names, make a request to the Get usage attribution types API. (optional)- Returns:
- GetMonthlyUsageAttributionOptionalParameters
-
tagBreakdownKeys
public UsageMeteringApi.GetMonthlyUsageAttributionOptionalParameters tagBreakdownKeys(String tagBreakdownKeys) Set tagBreakdownKeys.- Parameters:
tagBreakdownKeys- Comma separated list of tag keys used to group usage. If no value is provided the usage 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:
- GetMonthlyUsageAttributionOptionalParameters
-
nextRecordId
public UsageMeteringApi.GetMonthlyUsageAttributionOptionalParameters nextRecordId(String nextRecordId) Set nextRecordId.- Parameters:
nextRecordId- List following results with a next_record_id provided in the previous query. (optional)- Returns:
- GetMonthlyUsageAttributionOptionalParameters
-
includeDescendants
public UsageMeteringApi.GetMonthlyUsageAttributionOptionalParameters includeDescendants(Boolean includeDescendants) Set includeDescendants.- Parameters:
includeDescendants- Include child org usage in the response. Defaults totrue. (optional, default to true)- Returns:
- GetMonthlyUsageAttributionOptionalParameters
-