...

Source file src/cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb/scorecard.pb.go

Documentation: cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb

     1  // Copyright 2023 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  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.33.0
    18  // 	protoc        v4.25.3
    19  // source: google/monitoring/dashboard/v1/scorecard.proto
    20  
    21  package dashboardpb
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	_ "google.golang.org/genproto/googleapis/api/annotations"
    28  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    29  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    30  	durationpb "google.golang.org/protobuf/types/known/durationpb"
    31  	emptypb "google.golang.org/protobuf/types/known/emptypb"
    32  )
    33  
    34  const (
    35  	// Verify that this generated code is sufficiently up-to-date.
    36  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    37  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    38  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    39  )
    40  
    41  // A widget showing the latest value of a metric, and how this value relates to
    42  // one or more thresholds.
    43  type Scorecard struct {
    44  	state         protoimpl.MessageState
    45  	sizeCache     protoimpl.SizeCache
    46  	unknownFields protoimpl.UnknownFields
    47  
    48  	// Required. Fields for querying time series data from the
    49  	// Stackdriver metrics API.
    50  	TimeSeriesQuery *TimeSeriesQuery `protobuf:"bytes,1,opt,name=time_series_query,json=timeSeriesQuery,proto3" json:"time_series_query,omitempty"`
    51  	// Defines the optional additional chart shown on the scorecard. If
    52  	// neither is included - then a default scorecard is shown.
    53  	//
    54  	// Types that are assignable to DataView:
    55  	//
    56  	//	*Scorecard_GaugeView_
    57  	//	*Scorecard_SparkChartView_
    58  	//	*Scorecard_BlankView
    59  	DataView isScorecard_DataView `protobuf_oneof:"data_view"`
    60  	// The thresholds used to determine the state of the scorecard given the
    61  	// time series' current value. For an actual value x, the scorecard is in a
    62  	// danger state if x is less than or equal to a danger threshold that triggers
    63  	// below, or greater than or equal to a danger threshold that triggers above.
    64  	// Similarly, if x is above/below a warning threshold that triggers
    65  	// above/below, then the scorecard is in a warning state - unless x also puts
    66  	// it in a danger state. (Danger trumps warning.)
    67  	//
    68  	// As an example, consider a scorecard with the following four thresholds:
    69  	//
    70  	// ```
    71  	//
    72  	//	{
    73  	//	  value: 90,
    74  	//	  category: 'DANGER',
    75  	//	  trigger: 'ABOVE',
    76  	//	},
    77  	//
    78  	//	{
    79  	//	  value: 70,
    80  	//	  category: 'WARNING',
    81  	//	  trigger: 'ABOVE',
    82  	//	},
    83  	//
    84  	//	{
    85  	//	  value: 10,
    86  	//	  category: 'DANGER',
    87  	//	  trigger: 'BELOW',
    88  	//	},
    89  	//
    90  	//	{
    91  	//	  value: 20,
    92  	//	  category: 'WARNING',
    93  	//	  trigger: 'BELOW',
    94  	//	}
    95  	//
    96  	// ```
    97  	//
    98  	// Then: values less than or equal to 10 would put the scorecard in a DANGER
    99  	// state, values greater than 10 but less than or equal to 20 a WARNING state,
   100  	// values strictly between 20 and 70 an OK state, values greater than or equal
   101  	// to 70 but less than 90 a WARNING state, and values greater than or equal to
   102  	// 90 a DANGER state.
   103  	Thresholds []*Threshold `protobuf:"bytes,6,rep,name=thresholds,proto3" json:"thresholds,omitempty"`
   104  }
   105  
   106  func (x *Scorecard) Reset() {
   107  	*x = Scorecard{}
   108  	if protoimpl.UnsafeEnabled {
   109  		mi := &file_google_monitoring_dashboard_v1_scorecard_proto_msgTypes[0]
   110  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   111  		ms.StoreMessageInfo(mi)
   112  	}
   113  }
   114  
   115  func (x *Scorecard) String() string {
   116  	return protoimpl.X.MessageStringOf(x)
   117  }
   118  
   119  func (*Scorecard) ProtoMessage() {}
   120  
   121  func (x *Scorecard) ProtoReflect() protoreflect.Message {
   122  	mi := &file_google_monitoring_dashboard_v1_scorecard_proto_msgTypes[0]
   123  	if protoimpl.UnsafeEnabled && x != nil {
   124  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   125  		if ms.LoadMessageInfo() == nil {
   126  			ms.StoreMessageInfo(mi)
   127  		}
   128  		return ms
   129  	}
   130  	return mi.MessageOf(x)
   131  }
   132  
   133  // Deprecated: Use Scorecard.ProtoReflect.Descriptor instead.
   134  func (*Scorecard) Descriptor() ([]byte, []int) {
   135  	return file_google_monitoring_dashboard_v1_scorecard_proto_rawDescGZIP(), []int{0}
   136  }
   137  
   138  func (x *Scorecard) GetTimeSeriesQuery() *TimeSeriesQuery {
   139  	if x != nil {
   140  		return x.TimeSeriesQuery
   141  	}
   142  	return nil
   143  }
   144  
   145  func (m *Scorecard) GetDataView() isScorecard_DataView {
   146  	if m != nil {
   147  		return m.DataView
   148  	}
   149  	return nil
   150  }
   151  
   152  func (x *Scorecard) GetGaugeView() *Scorecard_GaugeView {
   153  	if x, ok := x.GetDataView().(*Scorecard_GaugeView_); ok {
   154  		return x.GaugeView
   155  	}
   156  	return nil
   157  }
   158  
   159  func (x *Scorecard) GetSparkChartView() *Scorecard_SparkChartView {
   160  	if x, ok := x.GetDataView().(*Scorecard_SparkChartView_); ok {
   161  		return x.SparkChartView
   162  	}
   163  	return nil
   164  }
   165  
   166  func (x *Scorecard) GetBlankView() *emptypb.Empty {
   167  	if x, ok := x.GetDataView().(*Scorecard_BlankView); ok {
   168  		return x.BlankView
   169  	}
   170  	return nil
   171  }
   172  
   173  func (x *Scorecard) GetThresholds() []*Threshold {
   174  	if x != nil {
   175  		return x.Thresholds
   176  	}
   177  	return nil
   178  }
   179  
   180  type isScorecard_DataView interface {
   181  	isScorecard_DataView()
   182  }
   183  
   184  type Scorecard_GaugeView_ struct {
   185  	// Will cause the scorecard to show a gauge chart.
   186  	GaugeView *Scorecard_GaugeView `protobuf:"bytes,4,opt,name=gauge_view,json=gaugeView,proto3,oneof"`
   187  }
   188  
   189  type Scorecard_SparkChartView_ struct {
   190  	// Will cause the scorecard to show a spark chart.
   191  	SparkChartView *Scorecard_SparkChartView `protobuf:"bytes,5,opt,name=spark_chart_view,json=sparkChartView,proto3,oneof"`
   192  }
   193  
   194  type Scorecard_BlankView struct {
   195  	// Will cause the `Scorecard` to show only the value, with no indicator to
   196  	// its value relative to its thresholds.
   197  	BlankView *emptypb.Empty `protobuf:"bytes,7,opt,name=blank_view,json=blankView,proto3,oneof"`
   198  }
   199  
   200  func (*Scorecard_GaugeView_) isScorecard_DataView() {}
   201  
   202  func (*Scorecard_SparkChartView_) isScorecard_DataView() {}
   203  
   204  func (*Scorecard_BlankView) isScorecard_DataView() {}
   205  
   206  // A gauge chart shows where the current value sits within a pre-defined
   207  // range. The upper and lower bounds should define the possible range of
   208  // values for the scorecard's query (inclusive).
   209  type Scorecard_GaugeView struct {
   210  	state         protoimpl.MessageState
   211  	sizeCache     protoimpl.SizeCache
   212  	unknownFields protoimpl.UnknownFields
   213  
   214  	// The lower bound for this gauge chart. The value of the chart should
   215  	// always be greater than or equal to this.
   216  	LowerBound float64 `protobuf:"fixed64,1,opt,name=lower_bound,json=lowerBound,proto3" json:"lower_bound,omitempty"`
   217  	// The upper bound for this gauge chart. The value of the chart should
   218  	// always be less than or equal to this.
   219  	UpperBound float64 `protobuf:"fixed64,2,opt,name=upper_bound,json=upperBound,proto3" json:"upper_bound,omitempty"`
   220  }
   221  
   222  func (x *Scorecard_GaugeView) Reset() {
   223  	*x = Scorecard_GaugeView{}
   224  	if protoimpl.UnsafeEnabled {
   225  		mi := &file_google_monitoring_dashboard_v1_scorecard_proto_msgTypes[1]
   226  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   227  		ms.StoreMessageInfo(mi)
   228  	}
   229  }
   230  
   231  func (x *Scorecard_GaugeView) String() string {
   232  	return protoimpl.X.MessageStringOf(x)
   233  }
   234  
   235  func (*Scorecard_GaugeView) ProtoMessage() {}
   236  
   237  func (x *Scorecard_GaugeView) ProtoReflect() protoreflect.Message {
   238  	mi := &file_google_monitoring_dashboard_v1_scorecard_proto_msgTypes[1]
   239  	if protoimpl.UnsafeEnabled && x != nil {
   240  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   241  		if ms.LoadMessageInfo() == nil {
   242  			ms.StoreMessageInfo(mi)
   243  		}
   244  		return ms
   245  	}
   246  	return mi.MessageOf(x)
   247  }
   248  
   249  // Deprecated: Use Scorecard_GaugeView.ProtoReflect.Descriptor instead.
   250  func (*Scorecard_GaugeView) Descriptor() ([]byte, []int) {
   251  	return file_google_monitoring_dashboard_v1_scorecard_proto_rawDescGZIP(), []int{0, 0}
   252  }
   253  
   254  func (x *Scorecard_GaugeView) GetLowerBound() float64 {
   255  	if x != nil {
   256  		return x.LowerBound
   257  	}
   258  	return 0
   259  }
   260  
   261  func (x *Scorecard_GaugeView) GetUpperBound() float64 {
   262  	if x != nil {
   263  		return x.UpperBound
   264  	}
   265  	return 0
   266  }
   267  
   268  // A sparkChart is a small chart suitable for inclusion in a table-cell or
   269  // inline in text. This message contains the configuration for a sparkChart
   270  // to show up on a Scorecard, showing recent trends of the scorecard's
   271  // timeseries.
   272  type Scorecard_SparkChartView struct {
   273  	state         protoimpl.MessageState
   274  	sizeCache     protoimpl.SizeCache
   275  	unknownFields protoimpl.UnknownFields
   276  
   277  	// Required. The type of sparkchart to show in this chartView.
   278  	SparkChartType SparkChartType `protobuf:"varint,1,opt,name=spark_chart_type,json=sparkChartType,proto3,enum=google.monitoring.dashboard.v1.SparkChartType" json:"spark_chart_type,omitempty"`
   279  	// The lower bound on data point frequency in the chart implemented by
   280  	// specifying the minimum alignment period to use in a time series query.
   281  	// For example, if the data is published once every 10 minutes it would not
   282  	// make sense to fetch and align data at one minute intervals. This field is
   283  	// optional and exists only as a hint.
   284  	MinAlignmentPeriod *durationpb.Duration `protobuf:"bytes,2,opt,name=min_alignment_period,json=minAlignmentPeriod,proto3" json:"min_alignment_period,omitempty"`
   285  }
   286  
   287  func (x *Scorecard_SparkChartView) Reset() {
   288  	*x = Scorecard_SparkChartView{}
   289  	if protoimpl.UnsafeEnabled {
   290  		mi := &file_google_monitoring_dashboard_v1_scorecard_proto_msgTypes[2]
   291  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   292  		ms.StoreMessageInfo(mi)
   293  	}
   294  }
   295  
   296  func (x *Scorecard_SparkChartView) String() string {
   297  	return protoimpl.X.MessageStringOf(x)
   298  }
   299  
   300  func (*Scorecard_SparkChartView) ProtoMessage() {}
   301  
   302  func (x *Scorecard_SparkChartView) ProtoReflect() protoreflect.Message {
   303  	mi := &file_google_monitoring_dashboard_v1_scorecard_proto_msgTypes[2]
   304  	if protoimpl.UnsafeEnabled && x != nil {
   305  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   306  		if ms.LoadMessageInfo() == nil {
   307  			ms.StoreMessageInfo(mi)
   308  		}
   309  		return ms
   310  	}
   311  	return mi.MessageOf(x)
   312  }
   313  
   314  // Deprecated: Use Scorecard_SparkChartView.ProtoReflect.Descriptor instead.
   315  func (*Scorecard_SparkChartView) Descriptor() ([]byte, []int) {
   316  	return file_google_monitoring_dashboard_v1_scorecard_proto_rawDescGZIP(), []int{0, 1}
   317  }
   318  
   319  func (x *Scorecard_SparkChartView) GetSparkChartType() SparkChartType {
   320  	if x != nil {
   321  		return x.SparkChartType
   322  	}
   323  	return SparkChartType_SPARK_CHART_TYPE_UNSPECIFIED
   324  }
   325  
   326  func (x *Scorecard_SparkChartView) GetMinAlignmentPeriod() *durationpb.Duration {
   327  	if x != nil {
   328  		return x.MinAlignmentPeriod
   329  	}
   330  	return nil
   331  }
   332  
   333  var File_google_monitoring_dashboard_v1_scorecard_proto protoreflect.FileDescriptor
   334  
   335  var file_google_monitoring_dashboard_v1_scorecard_proto_rawDesc = []byte{
   336  	0x0a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72,
   337  	0x69, 0x6e, 0x67, 0x2f, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x76, 0x31,
   338  	0x2f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x72, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   339  	0x12, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72,
   340  	0x69, 0x6e, 0x67, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31,
   341  	0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65,
   342  	0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   343  	0x6f, 0x1a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f,
   344  	0x72, 0x69, 0x6e, 0x67, 0x2f, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x76,
   345  	0x31, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
   346  	0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
   347  	0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
   348  	0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
   349  	0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc8, 0x05, 0x0a,
   350  	0x09, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x72, 0x64, 0x12, 0x60, 0x0a, 0x11, 0x74, 0x69,
   351  	0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x65, 0x73, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18,
   352  	0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d,
   353  	0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f,
   354  	0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x69, 0x65,
   355  	0x73, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0f, 0x74, 0x69, 0x6d,
   356  	0x65, 0x53, 0x65, 0x72, 0x69, 0x65, 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x54, 0x0a, 0x0a,
   357  	0x67, 0x61, 0x75, 0x67, 0x65, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
   358  	0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f,
   359  	0x72, 0x69, 0x6e, 0x67, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76,
   360  	0x31, 0x2e, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x72, 0x64, 0x2e, 0x47, 0x61, 0x75, 0x67,
   361  	0x65, 0x56, 0x69, 0x65, 0x77, 0x48, 0x00, 0x52, 0x09, 0x67, 0x61, 0x75, 0x67, 0x65, 0x56, 0x69,
   362  	0x65, 0x77, 0x12, 0x64, 0x0a, 0x10, 0x73, 0x70, 0x61, 0x72, 0x6b, 0x5f, 0x63, 0x68, 0x61, 0x72,
   363  	0x74, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67,
   364  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67,
   365  	0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63,
   366  	0x6f, 0x72, 0x65, 0x63, 0x61, 0x72, 0x64, 0x2e, 0x53, 0x70, 0x61, 0x72, 0x6b, 0x43, 0x68, 0x61,
   367  	0x72, 0x74, 0x56, 0x69, 0x65, 0x77, 0x48, 0x00, 0x52, 0x0e, 0x73, 0x70, 0x61, 0x72, 0x6b, 0x43,
   368  	0x68, 0x61, 0x72, 0x74, 0x56, 0x69, 0x65, 0x77, 0x12, 0x37, 0x0a, 0x0a, 0x62, 0x6c, 0x61, 0x6e,
   369  	0x6b, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67,
   370  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45,
   371  	0x6d, 0x70, 0x74, 0x79, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6c, 0x61, 0x6e, 0x6b, 0x56, 0x69, 0x65,
   372  	0x77, 0x12, 0x49, 0x0a, 0x0a, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x73, 0x18,
   373  	0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d,
   374  	0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f,
   375  	0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64,
   376  	0x52, 0x0a, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x73, 0x1a, 0x4d, 0x0a, 0x09,
   377  	0x47, 0x61, 0x75, 0x67, 0x65, 0x56, 0x69, 0x65, 0x77, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x6f, 0x77,
   378  	0x65, 0x72, 0x5f, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a,
   379  	0x6c, 0x6f, 0x77, 0x65, 0x72, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x70,
   380  	0x70, 0x65, 0x72, 0x5f, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52,
   381  	0x0a, 0x75, 0x70, 0x70, 0x65, 0x72, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x1a, 0xbc, 0x01, 0x0a, 0x0e,
   382  	0x53, 0x70, 0x61, 0x72, 0x6b, 0x43, 0x68, 0x61, 0x72, 0x74, 0x56, 0x69, 0x65, 0x77, 0x12, 0x5d,
   383  	0x0a, 0x10, 0x73, 0x70, 0x61, 0x72, 0x6b, 0x5f, 0x63, 0x68, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x79,
   384  	0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   385  	0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x64, 0x61, 0x73,
   386  	0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x70, 0x61, 0x72, 0x6b, 0x43,
   387  	0x68, 0x61, 0x72, 0x74, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x73,
   388  	0x70, 0x61, 0x72, 0x6b, 0x43, 0x68, 0x61, 0x72, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x4b, 0x0a,
   389  	0x14, 0x6d, 0x69, 0x6e, 0x5f, 0x61, 0x6c, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x70,
   390  	0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f,
   391  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75,
   392  	0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x6d, 0x69, 0x6e, 0x41, 0x6c, 0x69, 0x67, 0x6e,
   393  	0x6d, 0x65, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x42, 0x0b, 0x0a, 0x09, 0x64, 0x61,
   394  	0x74, 0x61, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x42, 0xf7, 0x01, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e,
   395  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e,
   396  	0x67, 0x2e, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x76, 0x31, 0x42, 0x0e,
   397  	0x53, 0x63, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x72, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
   398  	0x5a, 0x46, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
   399  	0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67,
   400  	0x2f, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31,
   401  	0x2f, 0x64, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x70, 0x62, 0x3b, 0x64, 0x61, 0x73,
   402  	0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x70, 0x62, 0xaa, 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
   403  	0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69,
   404  	0x6e, 0x67, 0x2e, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x56, 0x31, 0xca,
   405  	0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x4d,
   406  	0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f,
   407  	0x61, 0x72, 0x64, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x28, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a,
   408  	0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69,
   409  	0x6e, 0x67, 0x3a, 0x3a, 0x44, 0x61, 0x73, 0x68, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x3a, 0x3a, 0x56,
   410  	0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   411  }
   412  
   413  var (
   414  	file_google_monitoring_dashboard_v1_scorecard_proto_rawDescOnce sync.Once
   415  	file_google_monitoring_dashboard_v1_scorecard_proto_rawDescData = file_google_monitoring_dashboard_v1_scorecard_proto_rawDesc
   416  )
   417  
   418  func file_google_monitoring_dashboard_v1_scorecard_proto_rawDescGZIP() []byte {
   419  	file_google_monitoring_dashboard_v1_scorecard_proto_rawDescOnce.Do(func() {
   420  		file_google_monitoring_dashboard_v1_scorecard_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_monitoring_dashboard_v1_scorecard_proto_rawDescData)
   421  	})
   422  	return file_google_monitoring_dashboard_v1_scorecard_proto_rawDescData
   423  }
   424  
   425  var file_google_monitoring_dashboard_v1_scorecard_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   426  var file_google_monitoring_dashboard_v1_scorecard_proto_goTypes = []interface{}{
   427  	(*Scorecard)(nil),                // 0: google.monitoring.dashboard.v1.Scorecard
   428  	(*Scorecard_GaugeView)(nil),      // 1: google.monitoring.dashboard.v1.Scorecard.GaugeView
   429  	(*Scorecard_SparkChartView)(nil), // 2: google.monitoring.dashboard.v1.Scorecard.SparkChartView
   430  	(*TimeSeriesQuery)(nil),          // 3: google.monitoring.dashboard.v1.TimeSeriesQuery
   431  	(*emptypb.Empty)(nil),            // 4: google.protobuf.Empty
   432  	(*Threshold)(nil),                // 5: google.monitoring.dashboard.v1.Threshold
   433  	(SparkChartType)(0),              // 6: google.monitoring.dashboard.v1.SparkChartType
   434  	(*durationpb.Duration)(nil),      // 7: google.protobuf.Duration
   435  }
   436  var file_google_monitoring_dashboard_v1_scorecard_proto_depIdxs = []int32{
   437  	3, // 0: google.monitoring.dashboard.v1.Scorecard.time_series_query:type_name -> google.monitoring.dashboard.v1.TimeSeriesQuery
   438  	1, // 1: google.monitoring.dashboard.v1.Scorecard.gauge_view:type_name -> google.monitoring.dashboard.v1.Scorecard.GaugeView
   439  	2, // 2: google.monitoring.dashboard.v1.Scorecard.spark_chart_view:type_name -> google.monitoring.dashboard.v1.Scorecard.SparkChartView
   440  	4, // 3: google.monitoring.dashboard.v1.Scorecard.blank_view:type_name -> google.protobuf.Empty
   441  	5, // 4: google.monitoring.dashboard.v1.Scorecard.thresholds:type_name -> google.monitoring.dashboard.v1.Threshold
   442  	6, // 5: google.monitoring.dashboard.v1.Scorecard.SparkChartView.spark_chart_type:type_name -> google.monitoring.dashboard.v1.SparkChartType
   443  	7, // 6: google.monitoring.dashboard.v1.Scorecard.SparkChartView.min_alignment_period:type_name -> google.protobuf.Duration
   444  	7, // [7:7] is the sub-list for method output_type
   445  	7, // [7:7] is the sub-list for method input_type
   446  	7, // [7:7] is the sub-list for extension type_name
   447  	7, // [7:7] is the sub-list for extension extendee
   448  	0, // [0:7] is the sub-list for field type_name
   449  }
   450  
   451  func init() { file_google_monitoring_dashboard_v1_scorecard_proto_init() }
   452  func file_google_monitoring_dashboard_v1_scorecard_proto_init() {
   453  	if File_google_monitoring_dashboard_v1_scorecard_proto != nil {
   454  		return
   455  	}
   456  	file_google_monitoring_dashboard_v1_metrics_proto_init()
   457  	if !protoimpl.UnsafeEnabled {
   458  		file_google_monitoring_dashboard_v1_scorecard_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   459  			switch v := v.(*Scorecard); i {
   460  			case 0:
   461  				return &v.state
   462  			case 1:
   463  				return &v.sizeCache
   464  			case 2:
   465  				return &v.unknownFields
   466  			default:
   467  				return nil
   468  			}
   469  		}
   470  		file_google_monitoring_dashboard_v1_scorecard_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   471  			switch v := v.(*Scorecard_GaugeView); i {
   472  			case 0:
   473  				return &v.state
   474  			case 1:
   475  				return &v.sizeCache
   476  			case 2:
   477  				return &v.unknownFields
   478  			default:
   479  				return nil
   480  			}
   481  		}
   482  		file_google_monitoring_dashboard_v1_scorecard_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   483  			switch v := v.(*Scorecard_SparkChartView); i {
   484  			case 0:
   485  				return &v.state
   486  			case 1:
   487  				return &v.sizeCache
   488  			case 2:
   489  				return &v.unknownFields
   490  			default:
   491  				return nil
   492  			}
   493  		}
   494  	}
   495  	file_google_monitoring_dashboard_v1_scorecard_proto_msgTypes[0].OneofWrappers = []interface{}{
   496  		(*Scorecard_GaugeView_)(nil),
   497  		(*Scorecard_SparkChartView_)(nil),
   498  		(*Scorecard_BlankView)(nil),
   499  	}
   500  	type x struct{}
   501  	out := protoimpl.TypeBuilder{
   502  		File: protoimpl.DescBuilder{
   503  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   504  			RawDescriptor: file_google_monitoring_dashboard_v1_scorecard_proto_rawDesc,
   505  			NumEnums:      0,
   506  			NumMessages:   3,
   507  			NumExtensions: 0,
   508  			NumServices:   0,
   509  		},
   510  		GoTypes:           file_google_monitoring_dashboard_v1_scorecard_proto_goTypes,
   511  		DependencyIndexes: file_google_monitoring_dashboard_v1_scorecard_proto_depIdxs,
   512  		MessageInfos:      file_google_monitoring_dashboard_v1_scorecard_proto_msgTypes,
   513  	}.Build()
   514  	File_google_monitoring_dashboard_v1_scorecard_proto = out.File
   515  	file_google_monitoring_dashboard_v1_scorecard_proto_rawDesc = nil
   516  	file_google_monitoring_dashboard_v1_scorecard_proto_goTypes = nil
   517  	file_google_monitoring_dashboard_v1_scorecard_proto_depIdxs = nil
   518  }
   519  

View as plain text