// Copyright 2019 Make.TV Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto3"; package tv.make.api; import "auditlog/auditlog_event_types.proto"; import "google/protobuf/timestamp.proto"; option go_package = "git.ltnglobal.com/make.tv/genproto/api;api"; // AuditLogEvent represents an event generated during certain operations. message AuditLogEvent { // The unique identifier for the event. string id = 1; // The time the event was created. google.protobuf.Timestamp create_time = 2; // The unique identifier of the owning team. string team_id = 3; // The name of the team at event creation (can be empty). string team_name = 4; // The unique identifier of the user related to the event. string user_id = 5; // The name of the user at event creation (can be empty). string user_name = 6; bool erroneous = 7; // The specific type of event. oneof Typed { OutputCrudEvent output_crud = 8; OutputTargetCrudEvent output_target_crud = 9; ProductionCrudEvent production_crud = 10; ProductionStatusEvent production_status = 11; TransfertargetTransferStatusEvent transfertarget_transfer_status = 12; InputCrudEvent input_crud = 13; InputRoutedEvent input_routed = 14; } }