Skip to content

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

FieldTypeRequiredDescription
idstring✔️N/A
scopeoperations.Scope✔️N/A
scopeIdstring✔️N/A
scopeOrgIdstring✔️N/A
owneroperations.SetOrgBudgetOwner✔️N/A
periodoperations.SetOrgBudgetPeriod✔️N/A
limitnumber✔️N/A
thresholdsoperations.SetOrgBudgetThresholds[]✔️N/A
alertWebhookUrlstring✔️N/A
spendoperations.Spend✔️N/A