SetOrgBudgetResponseBody
OK
Example Usage
typescript
import { SetOrgBudgetResponseBody } from "@meetkai/mka1/models/operations";
let value: SetOrgBudgetResponseBody = {
id: "<id>",
scope: "apikey",
scopeId: "<id>",
scopeOrgId: "<id>",
owner: "cluster",
period: "monthly",
limit: 4064.42,
thresholds: [
{
pct: 140982,
action: "alert",
},
],
alertWebhookUrl: "https://thrifty-substitution.org/",
spend: {
window: "<value>",
costSpent: 7151.89,
limit: 3068.43,
pct: 819582,
status: "blocked",
},
};Fields
| Field | Type | Required | Description |
|---|---|---|---|
id | string | ✔️ | N/A |
scope | operations.Scope | ✔️ | N/A |
scopeId | string | ✔️ | N/A |
scopeOrgId | string | ✔️ | N/A |
owner | operations.SetOrgBudgetOwner | ✔️ | N/A |
period | operations.SetOrgBudgetPeriod | ✔️ | N/A |
limit | number | ✔️ | N/A |
thresholds | operations.SetOrgBudgetThresholds[] | ✔️ | N/A |
alertWebhookUrl | string | ✔️ | N/A |
spend | operations.Spend | ✔️ | N/A |