budgets

Get a budget's notification rule

Changed on

Returns a limit budget's notification rule: the thresholds at which it fires, the channels that receive the alerts, and the wording of its messages. A budget has at most one rule.

If the budget has no rule, the organization has no budget with this identifier that the caller can see, or the identifier isn't a valid UUID, the request fails with 404. An exemption has no rule, so if the budget is an exemption, the request fails with 400.

get/v1/ai-cost-management/budgets/{budgetId}/notification-rule

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

budgetId, string uuid required

The id of the budget.

Response

The notification rule.

AICostNotificationRule required
budget, AICostBudgetReference required

The budget the rule belongs to.

thresholds, AICostNotificationThreshold[] required

The shares of the limit at which the rule fires. Each threshold fires at most once per budget window, derived budget, and limit, and changing the limit lets the thresholds fire again.

Ordered by percent, lowest first.

channels, object[] required

The channels that receive the rule's alerts.

At most 10 channels, each listed once. Reads return them ordered by channel name.

message, object nullable required

The wording of the rule's alerts, or null when the rule uses the built-in wording.

managed_by, ManagedBy required

Identifies the tool that manages this resource, such as {"tool": "terraform-provider-konnect"}. The service stores the value and never acts on it.

created_at, string date-time required

An ISO-8601 timestamp representation of entity creation date.

updated_at, string date-time required

An ISO-8601 timestamp representation of entity update date.

Example response

{
  "managed_by": {
    "owner": "terraform"
  },
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Changes