-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for pie charts, incident lists, dropdown groups, er…
…ror reporting panels, section headers, and styling options on text widgets docs: updated some comments PiperOrigin-RevId: 605410874
- Loading branch information
Google APIs
authored and
Copybara-Service
committed
Feb 8, 2024
1 parent
671deae
commit 8aa8817
Showing
23 changed files
with
475 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
google/monitoring/dashboard/v1/error_reporting_panel.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
package google.monitoring.dashboard.v1; | ||
|
||
option csharp_namespace = "Google.Cloud.Monitoring.Dashboard.V1"; | ||
option go_package = "cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb;dashboardpb"; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "ErrorReportingPanelProto"; | ||
option java_package = "com.google.monitoring.dashboard.v1"; | ||
option php_namespace = "Google\\Cloud\\Monitoring\\Dashboard\\V1"; | ||
|
||
// A widget that displays a list of error groups. | ||
message ErrorReportingPanel { | ||
// The resource name of the Google Cloud Platform project. Written | ||
// as `projects/{projectID}` or `projects/{projectNumber}`, where | ||
// `{projectID}` and `{projectNumber}` can be found in the | ||
// [Google Cloud console](https://support.google.com/cloud/answer/6158840). | ||
// | ||
// Examples: `projects/my-project-123`, `projects/5551234`. | ||
repeated string project_names = 1; | ||
|
||
// An identifier of the service, such as the name of the | ||
// executable, job, or Google App Engine service name. This field is expected | ||
// to have a low number of values that are relatively stable over time, as | ||
// opposed to `version`, which can be changed whenever new code is deployed. | ||
// | ||
// Contains the service name for error reports extracted from Google | ||
// App Engine logs or `default` if the App Engine default service is used. | ||
repeated string services = 2; | ||
|
||
// Represents the source code version that the developer provided, | ||
// which could represent a version label or a Git SHA-1 hash, for example. | ||
// For App Engine standard environment, the version is set to the version of | ||
// the app. | ||
repeated string versions = 3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
package google.monitoring.dashboard.v1; | ||
|
||
import "google/api/field_behavior.proto"; | ||
import "google/api/monitored_resource.proto"; | ||
|
||
option csharp_namespace = "Google.Cloud.Monitoring.Dashboard.V1"; | ||
option go_package = "cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb;dashboardpb"; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "IncidentListProto"; | ||
option java_package = "com.google.monitoring.dashboard.v1"; | ||
option php_namespace = "Google\\Cloud\\Monitoring\\Dashboard\\V1"; | ||
option ruby_package = "Google::Cloud::Monitoring::Dashboard::V1"; | ||
|
||
// A widget that displays a list of incidents | ||
message IncidentList { | ||
// Optional. The monitored resource for which incidents are listed. | ||
// The resource doesn't need to be fully specified. That is, you can specify | ||
// the resource type but not the values of the resource labels. | ||
// The resource type and labels are used for filtering. | ||
repeated google.api.MonitoredResource monitored_resources = 1 | ||
[(google.api.field_behavior) = OPTIONAL]; | ||
|
||
// Optional. A list of alert policy names to filter the incident list by. | ||
// Don't include the project ID prefix in the policy name. For | ||
// example, use `alertPolicies/utilization`. | ||
repeated string policy_names = 2 [(google.api.field_behavior) = OPTIONAL]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
package google.monitoring.dashboard.v1; | ||
|
||
import "google/api/field_behavior.proto"; | ||
import "google/monitoring/dashboard/v1/metrics.proto"; | ||
import "google/protobuf/duration.proto"; | ||
|
||
option csharp_namespace = "Google.Cloud.Monitoring.Dashboard.V1"; | ||
option go_package = "cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb;dashboardpb"; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "PieChartProto"; | ||
option java_package = "com.google.monitoring.dashboard.v1"; | ||
option php_namespace = "Google\\Cloud\\Monitoring\\Dashboard\\V1"; | ||
option ruby_package = "Google::Cloud::Monitoring::Dashboard::V1"; | ||
|
||
// A widget that displays timeseries data as a pie or a donut. | ||
message PieChart { | ||
// Groups a time series query definition. | ||
message PieChartDataSet { | ||
// Required. The query for the PieChart. See, | ||
// `google.monitoring.dashboard.v1.TimeSeriesQuery`. | ||
TimeSeriesQuery time_series_query = 1 | ||
[(google.api.field_behavior) = REQUIRED]; | ||
|
||
// Optional. A template for the name of the slice. This name will be | ||
// displayed in the legend and the tooltip of the pie chart. It replaces the | ||
// auto-generated names for the slices. For example, if the template is set | ||
// to | ||
// `${resource.labels.zone}`, the zone's value will be used for the name | ||
// instead of the default name. | ||
string slice_name_template = 2 [(google.api.field_behavior) = OPTIONAL]; | ||
|
||
// Optional. The lower bound on data point frequency for this data set, | ||
// implemented by specifying the minimum alignment period to use in a time | ||
// series query. For example, if the data is published once every 10 | ||
// minutes, the `min_alignment_period` should be at least 10 minutes. It | ||
// would not make sense to fetch and align data at one minute intervals. | ||
google.protobuf.Duration min_alignment_period = 3 | ||
[(google.api.field_behavior) = OPTIONAL]; | ||
} | ||
|
||
// Types for the pie chart. | ||
enum PieChartType { | ||
// The zero value. No type specified. Do not use. | ||
PIE_CHART_TYPE_UNSPECIFIED = 0; | ||
|
||
// A Pie type PieChart. | ||
PIE = 1; | ||
|
||
// Similar to PIE, but the DONUT type PieChart has a hole in the middle. | ||
DONUT = 2; | ||
} | ||
|
||
// Required. The queries for the chart's data. | ||
repeated PieChartDataSet data_sets = 1 | ||
[(google.api.field_behavior) = REQUIRED]; | ||
|
||
// Required. Indicates the visualization type for the PieChart. | ||
PieChartType chart_type = 2 [(google.api.field_behavior) = REQUIRED]; | ||
|
||
// Optional. Indicates whether or not the pie chart should show slices' labels | ||
bool show_labels = 4 [(google.api.field_behavior) = OPTIONAL]; | ||
} |
Oops, something went wrong.