This repository has been archived by the owner on Jul 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdoors-publish.yaml
72 lines (65 loc) · 1.61 KB
/
doors-publish.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
asyncapi: '2.0.0'
id: 'urn:com.github.aiven.thingum'
info:
title: Thingum Industries Sensors 2
description: Keeping the factory secure
version: 1.0.0
contact:
name: Lorna
email: [email protected]
url: https://github.com/aiven/thingum-industries
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
production:
url: kafka-thingum-industries.aivencloud.com:13041
protocol: kafka-secure
protocolVersion: '1.0.0'
security:
- creds: []
development:
url: localhost:9092
protocol: kafka
protocolVersion: '1.0.0'
channels:
door-sensor:
description: Door sensors (external and internal)
publish:
operationId: DoorSensor
description: Open/closed state information from the doors.
tags:
- name: sensor
bindings:
kafka:
clientId:
type: string
message:
$ref: '#/components/messages/DoorData'
components:
messages:
DoorData:
name: door-sensor-data
title: Door Sensor Reading
description: Door sensor data
payload:
type: object
properties:
location:
type: string
state:
enum: ["open", "closed"]
examples:
- payload:
location: "Car park"
state: "open"
- payload:
location: "Roof-level fire exit"
state: "closed"
securitySchemes:
creds:
type: X509
description: Download the files from the service overview page on your Aiven console
tags:
- name: sensor
description: Factory sensors