{"openapi":"3.0.0","servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/neu-0a5/Yunikorn-1.6.2/1.0.0"},{"url":"http://{yunikorn-host}:30889","description":"YuniKorn API Server","variables":{"yunikorn-host":{"default":"10.110.55.66","description":"Hostname of the YuniKorn scheduler service"}}}],"info":{"description":"REST API for interacting with the Apache YuniKorn, providing cluster, scheduler, and system-level information.\n\nThis is not an official Apache YuniKorn document; please refer to the official documentation for accuracy.","version":"1.0.0","title":"Apache YuniKorn REST APIs","license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}},"tags":[{"name":"cluster","description":"Returns cluster information","externalDocs":{"description":"cluster api","url":"https://yunikorn.apache.org/docs/api/cluster"}},{"name":"scheduler","description":"Returns scheduler information","externalDocs":{"description":"scheduler api","url":"https://yunikorn.apache.org/docs/api/scheduler"}},{"name":"system","description":"Providing system information","externalDocs":{"description":"system api","url":"https://yunikorn.apache.org/docs/api/system"}}],"paths":{"/ws/v1/clusters":{"get":{"tags":["cluster"],"summary":"Retrieve general information about clusters","description":"Returns general information about the clusters managed by the YuniKorn Scheduler, including build information about resource managers.","operationId":"getClusters","responses":{"200":{"description":"Successful response with cluster information","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ClusterSuccessResponse"}}}}},"500":{"description":"Internal server error"}}}},"/ws/v1/metrics":{"get":{"tags":["cluster"],"summary":"Retrieve Prometheus metrics","description":"Endpoint to retrieve metrics from the Prometheus server. The metrics are dumped with help messages and type information.","operationId":"getMetrics","responses":{"200":{"description":"Successful response with Prometheus metrics","content":{"text/plain":{"schema":{"type":"string","example":"# HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.\n# TYPE go_gc_duration_seconds summary\ngo_gc_duration_seconds{quantile=\"0\"} 2.567e-05\ngo_gc_duration_seconds{quantile=\"0.25\"} 3.5727e-05\ngo_gc_duration_seconds{quantile=\"0.5\"} 4.5144e-05\ngo_gc_duration_seconds{quantile=\"0.75\"} 6.0024e-05\ngo_gc_duration_seconds{quantile=\"1\"} 0.00022528\ngo_gc_duration_seconds_sum 0.021561648\ngo_gc_duration_seconds_count 436\n# HELP go_goroutines Number of goroutines that currently exist.\n# TYPE go_goroutines gauge\ngo_goroutines 82\n# HELP go_info Information about the Go environment.\n# TYPE go_info gauge\ngo_info{version=\"go1.12.17\"} 1\n# HELP go_memstats_alloc_bytes Number of bytes allocated and still in use.\n# TYPE go_memstats_alloc_bytes gauge\ngo_memstats_alloc_bytes 9.6866248e+07\n\n...\n\n# HELP yunikorn_scheduler_vcore_nodes_usage Nodes resource usage, by resource name.\n# TYPE yunikorn_scheduler_vcore_nodes_usage gauge\nyunikorn_scheduler_vcore_nodes_usage{range=\"(10%, 20%]\"} 0\nyunikorn_scheduler_vcore_nodes_usage{range=\"(20%,30%]\"} 0\nyunikorn_scheduler_vcore_nodes_usage{range=\"(30%,40%]\"} 0\nyunikorn_scheduler_vcore_nodes_usage{range=\"(40%,50%]\"} 0\nyunikorn_scheduler_vcore_nodes_usage{range=\"(50%,60%]\"} 0\nyunikorn_scheduler_vcore_nodes_usage{range=\"(60%,70%]\"} 0\nyunikorn_scheduler_vcore_nodes_usage{range=\"(70%,80%]\"} 1\nyunikorn_scheduler_vcore_nodes_usage{range=\"(80%,90%]\"} 0\nyunikorn_scheduler_vcore_nodes_usage{range=\"(90%,100%]\"} 0\nyunikorn_scheduler_vcore_nodes_usage{range=\"[0,10%]\"} 0\n"}}}}}}},"/ws/v1/config":{"get":{"tags":["cluster"],"summary":"Retrieve scheduler configuration","description":"Endpoint to retrieve the current scheduler configuration","operationId":"getConfig","responses":{"200":{"description":"Successful response with configuration details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigSuccessResponse"}},"text/plain":{"schema":{"type":"string","example":"partitions:\n    - name: default\n      queues:\n          - name: root\n            parent: true\n            submitacl: \"*\"\n      placementrules:\n          - name: tag\n            create: true\n            value: namespace\nchecksum: FD5D3726DF0F02416E02F3919D78F61B15D14425A34142D93B24C137ED056946\nextra:\n    event.trackingEnabled: \"false\"\n    log.core.scheduler.level: info\n    log.core.security.level: info\n    log.level: debug\n"}}}}}}},"/ws/v1/validate-conf":{"post":{"tags":["cluster"],"summary":"Validate scheduler configuration","description":"Regardless whether the configuration is allowed or not if the server was able to process the request, it will yield a 200 HTTP status code.","operationId":"postValidateConf","requestBody":{"required":true,"content":{"text/plain":{"schema":{"type":"string"},"examples":{"validConfig":{"summary":"Allowed configuration","description":"Sending the following simple configuration yields an accept","value":"partitions:\n- name: default\n  queues:\n    - name: root\n      queues:\n        - name: test\n"},"invalidConfig":{"summary":"Disallowed configuration","description":"The following configuration is not allowed due to the \"wrong_text\" field put into the yaml file.","value":"partitions:\n- name: default\n  queues:\n    - name: root\n      queues:\n        - name: test\n- wrong_text\n"}}}}},"responses":{"200":{"description":"Configuration validation result, indicating whether the configuration is valid or invalid","content":{"application/json":{"examples":{"validConfig":{"summary":"valid","value":{"allowed":true,"message":"Configuration is valid"}},"invalidConfig":{"summary":"invalid","value":{"allowed":false,"message":"Invalid configuration queue name cannot be empty"}}}}}}}}},"/ws/v1/partitions":{"get":{"tags":["scheduler"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartitionsSuccessResponse"},"examples":{"onePartition":{"summary":"single partition example"},"twoPartitions":{"summary":"multiple partitions example","value":[{"clusterId":"mycluster","name":"default","state":"Active","lastStateTransitionTime":1649167576110754000,"capacity":{"capacity":{"ephemeral-storage":188176871424,"hugepages-1Gi":0,"hugepages-2Mi":0,"memory":1000000000,"pods":330,"vcore":1000},"usedCapacity":{"memory":800000000,"vcore":500},"utilization":{"memory":80,"vcore":50}},"nodeSortingPolicy":{"type":"fair","resourceWeights":{"memory":1.5,"vcore":1.3}},"applications":{"New":5,"Pending":5,"total":10},"totalContainers":0,"totalNodes":2},{"clusterId":"mycluster","name":"gpu","state":"Active","lastStateTransitionTime":1649167576111236000,"capacity":{"capacity":{"memory":2000000000,"vcore":2000},"usedCapacity":{"memory":500000000,"vcore":300},"utilization":{"memory":25,"vcore":15}},"nodeSortingPolicy":{"type":"binpacking","resourceWeights":{"memory":0,"vcore":4.11}},"applications":{"New":5,"Running":10,"Pending":5,"total":20},"totalContainers":20,"totalNodes":5}]}}}}},"500":{"description":"Internal server error"}},"operationId":"getPartitions","description":"Returns general information and statistics about a partition.","summary":"Retrieve partitions information"}},"/ws/v1/partition/{partitionName}/placementrules":{"parameters":[{"schema":{"type":"string"},"name":"partitionName","in":"path","required":true}],"get":{"summary":"Retrieve placement rules for partition","tags":["scheduler"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","example":"recovery"},"parameters":{"type":"object","properties":{"queue":{"type":"string","example":"root.@recovery@"}}}}}}}},"400":{"description":"Bad Request (URL query is invalid, missing partition name)"},"404":{"description":"Not Found (Partition not found)"},"500":{"description":"Internal Server Error"}},"operationId":"","description":"Returns the list of currently active placement rules for the partition. This list can be different from the list in the configuration.\r\n\r\n"}},"/ws/v1/partition/{partitionName}/queues":{"parameters":[{"schema":{"type":"string"},"name":"partitionName","in":"path","required":true}],"get":{"summary":"Retrieve all queues info","tags":["scheduler"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Queues"}}}},"400":{"description":"Bad Request (URL query is invalid, missing partition name)"},"404":{"description":"Not Found (Partition not found)"},"500":{"description":"Internal Server Error"}},"operationId":"","description":"Returns the list of currently active placement rules for the partition. This list can be different from the list in the configuration.\r\n\r\n"}},"/ws/v1/partition/{partitionName}/queue/{queueName}":{"parameters":[{"schema":{"type":"string"},"name":"partitionName","in":"path","required":true},{"schema":{"type":"string"},"name":"queueName","in":"path","required":true}],"get":{"summary":"Retrieve queue info","description":"Fetch a Queue associated with given Partition and displays general information about the queue like name, status, capacities and properties.","tags":["scheduler"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Queue"}}}},"400":{"description":"Bad Request (URL query is invalid, missing partition name)"},"404":{"description":"Not Found (Partition not found)"},"500":{"description":"Internal Server Error"}}}},"/ws/v1/partition/{partition}/applications/{state}":{"parameters":[{"schema":{"type":"string"},"name":"partition","in":"path","required":true},{"schema":{"type":"string"},"name":"state","in":"path","required":true}],"get":{"summary":"Retrieve all applications by partition/state","description":"Fetch all Applications for the given Partition/State combination and displays general information about the applications like used resources, queue name, submission time and allocations.","tags":["scheduler"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Applications"}}}},"400":{"description":"Bad Request (URL query is invalid, missing partition name)"},"404":{"description":"Not Found (Partition not found)"},"500":{"description":"Internal Server Error"}}}},"/ws/v1/partition/{partitionName}/queue/{queueName}/applications":{"parameters":[{"schema":{"type":"string"},"name":"partitionName","in":"path","required":true},{"schema":{"type":"string"},"name":"queueName","in":"path","required":true}],"get":{"summary":"Retrieve all applications by partition/queue","description":"Fetch all Applications for the given Partition/Queue combination and displays general information about the applications like used resources, queue name, submission time and allocations. In case the queue name contains any special characters, it needs to be url escaped to avoid issues.","tags":["scheduler"],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Applications"}}}},"400":{"description":"Bad Request (URL query is invalid, missing partition name)"},"404":{"description":"Not Found (Partition not found)"},"500":{"description":"Internal Server Error"}}}},"/ws/v1/partition/:partition/queue/:queue/applications/:state":{"get":{"summary":"Fetch all applications by partition/queue/state combination","description":"Fetch active applications in the default partition and root queue: /ws/v1/partition/default/queue/root/applications/active\r\n\r\nFetch only running applications in the default partition and root queue: /ws/v1/partition/default/queue/root/applications/active?status=running","tags":["scheduler"],"responses":{"200":{"description":""},"400":{"description":"Bad Request (URL query is invalid, missing partition name)"},"404":{"description":"Not Found (Partition not found)"},"500":{"description":"Internal Server Error"}}}},"/ws/v1/partition/{partitionName}/application/{appId}":{"parameters":[{"schema":{"type":"string"},"name":"partitionName","in":"path","required":true},{"schema":{"type":"string"},"name":"appId","in":"path","required":true}],"get":{"summary":"Fetch all applications by partition/queue/appid combination","description":"/ws/v1/partition/{partitionName}/queue/{queueName}/application/{appId}","tags":["scheduler"],"responses":{"200":{"description":""},"400":{"description":"Bad Request (URL query is invalid, missing partition name)"},"404":{"description":"Not Found (Partition not found)"},"500":{"description":"Internal Server Error"}}}},"/ws/v1/partition/{partitionName}/usage/users":{"parameters":[{"schema":{"type":"string"},"name":"partitionName","in":"path","required":true}],"get":{"summary":"Fetch all user by partition","description":"","tags":["scheduler"],"responses":{"200":{"description":""},"500":{"description":"Internal Server Error"}}}},"/ws/v1/partition/{partitionName}/usage/users/{userName}":{"parameters":[{"schema":{"type":"string"},"name":"partitionName","in":"path","required":true},{"schema":{"type":"string"},"name":"userName","in":"path","required":true}],"get":{"summary":"Fetch specified user by partition","description":"","tags":["scheduler"],"responses":{"200":{"description":""},"400":{"description":"Bad Request (URL query is invalid)"},"404":{"description":"Not Found (User not found)"},"500":{"description":"Internal Server Error"}}}},"/ws/v1/partition/{partitionName}/usage/groups":{"parameters":[{"schema":{"type":"string"},"name":"partitionName","in":"path","required":true}],"get":{"summary":"Fetch all groups usage and quota by partition","description":"","tags":["scheduler"],"responses":{"200":{"description":""},"500":{"description":"Internal Server Error"}}}},"/ws/v1/partition/{partitionName}/usage/groups/{groupName}":{"parameters":[{"schema":{"type":"string"},"name":"partitionName","in":"path","required":true},{"schema":{"type":"string"},"name":"groupName","in":"path","required":true}],"get":{"summary":"Fetch specified group usage and quota by partition","description":"","tags":["scheduler"],"responses":{"200":{"description":""},"400":{"description":"Bad Request (URL query is invalid)"},"404":{"description":"Not Found (Group not found)"},"500":{"description":"Internal Server Error"}}}},"/ws/v1/partition/{partitionName}/nodes":{"parameters":[{"schema":{"type":"string"},"name":"partitionName","in":"path","required":true}],"get":{"summary":"Fetch all nodes by partition","description":"","tags":["scheduler"],"responses":{"200":{"description":""},"400":{"description":"Bad Request (URL query is invalid)"},"404":{"description":"Not Found (Partition not found)"},"500":{"description":"Internal Server Error"}}}},"/ws/v1/partition/{partitionName}/node/{nodeId}":{"parameters":[{"schema":{"type":"string"},"name":"partitionName","in":"path","required":true},{"schema":{"type":"string"},"name":"nodeId","in":"path","required":true}],"get":{"summary":"Fetch specified node by node id","description":"","tags":["scheduler"],"responses":{"200":{"description":""},"400":{"description":"Bad Request (URL query is invalid)"},"404":{"description":"Not Found (Partition or Node not found)"},"500":{"description":"Internal Server Error"}}}},"/ws/v1/scheduler/node-utilization":{"get":{"summary":"Show every node resource utilization","description":"","tags":["scheduler"],"responses":{"200":{"description":""},"500":{"description":"Internal Server Error"}}}},"/ws/v1/scheduler/node-utilizations":{"get":{"summary":"Show node utilization of different types of resources in a cluster.","description":"","tags":["scheduler"],"responses":{"200":{"description":""},"500":{"description":"Internal Server Error"}}}},"/ws/v1/history/apps":{"get":{"summary":"Retrieve applications history","description":"Endpoint to retrieve historical data about the number of total applications by timestamp.","tags":["scheduler"],"responses":{"200":{"description":""},"500":{"description":"Internal Server Error"}}}},"/ws/v1/history/containers":{"get":{"summary":"Retrieve containers history","description":"Endpoint to retrieve historical data about the number of total containers by timestamp.","tags":["scheduler"],"responses":{"200":{"description":""},"500":{"description":"Internal Server Error"}}}},"/ws/v1/scheduler/healthcheck":{"get":{"summary":"Retrieve health check and critical logs","description":"Endpoint to retrieve historical data about critical logs, negative resource on node/cluster/app, ...","tags":["scheduler"],"responses":{"200":{"description":""}}}},"/ws/v1/events/batch":{"get":{"summary":"Retrieve a batch of event records","description":"URL query parameters :\n\ncount (optional) : Specifies the maxmem number of events to be included in the response. \n\nstart (optional) : Specifies the starting ID for retrieving events. If the specified ID is outside the ring buffer (too low or too high), the response will include the lowest and highest ID values with EventRecords being empty.","tags":["scheduler"],"responses":{"200":{"description":""},"500":{"description":"Internal Server Error"}}}},"/ws/v1/events/stream":{"get":{"summary":"Creates a persistent HTTP connection for event streaming.","description":"New events are sent to the clients immediately, so unlike the batch interface, there is no need for polling. The number of active connections is limited. The default setting is 100 connections total and 15 connections per host. The respective configmap properties are event.maxStreams and event.maxStreamsPerHost.\n\nURL query parameters :\n\ncount (optional) : Specifies the number of past events (those which have been generated before the connection establishment) to include in the response. Default value is 0.","tags":["scheduler"],"responses":{"200":{"description":""},"400":{"description":"Bad Request (URL query is invalid)"},"500":{"description":"Internal Server Error"},"503":{"description":"Service Unavailable (Too many active streaming connections)"}}}},"/ws/v1/fullstatedump":{"get":{"summary":"Retrieve most of the REST exposed information","description":"Deprecated and permanently moved to /debug/fullstatedump since v1.7.0. Automatically redirected to the new endpoint.","tags":["scheduler"],"responses":{"200":{"description":""}}}},"/ws/v1/stack":{"get":{"summary":"Dumps the stack traces of the currently running goroutines","description":"Deprecated and permanently moved to /debug/stack since v1.7.0. Automatically redirected to the new endpoint.","tags":["scheduler"],"responses":{"200":{"description":""}}}},"/debug/fullstatedump":{"get":{"summary":"Retrieve the state dump in a single response","description":"Endpoint to retrieve the following information in a single response:\n- Current timestamp (Unix timestamp in nanosecond)\n- List of partitions\\r\\n- List of applications (running, completed and rejected)\n- Application history\n- Nodes\n- Generic cluster information\n- Container history\n- Queues\n- RMDiagnostics\n- Log level\n- Configuration\n- Placement rules\n- Event stream overview (client hostname and creation timestamp)","tags":["system"],"responses":{"200":{"description":""},"500":{"description":"Internal Server Error"}}}},"/debug/stack":{"get":{"summary":"Dumps the stack traces of the currently running goroutines","description":"This is a similar view as provided in the pprof goroutine in a human-readable form.","tags":["system"],"responses":{"200":{"description":"```\ngoroutine 4110 [running]:\ngithub.com/apache/yunikorn-core/pkg/webservice.getStackInfo.func1()\n  github.com/apache/yunikorn-core@v0.0.0-20241017135039-079a02dbdfa7/pkg/webservice/handlers.go:116 +0x64\ngithub.com/apache/yunikorn-core/pkg/webservice.getStackInfo({0x22ba328, 0x40003b8460}, 0x4000619708?)\n  github.com/apache/yunikorn-core@v0.0.0-20241017135039-079a02dbdfa7/pkg/webservice/handlers.go:123 +0x3c\nnet/http.HandlerFunc.ServeHTTP(0x1d2f320?, {0x22ba328?, 0x40003b8460?}, 0xe?)\n  net/http/server.go:2171 +0x38\ngithub.com/apache/yunikorn-core/pkg/webservice.newRouter.loggingHandler.func1({0x22ba328, 0x40003b8460}, 0x4003e18fc0)\n  github.com/apache/yunikorn-core@v0.0.0-20241017135039-079a02dbdfa7/pkg/webservice/webservice.go:56 +0x7c\nnet/http.HandlerFunc.ServeHTTP(0x0?, {0x22ba328?, 0x40003b8460?}, 0x4?)\n  net/http/server.go:2171 +0x38\ngithub.com/apache/yunikorn-core/pkg/webservice.newRouter.(*Router).Handler.func2({0x22ba328?, 0x40003b8460?}, 0x40003229e0?, {0x0?, 0x4000619ae8?, 0x203fc?})\n  github.com/julienschmidt/httprouter@v1.3.0/router.go:275 +0xd4\ngithub.com/julienschmidt/httprouter.(*Router).ServeHTTP(0x4000682360, {0x22ba328, 0x40003b8460}, 0x4003e18fc0)\n  github.com/julienschmidt/httprouter@v1.3.0/router.go:387 +0x6f8\nnet/http.serverHandler.ServeHTTP({0x4003eea8a0?}, {0x22ba328?, 0x40003b8460?}, 0x6?)\n  net/http/server.go:3142 +0xbc\nnet/http.(*conn).serve(0x4003e4ac60, {0x22c9b78, 0x40003f02d0})\n  net/http/server.go:2044 +0x508\ncreated by net/http.(*Server).Serve in goroutine 87\n  net/http/server.go:3290 +0x3f0\n\ngoroutine 1 [chan receive, 957 minutes]:\nmain.main()\n  github.com/apache/yunikorn-k8shim/pkg/cmd/shim/main.go:61 +0x6e8\n\ngoroutine 52 [select, 957 minutes]:\ngithub.com/apache/yunikorn-core/pkg/scheduler.(*Scheduler).handleRMEvent(0x40004237d0)\n  github.com/apache/yunikorn-core@v0.0.0-20241017135039-079a02dbdfa7/pkg/scheduler/scheduler.go:129 +0x88\ncreated by github.com/apache/yunikorn-core/pkg/scheduler.(*Scheduler).StartService in goroutine 1\n  github.com/apache/yunikorn-core@v0.0.0-20241017135039-079a02dbdfa7/pkg/scheduler/scheduler.go:60 +0x98\n```"},"500":{"description":"Internal Server Error"}}}},"/debug/pprof/":{"get":{"summary":"","description":"","tags":["system"],"responses":{"200":{"description":"```\n/debug/pprof/\n\nTypes of profiles available:\nCount  Profile\n273  allocs\n0  block\n0  cmdline\n78  goroutine\n273  heap\n0  mutex\n0  profile\n29  threadcreate\n0  trace\nfull goroutine stack dump\nProfile Descriptions:\n\nallocs: A sampling of all past memory allocations\nblock: Stack traces that led to blocking on synchronization primitives\ncmdline: The command line invocation of the current program\ngoroutine: Stack traces of all current goroutines\nheap: A sampling of memory allocations of live objects. You can specify the gc GET parameter to run GC before taking the heap sample.\nmutex: Stack traces of holders of contended mutexes\nprofile: CPU profile. You can specify the duration in the seconds GET parameter. After you get the profile file, use the go tool pprof command to investigate the profile.\nthreadcreate: Stack traces that led to the creation of new OS threads\ntrace: A trace of execution of the current program. You can specify the duration in the seconds GET parameter. After you get the trace file, use the go tool trace command to investigate the trace.\n```"}}}},"/debug/pprof/heap":{"get":{"summary":"","description":"","tags":["system"],"responses":{"200":{"description":"// binary data from proto"}}}},"/debug/pprof/threadcreate":{"get":{"summary":"","description":"","tags":["system"],"responses":{"200":{"description":"// binary data from proto"}}}},"/debug/pprof/goroutine":{"get":{"summary":"","description":"","tags":["system"],"responses":{"200":{"description":"// binary data from proto"}}}},"/debug/pprof/allocs":{"get":{"summary":"","description":"","tags":["system"],"responses":{"200":{"description":"// binary data from proto"}}}},"/debug/pprof/block":{"get":{"summary":"","description":"","tags":["system"],"responses":{"200":{"description":"// binary data from proto"}}}},"/debug/pprof/mutex":{"get":{"summary":"","description":"","tags":["system"],"responses":{"200":{"description":"// binary data from proto"}}}},"/debug/pprof/cmdline":{"get":{"summary":"","description":"","tags":["system"],"responses":{"200":{"description":"/yunikorn-scheduler"}}}},"/debug/pprof/profile":{"get":{"summary":"","description":"","tags":["system"],"responses":{"200":{"description":"// binary data from proto"}}}},"/debug/pprof/symbol":{"get":{"summary":"","description":"","tags":["system"],"responses":{"200":{"description":"num_symbols: 1"}}}},"/debug/pprof/trace":{"get":{"summary":"","description":"","tags":["system"],"responses":{"200":{"description":"// binary data from proto"}}}}},"components":{"schemas":{"ClusterSuccessResponse":{"type":"object","properties":{"startTime":{"type":"integer","format":"int64","description":"Timestamp when the cluster started (in nanoseconds).","example":1697100824863892700},"rmBuildInformation":{"type":"array","items":{"type":"object","properties":{"arch":{"type":"string","example":"amd64"},"buildDate":{"type":"string","example":"2023-09-04T18:11:43+0800"},"buildVersion":{"type":"string","example":"latest"},"coreSHA":{"type":"string","example":"0ecf24d2aad2"},"goVersion":{"type":"string","example":1.21},"isPluginVersion":{"type":"string","example":"false"},"rmId":{"type":"string","example":"mycluster"},"shimSHA":{"type":"string","example":"8b26c373b4b5"},"siSHA":{"type":"string","example":"e7622cf54e95"}}}},"partition":{"type":"string","example":"default"},"clusterName":{"type":"string","example":"kubernetes"}},"required":["startTime","rmBuildInformation","partition","clusterName"]},"ConfigSuccessResponse":{"type":"object","title":"ConfigSuccessResponse","properties":{"Partitions":{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string","example":"default"},"Queues":{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string","example":"root"},"Parent":{"type":"boolean","example":true},"SubmitACL":{"type":"string","example":"*"},"Resources":{"type":"object"},"ChildTemplate":{"type":"object","properties":{"Resources":{"type":"object"}}}}}},"PlacementRules":{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string","example":"tag"},"Create":{"type":"boolean","example":true},"Filter":{"type":"object","properties":{"Type":{"type":"string","example":""}}},"Value":{"type":"string","example":"namespace"}}}},"Preemption":{"type":"object","properties":{"Enabled":{"type":"boolean","example":false}}},"NodeSortPolicy":{"type":"object","properties":{"Type":{"type":"string","example":""}}}}}},"Checksum":{"type":"string","example":"FD5D3726DF0F02416E02F3919D78F61B15D14425A34142D93B24C137ED056946"},"Extra":{"type":"object","properties":{"event.trackingEnabled":{"type":"string","example":"false"},"log.core.scheduler.level":{"type":"string","example":"info"},"log.core.security.level":{"type":"string","example":"info"},"log.level":{"type":"string","example":"debug"}}}}},"PartitionsSuccessResponse":{"type":"array","x-examples":{},"items":{"type":"object","properties":{"clusterId":{"type":"string","example":"mycluster"},"name":{"type":"string","example":"default"},"state":{"type":"string","example":"Active"},"lastStateTransitionTime":{"type":"integer","format":"int64","example":1649167576110754000},"capacity":{"type":"object","properties":{"capacity":{"type":"object","properties":{"ephemeral-storage":{"type":"integer","format":"int64","example":188176871424},"hugepages-1Gi":{"type":"integer","format":"int64","example":0},"hugepages-2Mi":{"type":"integer","format":"int64","example":0},"memory":{"type":"integer","format":"int64","example":1000000000},"pods":{"type":"integer","format":"int64","example":330},"vcore":{"type":"integer","format":"int64","example":1000}}},"usedCapacity":{"type":"object","properties":{"memory":{"type":"integer","format":"int64","example":800000000},"vcore":{"type":"integer","format":"int64","example":500}}},"utilization":{"type":"object","properties":{"memory":{"type":"integer","example":80},"vcore":{"type":"integer","example":50}}}}},"nodeSortingPolicy":{"type":"object","properties":{"type":{"type":"string","example":"fair"},"resourceWeights":{"type":"object","properties":{"memory":{"type":"number","format":"float","example":1.5},"vcore":{"type":"number","format":"float","example":1.3}}}}},"applications":{"type":"object","required":["total"],"properties":{"New":{"type":"integer","example":5},"Pending":{"type":"integer","example":5},"Running":{"type":"integer","example":10},"total":{"type":"integer","example":10}}},"totalContainers":{"type":"integer","example":0},"totalNodes":{"type":"integer","example":2}}}},"Queues":{"type":"array","items":{"$ref":"#/components/schemas/Queue"}},"Queue":{"type":"object","properties":{"queuename":{"type":"string","example":"root"},"status":{"type":"string","example":"Active"},"maxResource":{"type":"object","properties":{"ephemeral-storage":{"type":"integer","format":"int64","example":188176871424},"hugepages-1Gi":{"type":"integer","format":"int64","example":0},"hugepages-2Mi":{"type":"integer","format":"int64","example":0},"memory":{"type":"integer","format":"int64","example":8000000000},"pods":{"type":"integer","format":"int64","example":330},"vcore":{"type":"integer","format":"int64","example":8000}}},"guaranteedResource":{"type":"object","properties":{"memory":{"type":"integer","format":"int64","example":54000000},"vcore":{"type":"integer","format":"int64","example":80}}},"allocatedResource":{"type":"object","properties":{"memory":{"type":"integer","format":"int64","example":54000000},"vcore":{"type":"integer","format":"int64","example":80}}},"pendingResource":{"type":"object","properties":{"memory":{"type":"integer","format":"int64","example":54000000},"vcore":{"type":"integer","format":"int64","example":80}}},"isLeaf":{"type":"string","example":"false"},"isManaged":{"type":"string","example":"false"},"properties":{"type":"object","properties":{"application.sort.policy":{"type":"string","example":"stateaware"}}},"parent":{"type":"string","example":""},"template":{"type":"object","nullable":true,"properties":{"maxResource":{"type":"object","properties":{"memory":{"type":"integer","format":"int64","example":8000000000},"vcore":{"type":"integer","format":"int64","example":8000}}},"guaranteedResource":{"type":"object","properties":{"memory":{"type":"integer","format":"int64","example":54000000},"vcore":{"type":"integer","format":"int64","example":80}}},"properties":{"type":"object","properties":{"application.sort.policy":{"type":"string","example":"stateaware"}}}}},"partition":{"type":"string","example":"default"},"children":{"type":"array","items":{"$ref":"#/components/schemas/Queue"}},"absUsedCapacity":{"type":"object","properties":{"memory":{"type":"integer","example":1},"vcore":{"type":"integer","example":0}}},"maxRunningApps":{"type":"integer","example":12},"runningApps":{"type":"integer","example":4},"allocatingAcceptedApps":{"type":"array","items":{"type":"string"},"example":["app-1","app-2"]}}},"Applications":{"type":"array","items":{"$ref":"#/components/schemas/Application"},"example":[{"applicationID":"application-0001","usedResource":{"memory":4000000000,"vcore":4000},"maxUsedResource":{"memory":4000000000,"vcore":4000},"pendingResource":{"memory":4000000000,"vcore":4000},"partition":"default","queueName":"root.default","submissionTime":1648754032076020200,"requests":[{"allocationKey":"f137fab6-3cfa-4536-93f7-bfff92689382","allocationTags":{"kubernetes.io/label/app":"sleep","kubernetes.io/label/applicationId":"application-0001","kubernetes.io/label/queue":"root.default","kubernetes.io/meta/namespace":"default","kubernetes.io/meta/podName":"task2"},"requestTime":16487540320812345000,"resource":{"memory":4000000000,"vcore":4000},"pendingCount":1,"priority":"0","requiredNodeId":"","applicationId":"application-0001","partition":"default","placeholder":false,"placeholderTimeout":0,"taskGroupName":"","allocationLog":[{"message":"node(s) didn't match Pod's node affinity, node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate","lastOccurrence":16487540320812345000,"count":81},{"message":"node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate, node(s) didn't match Pod's node affinity","lastOccurrence":16487540320812345000,"count":504},{"message":"node(s) didn't match Pod's node affinity","lastOccurrence":16487540320812345000,"count":1170}]}],"allocations":[{"allocationKey":"deb12221-6b56-4fe9-87db-ebfadce9aa20","allocationTags":{"kubernetes.io/label/app":"sleep","kubernetes.io/label/applicationId":"application-0001","kubernetes.io/label/queue":"root.default","kubernetes.io/meta/namespace":"default","kubernetes.io/meta/podName":"task0"},"requestTime":1648754034098912500,"allocationTime":1648754035973983000,"allocationDelay":1875070459,"uuid":"9af35d44-2d6f-40d1-b51d-758859e6b8a8","allocationID":"9af35d44-2d6f-40d1-b51d-758859e6b8a8-0","resource":{"memory":4000000000,"vcore":4000},"priority":"0","nodeId":"node-0001","applicationId":"application-0001","partition":"default","placeholder":false,"placeholderUsed":true}],"applicationState":"Running","user":"system:serviceaccount:kube-system:deployment-controller","groups":["system:serviceaccounts","system:serviceaccounts:kube-system","system:authenticated"],"rejectedMessage":"","stateLog":[{"time":1648741409145224000,"applicationState":"Accepted"},{"time":1648741409147432200,"applicationState":"Running"}],"placeholderData":[{"taskGroupName":"task-group-example","count":2,"minResource":{"memory":1000000000,"vcore":100},"replaced":1,"timedout":1}],"hasReserved":false,"reservations":[]},{"applicationID":"application-0002","usedResource":{"memory":4000000000,"vcore":4000},"maxUsedResource":{"memory":4000000000,"vcore":4000},"pendingResource":{"memory":4000000000,"vcore":4000},"partition":"default","queueName":"root.default","submissionTime":1648754032076020200,"requests":[],"allocations":[{"allocationKey":"54e5d77b-f4c3-4607-8038-03c9499dd99d","allocationTags":{"kubernetes.io/label/app":"sleep","kubernetes.io/label/applicationId":"application-0002","kubernetes.io/label/queue":"root.default","kubernetes.io/meta/namespace":"default","kubernetes.io/meta/podName":"task0"},"requestTime":1648754034098912500,"allocationTime":1648754035973983000,"allocationDelay":1875070459,"uuid":"08033f9a-4699-403c-9204-6333856b41bd","allocationID":"08033f9a-4699-403c-9204-6333856b41bd-0","resource":{"memory":2000000000,"vcore":2000},"priority":"0","nodeId":"node-0001","applicationId":"application-0002","partition":"default","placeholder":false,"placeholderUsed":false},{"allocationKey":"af3bd2f3-31c5-42dd-8f3f-c2298ebdec81","allocationTags":{"kubernetes.io/label/app":"sleep","kubernetes.io/label/applicationId":"application-0002","kubernetes.io/label/queue":"root.default","kubernetes.io/meta/namespace":"default","kubernetes.io/meta/podName":"task1"},"requestTime":1648754034098912500,"allocationTime":1648754035973983000,"allocationDelay":1875070459,"uuid":"96beeb45-5ed2-4c19-9a83-2ac807637b3b","allocationID":"96beeb45-5ed2-4c19-9a83-2ac807637b3b-0","resource":{"memory":2000000000,"vcore":2000},"priority":"0","nodeId":"node-0002","applicationId":"application-0002","partition":"default","placeholder":false,"placeholderUsed":false}],"applicationState":"Running","user":"system:serviceaccount:kube-system:deployment-controller","groups":["system:serviceaccounts","system:serviceaccounts:kube-system","system:authenticated"],"rejectedMessage":"","stateLog":[{"time":1648741409145224000,"applicationState":"Accepted"},{"time":1648741409147432200,"applicationState":"Running"}],"placeholderData":[],"hasReserved":false,"reservations":[]}]},"Application":{"type":"object","properties":{"applicationID":{"type":"string"},"usedResource":{"$ref":"#/components/schemas/Resource"},"maxUsedResource":{"$ref":"#/components/schemas/Resource"},"pendingResource":{"$ref":"#/components/schemas/Resource"},"partition":{"type":"string"},"queueName":{"type":"string"},"submissionTime":{"type":"integer","format":"int64"},"requests":{"type":"array","items":{"$ref":"#/components/schemas/Request"}},"allocations":{"type":"array","items":{"$ref":"#/components/schemas/Allocation"}},"applicationState":{"type":"string"},"user":{"type":"string"},"groups":{"type":"array","items":{"type":"string"}},"rejectedMessage":{"type":"string"},"stateLog":{"type":"array","items":{"type":"object","properties":{"time":{"type":"integer","format":"int64"},"applicationState":{"type":"string"}},"required":["time","applicationState"]}},"placeholderData":{"type":"array","items":{"type":"object","properties":{"taskGroupName":{"type":"string"},"count":{"type":"integer"},"minResource":{"$ref":"#/components/schemas/Resource"},"replaced":{"type":"integer"},"timedout":{"type":"integer"}}}},"hasReserved":{"type":"boolean"},"reservations":{"type":"array","items":{"type":"string"}}},"required":["applicationID","usedResource","maxUsedResource","pendingResource","partition","queueName","submissionTime","requests","allocations","applicationState","user","groups","rejectedMessage","stateLog","placeholderData","hasReserved","reservations"]},"Resource":{"type":"object","properties":{"memory":{"type":"integer","format":"int64"},"vcore":{"type":"integer","format":"int64"}}},"Allocation":{"type":"object","properties":{"allocationKey":{"type":"string"},"allocationTags":{"type":"object","properties":{"kubernetes.io/label/app":{"type":"string"},"kubernetes.io/label/applicationId":{"type":"string"},"kubernetes.io/label/queue":{"type":"string"},"kubernetes.io/meta/namespace":{"type":"string"},"kubernetes.io/meta/podName":{"type":"string"}}},"requestTime":{"type":"integer","format":"int64"},"allocationTime":{"type":"integer","format":"int64"},"allocationDelay":{"type":"integer","format":"int64"},"uuid":{"type":"string","description":"已於 YuniKorn 1.7.0 中被 allocationID 取代"},"allocationID":{"type":"string"},"resource":{"$ref":"#/components/schemas/Resource"},"priority":{"type":"string"},"nodeId":{"type":"string"},"applicationId":{"type":"string"},"partition":{"type":"string"},"placeholder":{"type":"boolean"},"placeholderUsed":{"type":"boolean"}},"required":["allocationKey","allocationTags","requestTime","allocationTime","allocationDelay","uuid","allocationID","resource","priority","nodeId","applicationId","partition","placeholder","placeholderUsed"]},"Request":{"type":"object","properties":{"allocationKey":{"type":"string"},"allocationTags":{"type":"object","properties":{"kubernetes.io/label/app":{"type":"string"},"kubernetes.io/label/applicationId":{"type":"string"},"kubernetes.io/label/queue":{"type":"string"},"kubernetes.io/meta/namespace":{"type":"string"},"kubernetes.io/meta/podName":{"type":"string"}}},"requestTime":{"type":"integer","format":"int64"},"resource":{"$ref":"#/components/schemas/Resource"},"pendingCount":{"type":"integer"},"priority":{"type":"string"},"requiredNodeId":{"type":"string"},"applicationId":{"type":"string"},"partition":{"type":"string"},"placeholder":{"type":"boolean"},"placeholderTimeout":{"type":"integer","format":"int64"},"taskGroupName":{"type":"string"},"allocationLog":{"type":"array","items":{"type":"object","properties":{"message":{"type":"string"},"lastOccurrence":{"type":"integer","format":"int64"},"count":{"type":"integer"}},"required":["message","lastOccurrence","count"]}}},"required":["allocationKey","allocationTags","requestTime","resource","pendingCount","priority","requiredNodeId","applicationId","partition","placeholder","placeholderTimeout","taskGroupName","allocationLog"]}}}}