Zum Inhalt
HALOWERK

Finopswerk

partition storage age ledger

From original partition sizes/lastmod and data-changing versus neutral events reconstruct90consecutive-model-day tier clocks and exact active/longterm byte-day integrals. Data changes reset targeted partitions; replace resets whole roster;query/export/sourcecopy/resourcepatch do not. One missing modification effect keeps both fullhistories. Own integer model-daylogical profile,not actual clock/UTC/provider bill/physical/time-travel/prices/SQL certification. Strict.

POST https://finops.halowerk.com/v1/partition-storage-age-ledger

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
window_startintegerJa
window_endintegerJa
partitionsarrayJa
eventsarrayJa
reportobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "window_start": {
      "type": "integer",
      "minimum": 0,
      "maximum": 365
    },
    "window_end": {
      "type": "integer",
      "minimum": 1,
      "maximum": 730
    },
    "partitions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_]{0,7}$",
            "minLength": 1,
            "maxLength": 8
          },
          "bytes": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "last_modified_day": {
            "type": "integer",
            "minimum": -365,
            "maximum": 365
          }
        },
        "required": [
          "id",
          "bytes",
          "last_modified_day"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 3
    },
    "events": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "enum": [
              "query",
              "export",
              "copy_out",
              "metadata_patch",
              "load_append",
              "copy_in",
              "query_write",
              "stream_append",
              "dml",
              "replace_table"
            ]
          },
          "at": {
            "type": "integer",
            "minimum": 0,
            "maximum": 730
          },
          "targets": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9_]{0,7}$",
              "minLength": 1,
              "maxLength": 8
            },
            "minItems": 0,
            "maxItems": 3
          },
          "amounts": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": -1000000,
              "maximum": 1000000
            },
            "minItems": 0,
            "maxItems": 3
          },
          "applied": {
            "enum": [
              true,
              false,
              null
            ]
          }
        },
        "required": [
          "kind",
          "at",
          "targets",
          "amounts",
          "applied"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 8
    },
    "report": {
      "type": "object",
      "properties": {
        "events": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "active_bytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000000000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "long_term_bytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000000000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "active_byte_days": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000000000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "long_term_byte_days": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000000000
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "active_bytes",
              "long_term_bytes",
              "active_byte_days",
              "long_term_byte_days"
            ],
            "additionalProperties": false
          },
          "minItems": 1,
          "maxItems": 8
        },
        "partitions": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_]{0,7}$",
                    "minLength": 1,
                    "maxLength": 8
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "bytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9000000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "last_modified_day": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -365,
                    "maximum": 730
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "tier": {
                "anyOf": [
                  {
                    "enum": [
                      "active",
                      "long_term"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "active_byte_days": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000000000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "long_term_byte_days": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000000000
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "bytes",
              "last_modified_day",
              "tier",
              "active_byte_days",
              "long_term_byte_days"
            ],
            "additionalProperties": false
          },
          "minItems": 1,
          "maxItems": 3
        },
        "final": {
          "type": "object",
          "properties": {
            "active_bytes": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 100000000000
                },
                {
                  "type": "null"
                }
              ]
            },
            "long_term_bytes": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 100000000000
                },
                {
                  "type": "null"
                }
              ]
            },
            "active_byte_days": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 100000000000
                },
                {
                  "type": "null"
                }
              ]
            },
            "long_term_byte_days": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 100000000000
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "active_bytes",
            "long_term_bytes",
            "active_byte_days",
            "long_term_byte_days"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "events",
        "partitions",
        "final"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "window_start",
    "window_end",
    "partitions",
    "events",
    "report"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "window_start": 30,
  "window_end": 160,
  "partitions": [
    {
      "id": "a",
      "bytes": 100,
      "last_modified_day": 0
    },
    {
      "id": "b",
      "bytes": 200,
      "last_modified_day": 20
    }
  ],
  "events": [
    {
      "kind": "export",
      "at": 89,
      "targets": [],
      "amounts": [],
      "applied": true
    },
    {
      "kind": "query",
      "at": 90,
      "targets": [],
      "amounts": [],
      "applied": true
    },
    {
      "kind": "dml",
      "at": 100,
      "targets": [
        "b"
      ],
      "amounts": [
        0
      ],
      "applied": true
    },
    {
      "kind": "copy_out",
      "at": 110,
      "targets": [],
      "amounts": [],
      "applied": true
    },
    {
      "kind": "metadata_patch",
      "at": 120,
      "targets": [],
      "amounts": [],
      "applied": true
    }
  ],
  "report": {
    "events": [
      {
        "active_bytes": 300,
        "long_term_bytes": 0,
        "active_byte_days": 17700,
        "long_term_byte_days": 0
      },
      {
        "active_bytes": 200,
        "long_term_bytes": 100,
        "active_byte_days": 18000,
        "long_term_byte_days": 0
      },
      {
        "active_bytes": 200,
        "long_term_bytes": 100,
        "active_byte_days": 20000,
        "long_term_byte_days": 1000
      },
      {
        "active_bytes": 200,
        "long_term_bytes": 100,
        "active_byte_days": 22000,
        "long_term_byte_days": 2000
      },
      {
        "active_bytes": 200,
        "long_term_bytes": 100,
        "active_byte_days": 24000,
        "long_term_byte_days": 3000
      }
    ],
    "partitions": [
      {
        "id": "a",
        "bytes": 100,
        "last_modified_day": 0,
        "tier": "long_term",
        "active_byte_days": 6000,
        "long_term_byte_days": 7000
      },
      {
        "id": "b",
        "bytes": 200,
        "last_modified_day": 100,
        "tier": "active",
        "active_byte_days": 26000,
        "long_term_byte_days": 0
      }
    ],
    "final": {
      "active_bytes": 200,
      "long_term_bytes": 100,
      "active_byte_days": 32000,
      "long_term_byte_days": 7000
    }
  }
}

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 →