forked from kubeedge/mappers-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
onvif-device.yaml
76 lines (76 loc) · 1.7 KB
/
onvif-device.yaml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
apiVersion: devices.kubeedge.io/v1alpha2
kind: Device
metadata:
name: camera01
labels:
model: sample
spec:
deviceModelRef:
name: onvif-model
protocol:
customizedProtocol:
protocolName: onvif
configData:
url: 192.168.168.64:80
userName: admin
password: /ca/pass
nodeSelector:
nodeSelectorTerms:
- matchExpressions:
- key: ''
operator: In
values:
- test
propertyVisitors:
- propertyName: reboot
customizedProtocol:
protocolName: onvif
configData:
method: SystemReboot
customizedValues:
reportNumber: 1
- propertyName: saveFrame
customizedProtocol:
protocolName: onvif
configData:
method: SaveFrame
format: jpg
outputDir: /output
frameCount: 50
frameInterval: 1000
customizedValues:
reportNumber: 1
- propertyName: saveVideo
customizedProtocol:
protocolName: onvif
configData:
method: SaveVideo
frameCount: 1000
format: mp4
outputDir: /output
customizedValues:
reportNumber: 1
status:
twins:
- propertyName: saveFrame
reported:
metadata:
timestamp: '1550049403598'
type: boolean
value: "false"
desired:
metadata:
timestamp: '1550049403598'
type: boolean
value: "true"
- propertyName: saveVideo
reported:
metadata:
timestamp: '1550049403598'
type: boolean
value: "false"
desired:
metadata:
timestamp: '1550049403598'
type: boolean
value: "true"