GetUserBudgetsData
Example Usage
typescript
import { GetUserBudgetsData } from "@meetkai/mka1/models/operations";
let value: GetUserBudgetsData = {
id: "<id>",
scope: "external_user",
scopeId: "<id>",
scopeOrgId: "<id>",
owner: "org",
period: "weekly",
limit: 7362.72,
thresholds: [],
alertWebhookUrl: "https://brilliant-printer.net",
spend: {
window: "<value>",
costSpent: 9610.71,
limit: 5397.88,
pct: 48791,
status: "blocked",
},
};Fields
| Field | Type | Required | Description |
|---|---|---|---|
id | string | ✔️ | N/A |
scope | operations.GetUserBudgetsScope | ✔️ | N/A |
scopeId | string | ✔️ | N/A |
scopeOrgId | string | ✔️ | N/A |
owner | operations.GetUserBudgetsOwner | ✔️ | N/A |
period | operations.GetUserBudgetsPeriod | ✔️ | N/A |
limit | number | ✔️ | N/A |
thresholds | operations.GetUserBudgetsThresholds[] | ✔️ | N/A |
alertWebhookUrl | string | ✔️ | N/A |
spend | operations.GetUserBudgetsSpend | ✔️ | N/A |