Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal to add properties and relationships to Alarms #250

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Source/DTDLv2/Brick/Point/Alarm/Alarm.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@
},
"name": "lastKnownValue",
"schema": "dtmi:org:w3id:rec:ExceptionEvent;1"
},
{
"@type": "Relationship",
"description": {
"en": "The brick:Point that emitted this exception."
},
"displayName": {
"en": "source point"
},
"maxMultiplicity": 1,
"name": "sourcePoint",
"target": "dtmi:org:brickschema:schema:Brick:Point;1",
"writable": true
}
],
"description": {
Expand Down
24 changes: 24 additions & 0 deletions Source/DTDLv2/RealEstateCore/Event/Event.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@
"schema": "dateTime",
"writable": true
},
{
"@type": "Property",
"displayName": {
"en": "Event Identifier"
},
"description": {
"en": "Some events (like exception events) generate a unique identifier to enable traceability and management of the event through it's lifecycle."
},
"name": "eventIdentifier",
"schema": "string",
"writable": true
},
{
"@type": "Property",
"displayName": {
Expand Down Expand Up @@ -90,6 +102,18 @@
"schema": "string",
"writable": true
},
{
"@type": "Property",
"displayName": {
"en": "Priority"
},
"description": {
"en": "Reflect the importance or urgency of the event. Determines the order in which the system or the operators should address the event."
},
"name": "priority",
"schema": "integer",
"writable": true
},
{
"@type": "Property",
"description": {
Expand Down
94 changes: 94 additions & 0 deletions Source/DTDLv2/RealEstateCore/Event/Point-/ExceptionEvent.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,100 @@
"@id": "dtmi:org:w3id:rec:ExceptionEvent;1",
"@type": "Interface",
"contents": [
{
"@type": "Property",
"description": {
"en": "The previous state of the event."
},
"displayName": {
"en": "from state"
},
"name": "fromState",
"schema": {
"@type": "Enum",
"valueSchema": "integer",
"enumValues": [
{
"name": "normal",
"displayName": "Normal",
"enumValue": 0
},
{
"name": "fault",
"displayName": "Fault",
"enumValue": 1
},
{
"name": "offnormal",
"displayName": "Offnormal",
"enumValue": 2
},
{
"name": "highLimit",
"displayName": "High Limit",
"enumValue": 3
},
{
"name": "lowLimit",
"displayName": "Low Limit",
"enumValue": 4
},
{
"name": "lifeSafetyAlarm",
"displayName": "Life Safety Alarm",
"enumValue": 5
}
]
},
"writable": true
},
{
"@type": "Property",
"description": {
"en": "The current state of the event."
},
"displayName": {
"en": "to state"
},
"name": "toState",
"schema": {
"@type": "Enum",
"valueSchema": "integer",
"enumValues": [
{
"name": "normal",
"displayName": "Normal",
"enumValue": 0
},
{
"name": "fault",
"displayName": "Fault",
"enumValue": 1
},
{
"name": "offnormal",
"displayName": "Offnormal",
"enumValue": 2
},
{
"name": "highLimit",
"displayName": "High Limit",
"enumValue": 3
},
{
"name": "lowLimit",
"displayName": "Low Limit",
"enumValue": 4
},
{
"name": "lifeSafetyAlarm",
"displayName": "Life Safety Alarm",
"enumValue": 5
}
]
},
"writable": true
},
{
"@type": "Property",
"description": {
Expand Down
Loading