|
1 | 1 | """Constants Event types.""" |
2 | 2 |
|
3 | | -# PipelineRun events |
4 | | -PipelineRunStartedEventV1 :str = "cd.pipelinerun.started.v1" |
5 | | -PipelineRunFinishedEventV1 :str = "cd.pipelinerun.finished.v1" |
6 | | -PipelineRunQueuedEventV1 :str = "cd.pipelinerun.queued.v1" |
7 | | - |
8 | | -# TaskRun events |
9 | | -TaskRunStartedEventV1 :str = "cd.taskrun.started.v1" |
10 | | -TaskRunFinishedEventV1 :str = "cd.taskrun.finished.v1" |
11 | | - |
12 | | -# Repository events |
13 | | -RepositoryCreatedEventV1 :str = "cd.repository.created.v1" |
14 | | -RepositoryModifiedEventV1 :str = "cd.repository.modified.v1" |
15 | | -RepositoryDeletedEventV1 :str = "cd.repository.deleted.v1" |
| 3 | +# Artifact Events |
| 4 | +ArtifactPackagedEventV1 :str = "cd.artifact.packaged.v1" |
| 5 | +ArtifactPublishedEventV1 :str = "cd.artifact.published.v1" |
16 | 6 |
|
17 | 7 | # Branch Events |
18 | 8 | BranchCreatedEventV1 :str = "cd.repository.branch.created.v1" |
19 | 9 | BranchDeletedEventV1 :str = "cd.repository.branch.deleted.v1" |
20 | 10 |
|
| 11 | +# Build Events |
| 12 | +BuildStartedEventV1 :str = "cd.build.started.v1" |
| 13 | +BuildQueuedEventV1 :str = "cd.build.queued.v1" |
| 14 | +BuildFinishedEventV1 :str = "cd.build.finished.v1" |
| 15 | + |
21 | 16 | # Change Events |
22 | 17 | ChangeCreatedEventV1 :str = "cd.repository.change.created.v1" |
23 | 18 | ChangeUpdatedEventV1 :str = "cd.repository.change.updated.v1" |
24 | 19 | ChangeReviewedEventV1 :str = "cd.repository.change.reviewed.v1" |
25 | 20 | ChangeMergedEventV1 :str = "cd.repository.change.merged.v1" |
26 | 21 | ChangeAbandonedEventV1 :str = "cd.repository.change.abandoned.v1" |
27 | 22 |
|
28 | | -# Build Events |
29 | | -BuildStartedEventV1 :str = "cd.build.started.v1" |
30 | | -BuildQueuedEventV1 :str = "cd.build.queued.v1" |
31 | | -BuildFinishedEventV1 :str = "cd.build.finished.v1" |
32 | | - |
33 | | -# Test Events |
34 | | -TestCaseStartedEventV1 :str = "cd.test.case.started.v1" |
35 | | -TestCaseQueuedEventV1 :str = "cd.test.case.queued.v1" |
36 | | -TestCaseFinishedEventV1 :str = "cd.test.case.finished.v1" |
37 | | - |
38 | | -TestSuiteStartedEventV1 :str = "cd.test.suite.started.v1" |
39 | | -TestSuiteQueuedEventV1 :str = "cd.test.suite.queued.v1" |
40 | | -TestSuiteFinishedEventV1 :str = "cd.test.suite.finished.v1" |
41 | | - |
42 | | -# Artifact Events |
43 | | -ArtifactPackagedEventV1 :str = "cd.artifact.packaged.v1" |
44 | | -ArtifactPublishedEventV1 :str = "cd.artifact.published.v1" |
45 | | - |
46 | 23 | # Environment Events |
47 | 24 | EnvironmentCreatedEventV1 :str = "cd.environment.created.v1" |
48 | 25 | EnvironmentModifiedEventV1 :str = "cd.environment.modified.v1" |
49 | 26 | EnvironmentDeletedEventV1 :str = "cd.environment.deleted.v1" |
50 | 27 |
|
| 28 | +# PipelineRun events |
| 29 | +PipelineRunStartedEventV1 :str = "cd.pipelinerun.started.v1" |
| 30 | +PipelineRunFinishedEventV1 :str = "cd.pipelinerun.finished.v1" |
| 31 | +PipelineRunQueuedEventV1 :str = "cd.pipelinerun.queued.v1" |
| 32 | + |
| 33 | +# Repository events |
| 34 | +RepositoryCreatedEventV1 :str = "cd.repository.created.v1" |
| 35 | +RepositoryModifiedEventV1 :str = "cd.repository.modified.v1" |
| 36 | +RepositoryDeletedEventV1 :str = "cd.repository.deleted.v1" |
| 37 | + |
51 | 38 | # Service Events |
52 | 39 | ServiceDeployedEventV1 :str = "cd.service.deployed.v1" |
53 | 40 | ServiceUpgradedEventV1 :str = "cd.service.upgraded.v1" |
54 | 41 | ServiceRolledbackEventV1 :str = "cd.service.rolledback.v1" |
55 | 42 | ServiceRemovedEventV1 :str = "cd.service.removed.v1" |
56 | 43 |
|
| 44 | +# TaskRun events |
| 45 | +TaskRunStartedEventV1 :str = "cd.taskrun.started.v1" |
| 46 | +TaskRunFinishedEventV1 :str = "cd.taskrun.finished.v1" |
| 47 | + |
| 48 | +# Test Events |
| 49 | +TestCaseStartedEventV1 :str = "cd.test.case.started.v1" |
| 50 | +TestCaseQueuedEventV1 :str = "cd.test.case.queued.v1" |
| 51 | +TestCaseFinishedEventV1 :str = "cd.test.case.finished.v1" |
| 52 | + |
| 53 | +TestSuiteStartedEventV1 :str = "cd.test.suite.started.v1" |
| 54 | +TestSuiteQueuedEventV1 :str = "cd.test.suite.queued.v1" |
| 55 | +TestSuiteFinishedEventV1 :str = "cd.test.suite.finished.v1" |
0 commit comments