Skip to content

Commit

Permalink
fix: add create subscription event
Browse files Browse the repository at this point in the history
  • Loading branch information
Mryashbhardwaj committed Jun 21, 2024
1 parent 4fb568d commit f554182
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gotocompany/optimus/integration/v1beta1/event.proto
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ enum ChangeImpact {
CHANGE_IMPACT_TYPE_BEHAVIOUR = 2;
}

message CreateSubscription {
string owner = 1;
repeated string event_types = 2;
string group_slug = 3;
string project_slug = 4;
string resource_id = 5;
string resource_type = 6;
}

message OptimusChangeEvent {
enum EventType {
EVENT_TYPE_TYPE_UNSPECIFIED = 0;
Expand All @@ -62,6 +71,7 @@ message OptimusChangeEvent {
EVENT_TYPE_JOB_FAILURE = 9;

EVENT_TYPE_JOB_STATE_CHANGE = 10;
EVENT_TYPE_CREATE_SUBSCRIPTION = 12;
}

string event_id = 1;
Expand All @@ -76,6 +86,7 @@ message OptimusChangeEvent {
ResourceChangePayload resource_change = 7;
JobRunPayload job_run = 8;
JobStateChangePayload job_state_change = 9;
CreateSubscription createSubscription = 12;

Check failure on line 89 in gotocompany/optimus/integration/v1beta1/event.proto

View workflow job for this annotation

GitHub Actions / validate

Field name "createSubscription" should be lower_snake_case, such as "create_subscription".

Check failure on line 89 in gotocompany/optimus/integration/v1beta1/event.proto

View workflow job for this annotation

GitHub Actions / validate

Field name "createSubscription" should be lower_snake_case, such as "create_subscription".
}

string job_name = 10;
Expand Down

0 comments on commit f554182

Please sign in to comment.