Skip to content

Commit 1df941a

Browse files
durga-vasaadiSantosh NC
authored and
Santosh NC
committed
Changed templates for all events to Agen format. (#104)
1 parent 189ee05 commit 1df941a

35 files changed

+286
-425
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 2.0.0
2+
- Changed templates of all events in Agen format.
3+
14
## 1.0.1
25
- Changed Link from http://ericsson.github.io to https://eiffel-community.github.io.
36
- Upgraded eiffel-remrem-protocol-interface version from 1.0.0 to 1.0.1.

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<version>1.0.0</version>
88
</parent>
99
<artifactId>eiffel-remrem-semantics</artifactId>
10-
<version>1.0.1</version>
10+
<version>2.0.0</version>
1111
<packaging>jar</packaging>
1212
<properties>
1313
<eclipse.jgit.version>5.0.1.201806211838-r</eclipse.jgit.version>

src/main/resources/templates/eiffelactivitycanceledevent.json

+11-13
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,31 @@
22
"msgParams": {
33
"meta": {
44
"type": "EiffelActivityCanceledEvent",
5-
"version": "1.1.0",
6-
"tags": [],
5+
"version": "3.0.0",
6+
"tags": [""],
77
"source": {
88
"domainId": "",
99
"host": "",
1010
"name": "",
1111
"uri": ""
12-
},
13-
"security": {
14-
"sdm": {
15-
"authorIdentity": " required if sdm present ",
16-
"encryptedDigest": " required if sdm present "
17-
}
18-
}
1912
}
13+
}
2014
},
2115
"eventParams": {
2216
"data": {
2317
"reason": "",
2418
"customData": [{
25-
"key": " required if customData present ",
26-
"value": " required if customData present "
19+
"key": "required if customData present",
20+
"value": "required if customData present"
2721
}]
2822
},
2923
"links": [{
30-
"type": " required ACTIVITY_EXECUTION and CAUSE,CONTEXT,FLOW_CONTEXT are optional",
31-
"target": " required "
24+
"type": "ACTIVITY_EXECUTION",
25+
"target": "required - UUID of EiffelActivityTriggeredEvent"
26+
},
27+
{
28+
"type": "CAUSE or CONTEXT or FLOW_CONTEXT - optional",
29+
"target": "required - UUID if type is present"
3230
}]
3331
}
3432
}

src/main/resources/templates/eiffelactivityfinishedevent.json

+9-11
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,20 @@
22
"msgParams": {
33
"meta": {
44
"type": "EiffelActivityFinishedEvent",
5-
"version": "1.1.0",
6-
"tags": [],
5+
"version": "3.0.0",
6+
"tags": [""],
77
"source": {
88
"domainId": "",
99
"host": "",
1010
"name": "",
1111
"uri": ""
12-
},
13-
"security": {
14-
"sdm": {
15-
"authorIdentity": "required if sdm present",
16-
"encryptedDigest": "required if sdm present"
17-
}
1812
}
1913
}
2014
},
2115
"eventParams": {
2216
"data": {
2317
"outcome": {
24-
"conclusion": "required, can be one of SUCCESSFUL,UNSUCCESSFUL,FAILED,ABORTED,TIMED_OUT,INCONCLUSIVE",
18+
"conclusion": "required if outcome present, can be one of SUCCESSFUL,UNSUCCESSFUL,FAILED,ABORTED,TIMED_OUT,INCONCLUSIVE",
2519
"description": ""
2620
},
2721
"persistentLogs": [{
@@ -34,8 +28,12 @@
3428
}]
3529
},
3630
"links": [{
37-
"type": "required ACTIVITY_EXECUTION and CAUSE,CONTEXT,FLOW_CONTEXT are optional",
38-
"target": "required"
31+
"type": "ACTIVITY_EXECUTION",
32+
"target": "required - UUID of EiffelActivityTriggeredEvent"
33+
},
34+
{
35+
"type": "CAUSE or CONTEXT or FLOW_CONTEXT - optional",
36+
"target": "required - UUID if type is present"
3937
}]
4038
}
4139
}

src/main/resources/templates/eiffelactivitystartedevent.json

+8-12
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,13 @@
22
"msgParams": {
33
"meta": {
44
"type": "EiffelActivityStartedEvent",
5-
"version": "1.1.0",
6-
"tags": [
7-
8-
],
5+
"version": "3.0.0",
6+
"tags": [""],
97
"source": {
108
"domainId": "",
119
"host": "",
1210
"name": "",
1311
"uri": ""
14-
} ,
15-
"security": {
16-
"sdm": {
17-
"authorIdentity": "required if sdm present",
18-
"encryptedDigest": "required if sdm present"
19-
}
2012
}
2113
}
2214
},
@@ -33,8 +25,12 @@
3325
}]
3426
},
3527
"links": [{
36-
"type": "required ACTIVITY_EXECUTION and CAUSE,CONTEXT,FLOW_CONTEXT,PREVIOUS_ACTIVITY_EXECUTION are optional",
37-
"target": "required"
28+
"type": "ACTIVITY_EXECUTION",
29+
"target": "required - UUID of EiffelActivityTriggeredEvent"
30+
},
31+
{
32+
"type": "CAUSE or CONTEXT or FLOW_CONTEXT or PREVIOUS_ACTIVITY_EXECUTION - optional",
33+
"target": "required - UUID if type is present"
3834
}]
3935
}
4036
}

src/main/resources/templates/eiffelactivitytriggeredevent.json

