table.proto 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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.monitoring.dashboard.v1;
  16. import "google/api/field_behavior.proto";
  17. import "google/monitoring/dashboard/v1/metrics.proto";
  18. import "google/monitoring/dashboard/v1/table_display_options.proto";
  19. import "google/protobuf/duration.proto";
  20. option csharp_namespace = "Google.Cloud.Monitoring.Dashboard.V1";
  21. option go_package = "google.golang.org/genproto/googleapis/monitoring/dashboard/v1;dashboard";
  22. option java_multiple_files = true;
  23. option java_outer_classname = "TableProto";
  24. option java_package = "com.google.monitoring.dashboard.v1";
  25. option php_namespace = "Google\\Cloud\\Monitoring\\Dashboard\\V1";
  26. option ruby_package = "Google::Cloud::Monitoring::Dashboard::V1";
  27. // A table that displays time series data.
  28. message TimeSeriesTable {
  29. // Groups a time series query definition with table options.
  30. message TableDataSet {
  31. // Required. Fields for querying time series data from the
  32. // Stackdriver metrics API.
  33. TimeSeriesQuery time_series_query = 1 [(google.api.field_behavior) = REQUIRED];
  34. // Optional. A template string for naming `TimeSeries` in the resulting data set.
  35. // This should be a string with interpolations of the form `${label_name}`,
  36. // which will resolve to the label's value i.e.
  37. // "${resource.labels.project_id}."
  38. string table_template = 2 [(google.api.field_behavior) = OPTIONAL];
  39. // Optional. The lower bound on data point frequency for this data set, implemented by
  40. // specifying the minimum alignment period to use in a time series query
  41. // For example, if the data is published once every 10 minutes, the
  42. // `min_alignment_period` should be at least 10 minutes. It would not
  43. // make sense to fetch and align data at one minute intervals.
  44. google.protobuf.Duration min_alignment_period = 3 [(google.api.field_behavior) = OPTIONAL];
  45. // Optional. Table display options for configuring how the table is rendered.
  46. TableDisplayOptions table_display_options = 4 [(google.api.field_behavior) = OPTIONAL];
  47. }
  48. // Required. The data displayed in this table.
  49. repeated TableDataSet data_sets = 1 [(google.api.field_behavior) = REQUIRED];
  50. }