metrics_scope.proto 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // Copyright 2021 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.monitoring.metricsscope.v1;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/protobuf/timestamp.proto";
  19. option go_package = "google.golang.org/genproto/googleapis/monitoring/metricsscope/v1;metricsscope";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "MetricsScopeProto";
  22. option java_package = "com.google.monitoring.metricsscope.v1";
  23. option csharp_namespace = "Google.Cloud.Monitoring.MetricsScope.V1";
  24. option php_namespace = "Google\\Cloud\\Monitoring\\MetricsScope\\V1";
  25. option ruby_package = "Google::Cloud::Monitoring::MetricsScope::V1";
  26. // Represents a [Metrics
  27. // Scope](https://cloud.google.com/monitoring/settings#concept-scope) in Cloud
  28. // Monitoring, which specifies one or more Google projects and zero or more AWS
  29. // accounts to monitor together.
  30. message MetricsScope {
  31. option (google.api.resource) = {
  32. type: "monitoring.googleapis.com/MetricsScope"
  33. pattern: "locations/global/metricsScope/{metrics_scope}"
  34. };
  35. // Immutable. The resource name of the Monitoring Metrics Scope.
  36. // On input, the resource name can be specified with the
  37. // scoping project ID or number. On output, the resource name is
  38. // specified with the scoping project number.
  39. // Example:
  40. // `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}`
  41. string name = 1 [(google.api.field_behavior) = IMMUTABLE];
  42. // Output only. The time when this `Metrics Scope` was created.
  43. google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  44. // Output only. The time when this `Metrics Scope` record was last updated.
  45. google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  46. // Output only. The list of projects monitored by this `Metrics Scope`.
  47. repeated MonitoredProject monitored_projects = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  48. }
  49. // A [project being
  50. // monitored](https://cloud.google.com/monitoring/settings/multiple-projects#create-multi)
  51. // by a `Metrics Scope`.
  52. message MonitoredProject {
  53. option (google.api.resource) = {
  54. type: "monitoring.googleapis.com/MonitoredProject"
  55. pattern: "locations/global/metricsScopes/{metrics_scope}/projects/{project}"
  56. };
  57. // Immutable. The resource name of the `MonitoredProject`. On input, the resource name
  58. // includes the scoping project ID and monitored project ID. On output, it
  59. // contains the equivalent project numbers.
  60. // Example:
  61. // `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}`
  62. string name = 1 [(google.api.field_behavior) = IMMUTABLE];
  63. // Output only. The time when this `MonitoredProject` was created.
  64. google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  65. }