Skip to content

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 ​

FieldTypeRequiredDescription
idstring✔️N/A
scopeoperations.GetUserBudgetsScope✔️N/A
scopeIdstring✔️N/A
scopeOrgIdstring✔️N/A
owneroperations.GetUserBudgetsOwner✔️N/A
periodoperations.GetUserBudgetsPeriod✔️N/A
limitnumber✔️N/A
thresholdsoperations.GetUserBudgetsThresholds[]✔️N/A
alertWebhookUrlstring✔️N/A
spendoperations.GetUserBudgetsSpend✔️N/A