Skip to content

GetOrgBudgetsData

Example Usage

typescript
import { GetOrgBudgetsData } from "@meetkai/mka1/models/operations";

let value: GetOrgBudgetsData = {
  id: "<id>",
  scope: "apikey",
  scopeId: "<id>",
  scopeOrgId: "<id>",
  owner: "cluster",
  period: "weekly",
  limit: 6899.14,
  thresholds: [
    {
      pct: 888957,
      action: "alert",
    },
  ],
  alertWebhookUrl: "https://stupendous-contractor.info/",
  spend: {
    window: "<value>",
    costSpent: 1036.17,
    limit: 2756.86,
    pct: 825341,
    status: "ok",
  },
};

Fields

FieldTypeRequiredDescription
idstring✔️N/A
scopeoperations.GetOrgBudgetsScope✔️N/A
scopeIdstring✔️N/A
scopeOrgIdstring✔️N/A
owneroperations.GetOrgBudgetsOwner✔️N/A
periodoperations.GetOrgBudgetsPeriod✔️N/A
limitnumber✔️N/A
thresholdsoperations.GetOrgBudgetsThresholds[]✔️N/A
alertWebhookUrlstring✔️N/A
spendoperations.GetOrgBudgetsSpend✔️N/A