JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle® ZFS Storage Appliance RESTful Application Programming Interface
Oracle Technology Network
Library
PDF
Print View
Feedback
search filter icon
search icon

Document Information

Using This Documentation

Chapter 1 Overview

Chapter 2 Working with the API

Chapter 3 Alert Service Commands

Chapter 4 Analytics Services

Analytics Services Available

Settings

Get Settings

Modify Settings

Worksheets

List Worksheets

Get Analytics Worksheet

Create Worksheets

Destroy Worksheets

List Worksheet Datasets

Add Worksheet Dataset

Modify Worksheet Dataset

Datasets

List Datasets

Get Dataset

Create Datasets

Modify Dataset

Destroy Datasets

Save Dataset

Prune Dataset Data

Get Dataset Data

Chapter 5 Hardware Services

Chapter 6 Log Commands

Chapter 7 Network Commands

Chapter 8 Problem Service Commands

Chapter 9 Role Service

Chapter 10 SAN Services

Chapter 11 Service Commands

Chapter 12 Storage Services

Chapter 13 System Commands

Chapter 14 User Service

Chapter 15 Workflow Commands

Chapter 16 RESTful Clients

Get Dataset Data

Gets data from an analytic dataset.

Name
Description
start
The time to start collecting sample data
seconds
Number of seconds to collect sample data (Default = 1)

The startTime can be one of the following:

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.

Name
Description
startTime
The time of the first sample returned
sample
The sample index of the first sample returned
data
Array of sample 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
---