Skip to content

Commit

Permalink
update/event.v1: Drop event_type from UserEventCreationConfig
Browse files Browse the repository at this point in the history
Users should not have the possibility to specify the type of custom event.
It can cause a collision with event types saved under /events/type.
Custom user events will have a static type because of it.

XXX_SKIP_CHECK_BREAKING

[GENERATED_COMMIT]

Change-Id: If90abd3f70dc3cc85680b8594debdd9c6d1dc15e
  • Loading branch information
Arista-Jenkins authored and Jakub Konieczny committed May 8, 2024
1 parent 3946429 commit 546d20d
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 60 deletions.
14 changes: 7 additions & 7 deletions arista/event/v1/event_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 2 additions & 8 deletions arista/event/v1/event_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,6 @@ class UserEventCreationConfig(google.protobuf.message.Message):
SEVERITY_FIELD_NUMBER: builtins.int
TITLE_FIELD_NUMBER: builtins.int
DESCRIPTION_FIELD_NUMBER: builtins.int
EVENT_TYPE_FIELD_NUMBER: builtins.int
RULE_ID_FIELD_NUMBER: builtins.int
COMPONENTS_FIELD_NUMBER: builtins.int
START_TIME_FIELD_NUMBER: builtins.int
Expand All @@ -599,10 +598,6 @@ class UserEventCreationConfig(google.protobuf.message.Message):
"""description is the description of the event"""
pass
@property
def event_type(self) -> google.protobuf.wrappers_pb2.StringValue:
"""event_type is the type of the event"""
pass
@property
def rule_id(self) -> google.protobuf.wrappers_pb2.StringValue:
"""rule_id is the label of the rule associated with the event"""
pass
Expand All @@ -620,11 +615,10 @@ class UserEventCreationConfig(google.protobuf.message.Message):
severity: global___EventSeverity.ValueType = ...,
title: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ...,
description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ...,
event_type: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ...,
rule_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ...,
components: typing.Optional[global___EventComponents] = ...,
start_time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["components",b"components","description",b"description","event_type",b"event_type","key",b"key","rule_id",b"rule_id","start_time",b"start_time","title",b"title"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["components",b"components","description",b"description","event_type",b"event_type","key",b"key","rule_id",b"rule_id","severity",b"severity","start_time",b"start_time","title",b"title"]) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["components",b"components","description",b"description","key",b"key","rule_id",b"rule_id","start_time",b"start_time","title",b"title"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["components",b"components","description",b"description","key",b"key","rule_id",b"rule_id","severity",b"severity","start_time",b"start_time","title",b"title"]) -> None: ...
global___UserEventCreationConfig = UserEventCreationConfig
Loading

0 comments on commit 546d20d

Please sign in to comment.