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
/
asyncapi.yaml
63 lines (57 loc) · 1.51 KB
/
asyncapi.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
asyncapi: '2.0.0'
id: 'urn:com.github.lornajane.example1'
info:
title: Thingum Industries Sensors
description: Keeping the factory and all the machines running nicely
version: 1.0.0
contact:
name: Lorna
email: lornajane@aiven.io
url: https://github.com/aiven/thingum-industries
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
aiven-kafka:
url: kafka-thingum-industries.aivencloud.com:13041
protocol: kafka-secure
protocolVersion: '1.0.0'
security:
- creds: []
local-kafka:
url: localhost:9092
protocol: kafka
protocolVersion: '1.0.0'
channels:
factorysensor:
description: Factory sensor data
subscribe:
operationId: MachineSensor
description: Data from the in-machine sensors
tags:
- name: sensor
bindings:
kafka:
clientId:
type: string
message:
name: sensor-reading
title: Sensor Reading
description: Some information from a sensor
schemaFormat: "application/vnd.apache.avro;version=1.9.0"
payload:
$ref: machine_sensor.avsc
examples:
- payload:
machine: "SuperOven3000"
sensor: "OvenTemp"
value: 284
units: "C"
components:
securitySchemes:
creds:
type: X509
description: Download the files from the service overview page on your Aiven console
tags:
- name: sensor
description: Factory machine sensors