Systemstate
Last updated
Was this helpful?
Was this helpful?
{ 'state': 'enabling', 'resourceId': 'samplesystemstateservice-someEndpoint', 'timestamp': 1621256032226 }{ 'state': 'enabled', 'resourceId': 'samplesystemstateservice-someEndpoint', 'timestamp': 1621256032233 }{ 'state': 'subscribed', 'resourceId': 'samplesystemstateservice-someConnection', 'timestamp': 1621256032230 }description: >
Sample SystemState service commissioning file
metadata:
name: Sample SystemState service
provider: cybus
homepage: https://www.cybus.io
version: 1.0.0
resources:
someConnection:
type: Cybus::Connection
properties:
protocol: Systemstate
connection: {}
someEndpoint:
type: Cybus::Endpoint
properties:
protocol: Systemstate
connection: !ref someConnection
subscribe:
resourceId: !sub '${Cybus::ServiceId}-someConnection'
anotherEndpoint:
type: Cybus::Endpoint
properties:
protocol: Systemstate
connection: !ref someConnection
subscribe:
resourceId: !sub '${Cybus::ServiceId}-someEndpoint'
serviceEndpoint:
type: Cybus::Endpoint
properties:
protocol: Systemstate
connection: !ref someConnection
subscribe:
resourceId: !sub '${Cybus::ServiceId}'