logs.proto 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. syntax = "proto3";
  15. package google.cloud.certificatemanager.logging.v1;
  16. import "google/protobuf/timestamp.proto";
  17. option csharp_namespace = "Google.Cloud.CertificateManager.Logging.V1";
  18. option go_package = "google.golang.org/genproto/googleapis/cloud/certificatemanager/logging/v1;logging";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "LogsProto";
  21. option java_package = "com.google.cloud.certificatemanager.logging.v1";
  22. option php_namespace = "Google\\Cloud\\CertificateManager\\Logging\\V1";
  23. option ruby_package = "Google::Cloud::CertificateManager::Logging::V1";
  24. // Log message which notifies about expired or close to
  25. // expiry certificates.
  26. message CertificatesExpiry {
  27. // Expiration state of the certificate.
  28. enum State {
  29. // Unspecified state, should never be reported.
  30. STATE_UNSPECIFIED = 0;
  31. // Certificate will expire soon.
  32. CLOSE_TO_EXPIRY = 1;
  33. // Certificate is expired.
  34. EXPIRED = 2;
  35. }
  36. // Number of reported certificates.
  37. int64 count = 1;
  38. // Names of reported certificates. If there are too many, the list is sampled.
  39. repeated string certificates = 2;
  40. // State of reported certificates.
  41. State state = 3;
  42. // Approximated expire time of reported certificates.
  43. // Multiple certificates with close expire time are batched together in a
  44. // single log, so the timestamp is not precise.
  45. google.protobuf.Timestamp expire_time = 4;
  46. }