log.proto 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // Copyright 2019 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. //
  15. syntax = "proto3";
  16. package google.api;
  17. import "google/api/label.proto";
  18. option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "LogProto";
  21. option java_package = "com.google.api";
  22. option objc_class_prefix = "GAPI";
  23. // A description of a log type. Example in YAML format:
  24. //
  25. // - name: library.googleapis.com/activity_history
  26. // description: The history of borrowing and returning library items.
  27. // display_name: Activity
  28. // labels:
  29. // - key: /customer_id
  30. // description: Identifier of a library customer
  31. message LogDescriptor {
  32. // The name of the log. It must be less than 512 characters long and can
  33. // include the following characters: upper- and lower-case alphanumeric
  34. // characters [A-Za-z0-9], and punctuation characters including
  35. // slash, underscore, hyphen, period [/_-.].
  36. string name = 1;
  37. // The set of labels that are available to describe a specific log entry.
  38. // Runtime requests that contain labels not specified here are
  39. // considered invalid.
  40. repeated LabelDescriptor labels = 2;
  41. // A human-readable description of this log. This information appears in
  42. // the documentation and can contain details.
  43. string description = 3;
  44. // The human-readable name for this log. This information appears on
  45. // the user interface and should be concise.
  46. string display_name = 4;
  47. }