Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.

Commit 4d7cc91

Browse files
authored
Merge pull request #47 from keptn/feature/46/evaluation-invalidated-event
#46 Added the spec for evaluation-invalidated events
2 parents d7b0e4c + c200faf commit 4d7cc91

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

cloudevents.md

+58
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* [Tests Finished](#tests-finished)
99
* [Start Evaluation](#start-evaluation)
1010
* [Evaluation Done](#evaluation-done)
11+
* [Evaluation Invalidated](#evaluation-invalidated)
1112
* [Problem Open](#problem-open)
1213
* [Problem](#problem)
1314
* [Configure Monitoring](#configure-monitoring)
@@ -1006,6 +1007,63 @@ The *evaluation-done* event is sent when the evaluation of the test execution is
10061007

10071008
([↑ up to index](#keptn-cloud-events))
10081009

1010+
## Evaluation Invalidated
1011+
1012+
The *evaluation-invalidated* event is sent when a previous evaluation-done event should be marked as invalid. The `triggeredid` property of the CloudEvent context references the ID of the evaluation-done event that should be invalidated.
1013+
1014+
### type
1015+
```json
1016+
"type": "sh.keptn.events.evaluation.invalidated"
1017+
```
1018+
1019+
### data
1020+
```json
1021+
"EvaluationInvalidatedEventData": {
1022+
"properties": {
1023+
"project": {
1024+
"type": "string"
1025+
},
1026+
"service": {
1027+
"type": "string"
1028+
},
1029+
"stage": {
1030+
"type": "string"
1031+
},
1032+
},
1033+
"additionalProperties": false,
1034+
"type": "object"
1035+
}
1036+
```
1037+
1038+
### Example
1039+
1040+
<details><summary>Example of sh.keptn.events.evaluation.invalidated event</summary>
1041+
<p>
1042+
1043+
```json
1044+
{
1045+
"type": "sh.keptn.events.evaluation.invalidated",
1046+
"specversion": "0.2",
1047+
"source": "https://github.com/keptn/keptn/cli",
1048+
"id": "f2b878d3-03c0-4e8f-bc3f-454bc1b3d79d",
1049+
"time": "2019-07-09T09:03:25.437Z",
1050+
"contenttype": "application/json",
1051+
"shkeptncontext": "08635340-6f9e-4b32-97ff-3b6c292bc509",
1052+
"triggeredid": "1b7cd584-320e-4ef0-8522-8a817263fdab",
1053+
"data": {
1054+
"project": "sockshop",
1055+
"stage": "production",
1056+
"service": "carts"
1057+
}
1058+
}
1059+
```
1060+
1061+
Sending this event would result in the corresponding evaluation-done event with the id `1b7cd584-320e-4ef0-8522-8a817263fdab` to be invalidated, since this ID is referenced by the `triggeredid` field.
1062+
</p>
1063+
</details>
1064+
1065+
([&uarr; up to index](#keptn-cloud-events))
1066+
10091067
## Problem
10101068

10111069
The generic *problem* event is sent when a problem activity related to a monitored service is happening. For example, a *problem* event is sent when a problem is opened or resolved.

0 commit comments

Comments
 (0)