Last active
September 1, 2018 22:43
-
-
Save drasko/b5e607bd58c20f7bd0d3a46816a873bb to your computer and use it in GitHub Desktop.
EdgeX camera monitor profile for device provisioning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright (c) 2018 | |
# Dell | |
# Mainflux | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
# | |
# File taken from https://docs.edgexfoundry.org/Ch-WalkthroughDeviceProfile.html | |
name: "camera monitor profile" | |
manufacturer: "Dell" | |
model: "Cam12345" | |
labels: | |
- "camera" | |
description: "Human and canine camera monitor profile" | |
commands: | |
- | |
name: People | |
get: | |
path: "/api/v1/devices/{deviceId}/peoplecount" | |
responses: | |
- | |
code: "200" | |
description: "Number of people on camera" | |
expectedValues: ["humancount"] | |
- | |
code: "503" | |
description: "service unavailable" | |
expectedValues: ["cameraerror"] | |
- | |
name: Dogs | |
get: | |
path: "/api/v1/devices/{deviceId}/dogcount" | |
responses: | |
- | |
code: "200" | |
description: "Number of dogs on camera" | |
expectedValues: ["caninecount"] | |
- | |
code: "503" | |
description: "service unavailable" | |
expectedValues: ["cameraerror"] | |
- | |
name: ScanDepth | |
get: | |
path: "/api/v1/devices/{deviceId}/scandepth" | |
responses: | |
- | |
code: "200" | |
description: "Get the scan depth" | |
expectedValues: ["depth"] | |
- | |
code: "503" | |
description: "service unavailable" | |
expectedValues: ["cameraerror"] | |
put: | |
path: "/api/v1/devices/{deviceId}/scandepth" | |
parameterNames: ["depth"] | |
responses: | |
- | |
code: "204" | |
description: "Set the scan depth." | |
expectedValues: [] | |
- | |
code: "503" | |
description: "service unavailable" | |
expectedValues: ["cameraerror"] | |
- | |
name: SnapshotDuration | |
get: | |
path: "/api/v1/devices/{deviceId}/snapshotduration" | |
responses: | |
- | |
code: "200" | |
description: "Get the snaphot duration" | |
expectedValues: ["duration"] | |
- | |
code: "503" | |
description: "service unavailable" | |
expectedValues: [] | |
put: | |
path: "/api/v1/devices/{deviceId}/SnapshotDuration" | |
parameterNames: ["duration"] | |
responses: | |
- | |
code: "204" | |
description: "Set the snapshot duration." | |
expectedValues: [] | |
- | |
code: "503" | |
description: "service unavailable" | |
expectedValues: ["cameraerror"] | |
- | |
name: Counts | |
get: | |
path: "/api/v1/devices/{deviceId}/counts" | |
responses: | |
- | |
code: "200" | |
description: "Get the people and human counts" | |
expectedValues: ["count","count"] | |
- | |
code: "503" | |
description: "service unavailable" | |
expectedValues: [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment