|
8 | 8 | * [Tests Finished](#tests-finished)
|
9 | 9 | * [Start Evaluation](#start-evaluation)
|
10 | 10 | * [Evaluation Done](#evaluation-done)
|
| 11 | +* [Evaluation Invalidated](#evaluation-invalidated) |
11 | 12 | * [Problem Open](#problem-open)
|
12 | 13 | * [Problem](#problem)
|
13 | 14 | * [Configure Monitoring](#configure-monitoring)
|
@@ -1006,6 +1007,63 @@ The *evaluation-done* event is sent when the evaluation of the test execution is
|
1006 | 1007 |
|
1007 | 1008 | ([↑ up to index](#keptn-cloud-events))
|
1008 | 1009 |
|
| 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 | +([↑ up to index](#keptn-cloud-events)) |
| 1066 | + |
1009 | 1067 | ## Problem
|
1010 | 1068 |
|
1011 | 1069 | 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