| Skip Navigation Links | |
| Exit Print View | |
|
Oracle® ZFS Storage Appliance RESTful Application Programming Interface |
Gets data from an analytic dataset.
|
The startTime can be one of the following:
An ISO 8601 time/date string (e.g. 20130531T01:13:58)
Sample index number
The string literal “now”
If start is not supplied then it sets to the current time minus the number of seconds of sample data desired. The start time cannot be in the future. If the number of seconds to collect data goes past the current time the server waits for each sample before returning the data.
|
Example request to collect 3 seconds of live data.
GET /api/analytics/v1/datasets/nfs4.ops%5Bfile%5D/data?start=now&seconds=3
HTTP/1.1
Authorization: Basic ab6rt4psMWE=
Host: example.zfssa.com:215
Accept: text/x-yaml
Example Results:
HTTP/1.1 200 OK
Content-Type: text/x-yaml
X-Zfssa-Analytics-Api: 1.0
Transfer-Encoding: chunked
---
data:
- sample: 239024557
data:
value: 5
startTime: 20130912T21:42:38
samples: 239024558
- sample: 239024558
data:
value: 15
startTime: 20130912T21:42:39
samples: 239024559
- sample: 239024559
data:
value: 25
startTime: 20130912T21:42:40
samples: 239024560
size: 3
---