-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathDevicePowerGet.yaml
More file actions
28 lines (27 loc) · 958 Bytes
/
DevicePowerGet.yaml
File metadata and controls
28 lines (27 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
type: object
description: Definition of a device power resource
allOf:
- $ref: '../../common/ResourceOwned.yaml'
- type: object
required:
- power_state
properties:
power_state:
type: object
properties:
battery_state:
type: string
enum:
- normal
- low
- critical
description: |
Status of the power source of a device, only for battery powered devices.
- `normal` – battery level is sufficient
- `low` – battery level low, some features (e.g. software update) might stop working, please change battery soon
- `critical` – battery level critical, device can fail any moment
battery_level:
type: integer
minimum: 0
maximum: 100
description: The current battery state in percent, only for battery powered devices.