1syntax = "proto3"; 2 3import "github.com/gogo/protobuf/gogoproto/gogo.proto"; 4import "meta.proto"; 5 6package sensu.core.v2; 7 8option go_package = "v2"; 9option (gogoproto.populate_all) = true; 10option (gogoproto.equal_all) = true; 11option (gogoproto.marshaler_all) = true; 12option (gogoproto.unmarshaler_all) = true; 13option (gogoproto.sizer_all) = true; 14option (gogoproto.testgen_all) = true; 15 16// Silenced is the representation of a silence entry. 17message Silenced { 18 option (gogoproto.face) = true; 19 option (gogoproto.goproto_getters) = false; 20 21 // Metadata contains the name, namespace, labels and annotations of the silenced 22 ObjectMeta metadata = 1 [(gogoproto.jsontag) = "metadata,omitempty", (gogoproto.embed) = true, (gogoproto.nullable) = false]; 23 24 // Expire is the number of seconds the entry will live 25 int64 expire = 2 [(gogoproto.nullable) = true, (gogoproto.jsontag) = "expire"]; 26 27 // ExpireOnResolve defaults to false, clears the entry on resolution when set 28 // to true 29 bool expire_on_resolve = 3 [(gogoproto.nullable) = true, (gogoproto.jsontag) = "expire_on_resolve"]; 30 31 // Creator is the author of the silenced entry 32 string creator = 4 [(gogoproto.nullable) = true]; 33 34 // Check is the name of the check event to be silenced. 35 string check = 5; 36 37 // Reason is used to provide context to the entry 38 string reason = 6 [(gogoproto.nullable) = true]; 39 40 // Subscription is the name of the subscription to which the entry applies. 41 string subscription = 7 [(gogoproto.nullable) = true]; 42 43 // Begin is a timestamp at which the silenced entry takes effect. 44 int64 begin = 10 [(gogoproto.jsontag) = "begin"]; 45} 46