Skip to content

GetApiKeyBudgetsData

Example Usage

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

let value: GetApiKeyBudgetsData = {
  id: "<id>",
  scope: "org",
  scopeId: "<id>",
  scopeOrgId: "<id>",
  owner: "cluster",
  period: "monthly",
  limit: 4333.99,
  thresholds: [
    {
      pct: 652515,
      action: "block",
    },
  ],
  alertWebhookUrl: "https://shimmering-overcoat.biz",
  spend: {
    window: "<value>",
    costSpent: 7311.25,
    limit: 3727.24,
    pct: 342301,
    status: "ok",
  },
};

Fields

FieldTypeRequiredDescription
idstring✔️N/A
scopeoperations.GetApiKeyBudgetsScope✔️N/A
scopeIdstring✔️N/A
scopeOrgIdstring✔️N/A
owneroperations.GetApiKeyBudgetsOwner✔️N/A
periodoperations.GetApiKeyBudgetsPeriod✔️N/A
limitnumber✔️N/A
thresholdsoperations.GetApiKeyBudgetsThresholds[]✔️N/A
alertWebhookUrlstring✔️N/A
spendoperations.GetApiKeyBudgetsSpend✔️N/A