Skip to main content

usages

Creates, updates, deletes, gets or lists a usages resource.

Overview

Nameusages
TypeResource
Idsumologic.budgets.usages

Fields

The following fields are returned by SELECT queries:

The requested budget usage.

NameDatatypeDescription
budget_idstringBudget id. (wire: budgetId)
usageinteger (int64)Budget usage (in bytes).
usage_percentageinteger (int64)Budget usage percentage. (wire: usagePercentage)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbudget_id, regionGet budget usage
listselectregionlimit, tokenGet budget usages

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
budget_idstringThe id of the budget. (wire: budgetId)
regionstringSumo Logic deployment (au, ca, ch, de, eu, fed, in, jp, kr, us1, us2). Resolved from the SUMOLOGIC_ENVIRONMENT environment variable when it is set (x-stackQL-envVar, the same variable the Terraform provider reads); otherwise defaults to us2. A WHERE region = '...' value always takes precedence. (enum: [au, ca, ch, de, eu, fed, in, jp, kr, us1, us2], default: us2, x-stackQL-envVar: SUMOLOGIC_ENVIRONMENT)
limitinteger (int32)Limit the number of budget usages returned in the response. The number of budget usages returned may be less than the limit.
tokenstringContinuation token to get the next page of results. A page object with the next continuation token is returned in the response body. Subsequent GET requests should specify the continuation token to get the next page of results.

SELECT examples

Get budget usage

SELECT
budget_id,
usage,
usage_percentage
FROM sumologic.budgets.usages
WHERE budget_id = '{{ budget_id }}' -- required
AND region = '{{ region }}' -- required unless SUMOLOGIC_ENVIRONMENT is set
;