xref: /aosp_15_r20/external/googleapis/google/cloud/certificatemanager/logging/v1/logs.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1// Copyright 2022 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15syntax = "proto3";
16
17package google.cloud.certificatemanager.logging.v1;
18
19import "google/protobuf/timestamp.proto";
20
21option csharp_namespace = "Google.Cloud.CertificateManager.Logging.V1";
22option go_package = "cloud.google.com/go/certificatemanager/logging/apiv1/loggingpb;loggingpb";
23option java_multiple_files = true;
24option java_outer_classname = "LogsProto";
25option java_package = "com.google.cloud.certificatemanager.logging.v1";
26option php_namespace = "Google\\Cloud\\CertificateManager\\Logging\\V1";
27option ruby_package = "Google::Cloud::CertificateManager::Logging::V1";
28
29// Log message which notifies about expired or close to
30// expiry certificates.
31message CertificatesExpiry {
32  // Expiration state of the certificate.
33  enum State {
34    // Unspecified state, should never be reported.
35    STATE_UNSPECIFIED = 0;
36
37    // Certificate will expire soon.
38    CLOSE_TO_EXPIRY = 1;
39
40    // Certificate is expired.
41    EXPIRED = 2;
42  }
43
44  // Number of reported certificates.
45  int64 count = 1;
46
47  // Names of reported certificates. If there are too many, the list is sampled.
48  repeated string certificates = 2;
49
50  // State of reported certificates.
51  State state = 3;
52
53  // Approximated expire time of reported certificates.
54  // Multiple certificates with close expire time are batched together in a
55  // single log, so the timestamp is not precise.
56  google.protobuf.Timestamp expire_time = 4;
57}
58