{"owner":"prestodb","repo":"presto","hasSpec":true,"specFile":"presto-openapi/src/main/resources/cluster.yaml","branch":"HEAD","format":"yaml","version":"3.x (YAML)","title":"presto","description":"","endpoints":[],"spec":"openapi: 3.0.0\ninfo:\n  title: Presto Cluster Stats API\n  description: API for retrieving cluster statistics in Presto.\n  version: \"1\"\nservers:\n  - url: http://localhost:8080\n    description: Presto endpoint when running locally\npaths:\n  /v1/cluster:\n    get:\n      summary: Retrieve cluster statistics\n      description: Retrieves statistics about the Presto cluster, such as running queries, blocked queries, and memory usage.\n      parameters:\n        - name: includeLocalInfoOnly\n          in: query\n          required: false\n          schema:\n            type: boolean\n            default: false\n          description: Include only local information\n      responses:\n        '200':\n          description: Cluster statistics\n          content:\n            application/json:\n              schema:\n                $ref: './schemas.yaml/#/components/schemas/ClusterStats'\n  /v1/cluster/memory:\n    get:\n      summary: Retrieve cluster memory pool information\n      description: Retrieves information about the memory pools in the Presto cluster.\n      responses:\n        '200':\n          description: Cluster memory pool information\n          content:\n            application/json:\n              schema:\n                type: object\n                additionalProperties:\n                  $ref: './schemas.yaml/#/components/schemas/MemoryPoolInfo'\n  /v1/cluster/workerMemory:\n    get:\n      summary: Retrieve worker memory information\n      description: Retrieves information about the memory usage of workers in the Presto cluster.\n      responses:\n        '200':\n          description: Worker memory information\n          content:\n            application/json:\n              schema:\n                type: object\n\n                additionalProperties:\n                  $ref: './schemas.yaml/#/components/schemas/MemoryInfo'\n  /v1/cluster/ttl:\n    get:\n      summary: Retrieve cluster TTL information\n      description: Retrieves time-to-live (TTL) information for the Presto cluster.\n      responses:\n        '200':\n          description: Cluster TTL information\n          content:\n            application/json:\n              schema:\n                $ref: './schemas.yaml/#/components/schemas/ConfidenceBasedTtlInfo'\n"}