Commit 581b9777 by Torkel Ödegaard

Merge branch 'master' of github.com:grafana/grafana

parents c771dd4b cb720d8e
...@@ -52,6 +52,15 @@ parent = "http_api" ...@@ -52,6 +52,15 @@ parent = "http_api"
"expires": 3600 "expires": 3600
} }
JSON Body schema:
- **dashboard** – Required. The complete dashboard model.
- **name** – Optional. snapshot name
- **expires** - Optional. When the snapshot should expire in seconds. 3600 is 1 hour, 86400 is 1 day. Default is never to expire.
- **external** - Optional. Save the snapshot on an external server rather than locally. Default is `false`.
- **key** - Optional. Define the unique key. Required if **external** is `true`.
- **deleteKey** - Optional. Unique key used to delete the snapshot. It is different from the **key** so that only the creator can delete the snapshot. Required if **external** is `true`.
**Example Response**: **Example Response**:
HTTP/1.1 200 HTTP/1.1 200
......
...@@ -103,7 +103,7 @@ export class DashboardExporter { ...@@ -103,7 +103,7 @@ export class DashboardExporter {
templateizeDatasourceUsage(variable); templateizeDatasourceUsage(variable);
variable.options = []; variable.options = [];
variable.current = {}; variable.current = {};
variable.refresh = 1; variable.refresh = variable.refresh > 0 ? variable.refresh : 1;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment