syntax = "proto3";

package clock;

option go_package = "clock";

import "eventbus/authorization.proto";
import "eventbus/owner.proto";
import "google/protobuf/timestamp.proto";

// ClockUpdate triggers when the time has changed by a second.
// WARNING: This event is meant to be used for testing and verifying successful
// eventbus integration. It should NOT be subscribed to in any production environment,
// or depended on for any production workflow. The EventBus team is not committed to
// ensuring this event is published continuously or accurately.
message ClockUpdate {
  option (eventbus.owner.ldap_group) = "team-eventbus";
  // The new time.
  google.protobuf.Timestamp time = 1;
  // The new time, in RFC3339 format. This field requires authorization to access.
  eventbus.authorization.String secret_time = 2 [(eventbus.authorization.data_classification) = "restricted"];
  eventbus.authorization.Float32 secret_float32 = 3 [(eventbus.authorization.data_classification) = "restricted"];
  eventbus.authorization.Float64 secret_float64 = 4 [(eventbus.authorization.data_classification) = "restricted"];
  eventbus.authorization.Int32 secret_int32 = 5 [(eventbus.authorization.data_classification) = "restricted"];
  eventbus.authorization.Int64 secret_int64 = 6 [(eventbus.authorization.data_classification) = "restricted"];
}
