Skip to content

Commit

Permalink
Introduce links to CDEvents
Browse files Browse the repository at this point in the history
This commits introduces the concept of linking events to CDEvents. We
take inspiration from Eiffel for certain components, and also outline
new APIs and use cases.

Signed-off-by: benjamin-j-powell <[email protected]>
  • Loading branch information
benjamin-j-powell authored and benjamin-j-powell committed Mar 5, 2024
1 parent 699dfa2 commit 0ff4b55
Show file tree
Hide file tree
Showing 90 changed files with 1,380 additions and 44 deletions.
1 change: 1 addition & 0 deletions examples/artifact_packaged.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.artifact.packaged.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/artifact_published.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.artifact.published.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/artifact_signed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.artifact.signed.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
3 changes: 2 additions & 1 deletion examples/branch_created.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.branch.created.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand All @@ -18,4 +19,4 @@
}
}
}
}
}
3 changes: 2 additions & 1 deletion examples/branch_deleted.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.branch.deleted.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand All @@ -18,4 +19,4 @@
}
}
}
}
}
1 change: 1 addition & 0 deletions examples/build_finished.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.build.finished.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/build_queued.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.build.queued.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/build_started.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.build.started.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
3 changes: 2 additions & 1 deletion examples/change_abandoned.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.change.abandoned.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand All @@ -18,4 +19,4 @@
}
}
}
}
}
1 change: 1 addition & 0 deletions examples/change_created.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.change.created.0.3.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
3 changes: 2 additions & 1 deletion examples/change_merged.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.change.merged.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand All @@ -18,4 +19,4 @@
}
}
}
}
}
3 changes: 2 additions & 1 deletion examples/change_reviewed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.change.reviewed.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand All @@ -18,4 +19,4 @@
}
}
}
}
}
3 changes: 2 additions & 1 deletion examples/change_updated.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.change.updated.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand All @@ -18,4 +19,4 @@
}
}
}
}
}
1 change: 1 addition & 0 deletions examples/environment_created.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.environment.created.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/environment_deleted.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.environment.deleted.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/environment_modified.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.environment.modified.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/incident_detected.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "F4BD2B55-B6F6-4F44-AF72-BD2D0E7A8708",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/monitoring/prod1",
"type": "dev.cdevents.incident.detected.0.2.0-draft",
"timestamp": "2022-11-11T13:52:20.079Z"
Expand Down
1 change: 1 addition & 0 deletions examples/incident_reported.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "F4BD2B55-B6F6-4F44-AF72-BD2D0E7A8708",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/monitoring/prod1",
"type": "dev.cdevents.incident.reported.0.2.0-draft",
"timestamp": "2022-11-11T13:52:20.079Z"
Expand Down
1 change: 1 addition & 0 deletions examples/incident_resolved.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "F4BD2B55-B6F6-4F44-AF72-BD2D0E7A8708",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/monitoring/prod1",
"type": "dev.cdevents.incident.resolved.0.2.0-draft",
"timestamp": "2022-11-11T13:52:20.079Z"
Expand Down
1 change: 1 addition & 0 deletions examples/pipelinerun_finished.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.pipelinerun.finished.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/pipelinerun_queued.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.pipelinerun.queued.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/pipelinerun_started.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.pipelinerun.started.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/repository_created.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.repository.created.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/repository_deleted.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.repository.deleted.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/repository_modified.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.repository.modified.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/service_deployed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.service.deployed.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/service_published.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.service.published.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/service_removed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.service.removed.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/service_rolledback.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.service.rolledback.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/service_upgraded.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.service.upgraded.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/taskrun_finished.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.taskrun.finished.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/taskrun_started.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.taskrun.started.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/testcaserun_finished.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.testcaserun.finished.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/testcaserun_queued.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.testcaserun.queued.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/testcaserun_started.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.testcaserun.started.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/testoutput_published.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.testoutput.published.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/testsuiterun_finished.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.testsuiterun.finished.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/testsuiterun_queued.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.testsuiterun.queued.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/testsuiterun_started.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.testsuiterun.started.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
Loading

0 comments on commit 0ff4b55

Please sign in to comment.