+4-10
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,13 @@
22
"msgParams": {
33
"meta": {
44
"type": "EiffelActivityTriggeredEvent",
5-
"version": "1.1.0",
6-
"tags": [],
5+
"version": "3.0.0",
6+
"tags": [""],
77
"source": {
88
"domainId": "",
99
"host": "",
1010
"name": "",
1111
"uri": ""
12-
},
13-
"security": {
14-
"sdm": {
15-
"authorIdentity": "required if sdm present",
16-
"encryptedDigest": "required if sdm present"
17-
}
1812
}
1913
}
2014
},
@@ -33,8 +27,8 @@
3327
}]
3428
},
3529
"links": [{
36-
"type": "required if links present, can be anyOf CAUSE,CONTEXT,FLOW_CONTEXT",
37-
"target": "required if links present"
30+
"type": "CAUSE or CONTEXT or FLOW_CONTEXT - optional",
31+
"target": "required - UUID if type is present"
3832
}]
3933
}
4034
}

src/main/resources/templates/eiffelalertacknowledgedevent.json

+9-11
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,32 @@
22
"msgParams": {
33
"meta": {
44
"type": "EiffelAlertAcknowledgedEvent",
5-
"version": "1.0.0",
6-
"tags": [],
5+
"version": "2.0.0",
6+
"tags": [""],
77
"source": {
88
"domainId": "",
99
"host": "",
1010
"name": "",
1111
"uri": ""
12-
},
13-
"security": {
14-
"sdm": {
15-
"authorIdentity": "required if sdm present",
16-
"encryptedDigest": "required if sdm present"
17-
}
1812
}
1913
}
2014
},
2115
"eventParams": {
2216
"data": {
23-
"acknowledgement": "",
17+
"acknowledgement": "required",
2418
"entitiy": "",
2519
"customData": [{
2620
"key": "required if customData present",
2721
"value": "required if customData present"
2822
}]
2923
},
3024
"links": [{
31-
"type": "required ALERT and CAUSE,CONTEXT,FLOW_CONTEXT are optional ",
32-
"target": "required"
25+
"type": "ALERT",
26+
"target": "required - UUID if type is present"
27+
},
28+
{
29+
"type": "CAUSE or CONTEXT or FLOW_CONTEXT - optional ",
30+
"target": "required - UUID if type is present"
3331
}]
3432
}
3533
}

src/main/resources/templates/eiffelalertceasedevent.json

+8-10
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,13 @@
22
"msgParams": {
33
"meta": {
44
"type": "EiffelAlertCeasedEvent",
5-
"version": "1.0.0",
6-
"tags": [],
5+
"version": "2.0.0",
6+
"tags": [""],
77
"source": {
88
"domainId": "",
99
"host": "",
1010
"name": "",
1111
"uri": ""
12-
},
13-
"security": {
14-
"sdm": {
15-
"authorIdentity": "required if sdm present",
16-
"encryptedDigest": "required if sdm present"
17-
}
1812
}
1913
}
2014
},
@@ -27,8 +21,12 @@
2721
}]
2822
},
2923
"links": [{
30-
"type": "required ALERT and CAUSE,CONTEXT,FLOW_CONTEXT are optional",
31-
"target": "required"
24+
"type": "ALERT",
25+
"target": "required - UUID if type is present"
26+
},
27+
{
28+
"type": "CAUSE or CONTEXT or FLOW_CONTEXT - optional",
29+
"target": "required - UUID if type is present"
3230
}]
3331
}
3432
}

src/main/resources/templates/eiffelalertraisedevent.json

+6-12
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,20 @@
22
"msgParams": {
33
"meta": {
44
"type": "EiffelAlertRaisedEvent",
5-
"version": "1.0.0",
6-
"tags": [],
5+
"version": "2.0.0",
6+
"tags": [""],
77
"source": {
88
"domainId": "",
99
"host": "",
1010
"name": "",
1111
"uri": ""
12-
},
13-
"security": {
14-
"sdm": {
15-
"authorIdentity": "required if sdm present",
16-
"encryptedDigest": "required if sdm present"
17-
}
1812
}
1913
}
2014
},
2115
"eventParams": {
2216
"data": {
23-
"heading": "",
24-
"body": "",
17+
"heading": "required",
18+
"body": "required",
2519
"uri": "",
2620
"entity": "",
2721
"severity": "required , can be anyone of MINOR,MAJOR,CRITICAL,BLOCKER,CANCELED",
@@ -31,8 +25,8 @@
3125
}]
3226
},
3327
"links": [{
34-
"type": "required if links present can be anyOf MODIFIED_ALERT,CAUSE,CONTEXT,FLOW_CONTEXT",
35-
"target": "required"
28+
"type": "MODIFIED_ALERT or CAUSE or CONTEXT or FLOW_CONTEXT - optional",
29+
"target": "required - UUID if type is present"
3630
}]
3731
}
3832
}

src/main/resources/templates/eiffelannouncementpublishedevent.json

+4-10
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,13 @@
22
"msgParams": {
33
"meta": {
44
"type": "EiffelAnnouncementPublishedEvent",
5-
"version": "1.1.0",
6-
"tags": [],
5+
"version": "3.0.0",
6+
"tags": [""],
77
"source": {
88
"domainId": "",
99
"host": "",
1010
"name": "",
1111
"uri": ""
12-
},
13-
"security": {
14-
"sdm": {
15-
"authorIdentity": "required if sdm present",
16-
"encryptedDigest": "required if sdm present"
17-
}
1812
}
1913
}
2014
},
@@ -30,8 +24,8 @@
3024
}]
3125
},
3226
"links": [{
33-
"type": "required if links present, can be anyOf CAUSE,CONTEXT,FLOW_CONTEXT,MODIFIED_ANNOUNCEMENT",
34-
"target": "required if links present"
27+
"type": "CAUSE or CONTEXT or FLOW_CONTEXT or MODIFIED_ANNOUNCEMENT - optional",
28+
"target": "required - UUID if type is present"
3529
}]
3630
}
3731
}

0 commit comments

Comments
 (0)