Budget
laktory.models.resources.databricks.Budget
¤
Bases: BudgetBase
Databricks budget
Examples:
import io
from laktory import models
budget_yaml = '''
display_name: databricks-workspace-budget
alert_configurations:
- time_period: MONTH
trigger_type: CUMULATIVE_SPENDING_EXCEEDED
quantity_type: LIST_PRICE_DOLLARS_USD
quantity_threshold: "840"
action_configurations:
- action_type: EMAIL_NOTIFICATION
target: abc@gmail.com
'''
budget = models.resources.databricks.Budget.model_validate_yaml(
io.StringIO(budget_yaml)
)
References
| BASE | DESCRIPTION |
|---|---|
account_id
|
The ID of the Databricks Account
TYPE:
|
alert_configurations
|
TYPE:
|
budget_configuration_id
|
The ID of the budget configuration
TYPE:
|
create_time
|
TYPE:
|
display_name
|
Name of the budget in Databricks Account
TYPE:
|
filter
|
TYPE:
|
resource_type
|
TYPE:
|
update_time
|
TYPE:
|
laktory.models.resources.databricks.budget.BudgetAlertConfigurations
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
action_configurations
|
List of action configurations to take when the budget alert is triggered. Consists of the following fields:
TYPE:
|
alert_configuration_id
|
TYPE:
|
principal_overrides
|
TYPE:
|
quantity_threshold
|
The threshold for the budget alert to determine if it is in a triggered state. The number is evaluated based on
TYPE:
|
quantity_type
|
The way to calculate cost for this budget alert. This is what quantity_threshold is measured in. (Enum:
TYPE:
|
scope_type
|
TYPE:
|
time_period
|
The time window of usage data for the budget. (Enum:
TYPE:
|
trigger_type
|
The evaluation method to determine when this budget alert is in a triggered state. (Enum:
TYPE:
|
laktory.models.resources.databricks.budget.BudgetAlertConfigurationsActionConfigurations
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
action_configuration_id
|
TYPE:
|
action_type
|
The type of action to take when the budget alert is triggered. (Enum:
TYPE:
|
target
|
The target of the action. For
TYPE:
|
laktory.models.resources.databricks.budget.BudgetAlertConfigurationsPrincipalOverrides
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
override_threshold
|
TYPE:
|
principal_id
|
TYPE:
|
laktory.models.resources.databricks.budget.BudgetFilter
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
tags
|
List of tags to filter by. Consists of the following fields:
TYPE:
|
workspace_id
|
Filter by workspace ID (if empty, include usage all usage for this account). Consists of the following fields:
TYPE:
|
laktory.models.resources.databricks.budget.BudgetFilterTags
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
key
|
The key of the tag
TYPE:
|
value
|
Consists of the following fields:
TYPE:
|
laktory.models.resources.databricks.budget.BudgetFilterTagsValue
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
operator
|
The operator to use for the filter. (Enum:
TYPE:
|
values
|
The values to filter by
TYPE:
|
laktory.models.resources.databricks.budget.BudgetFilterWorkspaceId
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
operator
|
The operator to use for the filter. (Enum:
TYPE:
|
values
|
The values to filter by
TYPE:
|