widget.proto 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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/alertchart.proto";
  18. import "google/monitoring/dashboard/v1/collapsible_group.proto";
  19. import "google/monitoring/dashboard/v1/logs_panel.proto";
  20. import "google/monitoring/dashboard/v1/scorecard.proto";
  21. import "google/monitoring/dashboard/v1/table.proto";
  22. import "google/monitoring/dashboard/v1/text.proto";
  23. import "google/monitoring/dashboard/v1/xychart.proto";
  24. import "google/protobuf/empty.proto";
  25. option csharp_namespace = "Google.Cloud.Monitoring.Dashboard.V1";
  26. option go_package = "google.golang.org/genproto/googleapis/monitoring/dashboard/v1;dashboard";
  27. option java_multiple_files = true;
  28. option java_outer_classname = "WidgetProto";
  29. option java_package = "com.google.monitoring.dashboard.v1";
  30. option php_namespace = "Google\\Cloud\\Monitoring\\Dashboard\\V1";
  31. option ruby_package = "Google::Cloud::Monitoring::Dashboard::V1";
  32. // Widget contains a single dashboard component and configuration of how to
  33. // present the component in the dashboard.
  34. message Widget {
  35. // Optional. The title of the widget.
  36. string title = 1 [(google.api.field_behavior) = OPTIONAL];
  37. // Content defines the component used to populate the widget.
  38. oneof content {
  39. // A chart of time series data.
  40. XyChart xy_chart = 2;
  41. // A scorecard summarizing time series data.
  42. Scorecard scorecard = 3;
  43. // A raw string or markdown displaying textual content.
  44. Text text = 4;
  45. // A blank space.
  46. google.protobuf.Empty blank = 5;
  47. // A chart of alert policy data.
  48. AlertChart alert_chart = 7;
  49. // A widget that displays time series data in a tabular format.
  50. TimeSeriesTable time_series_table = 8;
  51. // A widget that groups the other widgets. All widgets that are within
  52. // the area spanned by the grouping widget are considered member widgets.
  53. CollapsibleGroup collapsible_group = 9;
  54. // A widget that shows a stream of logs.
  55. LogsPanel logs_panel = 10;
  56. }
  57. }