Skip to content

Commit 4d6fa7c

Browse files
authored
Merge pull request #2 from brense/chore/update-to-topic-name-and-regions-in-external-ids
Updated to use topic names for presence queue and added region property to externalIds
2 parents 2d32788 + 695ee58 commit 4d6fa7c

File tree

1 file changed

+22
-42
lines changed

1 file changed

+22
-42
lines changed

lsis-asyncapi.yaml

Lines changed: 22 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@
77
asyncapi: 3.0.0
88
info:
99
title: LSIS Messaging API (AMQP)
10-
version: 0.0.14
10+
version: 0.0.15
1111
description: |
1212
This specification covers the AMQP messaging part of the LSIS system.
1313
14+
> NOTE: LSIS uses Azure Service Bus for messaging, which also supports the HTTPS protocol.
15+
1416
### Event file size
1517
1618
CloudEvents messages can be forwarded to various systems and consumers, including resource-constrained devices.
@@ -50,20 +52,20 @@ info:
5052
5153
**version 0.0.14**
5254
- Added the overallHealth property to the HealthStatus schema and made it the only required property.
55+
56+
**version 0.0.15**
57+
- Added regions property to the externalIds field of the station presence changed event.
58+
- Updated presence queue names changes to topics with subscriptions.
5359
contact:
5460
name: LSIS Support
5561
email: support@landelijksis.net
5662
servers:
57-
lsis-tst:
58-
host: "broker.landelijksis.net:5672"
59-
protocol: amqp
60-
protocolVersion: 1.0.0
6163
lsis-acc:
62-
host: "broker.landelijksis.net:5672"
64+
host: "ext-events.landelijksis.net:5672"
6365
protocol: amqp
6466
protocolVersion: 1.0.0
6567
lsis-prd:
66-
host: "broker.landelijksis.net:5672"
68+
host: "events.landelijksis.net:5672"
6769
protocol: amqp
6870
protocolVersion: 1.0.0
6971
channels:
@@ -90,7 +92,9 @@ channels:
9092
examples:
9193
- alliander
9294
- enexis
93-
address: stations.v1.event.presence.{recipient}
95+
subscriptionName:
96+
description: The name of the subscription for the recipient.
97+
address: stations.v1.event.presence.{recipient}/Subscriptions/{subscriptionName}
9498
messages:
9599
publishStationPresenceChanged.message:
96100
contentType: application/cloudevents+json
@@ -155,17 +159,7 @@ components:
155159
- unhealthy
156160
HealthStatus:
157161
type: object
158-
required:
159-
[
160-
id,
161-
source,
162-
specversion,
163-
type,
164-
data,
165-
time,
166-
datacontenttype,
167-
dataversion,
168-
]
162+
required: [id, source, specversion, type, data]
169163
properties:
170164
id:
171165
description: Identifies the event.
@@ -237,17 +231,7 @@ components:
237231

238232
StationPresenceChanged:
239233
type: object
240-
required:
241-
[
242-
id,
243-
source,
244-
specversion,
245-
type,
246-
data,
247-
time,
248-
datacontenttype,
249-
dataversion,
250-
]
234+
required: [id, source, specversion, type, data]
251235
properties:
252236
id:
253237
description: Identifies the event.
@@ -298,7 +282,7 @@ components:
298282
description: External identifiers of the station as known by the grid operators
299283
items:
300284
type: object
301-
required: [sysop, refId]
285+
required: [sysop, refId, regions]
302286
additionalProperties: false
303287
properties:
304288
sysop:
@@ -307,6 +291,11 @@ components:
307291
refId:
308292
type: string
309293
description: Reference identifier of the station at the grid operator
294+
regions:
295+
type: array
296+
description: A list of regions the station belongs to
297+
items:
298+
type: string
310299
change:
311300
type: object
312301
required: [type, since, userId, fullName, company]
@@ -362,6 +351,7 @@ components:
362351
externalIds:
363352
- sysop: A123-4563-4B13
364353
refId: "000000002"
354+
regions: ["zuid"]
365355
change:
366356
type: REGISTERED
367357
since: "2024-04-04T10:31:00Z"
@@ -372,17 +362,7 @@ components:
372362
company: Stedin
373363
StationPresenceAcknowledgement:
374364
type: object
375-
required:
376-
[
377-
id,
378-
source,
379-
specversion,
380-
type,
381-
data,
382-
time,
383-
datacontenttype,
384-
dataversion,
385-
]
365+
required: [id, source, specversion, type, data]
386366
properties:
387367
id:
388368
description: Identifies the event.

0 commit comments

Comments
 (0)