-
Notifications
You must be signed in to change notification settings - Fork 136
/
events_util.go
53 lines (52 loc) · 1.7 KB
/
events_util.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package armadaevents
func (ev *EventSequence_Event) GetEventName() string {
switch ev.GetEvent().(type) {
case *EventSequence_Event_SubmitJob:
return "SubmitJob"
case *EventSequence_Event_JobRunLeased:
return "JobRunLeased"
case *EventSequence_Event_JobRunRunning:
return "JobRunRunning"
case *EventSequence_Event_JobRunSucceeded:
return "JobRunSucceeded"
case *EventSequence_Event_JobRunErrors:
return "JobRunErrors"
case *EventSequence_Event_JobSucceeded:
return "JobSucceeded"
case *EventSequence_Event_JobErrors:
return "JobErrors"
case *EventSequence_Event_JobPreemptionRequested:
return "JobPreemptionRequested"
case *EventSequence_Event_JobRunPreemptionRequested:
return "JobRunPreemptionRequested"
case *EventSequence_Event_ReprioritiseJob:
return "ReprioritiseJob"
case *EventSequence_Event_ReprioritiseJobSet:
return "ReprioritiseJobSet"
case *EventSequence_Event_CancelJob:
return "CancelJob"
case *EventSequence_Event_CancelJobSet:
return "CancelJobSet"
case *EventSequence_Event_CancelledJob:
return "CancelledJob"
case *EventSequence_Event_JobRunCancelled:
return "JobRunCancelled"
case *EventSequence_Event_JobRequeued:
return "JobRequeued"
case *EventSequence_Event_PartitionMarker:
return "PartitionMarker"
case *EventSequence_Event_JobRunPreempted:
return "JobRunPreemped"
case *EventSequence_Event_JobRunAssigned:
return "JobRunAssigned"
case *EventSequence_Event_JobValidated:
return "JobValidated"
case *EventSequence_Event_ReprioritisedJob:
return "ReprioritisedJob"
case *EventSequence_Event_ResourceUtilisation:
return "ResourceUtilisation"
case *EventSequence_Event_StandaloneIngressInfo:
return "StandloneIngressIngo"
}
return "Unknown"
}