From 75f304bbc265dc667e580a07f277de0127d948bf Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Fri, 18 Dec 2020 11:22:12 -0800 Subject: [PATCH 1/7] Add missing routes to the UI API doc --- website/content/api-docs/ui.mdx | 285 +++++++++++++++++++++++++++++++- 1 file changed, 281 insertions(+), 4 deletions(-) diff --git a/website/content/api-docs/ui.mdx b/website/content/api-docs/ui.mdx index 98b21f70a..ff5ffc1ad 100644 --- a/website/content/api-docs/ui.mdx +++ b/website/content/api-docs/ui.mdx @@ -29,7 +29,7 @@ This page lists all known jobs in a paginated, searchable, and sortable table. - `desc` `(boolean: false)` - Specifies whether or not the sort direction is descending or ascending. This is specified as a query string parameter. -- `search` `(string: "")` - Specifies a regular expression uses to filter the list of +- `search` `(string: "")` - Specifies a regular expression used to filter the list of visible jobs. This is specified as a query string parameter. - `page` `(int: 0)` - Specifies the page in the jobs list that should be visible. This @@ -112,6 +112,44 @@ in a table to drill into for task events. | ------------------------------ | ----------- | | `/ui/jobs/:job_id/deployments` | `text/html` | +### Job Allocations + +This page lists all allocations for a job in a table view. Each allocation includes status indicators (e.g., rescheduled, preempted, unhealthy driver), ID, a link to the task group detail page, the created timestamp, time since last modified, current status, version, a link to the client the allocation is running on, whether or not it has a volume requirement, the current CPU utilization, and the current memory utilization. + +| Path | Produces | +| ------------------------------ | ----------- | +| `/ui/jobs/:job_id/allocations` | `text/html` | + +### Parameters + +- `sort` `(string: "")` - Specifies the property the list of allocations should be sorted by. + This is specified as a query string parameter. + +- `desc` `(boolean: false)` - Specifies whether or not the sort direction is descending + or ascending. This is specified as a query string parameter. + +- `search` `(string: "")` - Specifies a regular expression used to filter the list of + visible allocations. This is specified as a query string parameter. + +- `page` `(int: 0)` - Specifies the page in the allocations list that should be visible. This + is specified as a query string parameter. + +### Job Evaluations + +This page lists all evaluations for a job in a table view. Each evaluation includes the evaluation ID, priority, created timestamp, the event that triggered the evaluation, status, and whether or not there are placement failures. + +| Path | Produces | +| ------------------------------ | ----------- | +| `/ui/jobs/:job_id/evaluations` | `text/html` | + +### Parameters + +- `sort` `(string: "")` - Specifies the property the list of evaluations should be sorted by. + This is specified as a query string parameter. + +- `desc` `(boolean: false)` - Specifies whether or not the sort direction is descending + or ascending. This is specified as a query string parameter. + ## Task Group Detail This page shows an overview of a specific task group. Details include the number of tasks, the aggregated amount of reserved CPU, memory, and disk, all associated allocations broken @@ -131,7 +169,7 @@ allocations. - `desc` `(boolean: false)` - Specifies whether or not the sort direction is descending or ascending. This is specified as a query string parameter. -- `search` `(string: "")` - Specifies a regular expression uses to filter the list of +- `search` `(string: "")` - Specifies a regular expression used to filter the list of visible allocations. This is specified as a query string parameter. - `page` `(int: 0)` - Specifies the page in the allocations list that should be visible. This @@ -157,6 +195,24 @@ description of the event. - `desc` `(boolean: false)` - Specifies whether or not the sort direction is descending or ascending. This is specified as a query string parameter. +## Allocation File System + +This page will show either a directory listing of a path or the file at a path, depending on whether or not the path is a directory. Specifying no file path will show the root of the allocation file system. The file system is also navigible from the UI. Each entry in the directory listing will include the file size (assuming a file) and the last modified time. + +If the file is text based, the UI will render the text inline and the stream the file contents as it updates. If the file is a well-known image format, the image will be rendered inline. In all other cases, the UI will prompt a download link. + +| Path | Produces | +| ----------------------------------------- | ----------- | +| `/ui/allocations/:alloc_id/fs/:file_path` | `text/html` | + +### Parameters + +- `sort` `(string: "")` - Specifies the property the list of files should be sorted by. + This is specified as a query string parameter. Only applies to directories. + +- `desc` `(boolean: false)` - Specifies whether or not the sort direction is descending + or ascending. This is specified as a query string parameter. Only applies to directories. + ## Task Detail This page shows details and events for a specific task. Details include when the task started @@ -176,6 +232,66 @@ to `stderr`. | ------------------------------------------- | ----------- | | `/ui/allocations/:alloc_id/:task_name/logs` | `text/html` | +## Task File System + +This page will show either a directory listing of a path or the file at a path, depending on whether or not the path is a directory. Specifying no file path will show the root of the task file system (which is within the allocation file system). The file system is also navigible from the UI. Each entry in the directory listing will include the file size (assuming a file) and the last modified time. + +If the file is text based, the UI will render the text inline and the stream the file contents as it updates. If the file is a well-known image format, the image will be rendered inline. In all other cases, the UI will prompt a download link. + +| Path | Produces | +| ----------------------------------------- | ----------- | +| `/ui/allocations/:alloc_id/fs/:file_path` | `text/html` | + +### Parameters + +- `sort` `(string: "")` - Specifies the property the list of files should be sorted by. + This is specified as a query string parameter. Only applies to directories. + +- `desc` `(boolean: false)` - Specifies whether or not the sort direction is descending + or ascending. This is specified as a query string parameter. Only applies to directories. + +## Exec Job + +This page will show a side bar navigation to traverse the job's task groups and tasks. The majority of this page is a latent terminal window. Using the side bar navigation will transition to the exec task page which establishes a `nomad exec` connection. + +This page is meant to be rendered in a popup window. + +| Path | Produces | +| ------------------ | ----------- | +| `/ui/exec/:job_id` | `text/html` | + +### Parameters + +- `allocation` `(string: "")` - An allocation ID that specifies which allocation to exec into. + +## Exec Task Group + +This page will show a side bar navigation to traverse the job's task groups and tasks with the selected task group already open. The majority of this page is a latent terminal window. Using the side bar navigation will transition to the exec task page which establishes a `nomad exec` connection. + +This page is meant to be rendered in a popup window. + +| Path | Produces | +| ------------------------------ | ----------- | +| `/ui/exec/:job_id/:task_group` | `text/html` | + +### Parameters + +- `allocation` `(string: "")` - An allocation ID that specifies which allocation to exec into. + +## Exec Task + +This page will show a side bar navigation to traverse the job's task group's tasks. The majority of this page is a terminal window. The terminal window will be prepopulated with a `nomad exec` command. The specific command used to establish an interactive connection can be modified (e.g., changing `/bin/bash` to `/bin/sh`). Upon submitting the command, a websocket connection is opened to facilitate bidirectional communication between this terminal window and the task running on a Nomad client. + +This page is meant to be rendered in a popup window. + +| Path | Produces | +| ------------------------------ | ----------- | +| `/ui/exec/:job_id/:task_group` | `text/html` | + +### Parameters + +- `allocation` `(string: "")` - An allocation ID that specifies which allocation to exec into. When not specified, an allocation for the specified task group is chosen at random. + ## Nodes List This page lists all nodes in the Nomad cluster in a sortable, searchable, paginated @@ -193,7 +309,7 @@ table. - `desc` `(boolean: false)` - Specifies whether or not the sort direction is descending or ascending. This is specified as a query string parameter. -- `search` `(string: "")` - Specifies a regular expression uses to filter the list of +- `search` `(string: "")` - Specifies a regular expression used to filter the list of visible client nodes. This is specified as a query string parameter. - `page` `(int: 0)` - Specifies the page in the client nodes list that should be visible. This @@ -216,12 +332,24 @@ address, port, datacenter, allocations, and attributes. - `desc` `(boolean: false)` - Specifies whether or not the sort direction is descending or ascending. This is specified as a query string parameter. -- `search` `(string: "")` - Specifies a regular expression uses to filter the list of +- `search` `(string: "")` - Specifies a regular expression used to filter the list of visible allocations. This is specified as a query string parameter. - `page` `(int: 0)` - Specifies the page in the allocations list that should be visible. This is specified as a query string parameter. +## Node Monitor + +This page streams log messages from a node's agent. It is the equivalent to the `nomad monitor` command with `-node-id` set to the node specified in the URL. + +| Path | Produces | +| ---------------------------- | ----------- | +| `/ui/nodes/:node_id/monitor` | `text/html` | + +### Parameters + +- `level` `(string: "info")` - Specifies the log level to monitor at. Possible values, in order of verbosity, include `trace`, `debug`, `info`, `warn`, and `error`. + ## Servers List This page lists all servers in the Nomad cluster in a sortable table. Details for each @@ -251,6 +379,155 @@ This page lists all tags associated with a server. | ------------------------ | ----------- | | `/ui/servers/:server_id` | `text/html` | +## Server Monitor + +This page streams log messages from a server's agent. It is the equivalent to the `nomad monitor` command with `-server-id` set to the server specified in the URL. + +| Path | Produces | +| -------------------------------- | ----------- | +| `/ui/servers/:server_id/monitor` | `text/html` | + +### Parameters + +- `level` `(string: "info")` - Specifies the log level to monitor at. Possible values, in order of verbosity, include `trace`, `debug`, `info`, `warn`, and `error`. + +## CSI Volumes + +This page lists all CSI volumes registered with the Nomad cluster by namespace. Each volume includes the volume name, health, controller plugin health, node plugin health, provider, and number of attached allocations. + +| Path | Produces | +| ----------------- | ----------- | +| `/ui/csi/volumes` | `text/html` | + +### Parameters + +- `namespace` `(string: "")` - Specifies the namespace all volumes should be a member + of. This is specified as a query string parameter. + +- `sort` `(string: "")` - Specifies the property the list of volumes should be sorted by. + This is specified as a query string parameter. + +- `desc` `(boolean: false)` - Specifies whether or not the sort direction is descending + or ascending. This is specified as a query string parameter. + +- `search` `(string: "")` - Specifies a regular expression used to filter the list of + visible volumes. This is specified as a query string parameter. + +- `page` `(int: 0)` - Specifies the page in the volumes list that should be visible. This + is specified as a query string parameter. + +## CSI Volume + +This page shows information for a CSI volume. This includes whether or not the volume is available for scheduling, the CSI provider, the external ID, and the namespace. This page also includes a table of constraints (access mode and attachment mode), and tables for all attached allocations in `read` mode and `read/write` mode. + +| Path | Produces | +| ---------------------------- | ----------- | +| `/ui/csi/volumes/:volume_id` | `text/html` | + +## CSI Plugins + +This page lists all CSI plugins registered with the Nomad cluster. Each plugin includes the plugin ID, controller plugin health, node plugin health, and CSI provider. + +| Path | Produces | +| ----------------- | ----------- | +| `/ui/csi/plugins` | `text/html` | + +### Parameters + +- `sort` `(string: "")` - Specifies the property the list of plugins should be sorted by. + This is specified as a query string parameter. + +- `desc` `(boolean: false)` - Specifies whether or not the sort direction is descending + or ascending. This is specified as a query string parameter. + +- `search` `(string: "")` - Specifies a regular expression used to filter the list of + visible plugins. This is specified as a query string parameter. + +- `page` `(int: 0)` - Specifies the page in the plugins list that should be visible. This + is specified as a query string parameter. + +## CSI Plugin + +This page shows information for a CSI plugin. This includes the proportion of healthy controller allocations, the proportion of healthy node allocations, a table of some controller allocations, and a table of some node allocations. Some of this information may be intentionally ommitted based on the type of CSI plugin. + +| Path | Produces | +| ---------------------------- | ----------- | +| `/ui/csi/plugins/:plugin_id` | `text/html` | + +## CSI Plugin Allocations + +This page lists all allocations for a CSI plugin. Each allocation includes the standard allocation information (including status indicators, ID, created timestamp, time since last modified, a link to the client the allocation is running on, a link to the job the allocation is for, the job version, volume requirements, current CPU utilization, and current memory utilization) as well as whether or not the allocation is healthy as defined by CSI. + +| Path | Produces | +| ----------------- | ----------- | +| `/ui/csi/plugins` | `text/html` | + +### Parameters + +- `sort` `(string: "")` - Specifies the property the list of allocations should be sorted by. + This is specified as a query string parameter. + +- `desc` `(boolean: false)` - Specifies whether or not the sort direction is descending + or ascending. This is specified as a query string parameter. + +- `search` `(string: "")` - Specifies a regular expression used to filter the list of + visible allocations. This is specified as a query string parameter. + +- `page` `(int: 0)` - Specifies the page in the allocations list that should be visible. This + is specified as a query string parameter. + +- `healthy` `(boolean: unset)` - Filters the list of allocations to only those with a matching health value. Value must be `true`, `false`, or unset. + +- `type` `(string: "")` - Filters the list of allocations to only those with a matching plugin type. Value must be `controller`, `node`, or unset. + +## Optimize + +~> **Enterprise Only!** This feature depends on functionality only present in Nomad Autoscaler Enterprise. + +This page lists all recommendations surfaced by [dynamic application sizing](/docs/autoscaling#dynamic-application-sizing). This page will automatically redirect to the recommendation summary route for the first recommendation sorted by relevance. + +Each recommendation in the list will contain information including the job and task group the recommendation is for, the time the recommendation was surfaced, the number of allocations impacted, the difference in CPU the recommendation suggests, the difference in memory the recommendation suggests, and the aggregate change in CPU and memory given the number of allocations impacted. + +| Path | Produces | +| -------------- | ----------- | +| `/ui/optimize` | `text/html` | + +### Parameters + +- `namespace` `(string: "")` - Specifies the namespace all recommendations should be a member of. This is specified as a query string parameter. + +- `all-namespaces` `(boolean: false)` - Overrides the namespace parameter and returns all recommendations for all namespaces the active ACL token is authorized for. + +- `search` `(string: "")` - Specifies a regular expression used to filter the list of visible recommendations. This is specified as a query string parameter. + +- `type` `(string: "")` - Filters the list of recommendations to only those for jobs with a matching type. + +- `status` `(string: "")` - Filters the list of recommendations to only those for jobs with a matching status. + +- `datacenter` `(string: "")` - Filters the list of recommendations to only those for jobs allowed in a matching datacenter value. + +- `prefix` `(string: "")` - Filters the list of recommendations to only those for jobs with names that start with a matching prefix. + +## Recommendation Summary + +This page includes the same list of recommenations as the optimize route as well as the recommendation card for the job and task group specified in the URL. The recommendation card includes a list of all tasks for the task group as well as toggles for each recommendation available (potentially CPU and memory for each task). The card also shows before, after, and delta values for each recommendation. The before and after values are also presented in a chart that overlays the mean, p99, and max utilization values of the task a recommendation is for. + +| Path | Produces | +| --------------------------------------- | ----------- | +| `/ui/optimize/:job_id/:task_group_name` | `text/html` | + +### Parameters + +- `namespace` `(string: "")` - Specifies the namespace of the job the recommendation is for. + +## Topology Visualization + +This page includes a visualization of all starting and running allocations grouped by client and by datacenter. + +| Path | Produces | +| -------------- | ----------- | +| `/ui/topology` | `text/html` | + ## ACL Tokens This page lets you enter an ACL token (both accessor ID and secret ID) to use with the UI. From 549f2f77ab69b134fa1f3371f3fd6d5e01ee8d98 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Fri, 18 Dec 2020 11:23:56 -0800 Subject: [PATCH 2/7] Remove version introduction 0.7 is ancient at this point. Now it's as if the UI has always existed. --- website/content/api-docs/ui.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/website/content/api-docs/ui.mdx b/website/content/api-docs/ui.mdx index ff5ffc1ad..7dad6cafc 100644 --- a/website/content/api-docs/ui.mdx +++ b/website/content/api-docs/ui.mdx @@ -7,8 +7,7 @@ description: The /ui namespace is used to access the Nomad web user interface. # Nomad Web UI -Starting in v0.7, the Nomad UI is accessible at `/ui`. It is not namespaced by version. A request to `/` -will also redirect to `/ui`. +The Nomad UI is accessible at `/ui`. It is not namespaced by version. A request to `/` will also redirect to `/ui`. ## List Jobs From 2f05f06ecdb747dfce88f6dea06cf264c8ab3238 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Fri, 18 Dec 2020 11:25:16 -0800 Subject: [PATCH 3/7] Remove no longer true enteprise warning --- website/content/api-docs/ui.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/content/api-docs/ui.mdx b/website/content/api-docs/ui.mdx index 7dad6cafc..b117d6feb 100644 --- a/website/content/api-docs/ui.mdx +++ b/website/content/api-docs/ui.mdx @@ -20,7 +20,7 @@ This page lists all known jobs in a paginated, searchable, and sortable table. ### Parameters - `namespace` `(string: "")` - Specifies the namespace all jobs should be a member - of. This is specified as a query string parameter. Namespaces are an enterprise feature. + of. This is specified as a query string parameter. - `sort` `(string: "")` - Specifies the property the list of jobs should be sorted by. This is specified as a query string parameter. From 761b7a1cef24d00833f2841058daac8c163de83c Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Fri, 18 Dec 2020 11:30:52 -0800 Subject: [PATCH 4/7] Add missing faceted search query params --- website/content/api-docs/ui.mdx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/website/content/api-docs/ui.mdx b/website/content/api-docs/ui.mdx index b117d6feb..f032510e9 100644 --- a/website/content/api-docs/ui.mdx +++ b/website/content/api-docs/ui.mdx @@ -34,6 +34,14 @@ This page lists all known jobs in a paginated, searchable, and sortable table. - `page` `(int: 0)` - Specifies the page in the jobs list that should be visible. This is specified as a query string parameter. +- `type` `(string: "")` - Filters the list of jobs to those with a matching type. + +- `status` `(string: "")` - Filters the list of jobs to those with a matching status. + +- `dc` `(string: "")` - Filters the list of jobs to those allowed in a matching datacenter value. + +- `prefix` `(string: "")` - Filters the list of jobs to those with names that start with a matching prefix. + ## Job Detail This page shows an overview of a specific job. Details include name, status, type, @@ -314,6 +322,14 @@ table. - `page` `(int: 0)` - Specifies the page in the client nodes list that should be visible. This is specified as a query string parameter. +- `class` `(string: "")` - Filters the list of clients to those with a matching node class. + +- `state` `(string: "")` - Filters the list of clients to those with a matching state. Options include `initializing`, `ready`, `down`, `ineligible`, and `draining`. + +- `dc` `(string: "")` - Filters the list of clients to those in the specified datacenter. + +- `volume` `(string: "")` - Filters the list of clients to those with a matching host volume (by name). + ## Node Detail This page shows the details of a node, including the node name, status, full ID, @@ -503,7 +519,7 @@ Each recommendation in the list will contain information including the job and t - `status` `(string: "")` - Filters the list of recommendations to only those for jobs with a matching status. -- `datacenter` `(string: "")` - Filters the list of recommendations to only those for jobs allowed in a matching datacenter value. +- `dc` `(string: "")` - Filters the list of recommendations to only those for jobs allowed in a matching datacenter value. - `prefix` `(string: "")` - Filters the list of recommendations to only those for jobs with names that start with a matching prefix. From 46a0435cf204b3c4ea069a8e5bf65fd097b2bc67 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Fri, 18 Dec 2020 11:33:43 -0800 Subject: [PATCH 5/7] Update 'Node' to 'Client' which is used throughout the UI --- website/content/api-docs/ui.mdx | 40 ++++++++++++++++----------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/website/content/api-docs/ui.mdx b/website/content/api-docs/ui.mdx index f032510e9..124cd54a7 100644 --- a/website/content/api-docs/ui.mdx +++ b/website/content/api-docs/ui.mdx @@ -161,7 +161,7 @@ This page lists all evaluations for a job in a table view. Each evaluation inclu This page shows an overview of a specific task group. Details include the number of tasks, the aggregated amount of reserved CPU, memory, and disk, all associated allocations broken down by status, and a list of allocations. The list of allocations include details such as -status, the node the allocation was placed on, and the current CPU and Memory usage of the +status, the client the allocation was placed on, and the current CPU and Memory usage of the allocations. | Path | Produces | @@ -185,7 +185,7 @@ allocations. ## Allocation Detail This page shows details and events for an allocation. Details include the job the allocation -belongs to, the node the allocation is placed on, a list of all tasks, and lists of task +belongs to, the client the allocation is placed on, a list of all tasks, and lists of task events per task. Each task in the task list includes the task name, state, last event, time, and addresses. Each task event in a task history list includes the time, type, and description of the event. @@ -299,27 +299,27 @@ This page is meant to be rendered in a popup window. - `allocation` `(string: "")` - An allocation ID that specifies which allocation to exec into. When not specified, an allocation for the specified task group is chosen at random. -## Nodes List +## Clients List -This page lists all nodes in the Nomad cluster in a sortable, searchable, paginated +This page lists all clients in the Nomad cluster in a sortable, searchable, paginated table. -| Path | Produces | -| ----------- | ----------- | -| `/ui/nodes` | `text/html` | +| Path | Produces | +| ------------- | ----------- | +| `/ui/clients` | `text/html` | ### Parameters -- `sort` `(string: "")` - Specifies the property the list of client nodes should be sorted by. +- `sort` `(string: "")` - Specifies the property the list of clients should be sorted by. This is specified as a query string parameter. - `desc` `(boolean: false)` - Specifies whether or not the sort direction is descending or ascending. This is specified as a query string parameter. - `search` `(string: "")` - Specifies a regular expression used to filter the list of - visible client nodes. This is specified as a query string parameter. + visible clients . This is specified as a query string parameter. -- `page` `(int: 0)` - Specifies the page in the client nodes list that should be visible. This +- `page` `(int: 0)` - Specifies the page in the clients list that should be visible. This is specified as a query string parameter. - `class` `(string: "")` - Filters the list of clients to those with a matching node class. @@ -330,14 +330,14 @@ table. - `volume` `(string: "")` - Filters the list of clients to those with a matching host volume (by name). -## Node Detail +## Client Detail -This page shows the details of a node, including the node name, status, full ID, +This page shows the details of a client, including the client name, status, full ID, address, port, datacenter, allocations, and attributes. -| Path | Produces | -| -------------------- | ----------- | -| `/ui/nodes/:node_id` | `text/html` | +| Path | Produces | +| ------------------------ | ----------- | +| `/ui/clients/:client_id` | `text/html` | ### Parameters @@ -353,13 +353,13 @@ address, port, datacenter, allocations, and attributes. - `page` `(int: 0)` - Specifies the page in the allocations list that should be visible. This is specified as a query string parameter. -## Node Monitor +## Client Monitor -This page streams log messages from a node's agent. It is the equivalent to the `nomad monitor` command with `-node-id` set to the node specified in the URL. +This page streams log messages from a client's agent. It is the equivalent to the `nomad monitor` command with `-node-id` set to the client specified in the URL. -| Path | Produces | -| ---------------------------- | ----------- | -| `/ui/nodes/:node_id/monitor` | `text/html` | +| Path | Produces | +| -------------------------------- | ----------- | +| `/ui/clients/:client_id/monitor` | `text/html` | ### Parameters From aa8e209c2eaf99f37fb1bce9f9d596b0cf12e7c8 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Fri, 18 Dec 2020 14:01:05 -0800 Subject: [PATCH 6/7] Typo fixes Co-authored-by: Buck Doyle --- website/content/api-docs/ui.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/content/api-docs/ui.mdx b/website/content/api-docs/ui.mdx index 124cd54a7..80abc49bd 100644 --- a/website/content/api-docs/ui.mdx +++ b/website/content/api-docs/ui.mdx @@ -463,7 +463,7 @@ This page lists all CSI plugins registered with the Nomad cluster. Each plugin i ## CSI Plugin -This page shows information for a CSI plugin. This includes the proportion of healthy controller allocations, the proportion of healthy node allocations, a table of some controller allocations, and a table of some node allocations. Some of this information may be intentionally ommitted based on the type of CSI plugin. +This page shows information for a CSI plugin. This includes the proportion of healthy controller allocations, the proportion of healthy node allocations, a table of some controller allocations, and a table of some node allocations. Some of this information may be intentionally omitted based on the type of CSI plugin. | Path | Produces | | ---------------------------- | ----------- | @@ -525,7 +525,7 @@ Each recommendation in the list will contain information including the job and t ## Recommendation Summary -This page includes the same list of recommenations as the optimize route as well as the recommendation card for the job and task group specified in the URL. The recommendation card includes a list of all tasks for the task group as well as toggles for each recommendation available (potentially CPU and memory for each task). The card also shows before, after, and delta values for each recommendation. The before and after values are also presented in a chart that overlays the mean, p99, and max utilization values of the task a recommendation is for. +This page includes the same list of recommendations as the optimize route as well as the recommendation card for the job and task group specified in the URL. The recommendation card includes a list of all tasks for the task group as well as toggles for each recommendation available (potentially CPU and memory for each task). The card also shows before, after, and delta values for each recommendation. The before and after values are also presented in a chart that overlays the mean, p99, and max utilization values of the task a recommendation is for. | Path | Produces | | --------------------------------------- | ----------- | From 674707e3499110f94eddd5be94402a44fad2929d Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Fri, 18 Dec 2020 14:03:16 -0800 Subject: [PATCH 7/7] Update the page param default to 1 instead of 0 --- website/content/api-docs/ui.mdx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/website/content/api-docs/ui.mdx b/website/content/api-docs/ui.mdx index 80abc49bd..bf591fe21 100644 --- a/website/content/api-docs/ui.mdx +++ b/website/content/api-docs/ui.mdx @@ -31,7 +31,7 @@ This page lists all known jobs in a paginated, searchable, and sortable table. - `search` `(string: "")` - Specifies a regular expression used to filter the list of visible jobs. This is specified as a query string parameter. -- `page` `(int: 0)` - Specifies the page in the jobs list that should be visible. This +- `page` `(int: 1)` - Specifies the page in the jobs list that should be visible. This is specified as a query string parameter. - `type` `(string: "")` - Filters the list of jobs to those with a matching type. @@ -83,7 +83,7 @@ based on the type of job. - `desc` `(boolean: false)` - Specifies whether or not the sort direction is descending or ascending. This is specified as a query string parameter. -- `page` `(int: 0)` - Specifies the page in the task groups list that should be visible. This +- `page` `(int: 1)` - Specifies the page in the task groups list that should be visible. This is specified as a query string parameter. ### Job Definition @@ -138,7 +138,7 @@ This page lists all allocations for a job in a table view. Each allocation inclu - `search` `(string: "")` - Specifies a regular expression used to filter the list of visible allocations. This is specified as a query string parameter. -- `page` `(int: 0)` - Specifies the page in the allocations list that should be visible. This +- `page` `(int: 1)` - Specifies the page in the allocations list that should be visible. This is specified as a query string parameter. ### Job Evaluations @@ -179,7 +179,7 @@ allocations. - `search` `(string: "")` - Specifies a regular expression used to filter the list of visible allocations. This is specified as a query string parameter. -- `page` `(int: 0)` - Specifies the page in the allocations list that should be visible. This +- `page` `(int: 1)` - Specifies the page in the allocations list that should be visible. This is specified as a query string parameter. ## Allocation Detail @@ -319,7 +319,7 @@ table. - `search` `(string: "")` - Specifies a regular expression used to filter the list of visible clients . This is specified as a query string parameter. -- `page` `(int: 0)` - Specifies the page in the clients list that should be visible. This +- `page` `(int: 1)` - Specifies the page in the clients list that should be visible. This is specified as a query string parameter. - `class` `(string: "")` - Filters the list of clients to those with a matching node class. @@ -350,7 +350,7 @@ address, port, datacenter, allocations, and attributes. - `search` `(string: "")` - Specifies a regular expression used to filter the list of visible allocations. This is specified as a query string parameter. -- `page` `(int: 0)` - Specifies the page in the allocations list that should be visible. This +- `page` `(int: 1)` - Specifies the page in the allocations list that should be visible. This is specified as a query string parameter. ## Client Monitor @@ -383,7 +383,7 @@ the leader. - `desc` `(boolean: false)` - Specifies whether or not the sort direction is descending or ascending. This is specified as a query string parameter. -- `page` `(int: 0)` - Specifies the page in the server agents list that should be visible. This +- `page` `(int: 1)` - Specifies the page in the server agents list that should be visible. This is specified as a query string parameter. ## Server Detail @@ -428,7 +428,7 @@ This page lists all CSI volumes registered with the Nomad cluster by namespace. - `search` `(string: "")` - Specifies a regular expression used to filter the list of visible volumes. This is specified as a query string parameter. -- `page` `(int: 0)` - Specifies the page in the volumes list that should be visible. This +- `page` `(int: 1)` - Specifies the page in the volumes list that should be visible. This is specified as a query string parameter. ## CSI Volume @@ -458,7 +458,7 @@ This page lists all CSI plugins registered with the Nomad cluster. Each plugin i - `search` `(string: "")` - Specifies a regular expression used to filter the list of visible plugins. This is specified as a query string parameter. -- `page` `(int: 0)` - Specifies the page in the plugins list that should be visible. This +- `page` `(int: 1)` - Specifies the page in the plugins list that should be visible. This is specified as a query string parameter. ## CSI Plugin @@ -488,7 +488,7 @@ This page lists all allocations for a CSI plugin. Each allocation includes the s - `search` `(string: "")` - Specifies a regular expression used to filter the list of visible allocations. This is specified as a query string parameter. -- `page` `(int: 0)` - Specifies the page in the allocations list that should be visible. This +- `page` `(int: 1)` - Specifies the page in the allocations list that should be visible. This is specified as a query string parameter. - `healthy` `(boolean: unset)` - Filters the list of allocations to only those with a matching health value. Value must be `true`, `false`, or unset.