operations

List recent part events

Changed on

Returns recent part history from system.part_log when enabled. The scan is bounded to the requested from/to window (defaulting to the last 7 days) and to the newest 1000 events per table per node. If a node is reachable but part_log is unavailable, return partial data with a capability warning.

get/part-events

Request

  • Base URL: /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/v1/part-events
  • Auth: none declared

Query parameters

nodeIdstring
Example:shard1-replica1

Filter by movoor configured node id.

databasestring
Example:movoor_dev

Filter by ClickHouse database name.

tablestring
Example:test_generic_network_month_local

Filter by ClickHouse table name.

partitionIdstring
Example:d82d64de29c8683be4aad2f0fd38d74e

Filter by ClickHouse partition_id verbatim. partitionId is URL-safe but unique only within the selected database and table.

partNamestring
Example:20260108_12_12_0

Filter by ClickHouse part name.

eventTypestring
Example:MovePart

Filter by open ClickHouse part_log event type. Known values include NewPart, MergeParts, DownloadPart, RemovePart, and MovePart. Unknown values are valid and return an empty result set when no event exists.

fromstring date-time

Include events at or after this RFC3339 timestamp. When omitted, the window defaults to the last 7 days.

tostring date-time

Include events before or at this RFC3339 timestamp.

Response

Recent part events.

Example response

{
  "collection": {
    "warnings": [
      {
        "code": "node_unreachable",
        "message": "clickhouse-shard2-replica2 did not respond before timeout",
        "nodeId": "shard2-replica2"
      }
    ]
  },
  "items": [
    {
      "nodeId": "shard1-replica1",
      "shard": "shard1",
      "replica": "replica1",
      "durationMs": "104",
      "rows": "104",
      "bytesCompressed": "104",
      "bytesUncompressed": "104",
      "readRows": "104",
      "readBytes": "104",
      "error": "0"
    }
  ]
}

Changes

    • breaking

      response property items/items/allOf[subschema #2]/exception list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property items/items/allOf[subschema #2]/sourceDisk list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

      response property items/items/allOf[subschema #2]/targetDisk list-of-types was widened by adding types null to media type application/json of response 200

    • info

      endpoint added