Zum Inhalt
HALOWERK

Finopswerk

burst credit surplus ledger

Original5minuteCPUusage,earnedrate,initialcredit/debtcapture reconstruct coupled earnedcredit,surplus,paydown,discard,excesscharge and terminalUnlimited-to-Standardcharge. Exacttwelfth-vCPU-minuteunits,24hearningcap;periodchargeattributionnotcashpostingtime. NoT2launchcredits,stop-persistence,Standardcontroller,realEC2/CloudWatch/bill/price/moneycertification. Oneboundedinitialcreditcapturekeeps2wholeworlds.Strictrecursive reportkeys/objectorderirrelevant/arraysordered. A schema-valid.

POST https://finops.halowerk.com/v1/burst-credit-surplus-ledger

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
earn_credits_per_hourintegerJa
vcpusintegerJa
initial_credit_domainarrayJa
initial_surplusintegerJa
usage_twelfthsarrayJa
switch_to_standardbooleanJa
reportobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "earn_credits_per_hour": {
      "type": "integer",
      "minimum": 1,
      "maximum": 120
    },
    "vcpus": {
      "type": "integer",
      "minimum": 1,
      "maximum": 8
    },
    "initial_credit_domain": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 34560
      },
      "minItems": 1,
      "maxItems": 2
    },
    "initial_surplus": {
      "type": "integer",
      "minimum": 0,
      "maximum": 34560
    },
    "usage_twelfths": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 480
      },
      "minItems": 1,
      "maxItems": 12
    },
    "switch_to_standard": {
      "type": "boolean"
    },
    "report": {
      "type": "object",
      "properties": {
        "trace": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "credit": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "surplus": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "charged": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "discarded": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "credit",
              "surplus",
              "charged",
              "discarded"
            ],
            "additionalProperties": false
          },
          "minItems": 1,
          "maxItems": 12
        },
        "final": {
          "type": "object",
          "properties": {
            "credit": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 1000000
                },
                {
                  "type": "null"
                }
              ]
            },
            "surplus": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 1000000
                },
                {
                  "type": "null"
                }
              ]
            },
            "charged_total": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 1000000
                },
                {
                  "type": "null"
                }
              ]
            },
            "terminal_charge": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 1000000
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "credit",
            "surplus",
            "charged_total",
            "terminal_charge"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "trace",
        "final"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "earn_credits_per_hour",
    "vcpus",
    "initial_credit_domain",
    "initial_surplus",
    "usage_twelfths",
    "switch_to_standard",
    "report"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "earn_credits_per_hour": 1,
  "vcpus": 8,
  "initial_credit_domain": [
    288
  ],
  "initial_surplus": 0,
  "usage_twelfths": [
    0,
    0
  ],
  "switch_to_standard": false,
  "report": {
    "trace": [
      {
        "credit": 288,
        "surplus": 0,
        "charged": 0,
        "discarded": 1
      },
      {
        "credit": 288,
        "surplus": 0,
        "charged": 0,
        "discarded": 1
      }
    ],
    "final": {
      "credit": 288,
      "surplus": 0,
      "charged_total": 0,
      "terminal_charge": 0
    }
  }
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-07, 02:42 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →