SetExternalUserBudgetResponseBody
OK
Example Usage
typescript
import { SetExternalUserBudgetResponseBody } from "@meetkai/mka1/models/operations";
let value: SetExternalUserBudgetResponseBody = {
id: "<id>",
scope: "user",
scopeId: "<id>",
scopeOrgId: "<id>",
owner: "cluster",
period: "monthly",
limit: 6171.6,
thresholds: [
{
pct: 932979,
action: "block",
},
],
alertWebhookUrl: "https://muddy-elver.net",
spend: {
window: "<value>",
costSpent: 3275.32,
limit: 6260.85,
pct: 242408,
status: "ok",
},
};Fields
| Field | Type | Required | Description |
|---|---|---|---|
id | string | ✔️ | N/A |
scope | operations.SetExternalUserBudgetScope | ✔️ | N/A |
scopeId | string | ✔️ | N/A |
scopeOrgId | string | ✔️ | N/A |
owner | operations.SetExternalUserBudgetBudgetsOwner | ✔️ | N/A |
period | operations.SetExternalUserBudgetBudgetsPeriod | ✔️ | N/A |
limit | number | ✔️ | N/A |
thresholds | operations.SetExternalUserBudgetBudgetsThresholds[] | ✔️ | N/A |
alertWebhookUrl | string | ✔️ | N/A |
spend | operations.SetExternalUserBudgetSpend | ✔️ | N/A |