Remove all documented references to time_options (#92657)

This commit is contained in:
Jack Baldry
2024-08-29 13:47:26 +01:00
committed by GitHub
parent 6ddb96ada2
commit 5e89a9060b
3 changed files with 3 additions and 67 deletions

View File

@@ -58,7 +58,6 @@ In the following JSON, id is shown as null which is the default value assigned t
"to": "now" "to": "now"
}, },
"timepicker": { "timepicker": {
"time_options": [],
"refresh_intervals": [] "refresh_intervals": []
}, },
"templating": { "templating": {
@@ -137,17 +136,6 @@ The grid has a negative gravity that moves panels up if there is empty space abo
"now": true, "now": true,
"hidden": false, "hidden": false,
"nowDelay": "", "nowDelay": "",
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
],
"refresh_intervals": [ "refresh_intervals": [
"5s", "5s",
"10s", "10s",
@@ -175,7 +163,6 @@ Usage of the fields is explained below:
| **now** | | | **now** | |
| **hidden** | whether timepicker is hidden or not | | **hidden** | whether timepicker is hidden or not |
| **nowDelay** | override the now time by entering a time delay. Use this option to accommodate known delays in data aggregation to avoid null values. | | **nowDelay** | override the now time by entering a time delay. Use this option to accommodate known delays in data aggregation to avoid null values. |
| **time_options** | options available in the time picker dropdown |
| **refresh_intervals** | interval options available in the refresh picker dropdown | | **refresh_intervals** | interval options available in the refresh picker dropdown |
| **status** | | | **status** | |
| **type** | | | **type** | |

View File

@@ -217,31 +217,7 @@ Content-Length: 1300
Content-Length: 46 Content-Length: 46
``` ```
JSON response body schema:
- **message** - Message explaining the reason for the request failure.
## Restore dashboard by dashboard UID
`POST /api/dashboards/uid/:uid/restore`
Restores a dashboard to a given dashboard version using `uid`.
**Example request for restoring a dashboard version**:
```http
POST /api/dashboards/uid/QA7wKklGz/restore
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
{
"version": 1
}
```
JSON body schema:
JSON response body schema: JSON response body schema:
- **message** - Message explaining the reason for the request failure. - **message** - Message explaining the reason for the request failure.
@@ -328,31 +304,7 @@ Content-Length: 1300
**Example response (JSON diff)**: **Example response (JSON diff)**:
```http
Status Codes:
- **200** - OK
- **400** - Bad request (invalid JSON sent)
- **401** - Unauthorized
- **404** - Not found
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
HTTP/1.1 200 OK HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8 Content-Type: text/html; charset=UTF-8

View File

@@ -232,10 +232,7 @@ For more information on how to configure dashboard providers, refer to [Dashboar
"from": "now-6h", "from": "now-6h",
"to": "now" "to": "now"
}, },
"timepicker": { "timepicker": {},
"refresh_intervals": ["5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"],
"time_options": ["5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d"]
},
"timezone": "browser", "timezone": "browser",
"title": "Cluster", "title": "Cluster",
"version": 0 "version": 0