Skip to content

SetApiKeyBudgetResponseBody

OK

Example Usage

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

let value: SetApiKeyBudgetResponseBody = {
  id: "<id>",
  scope: "apikey",
  scopeId: "<id>",
  scopeOrgId: "<id>",
  owner: "org",
  period: "daily",
  limit: 7466.55,
  thresholds: [
    {
      pct: 578788,
      action: "alert",
    },
  ],
  alertWebhookUrl: "https://yearly-thunderbolt.org/",
  spend: {
    window: "<value>",
    costSpent: 6750.89,
    limit: 6135.07,
    pct: 292089,
    status: "ok",
  },
};

Fields

FieldTypeRequiredDescription
idstring✔️N/A
scopeoperations.SetApiKeyBudgetScope✔️N/A
scopeIdstring✔️N/A
scopeOrgIdstring✔️N/A
owneroperations.SetApiKeyBudgetBudgetsOwner✔️N/A
periodoperations.SetApiKeyBudgetBudgetsPeriod✔️N/A
limitnumber✔️N/A
thresholdsoperations.SetApiKeyBudgetBudgetsThresholds[]✔️N/A
alertWebhookUrlstring✔️N/A
spendoperations.SetApiKeyBudgetSpend✔️N/A