Classify

Get a window of raw sample features from cache, after a live classification job has completed.

Get raw sample features for a particular window. This is only available after a live classification job has completed and raw features have been cached.

get/api/{projectId}/classify/v2/{sampleId}/raw-data/{windowIndex}

Request

Path parameters

projectIdinteger required

Project ID

sampleIdinteger required

Sample ID

windowIndexinteger required

Sample window index

Query parameters

datastreamIndexinteger

Index of the datastream, if omitted this will resolve to 0.

impulseIdinteger

Impulse ID. If this is unset then the default impulse is used.

truncateStructuredLabelsboolean

If true, only a slice of labels will be returned for samples with multiple labels.

Response

OK

successboolean required

Whether the operation succeeded

errorstring

Optional error description (set if 'success' was false)

totalPayloadLengthinteger required

Total number of payload values

Example response

{
  "sample": {
    "id": 2,
    "filename": "idle01.d8Ae",
    "signatureValidate": true,
    "signatureMethod": "HS256",
    "label": "healthy-machine",
    "intervalMs": 16,
    "frequency": 62.5,
    "originalIntervalMs": 16,
    "originalFrequency": 62.5,
    "sensors": [
      {
        "name": "accX"
      }
    ],
    "datastreams": [
      {
        "sensors": [
          {
            "name": "accX"
          }
        ]
      }
    ]
  },
  "payload": {
    "device_name": "ac:87:a3:0a:2d:1b",
    "device_type": "DISCO-L475VG-IOT01A",
    "sensors": [
      {
        "name": "accX"
      }
    ],
    "cropEnd": 128,
    "intervalMs": 16,
    "frequencyHz": 62.5
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.