Wei-Yu Chen | ad55cb8 | 2022-02-15 20:07:01 +0800 | [diff] [blame] | 1 | // SPDX-FileCopyrightText: 2020 The Magma Authors. |
| 2 | // SPDX-FileCopyrightText: 2022 Open Networking Foundation <support@opennetworking.org> |
| 3 | // |
| 4 | // SPDX-License-Identifier: BSD-3-Clause |
| 5 | |
| 6 | syntax = "proto3"; |
| 7 | |
| 8 | import "orc8r/protos/common.proto"; |
| 9 | |
| 10 | package magma.orc8r; |
| 11 | |
| 12 | option go_package = "magma/orc8r/lib/go/protos"; |
| 13 | |
| 14 | // -------------------------------------------------------------------------- |
| 15 | // EventService provides an interface for structured event logging. |
| 16 | // -------------------------------------------------------------------------- |
| 17 | service EventService { |
| 18 | // Logs an event to FluentBit. |
| 19 | rpc LogEvent (Event) returns (Void) {} |
| 20 | } |
| 21 | |
| 22 | // -------------------------------------------------------------------------- |
| 23 | // An Event encapsulates all information regarding an event and it's metadata. |
| 24 | // -------------------------------------------------------------------------- |
| 25 | message Event { |
| 26 | // A user-specified string to categorize events |
| 27 | string stream_name = 1; |
| 28 | // Denotes the way an event should be deserialized. |
| 29 | // This should correspond to an event type in swagger_eventd.v1.yml |
| 30 | string event_type = 2; |
| 31 | // A user-specified non-unique identifier for events |
| 32 | string tag = 3; |
| 33 | // The event log serialized as JSON |
| 34 | string value = 4; |
| 35 | } |