{"type":"api","title":"Get Sensor Telemetry Data","meta":{"id":"/apps/pubhub/media/cisco-iot-suite/fbcd3c11dd48e274ddaa7139d3a3ed24e2e107e0/5c66b3aa-a761-3029-b823-c160b9ed90db","swagger":"2.0","info":{"contact":{"email":"asset-tracking-team@cisco.com"},"description":"This service exposes APIs for managing AssetTypes, Assets, Sensors, Gateways deployed in the network.","license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"},"termsOfService":"http://swagger.io/terms/","title":"Industrial Asset Vision","version":"1.0.0"},"host":"us.ciscoiot.com","basePath":"/at/nbapi/v1","schemes":["https"],"externalDocs":{"description":"Find out more about Industrial Asset Vision","url":"https://www.cisco.com/c/en/us/products/cloud-systems-management/industrial-asset-vision/index.html"},"securityDefinitions":{"BearerToken":{"in":"header","name":"Authorization","type":"apiKey"}},"x-parser-conf":{"apiKeyGenerator":{"$remoteModule":"./config/apikey.js"},"serverConfig":true,"meta":{"useProxy":true}}},"spec":{"description":"Get Sensor Telemetry Data","operationId":"getSensorTelemetryData","parameters":[{"description":"Sensor Id","format":"uuid","in":"path","name":"sensorId","required":true,"type":"string"},{"description":"Start Time in Milliseconds (Epoch Time)","format":"int64","in":"query","name":"startTime","required":false,"type":"integer"},{"description":"End Time in Milliseconds (Epoch Time)","format":"int64","in":"query","name":"endTime","required":false,"type":"integer"}],"produces":["application/json"],"responses":{"200":{"description":"Success","schema":{"example":{"data":{"Speed":{"displayName":"Speed","name":"speed","telemetry":[{"timestamp":1622731376722,"value":0},{"timestamp":1622731366740,"value":0}],"unit":"kmph"}}},"properties":{"data":{"additionalProperties":{"properties":{"displayName":{"description":"Telemetry Display Name","type":"string"},"name":{"description":"Telemetry Name","type":"string"},"telemetry":{"description":"Telemetry Data","items":{"properties":{"timestamp":{"description":"Timestamp in epoch time","type":"string"},"value":{"description":"Telemetry Value","type":"string"}},"type":"object","$$ref":"#/definitions/TelemetryValue"},"type":"array"},"unit":{"description":"Telemetry Unit","type":"string"}},"type":"object","$$ref":"#/definitions/TelemetryData"},"type":"object"}},"type":"object","$$ref":"#/definitions/TelemetryDataResponse"}},"400":{"description":"Bad Request","schema":{"description":"Contains errorCode and message","example":{"message":"Error Message","status":"4xx/500"},"properties":{"message":{"description":"A user readable message that describes the error in details.","type":"string"},"status":{"description":"Http Status Code that describes the error","type":"integer"}},"type":"object","$$ref":"#/definitions/Error"}},"401":{"description":"Unauthorized","schema":{"description":"Contains errorCode and message","example":{"message":"Error Message","status":"4xx/500"},"properties":{"message":{"description":"A user readable message that describes the error in details.","type":"string"},"status":{"description":"Http Status Code that describes the error","type":"integer"}},"type":"object","$$ref":"#/definitions/Error"}},"403":{"description":"Forbidden","schema":{"description":"Contains errorCode and message","example":{"message":"Error Message","status":"4xx/500"},"properties":{"message":{"description":"A user readable message that describes the error in details.","type":"string"},"status":{"description":"Http Status Code that describes the error","type":"integer"}},"type":"object","$$ref":"#/definitions/Error"}},"404":{"description":"Not Found","schema":{"description":"Contains errorCode and message","example":{"message":"Error Message","status":"4xx/500"},"properties":{"message":{"description":"A user readable message that describes the error in details.","type":"string"},"status":{"description":"Http Status Code that describes the error","type":"integer"}},"type":"object","$$ref":"#/definitions/Error"}},"500":{"description":"Internal Server Error","schema":{"description":"Contains errorCode and message","example":{"message":"Error Message","status":"4xx/500"},"properties":{"message":{"description":"A user readable message that describes the error in details.","type":"string"},"status":{"description":"Http Status Code that describes the error","type":"integer"}},"type":"object","$$ref":"#/definitions/Error"}}},"security":[{"BearerToken":[]}],"summary":"Get Sensor Telemetry Data","tags":["Sensors"],"__originalOperationId":"getSensorTelemetryData","method":"get","path":"/sensors/{sensorId}/telemetry"}}