blob: eaa5288551f74dd027a3596dba51652d68a30fa7 [file] [log] [blame]
Wei-Yu Chenad55cb82022-02-15 20:07:01 +08001// 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
6syntax = "proto3";
7
8import "orc8r/protos/common.proto";
9
10package magma.orc8r;
11
12option go_package = "magma/orc8r/lib/go/protos";
13
14// --------------------------------------------------------------------------
15// EventService provides an interface for structured event logging.
16// --------------------------------------------------------------------------
17service 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// --------------------------------------------------------------------------
25message 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}