Package cloud.google.com/go/monitoring/apiv3/v2/monitoringpb (v1.9.0)

Stay organized with collections Save and categorize content based on your preferences.

Variables

AlertPolicy_ConditionCombinerType_name, AlertPolicy_ConditionCombinerType_value

var (
	AlertPolicy_ConditionCombinerType_name = map[int32]string{
		0: "COMBINE_UNSPECIFIED",
		1: "AND",
		2: "OR",
		3: "AND_WITH_MATCHING_RESOURCE",
	}
	AlertPolicy_ConditionCombinerType_value = map[string]int32{
		"COMBINE_UNSPECIFIED":        0,
		"AND":                        1,
		"OR":                         2,
		"AND_WITH_MATCHING_RESOURCE": 3,
	}
)

Enum value maps for AlertPolicy_ConditionCombinerType.

AlertPolicy_Condition_EvaluationMissingData_name, AlertPolicy_Condition_EvaluationMissingData_value

var (
	AlertPolicy_Condition_EvaluationMissingData_name = map[int32]string{
		0: "EVALUATION_MISSING_DATA_UNSPECIFIED",
		1: "EVALUATION_MISSING_DATA_INACTIVE",
		2: "EVALUATION_MISSING_DATA_ACTIVE",
		3: "EVALUATION_MISSING_DATA_NO_OP",
	}
	AlertPolicy_Condition_EvaluationMissingData_value = map[string]int32{
		"EVALUATION_MISSING_DATA_UNSPECIFIED": 0,
		"EVALUATION_MISSING_DATA_INACTIVE":    1,
		"EVALUATION_MISSING_DATA_ACTIVE":      2,
		"EVALUATION_MISSING_DATA_NO_OP":       3,
	}
)

Enum value maps for AlertPolicy_Condition_EvaluationMissingData.

ComparisonType_name, ComparisonType_value

var (
	ComparisonType_name = map[int32]string{
		0: "COMPARISON_UNSPECIFIED",
		1: "COMPARISON_GT",
		2: "COMPARISON_GE",
		3: "COMPARISON_LT",
		4: "COMPARISON_LE",
		5: "COMPARISON_EQ",
		6: "COMPARISON_NE",
	}
	ComparisonType_value = map[string]int32{
		"COMPARISON_UNSPECIFIED": 0,
		"COMPARISON_GT":          1,
		"COMPARISON_GE":          2,
		"COMPARISON_LT":          3,
		"COMPARISON_LE":          4,
		"COMPARISON_EQ":          5,
		"COMPARISON_NE":          6,
	}
)

Enum value maps for ComparisonType.

ServiceTier_name, ServiceTier_value

var (
	ServiceTier_name = map[int32]string{
		0: "SERVICE_TIER_UNSPECIFIED",
		1: "SERVICE_TIER_BASIC",
		2: "SERVICE_TIER_PREMIUM",
	}
	ServiceTier_value = map[string]int32{
		"SERVICE_TIER_UNSPECIFIED": 0,
		"SERVICE_TIER_BASIC":       1,
		"SERVICE_TIER_PREMIUM":     2,
	}
)

Enum value maps for ServiceTier.

Aggregation_Aligner_name, Aggregation_Aligner_value

var (
	Aggregation_Aligner_name = map[int32]string{
		0:  "ALIGN_NONE",
		1:  "ALIGN_DELTA",
		2:  "ALIGN_RATE",
		3:  "ALIGN_INTERPOLATE",
		4:  "ALIGN_NEXT_OLDER",
		10: "ALIGN_MIN",
		11: "ALIGN_MAX",
		12: "ALIGN_MEAN",
		13: "ALIGN_COUNT",
		14: "ALIGN_SUM",
		15: "ALIGN_STDDEV",
		16: "ALIGN_COUNT_TRUE",
		24: "ALIGN_COUNT_FALSE",
		17: "ALIGN_FRACTION_TRUE",
		18: "ALIGN_PERCENTILE_99",
		19: "ALIGN_PERCENTILE_95",
		20: "ALIGN_PERCENTILE_50",
		21: "ALIGN_PERCENTILE_05",
		23: "ALIGN_PERCENT_CHANGE",
	}
	Aggregation_Aligner_value = map[string]int32{
		"ALIGN_NONE":           0,
		"ALIGN_DELTA":          1,
		"ALIGN_RATE":           2,
		"ALIGN_INTERPOLATE":    3,
		"ALIGN_NEXT_OLDER":     4,
		"ALIGN_MIN":            10,
		"ALIGN_MAX":            11,
		"ALIGN_MEAN":           12,
		"ALIGN_COUNT":          13,
		"ALIGN_SUM":            14,
		"ALIGN_STDDEV":         15,
		"ALIGN_COUNT_TRUE":     16,
		"ALIGN_COUNT_FALSE":    24,
		"ALIGN_FRACTION_TRUE":  17,
		"ALIGN_PERCENTILE_99":  18,
		"ALIGN_PERCENTILE_95":  19,
		"ALIGN_PERCENTILE_50":  20,
		"ALIGN_PERCENTILE_05":  21,
		"ALIGN_PERCENT_CHANGE": 23,
	}
)

Enum value maps for Aggregation_Aligner.

Aggregation_Reducer_name, Aggregation_Reducer_value

var (
	Aggregation_Reducer_name = map[int32]string{
		0:  "REDUCE_NONE",
		1:  "REDUCE_MEAN",
		2:  "REDUCE_MIN",
		3:  "REDUCE_MAX",
		4:  "REDUCE_SUM",
		5:  "REDUCE_STDDEV",
		6:  "REDUCE_COUNT",
		7:  "REDUCE_COUNT_TRUE",
		15: "REDUCE_COUNT_FALSE",
		8:  "REDUCE_FRACTION_TRUE",
		9:  "REDUCE_PERCENTILE_99",
		10: "REDUCE_PERCENTILE_95",
		11: "REDUCE_PERCENTILE_50",
		12: "REDUCE_PERCENTILE_05",
	}
	Aggregation_Reducer_value = map[string]int32{
		"REDUCE_NONE":          0,
		"REDUCE_MEAN":          1,
		"REDUCE_MIN":           2,
		"REDUCE_MAX":           3,
		"REDUCE_SUM":           4,
		"REDUCE_STDDEV":        5,
		"REDUCE_COUNT":         6,
		"REDUCE_COUNT_TRUE":    7,
		"REDUCE_COUNT_FALSE":   15,
		"REDUCE_FRACTION_TRUE": 8,
		"REDUCE_PERCENTILE_99": 9,
		"REDUCE_PERCENTILE_95": 10,
		"REDUCE_PERCENTILE_50": 11,
		"REDUCE_PERCENTILE_05": 12,
	}
)

Enum value maps for Aggregation_Reducer.

ListTimeSeriesRequest_TimeSeriesView_name, ListTimeSeriesRequest_TimeSeriesView_value

var (
	ListTimeSeriesRequest_TimeSeriesView_name = map[int32]string{
		0: "FULL",
		1: "HEADERS",
	}
	ListTimeSeriesRequest_TimeSeriesView_value = map[string]int32{
		"FULL":    0,
		"HEADERS": 1,
	}
)

Enum value maps for ListTimeSeriesRequest_TimeSeriesView.

NotificationChannel_VerificationStatus_name, NotificationChannel_VerificationStatus_value

var (
	NotificationChannel_VerificationStatus_name = map[int32]string{
		0: "VERIFICATION_STATUS_UNSPECIFIED",
		1: "UNVERIFIED",
		2: "VERIFIED",
	}
	NotificationChannel_VerificationStatus_value = map[string]int32{
		"VERIFICATION_STATUS_UNSPECIFIED": 0,
		"UNVERIFIED":                      1,
		"VERIFIED":                        2,
	}
)

Enum value maps for NotificationChannel_VerificationStatus.

ServiceLevelObjective_View_name, ServiceLevelObjective_View_value

var (
	ServiceLevelObjective_View_name = map[int32]string{
		0: "VIEW_UNSPECIFIED",
		2: "FULL",
		1: "EXPLICIT",
	}
	ServiceLevelObjective_View_value = map[string]int32{
		"VIEW_UNSPECIFIED": 0,
		"FULL":             2,
		"EXPLICIT":         1,
	}
)

Enum value maps for ServiceLevelObjective_View.

UptimeCheckRegion_name, UptimeCheckRegion_value

var (
	UptimeCheckRegion_name = map[int32]string{
		0: "REGION_UNSPECIFIED",
		1: "USA",
		2: "EUROPE",
		3: "SOUTH_AMERICA",
		4: "ASIA_PACIFIC",
	}
	UptimeCheckRegion_value = map[string]int32{
		"REGION_UNSPECIFIED": 0,
		"USA":                1,
		"EUROPE":             2,
		"SOUTH_AMERICA":      3,
		"ASIA_PACIFIC":       4,
	}
)

Enum value maps for UptimeCheckRegion.

GroupResourceType_name, GroupResourceType_value

var (
	GroupResourceType_name = map[int32]string{
		0: "RESOURCE_TYPE_UNSPECIFIED",
		1: "INSTANCE",
		2: "AWS_ELB_LOAD_BALANCER",
	}
	GroupResourceType_value = map[string]int32{
		"RESOURCE_TYPE_UNSPECIFIED": 0,
		"INSTANCE":                  1,
		"AWS_ELB_LOAD_BALANCER":     2,
	}
)

Enum value maps for GroupResourceType.

InternalChecker_State_name, InternalChecker_State_value

var (
	InternalChecker_State_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "CREATING",
		2: "RUNNING",
	}
	InternalChecker_State_value = map[string]int32{
		"UNSPECIFIED": 0,
		"CREATING":    1,
		"RUNNING":     2,
	}
)

Enum value maps for InternalChecker_State.

UptimeCheckConfig_HttpCheck_RequestMethod_name, UptimeCheckConfig_HttpCheck_RequestMethod_value

var (
	UptimeCheckConfig_HttpCheck_RequestMethod_name = map[int32]string{
		0: "METHOD_UNSPECIFIED",
		1: "GET",
		2: "POST",
	}
	UptimeCheckConfig_HttpCheck_RequestMethod_value = map[string]int32{
		"METHOD_UNSPECIFIED": 0,
		"GET":                1,
		"POST":               2,
	}
)

Enum value maps for UptimeCheckConfig_HttpCheck_RequestMethod.

UptimeCheckConfig_HttpCheck_ContentType_name, UptimeCheckConfig_HttpCheck_ContentType_value

var (
	UptimeCheckConfig_HttpCheck_ContentType_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "URL_ENCODED",
	}
	UptimeCheckConfig_HttpCheck_ContentType_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"URL_ENCODED":      1,
	}
)

Enum value maps for UptimeCheckConfig_HttpCheck_ContentType.

UptimeCheckConfig_ContentMatcher_ContentMatcherOption_name, UptimeCheckConfig_ContentMatcher_ContentMatcherOption_value

var (
	UptimeCheckConfig_ContentMatcher_ContentMatcherOption_name = map[int32]string{
		0: "CONTENT_MATCHER_OPTION_UNSPECIFIED",
		1: "CONTAINS_STRING",
		2: "NOT_CONTAINS_STRING",
		3: "MATCHES_REGEX",
		4: "NOT_MATCHES_REGEX",
	}
	UptimeCheckConfig_ContentMatcher_ContentMatcherOption_value = map[string]int32{
		"CONTENT_MATCHER_OPTION_UNSPECIFIED": 0,
		"CONTAINS_STRING":                    1,
		"NOT_CONTAINS_STRING":                2,
		"MATCHES_REGEX":                      3,
		"NOT_MATCHES_REGEX":                  4,
	}
)

Enum value maps for UptimeCheckConfig_ContentMatcher_ContentMatcherOption.

File_google_monitoring_v3_alert_proto

var File_google_monitoring_v3_alert_proto protoreflect.FileDescriptor

File_google_monitoring_v3_alert_service_proto

var File_google_monitoring_v3_alert_service_proto protoreflect.FileDescriptor

File_google_monitoring_v3_common_proto

var File_google_monitoring_v3_common_proto protoreflect.FileDescriptor

File_google_monitoring_v3_dropped_labels_proto

var File_google_monitoring_v3_dropped_labels_proto protoreflect.FileDescriptor

File_google_monitoring_v3_group_proto

var File_google_monitoring_v3_group_proto protoreflect.FileDescriptor

File_google_monitoring_v3_group_service_proto

var File_google_monitoring_v3_group_service_proto protoreflect.FileDescriptor

File_google_monitoring_v3_metric_proto

var File_google_monitoring_v3_metric_proto protoreflect.FileDescriptor

File_google_monitoring_v3_metric_service_proto

var File_google_monitoring_v3_metric_service_proto protoreflect.FileDescriptor

File_google_monitoring_v3_mutation_record_proto

var File_google_monitoring_v3_mutation_record_proto protoreflect.FileDescriptor

File_google_monitoring_v3_notification_proto

var File_google_monitoring_v3_notification_proto protoreflect.FileDescriptor

File_google_monitoring_v3_notification_service_proto

var File_google_monitoring_v3_notification_service_proto protoreflect.FileDescriptor

File_google_monitoring_v3_query_service_proto

var File_google_monitoring_v3_query_service_proto protoreflect.FileDescriptor

File_google_monitoring_v3_service_proto

var File_google_monitoring_v3_service_proto protoreflect.FileDescriptor

File_google_monitoring_v3_service_service_proto

var File_google_monitoring_v3_service_service_proto protoreflect.FileDescriptor

File_google_monitoring_v3_span_context_proto

var File_google_monitoring_v3_span_context_proto protoreflect.FileDescriptor

File_google_monitoring_v3_uptime_proto

var File_google_monitoring_v3_uptime_proto protoreflect.FileDescriptor

File_google_monitoring_v3_uptime_service_proto

var File_google_monitoring_v3_uptime_service_proto protoreflect.FileDescriptor

Functions

func RegisterAlertPolicyServiceServer

func RegisterAlertPolicyServiceServer(s *grpc.Server, srv AlertPolicyServiceServer)

func RegisterGroupServiceServer

func RegisterGroupServiceServer(s *grpc.Server, srv GroupServiceServer)

func RegisterMetricServiceServer

func RegisterMetricServiceServer(s *grpc.Server, srv MetricServiceServer)

func RegisterNotificationChannelServiceServer

func RegisterNotificationChannelServiceServer(s *grpc.Server, srv NotificationChannelServiceServer)

func RegisterQueryServiceServer

func RegisterQueryServiceServer(s *grpc.Server, srv QueryServiceServer)

func RegisterServiceMonitoringServiceServer

func RegisterServiceMonitoringServiceServer(s *grpc.Server, srv ServiceMonitoringServiceServer)

func RegisterUptimeCheckServiceServer

func RegisterUptimeCheckServiceServer(s *grpc.Server, srv UptimeCheckServiceServer)

Aggregation

type Aggregation struct {
	AlignmentPeriod *durationpb.Duration `protobuf:"bytes,1,opt,name=alignment_period,json=alignmentPeriod,proto3" json:"alignment_period,omitempty"`

	PerSeriesAligner Aggregation_Aligner "" /* 158 byte string literal not displayed */

	CrossSeriesReducer Aggregation_Reducer "" /* 164 byte string literal not displayed */

	GroupByFields []string `protobuf:"bytes,5,rep,name=group_by_fields,json=groupByFields,proto3" json:"group_by_fields,omitempty"`

}

Describes how to combine multiple time series to provide a different view of the data. Aggregation of time series is done in two steps. First, each time series in the set is aligned to the same time interval boundaries, then the set of time series is optionally reduced in number.

Alignment consists of applying the per_series_aligner operation to each time series after its data has been divided into regular alignment_period time intervals. This process takes all of the data points in an alignment period, applies a mathematical transformation such as averaging, minimum, maximum, delta, etc., and converts them into a single data point per period.

Reduction is when the aligned and transformed time series can optionally be combined, reducing the number of time series through similar mathematical transformations. Reduction involves applying a cross_series_reducer to all the time series, optionally sorting the time series into subsets with group_by_fields, and applying the reducer to each subset.

The raw time series data can contain a huge amount of information from multiple sources. Alignment and reduction transforms this mass of data into a more manageable and representative collection of data, for example "the 95% latency across the average of all tasks in a cluster". This representative data can be more easily graphed and comprehended, and the individual time series data is still available for later drilldown. For more details, see Filtering and aggregation.

func (*Aggregation) Descriptor

func (*Aggregation) Descriptor() ([]byte, []int)

Deprecated: Use Aggregation.ProtoReflect.Descriptor instead.

func (*Aggregation) GetAlignmentPeriod

func (x *Aggregation) GetAlignmentPeriod() *durationpb.Duration

func (*Aggregation) GetCrossSeriesReducer

func (x *Aggregation) GetCrossSeriesReducer() Aggregation_Reducer

func (*Aggregation) GetGroupByFields

func (x *Aggregation) GetGroupByFields() []string

func (*Aggregation) GetPerSeriesAligner

func (x *Aggregation) GetPerSeriesAligner() Aggregation_Aligner

func (*Aggregation) ProtoMessage

func (*Aggregation) ProtoMessage()

func (*Aggregation) ProtoReflect

func (x *Aggregation) ProtoReflect() protoreflect.Message

func (*Aggregation) Reset

func (x *Aggregation) Reset()

func (*Aggregation) String

func (x *Aggregation) String() string

Aggregation_Aligner

type Aggregation_Aligner int32

The Aligner specifies the operation that will be applied to the data points in each alignment period in a time series. Except for ALIGN_NONE, which specifies that no operation be applied, each alignment operation replaces the set of data values in each alignment period with a single value: the result of applying the operation to the data values. An aligned time series has a single data value at the end of each alignment_period.

An alignment operation can change the data type of the values, too. For example, if you apply a counting operation to boolean values, the data value_type in the original time series is BOOLEAN, but the value_type in the aligned result is INT64.

Aggregation_ALIGN_NONE, Aggregation_ALIGN_DELTA, Aggregation_ALIGN_RATE, Aggregation_ALIGN_INTERPOLATE, Aggregation_ALIGN_NEXT_OLDER, Aggregation_ALIGN_MIN, Aggregation_ALIGN_MAX, Aggregation_ALIGN_MEAN, Aggregation_ALIGN_COUNT, Aggregation_ALIGN_SUM, Aggregation_ALIGN_STDDEV, Aggregation_ALIGN_COUNT_TRUE, Aggregation_ALIGN_COUNT_FALSE, Aggregation_ALIGN_FRACTION_TRUE, Aggregation_ALIGN_PERCENTILE_99, Aggregation_ALIGN_PERCENTILE_95, Aggregation_ALIGN_PERCENTILE_50, Aggregation_ALIGN_PERCENTILE_05, Aggregation_ALIGN_PERCENT_CHANGE

const (
	// No alignment. Raw data is returned. Not valid if cross-series reduction
	// is requested. The `value_type` of the result is the same as the
	// `value_type` of the input.
	Aggregation_ALIGN_NONE Aggregation_Aligner = 0
	// Align and convert to
	// [DELTA][google.api.MetricDescriptor.MetricKind.DELTA].
	// The output is `delta = y1 - y0`.
	//
	// This alignment is valid for
	// [CUMULATIVE][google.api.MetricDescriptor.MetricKind.CUMULATIVE] and
	// `DELTA` metrics. If the selected alignment period results in periods
	// with no data, then the aligned value for such a period is created by
	// interpolation. The `value_type`  of the aligned result is the same as
	// the `value_type` of the input.
	Aggregation_ALIGN_DELTA Aggregation_Aligner = 1
	// Align and convert to a rate. The result is computed as
	// `rate = (y1 - y0)/(t1 - t0)`, or "delta over time".
	// Think of this aligner as providing the slope of the line that passes
	// through the value at the start and at the end of the `alignment_period`.
	//
	// This aligner is valid for `CUMULATIVE`
	// and `DELTA` metrics with numeric values. If the selected alignment
	// period results in periods with no data, then the aligned value for
	// such a period is created by interpolation. The output is a `GAUGE`
	// metric with `value_type` `DOUBLE`.
	//
	// If, by "rate", you mean "percentage change", see the
	// `ALIGN_PERCENT_CHANGE` aligner instead.
	Aggregation_ALIGN_RATE Aggregation_Aligner = 2
	// Align by interpolating between adjacent points around the alignment
	// period boundary. This aligner is valid for `GAUGE` metrics with
	// numeric values. The `value_type` of the aligned result is the same as the
	// `value_type` of the input.
	Aggregation_ALIGN_INTERPOLATE Aggregation_Aligner = 3
	// Align by moving the most recent data point before the end of the
	// alignment period to the boundary at the end of the alignment
	// period. This aligner is valid for `GAUGE` metrics. The `value_type` of
	// the aligned result is the same as the `value_type` of the input.
	Aggregation_ALIGN_NEXT_OLDER Aggregation_Aligner = 4
	// Align the time series by returning the minimum value in each alignment
	// period. This aligner is valid for `GAUGE` and `DELTA` metrics with
	// numeric values. The `value_type` of the aligned result is the same as
	// the `value_type` of the input.
	Aggregation_ALIGN_MIN Aggregation_Aligner = 10
	// Align the time series by returning the maximum value in each alignment
	// period. This aligner is valid for `GAUGE` and `DELTA` metrics with
	// numeric values. The `value_type` of the aligned result is the same as
	// the `value_type` of the input.
	Aggregation_ALIGN_MAX Aggregation_Aligner = 11
	// Align the time series by returning the mean value in each alignment
	// period. This aligner is valid for `GAUGE` and `DELTA` metrics with
	// numeric values. The `value_type` of the aligned result is `DOUBLE`.
	Aggregation_ALIGN_MEAN Aggregation_Aligner = 12
	// Align the time series by returning the number of values in each alignment
	// period. This aligner is valid for `GAUGE` and `DELTA` metrics with
	// numeric or Boolean values. The `value_type` of the aligned result is
	// `INT64`.
	Aggregation_ALIGN_COUNT Aggregation_Aligner = 13
	// Align the time series by returning the sum of the values in each
	// alignment period. This aligner is valid for `GAUGE` and `DELTA`
	// metrics with numeric and distribution values. The `value_type` of the
	// aligned result is the same as the `value_type` of the input.
	Aggregation_ALIGN_SUM Aggregation_Aligner = 14
	// Align the time series by returning the standard deviation of the values
	// in each alignment period. This aligner is valid for `GAUGE` and
	// `DELTA` metrics with numeric values. The `value_type` of the output is
	// `DOUBLE`.
	Aggregation_ALIGN_STDDEV Aggregation_Aligner = 15
	// Align the time series by returning the number of `True` values in
	// each alignment period. This aligner is valid for `GAUGE` metrics with
	// Boolean values. The `value_type` of the output is `INT64`.
	Aggregation_ALIGN_COUNT_TRUE Aggregation_Aligner = 16
	// Align the time series by returning the number of `False` values in
	// each alignment period. This aligner is valid for `GAUGE` metrics with
	// Boolean values. The `value_type` of the output is `INT64`.
	Aggregation_ALIGN_COUNT_FALSE Aggregation_Aligner = 24
	// Align the time series by returning the ratio of the number of `True`
	// values to the total number of values in each alignment period. This
	// aligner is valid for `GAUGE` metrics with Boolean values. The output
	// value is in the range [0.0, 1.0] and has `value_type` `DOUBLE`.
	Aggregation_ALIGN_FRACTION_TRUE Aggregation_Aligner = 17
	// Align the time series by using [percentile
	// aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
	// data point in each alignment period is the 99th percentile of all data
	// points in the period. This aligner is valid for `GAUGE` and `DELTA`
	// metrics with distribution values. The output is a `GAUGE` metric with
	// `value_type` `DOUBLE`.
	Aggregation_ALIGN_PERCENTILE_99 Aggregation_Aligner = 18
	// Align the time series by using [percentile
	// aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
	// data point in each alignment period is the 95th percentile of all data
	// points in the period. This aligner is valid for `GAUGE` and `DELTA`
	// metrics with distribution values. The output is a `GAUGE` metric with
	// `value_type` `DOUBLE`.
	Aggregation_ALIGN_PERCENTILE_95 Aggregation_Aligner = 19
	// Align the time series by using [percentile
	// aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
	// data point in each alignment period is the 50th percentile of all data
	// points in the period. This aligner is valid for `GAUGE` and `DELTA`
	// metrics with distribution values. The output is a `GAUGE` metric with
	// `value_type` `DOUBLE`.
	Aggregation_ALIGN_PERCENTILE_50 Aggregation_Aligner = 20
	// Align the time series by using [percentile
	// aggregation](https://en.wikipedia.org/wiki/Percentile). The resulting
	// data point in each alignment period is the 5th percentile of all data
	// points in the period. This aligner is valid for `GAUGE` and `DELTA`
	// metrics with distribution values. The output is a `GAUGE` metric with
	// `value_type` `DOUBLE`.
	Aggregation_ALIGN_PERCENTILE_05 Aggregation_Aligner = 21
	// Align and convert to a percentage change. This aligner is valid for
	// `GAUGE` and `DELTA` metrics with numeric values. This alignment returns
	// `((current - previous)/previous) * 100`, where the value of `previous` is
	// determined based on the `alignment_period`.
	//
	// If the values of `current` and `previous` are both 0, then the returned
	// value is 0. If only `previous` is 0, the returned value is infinity.
	//
	// A 10-minute moving mean is computed at each point of the alignment period
	// prior to the above calculation to smooth the metric and prevent false
	// positives from very short-lived spikes. The moving mean is only
	// applicable for data whose values are `>= 0`. Any values `< 0`="" are="" treated="" as="" a="" missing="" datapoint,="" and="" are="" ignored.="" while="" `delta`="" metrics="" are="" accepted="" by="" this="" alignment,="" special="" care="" should="" be="" taken="" that="" the="" values="" for="" the="" metric="" will="" always="" be="" positive.="" the="" output="" is="" a="" `gauge`="" metric="" with="" `value_type`="" `double`.="" aggregation_align_percent_change="">Aggregation_Aligner = 23
)

func (Aggregation_Aligner) Descriptor

func (Aggregation_Aligner) Enum

func (Aggregation_Aligner) EnumDescriptor

func (Aggregation_Aligner) EnumDescriptor() ([]byte, []int)

Deprecated: Use Aggregation_Aligner.Descriptor instead.

func (Aggregation_Aligner) Number

func (Aggregation_Aligner) String

func (x Aggregation_Aligner) String() string

func (Aggregation_Aligner) Type

Aggregation_Reducer

type Aggregation_Reducer int32

A Reducer operation describes how to aggregate data points from multiple time series into a single time series, where the value of each data point in the resulting series is a function of all the already aligned values in the input time series.

Aggregation_REDUCE_NONE, Aggregation_REDUCE_MEAN, Aggregation_REDUCE_MIN, Aggregation_REDUCE_MAX, Aggregation_REDUCE_SUM, Aggregation_REDUCE_STDDEV, Aggregation_REDUCE_COUNT, Aggregation_REDUCE_COUNT_TRUE, Aggregation_REDUCE_COUNT_FALSE, Aggregation_REDUCE_FRACTION_TRUE, Aggregation_REDUCE_PERCENTILE_99, Aggregation_REDUCE_PERCENTILE_95, Aggregation_REDUCE_PERCENTILE_50, Aggregation_REDUCE_PERCENTILE_05

const (
	// No cross-time series reduction. The output of the `Aligner` is
	// returned.
	Aggregation_REDUCE_NONE Aggregation_Reducer = 0
	// Reduce by computing the mean value across time series for each
	// alignment period. This reducer is valid for
	// [DELTA][google.api.MetricDescriptor.MetricKind.DELTA] and
	// [GAUGE][google.api.MetricDescriptor.MetricKind.GAUGE] metrics with
	// numeric or distribution values. The `value_type` of the output is
	// [DOUBLE][google.api.MetricDescriptor.ValueType.DOUBLE].
	Aggregation_REDUCE_MEAN Aggregation_Reducer = 1
	// Reduce by computing the minimum value across time series for each
	// alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
	// with numeric values. The `value_type` of the output is the same as the
	// `value_type` of the input.
	Aggregation_REDUCE_MIN Aggregation_Reducer = 2
	// Reduce by computing the maximum value across time series for each
	// alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
	// with numeric values. The `value_type` of the output is the same as the
	// `value_type` of the input.
	Aggregation_REDUCE_MAX Aggregation_Reducer = 3
	// Reduce by computing the sum across time series for each
	// alignment period. This reducer is valid for `DELTA` and `GAUGE` metrics
	// with numeric and distribution values. The `value_type` of the output is
	// the same as the `value_type` of the input.
	Aggregation_REDUCE_SUM Aggregation_Reducer = 4
	// Reduce by computing the standard deviation across time series
	// for each alignment period. This reducer is valid for `DELTA` and
	// `GAUGE` metrics with numeric or distribution values. The `value_type`
	// of the output is `DOUBLE`.
	Aggregation_REDUCE_STDDEV Aggregation_Reducer = 5
	// Reduce by computing the number of data points across time series
	// for each alignment period. This reducer is valid for `DELTA` and
	// `GAUGE` metrics of numeric, Boolean, distribution, and string
	// `value_type`. The `value_type` of the output is `INT64`.
	Aggregation_REDUCE_COUNT Aggregation_Reducer = 6
	// Reduce by computing the number of `True`-valued data points across time
	// series for each alignment period. This reducer is valid for `DELTA` and
	// `GAUGE` metrics of Boolean `value_type`. The `value_type` of the output
	// is `INT64`.
	Aggregation_REDUCE_COUNT_TRUE Aggregation_Reducer = 7
	// Reduce by computing the number of `False`-valued data points across time
	// series for each alignment period. This reducer is valid for `DELTA` and
	// `GAUGE` metrics of Boolean `value_type`. The `value_type` of the output
	// is `INT64`.
	Aggregation_REDUCE_COUNT_FALSE Aggregation_Reducer = 15
	// Reduce by computing the ratio of the number of `True`-valued data points
	// to the total number of data points for each alignment period. This
	// reducer is valid for `DELTA` and `GAUGE` metrics of Boolean `value_type`.
	// The output value is in the range [0.0, 1.0] and has `value_type`
	// `DOUBLE`.
	Aggregation_REDUCE_FRACTION_TRUE Aggregation_Reducer = 8
	// Reduce by computing the [99th
	// percentile](https://en.wikipedia.org/wiki/Percentile) of data points
	// across time series for each alignment period. This reducer is valid for
	// `GAUGE` and `DELTA` metrics of numeric and distribution type. The value
	// of the output is `DOUBLE`.
	Aggregation_REDUCE_PERCENTILE_99 Aggregation_Reducer = 9
	// Reduce by computing the [95th
	// percentile](https://en.wikipedia.org/wiki/Percentile) of data points
	// across time series for each alignment period. This reducer is valid for
	// `GAUGE` and `DELTA` metrics of numeric and distribution type. The value
	// of the output is `DOUBLE`.
	Aggregation_REDUCE_PERCENTILE_95 Aggregation_Reducer = 10
	// Reduce by computing the [50th
	// percentile](https://en.wikipedia.org/wiki/Percentile) of data points
	// across time series for each alignment period. This reducer is valid for
	// `GAUGE` and `DELTA` metrics of numeric and distribution type. The value
	// of the output is `DOUBLE`.
	Aggregation_REDUCE_PERCENTILE_50 Aggregation_Reducer = 11
	// Reduce by computing the [5th
	// percentile](https://en.wikipedia.org/wiki/Percentile) of data points
	// across time series for each alignment period. This reducer is valid for
	// `GAUGE` and `DELTA` metrics of numeric and distribution type. The value
	// of the output is `DOUBLE`.
	Aggregation_REDUCE_PERCENTILE_05 Aggregation_Reducer = 12
)

func (Aggregation_Reducer) Descriptor

func (Aggregation_Reducer) Enum

func (Aggregation_Reducer) EnumDescriptor

func (Aggregation_Reducer) EnumDescriptor() ([]byte, []int)

Deprecated: Use Aggregation_Reducer.Descriptor instead.

func (Aggregation_Reducer) Number

func (Aggregation_Reducer) String

func (x Aggregation_Reducer) String() string

func (Aggregation_Reducer) Type

AlertPolicy

type AlertPolicy struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`

	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`

	Documentation *AlertPolicy_Documentation `protobuf:"bytes,13,opt,name=documentation,proto3" json:"documentation,omitempty"`

	UserLabels map[string]string "" /* 180 byte string literal not displayed */

	Conditions []*AlertPolicy_Condition `protobuf:"bytes,12,rep,name=conditions,proto3" json:"conditions,omitempty"`

	Combiner AlertPolicy_ConditionCombinerType "" /* 130 byte string literal not displayed */

	Enabled *wrapperspb.BoolValue `protobuf:"bytes,17,opt,name=enabled,proto3" json:"enabled,omitempty"`

	Validity *status.Status `protobuf:"bytes,18,opt,name=validity,proto3" json:"validity,omitempty"`

	NotificationChannels []string `protobuf:"bytes,14,rep,name=notification_channels,json=notificationChannels,proto3" json:"notification_channels,omitempty"`

	CreationRecord *MutationRecord `protobuf:"bytes,10,opt,name=creation_record,json=creationRecord,proto3" json:"creation_record,omitempty"`

	MutationRecord *MutationRecord `protobuf:"bytes,11,opt,name=mutation_record,json=mutationRecord,proto3" json:"mutation_record,omitempty"`

	AlertStrategy *AlertPolicy_AlertStrategy `protobuf:"bytes,21,opt,name=alert_strategy,json=alertStrategy,proto3" json:"alert_strategy,omitempty"`

}

A description of the conditions under which some aspect of your system is considered to be "unhealthy" and the ways to notify people or services about this state. For an overview of alert policies, see Introduction to Alerting.

func (*AlertPolicy) Descriptor

func (*AlertPolicy) Descriptor() ([]byte, []int)

Deprecated: Use AlertPolicy.ProtoReflect.Descriptor instead.

func (*AlertPolicy) GetAlertStrategy

func (x *AlertPolicy) GetAlertStrategy() *AlertPolicy_AlertStrategy

func (*AlertPolicy) GetCombiner

func (*AlertPolicy) GetConditions

func (x *AlertPolicy) GetConditions() []*AlertPolicy_Condition

func (*AlertPolicy) GetCreationRecord

func (x *AlertPolicy) GetCreationRecord() *MutationRecord

func (*AlertPolicy) GetDisplayName

func (x *AlertPolicy) GetDisplayName() string

func (*AlertPolicy) GetDocumentation

func (x *AlertPolicy) GetDocumentation() *AlertPolicy_Documentation

func (*AlertPolicy) GetEnabled

func (x *AlertPolicy) GetEnabled() *wrapperspb.BoolValue

func (*AlertPolicy) GetMutationRecord

func (x *AlertPolicy) GetMutationRecord() *MutationRecord

func (*AlertPolicy) GetName

func (x *AlertPolicy) GetName() string

func (*AlertPolicy) GetNotificationChannels

func (x *AlertPolicy) GetNotificationChannels() []string

func (*AlertPolicy) GetUserLabels

func (x *AlertPolicy) GetUserLabels() map[string]string

func (*AlertPolicy) GetValidity

func (x *AlertPolicy) GetValidity() *status.Status

func (*AlertPolicy) ProtoMessage

func (*AlertPolicy) ProtoMessage()

func (*AlertPolicy) ProtoReflect

func (x *AlertPolicy) ProtoReflect() protoreflect.Message

func (*AlertPolicy) Reset

func (x *AlertPolicy) Reset()

func (*AlertPolicy) String

func (x *AlertPolicy) String() string

AlertPolicyServiceClient

type AlertPolicyServiceClient interface {
	// Lists the existing alerting policies for the workspace.
	ListAlertPolicies(ctx context.Context, in *ListAlertPoliciesRequest, opts ...grpc.CallOption) (*ListAlertPoliciesResponse, error)
	// Gets a single alerting policy.
	GetAlertPolicy(ctx context.Context, in *GetAlertPolicyRequest, opts ...grpc.CallOption) (*AlertPolicy, error)
	// Creates a new alerting policy.
	CreateAlertPolicy(ctx context.Context, in *CreateAlertPolicyRequest, opts ...grpc.CallOption) (*AlertPolicy, error)
	// Deletes an alerting policy.
	DeleteAlertPolicy(ctx context.Context, in *DeleteAlertPolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Updates an alerting policy. You can either replace the entire policy with
	// a new one or replace only certain fields in the current alerting policy by
	// specifying the fields to be updated via `updateMask`. Returns the
	// updated alerting policy.
	UpdateAlertPolicy(ctx context.Context, in *UpdateAlertPolicyRequest, opts ...grpc.CallOption) (*AlertPolicy, error)
}

AlertPolicyServiceClient is the client API for AlertPolicyService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAlertPolicyServiceClient

func NewAlertPolicyServiceClient(cc grpc.ClientConnInterface) AlertPolicyServiceClient

AlertPolicyServiceServer

type AlertPolicyServiceServer interface {
	// Lists the existing alerting policies for the workspace.
	ListAlertPolicies(context.Context, *ListAlertPoliciesRequest) (*ListAlertPoliciesResponse, error)
	// Gets a single alerting policy.
	GetAlertPolicy(context.Context, *GetAlertPolicyRequest) (*AlertPolicy, error)
	// Creates a new alerting policy.
	CreateAlertPolicy(context.Context, *CreateAlertPolicyRequest) (*AlertPolicy, error)
	// Deletes an alerting policy.
	DeleteAlertPolicy(context.Context, *DeleteAlertPolicyRequest) (*emptypb.Empty, error)
	// Updates an alerting policy. You can either replace the entire policy with
	// a new one or replace only certain fields in the current alerting policy by
	// specifying the fields to be updated via `updateMask`. Returns the
	// updated alerting policy.
	UpdateAlertPolicy(context.Context, *UpdateAlertPolicyRequest) (*AlertPolicy, error)
}

AlertPolicyServiceServer is the server API for AlertPolicyService service.

AlertPolicy_AlertStrategy

type AlertPolicy_AlertStrategy struct {

	// Required for alert policies with a `LogMatch` condition.
	//
	// This limit is not implemented for alert policies that are not log-based.
	NotificationRateLimit *AlertPolicy_AlertStrategy_NotificationRateLimit `protobuf:"bytes,1,opt,name=notification_rate_limit,json=notificationRateLimit,proto3" json:"notification_rate_limit,omitempty"`
	// If an alert policy that was active has no data for this long, any open
	// incidents will close
	AutoClose *durationpb.Duration `protobuf:"bytes,3,opt,name=auto_close,json=autoClose,proto3" json:"auto_close,omitempty"`
	// contains filtered or unexported fields
}

Control over how the notification channels in notification_channels are notified when this alert fires.

func (*AlertPolicy_AlertStrategy) Descriptor

func (*AlertPolicy_AlertStrategy) Descriptor() ([]byte, []int)

Deprecated: Use AlertPolicy_AlertStrategy.ProtoReflect.Descriptor instead.

func (*AlertPolicy_AlertStrategy) GetAutoClose

func (x *AlertPolicy_AlertStrategy) GetAutoClose() *durationpb.Duration

func (*AlertPolicy_AlertStrategy) GetNotificationRateLimit

func (*AlertPolicy_AlertStrategy) ProtoMessage

func (*AlertPolicy_AlertStrategy) ProtoMessage()

func (*AlertPolicy_AlertStrategy) ProtoReflect

func (*AlertPolicy_AlertStrategy) Reset

func (x *AlertPolicy_AlertStrategy) Reset()

func (*AlertPolicy_AlertStrategy) String

func (x *AlertPolicy_AlertStrategy) String() string

AlertPolicy_AlertStrategy_NotificationRateLimit

type AlertPolicy_AlertStrategy_NotificationRateLimit struct {

	// Not more than one notification per `period`.
	Period *durationpb.Duration `protobuf:"bytes,1,opt,name=period,proto3" json:"period,omitempty"`
	// contains filtered or unexported fields
}

Control over the rate of notifications sent to this alert policy's notification channels.

func (*AlertPolicy_AlertStrategy_NotificationRateLimit) Descriptor

Deprecated: Use AlertPolicy_AlertStrategy_NotificationRateLimit.ProtoReflect.Descriptor instead.

func (*AlertPolicy_AlertStrategy_NotificationRateLimit) GetPeriod

func (*AlertPolicy_AlertStrategy_NotificationRateLimit) ProtoMessage

func (*AlertPolicy_AlertStrategy_NotificationRateLimit) ProtoReflect

func (*AlertPolicy_AlertStrategy_NotificationRateLimit) Reset

func (*AlertPolicy_AlertStrategy_NotificationRateLimit) String

AlertPolicy_Condition

type AlertPolicy_Condition struct {

	// Required if the condition exists. The unique resource name for this
	// condition. Its format is:
	//
	//	projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
	//
	// `[CONDITION_ID]` is assigned by Cloud Monitoring when the
	// condition is created as part of a new or updated alerting policy.
	//
	// When calling the
	// [alertPolicies.create][google.monitoring.v3.AlertPolicyService.CreateAlertPolicy]
	// method, do not include the `name` field in the conditions of the
	// requested alerting policy. Cloud Monitoring creates the
	// condition identifiers and includes them in the new policy.
	//
	// When calling the
	// [alertPolicies.update][google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy]
	// method to update a policy, including a condition `name` causes the
	// existing condition to be updated. Conditions without names are added to
	// the updated policy. Existing conditions are deleted if they are not
	// updated.
	//
	// Best practice is to preserve `[CONDITION_ID]` if you make only small
	// changes, such as those to condition thresholds, durations, or trigger
	// values.  Otherwise, treat the change as a new condition and let the
	// existing condition be deleted.
	Name string `protobuf:"bytes,12,opt,name=name,proto3" json:"name,omitempty"`
	// A short name or phrase used to identify the condition in dashboards,
	// notifications, and incidents. To avoid confusion, don't use the same
	// display name for multiple conditions in the same policy.
	DisplayName string `protobuf:"bytes,6,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Only one of the following condition types will be specified.
	//
	// Types that are assignable to Condition:
	//
	//	*AlertPolicy_Condition_ConditionThreshold
	//	*AlertPolicy_Condition_ConditionAbsent
	//	*AlertPolicy_Condition_ConditionMatchedLog
	//	*AlertPolicy_Condition_ConditionMonitoringQueryLanguage
	Condition isAlertPolicy_Condition_Condition `protobuf_oneof:"condition"`
	// contains filtered or unexported fields
}

A condition is a true/false test that determines when an alerting policy should open an incident. If a condition evaluates to true, it signifies that something is wrong.

func (*AlertPolicy_Condition) Descriptor

func (*AlertPolicy_Condition) Descriptor() ([]byte, []int)

Deprecated: Use AlertPolicy_Condition.ProtoReflect.Descriptor instead.

func (*AlertPolicy_Condition) GetCondition

func (m *AlertPolicy_Condition) GetCondition() isAlertPolicy_Condition_Condition

func (*AlertPolicy_Condition) GetConditionAbsent

func (*AlertPolicy_Condition) GetConditionMatchedLog

func (x *AlertPolicy_Condition) GetConditionMatchedLog() *AlertPolicy_Condition_LogMatch

func (*AlertPolicy_Condition) GetConditionMonitoringQueryLanguage

func (x *AlertPolicy_Condition) GetConditionMonitoringQueryLanguage() *AlertPolicy_Condition_MonitoringQueryLanguageCondition

func (*AlertPolicy_Condition) GetConditionThreshold

func (*AlertPolicy_Condition) GetDisplayName

func (x *AlertPolicy_Condition) GetDisplayName() string

func (*AlertPolicy_Condition) GetName

func (x *AlertPolicy_Condition) GetName() string

func (*AlertPolicy_Condition) ProtoMessage

func (*AlertPolicy_Condition) ProtoMessage()

func (*AlertPolicy_Condition) ProtoReflect

func (x *AlertPolicy_Condition) ProtoReflect() protoreflect.Message

func (*AlertPolicy_Condition) Reset

func (x *AlertPolicy_Condition) Reset()

func (*AlertPolicy_Condition) String

func (x *AlertPolicy_Condition) String() string

AlertPolicy_ConditionCombinerType

type AlertPolicy_ConditionCombinerType int32

Operators for combining conditions.

AlertPolicy_COMBINE_UNSPECIFIED, AlertPolicy_AND, AlertPolicy_OR, AlertPolicy_AND_WITH_MATCHING_RESOURCE

const (
	// An unspecified combiner.
	AlertPolicy_COMBINE_UNSPECIFIED AlertPolicy_ConditionCombinerType = 0
	// Combine conditions using the logical `AND` operator. An
	// incident is created only if all the conditions are met
	// simultaneously. This combiner is satisfied if all conditions are
	// met, even if they are met on completely different resources.
	AlertPolicy_AND AlertPolicy_ConditionCombinerType = 1
	// Combine conditions using the logical `OR` operator. An incident
	// is created if any of the listed conditions is met.
	AlertPolicy_OR AlertPolicy_ConditionCombinerType = 2
	// Combine conditions using logical `AND` operator, but unlike the regular
	// `AND` option, an incident is created only if all conditions are met
	// simultaneously on at least one resource.
	AlertPolicy_AND_WITH_MATCHING_RESOURCE AlertPolicy_ConditionCombinerType = 3
)

func (AlertPolicy_ConditionCombinerType) Descriptor

func (AlertPolicy_ConditionCombinerType) Enum

func (AlertPolicy_ConditionCombinerType) EnumDescriptor

func (AlertPolicy_ConditionCombinerType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AlertPolicy_ConditionCombinerType.Descriptor instead.

func (AlertPolicy_ConditionCombinerType) Number

func (AlertPolicy_ConditionCombinerType) String

func (AlertPolicy_ConditionCombinerType) Type

AlertPolicy_Condition_ConditionAbsent

type AlertPolicy_Condition_ConditionAbsent struct {
	// A condition that checks that a time series continues to
	// receive new data points.
	ConditionAbsent *AlertPolicy_Condition_MetricAbsence `protobuf:"bytes,2,opt,name=condition_absent,json=conditionAbsent,proto3,oneof"`
}

AlertPolicy_Condition_ConditionMatchedLog

type AlertPolicy_Condition_ConditionMatchedLog struct {
	// A condition that checks for log messages matching given constraints. If
	// set, no other conditions can be present.
	ConditionMatchedLog *AlertPolicy_Condition_LogMatch `protobuf:"bytes,20,opt,name=condition_matched_log,json=conditionMatchedLog,proto3,oneof"`
}

AlertPolicy_Condition_ConditionMonitoringQueryLanguage

type AlertPolicy_Condition_ConditionMonitoringQueryLanguage struct {
	// A condition that uses the Monitoring Query Language to define
	// alerts.
	ConditionMonitoringQueryLanguage *AlertPolicy_Condition_MonitoringQueryLanguageCondition `protobuf:"bytes,19,opt,name=condition_monitoring_query_language,json=conditionMonitoringQueryLanguage,proto3,oneof"`
}

AlertPolicy_Condition_ConditionThreshold

type AlertPolicy_Condition_ConditionThreshold struct {
	// A condition that compares a time series against a threshold.
	ConditionThreshold *AlertPolicy_Condition_MetricThreshold `protobuf:"bytes,1,opt,name=condition_threshold,json=conditionThreshold,proto3,oneof"`
}

AlertPolicy_Condition_EvaluationMissingData

type AlertPolicy_Condition_EvaluationMissingData int32

A condition control that determines how metric-threshold conditions are evaluated when data stops arriving. This control doesn't affect metric-absence policies.

AlertPolicy_Condition_EVALUATION_MISSING_DATA_UNSPECIFIED, AlertPolicy_Condition_EVALUATION_MISSING_DATA_INACTIVE, AlertPolicy_Condition_EVALUATION_MISSING_DATA_ACTIVE, AlertPolicy_Condition_EVALUATION_MISSING_DATA_NO_OP

const (
	// An unspecified evaluation missing data option.  Equivalent to
	// EVALUATION_MISSING_DATA_NO_OP.
	AlertPolicy_Condition_EVALUATION_MISSING_DATA_UNSPECIFIED AlertPolicy_Condition_EvaluationMissingData = 0
	// If there is no data to evaluate the condition, then evaluate the
	// condition as false.
	AlertPolicy_Condition_EVALUATION_MISSING_DATA_INACTIVE AlertPolicy_Condition_EvaluationMissingData = 1
	// If there is no data to evaluate the condition, then evaluate the
	// condition as true.
	AlertPolicy_Condition_EVALUATION_MISSING_DATA_ACTIVE AlertPolicy_Condition_EvaluationMissingData = 2
	// Do not evaluate the condition to any value if there is no data.
	AlertPolicy_Condition_EVALUATION_MISSING_DATA_NO_OP AlertPolicy_Condition_EvaluationMissingData = 3
)

func (AlertPolicy_Condition_EvaluationMissingData) Descriptor

func (AlertPolicy_Condition_EvaluationMissingData) Enum

func (AlertPolicy_Condition_EvaluationMissingData) EnumDescriptor

func (AlertPolicy_Condition_EvaluationMissingData) EnumDescriptor() ([]byte, []int)

Deprecated: Use AlertPolicy_Condition_EvaluationMissingData.Descriptor instead.

func (AlertPolicy_Condition_EvaluationMissingData) Number

func (AlertPolicy_Condition_EvaluationMissingData) String

func (AlertPolicy_Condition_EvaluationMissingData) Type

AlertPolicy_Condition_LogMatch

type AlertPolicy_Condition_LogMatch struct {
	Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`

	LabelExtractors map[string]string "" /* 194 byte string literal not displayed */

}

A condition type that checks whether a log message in the scoping project satisfies the given filter. Logs from other projects in the metrics scope are not evaluated.

func (*AlertPolicy_Condition_LogMatch) Descriptor

func (*AlertPolicy_Condition_LogMatch) Descriptor() ([]byte, []int)

Deprecated: Use AlertPolicy_Condition_LogMatch.ProtoReflect.Descriptor instead.

func (*AlertPolicy_Condition_LogMatch) GetFilter

func (x *AlertPolicy_Condition_LogMatch) GetFilter() string

func (*AlertPolicy_Condition_LogMatch) GetLabelExtractors

func (x *AlertPolicy_Condition_LogMatch) GetLabelExtractors() map[string]string

func (*AlertPolicy_Condition_LogMatch) ProtoMessage

func (*AlertPolicy_Condition_LogMatch) ProtoMessage()

func (*AlertPolicy_Condition_LogMatch) ProtoReflect

func (*AlertPolicy_Condition_LogMatch) Reset

func (x *AlertPolicy_Condition_LogMatch) Reset()

func (*AlertPolicy_Condition_LogMatch) String

AlertPolicy_Condition_MetricAbsence

type AlertPolicy_Condition_MetricAbsence struct {

	// Required. A [filter](https://cloud.google.com/monitoring/api/v3/filters) that
	// identifies which time series should be compared with the threshold.
	//
	// The filter is similar to the one that is specified in the
	// [`ListTimeSeries`
	// request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list)
	// (that call is useful to verify the time series that will be retrieved /
	// processed). The filter must specify the metric type and the resource
	// type. Optionally, it can specify resource labels and metric labels.
	// This field must not exceed 2048 Unicode characters in length.
	Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	// Specifies the alignment of data points in individual time series as
	// well as how to combine the retrieved time series together (such as
	// when aggregating multiple streams on each resource to a single
	// stream for each resource or when aggregating streams across all
	// members of a group of resources). Multiple aggregations
	// are applied in the order specified.
	//
	// This field is similar to the one in the [`ListTimeSeries`
	// request](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).
	// It is advisable to use the `ListTimeSeries` method when debugging this
	// field.
	Aggregations []*Aggregation `protobuf:"bytes,5,rep,name=aggregations,proto3" json:"aggregations,omitempty"`
	// The amount of time that a time series must fail to report new
	// data to be considered failing. The minimum value of this field
	// is 120 seconds. Larger values that are a multiple of a
	// minute--for example, 240 or 300 seconds--are supported.
	// If an invalid value is given, an
	// error will be returned. The `Duration.nanos` field is
	// ignored.
	Duration *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"`
	// The number/percent of time series for which the comparison must hold
	// in order for the condition to trigger. If unspecified, then the
	// condition will trigger if the comparison is true for any of the
	// time series that have been identified by `filter` and `aggregations`.
	Trigger *AlertPolicy_Condition_Trigger `protobuf:"bytes,3,opt,name=trigger,proto3" json:"trigger,omitempty"`
	// contains filtered or unexported fields
}

A condition type that checks that monitored resources are reporting data. The configuration defines a metric and a set of monitored resources. The predicate is considered in violation when a time series for the specified metric of a monitored resource does not include any data in the specified duration.

func (*AlertPolicy_Condition_MetricAbsence) Descriptor

func (*AlertPolicy_Condition_MetricAbsence) Descriptor() ([]byte, []int)

Deprecated: Use AlertPolicy_Condition_MetricAbsence.ProtoReflect.Descriptor instead.

func (*AlertPolicy_Condition_MetricAbsence) GetAggregations

func (x *AlertPolicy_Condition_MetricAbsence) GetAggregations() []*Aggregation

func (*AlertPolicy_Condition_MetricAbsence) GetDuration

func (*AlertPolicy_Condition_MetricAbsence) GetFilter

func (*AlertPolicy_Condition_MetricAbsence) GetTrigger

func (*AlertPolicy_Condition_MetricAbsence) ProtoMessage

func (*AlertPolicy_Condition_MetricAbsence) ProtoMessage()

func (*AlertPolicy_Condition_MetricAbsence) ProtoReflect

func (*AlertPolicy_Condition_MetricAbsence) Reset

func (*AlertPolicy_Condition_MetricAbsence) String

AlertPolicy_Condition_MetricThreshold

type AlertPolicy_Condition_MetricThreshold struct {
	Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`

	Aggregations []*Aggregation `protobuf:"bytes,8,rep,name=aggregations,proto3" json:"aggregations,omitempty"`

	DenominatorFilter string `protobuf:"bytes,9,opt,name=denominator_filter,json=denominatorFilter,proto3" json:"denominator_filter,omitempty"`

	DenominatorAggregations []*Aggregation "" /* 131 byte string literal not displayed */

	Comparison ComparisonType `protobuf:"varint,4,opt,name=comparison,proto3,enum=google.monitoring.v3.ComparisonType" json:"comparison,omitempty"`

	ThresholdValue float64 `protobuf:"fixed64,5,opt,name=threshold_value,json=thresholdValue,proto3" json:"threshold_value,omitempty"`

	Duration *durationpb.Duration `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"`

	Trigger *AlertPolicy_Condition_Trigger `protobuf:"bytes,7,opt,name=trigger,proto3" json:"trigger,omitempty"`

	EvaluationMissingData AlertPolicy_Condition_EvaluationMissingData "" /* 198 byte string literal not displayed */

}

A condition type that compares a collection of time series against a threshold.

func (*AlertPolicy_Condition_MetricThreshold) Descriptor

func (*AlertPolicy_Condition_MetricThreshold) Descriptor() ([]byte, []int)

Deprecated: Use AlertPolicy_Condition_MetricThreshold.ProtoReflect.Descriptor instead.

func (*AlertPolicy_Condition_MetricThreshold) GetAggregations

func (x *AlertPolicy_Condition_MetricThreshold) GetAggregations() []*Aggregation

func (*AlertPolicy_Condition_MetricThreshold) GetComparison

func (*AlertPolicy_Condition_MetricThreshold) GetDenominatorAggregations

func (x *AlertPolicy_Condition_MetricThreshold) GetDenominatorAggregations() []*Aggregation

func (*AlertPolicy_Condition_MetricThreshold) GetDenominatorFilter

func (x *AlertPolicy_Condition_MetricThreshold) GetDenominatorFilter() string

func (*AlertPolicy_Condition_MetricThreshold) GetDuration

func (*AlertPolicy_Condition_MetricThreshold) GetEvaluationMissingData

func (*AlertPolicy_Condition_MetricThreshold) GetFilter

func (*AlertPolicy_Condition_MetricThreshold) GetThresholdValue

func (x *AlertPolicy_Condition_MetricThreshold) GetThresholdValue() float64

func (*AlertPolicy_Condition_MetricThreshold) GetTrigger

func (*AlertPolicy_Condition_MetricThreshold) ProtoMessage

func (*AlertPolicy_Condition_MetricThreshold) ProtoMessage()

func (*AlertPolicy_Condition_MetricThreshold) ProtoReflect

func (*AlertPolicy_Condition_MetricThreshold) Reset

func (*AlertPolicy_Condition_MetricThreshold) String

AlertPolicy_Condition_MonitoringQueryLanguageCondition

type AlertPolicy_Condition_MonitoringQueryLanguageCondition struct {
	Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`

	Duration *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"`

	Trigger *AlertPolicy_Condition_Trigger `protobuf:"bytes,3,opt,name=trigger,proto3" json:"trigger,omitempty"`

	EvaluationMissingData AlertPolicy_Condition_EvaluationMissingData "" /* 197 byte string literal not displayed */

}

A condition type that allows alert policies to be defined using Monitoring Query Language.

func (*AlertPolicy_Condition_MonitoringQueryLanguageCondition) Descriptor

Deprecated: Use AlertPolicy_Condition_MonitoringQueryLanguageCondition.ProtoReflect.Descriptor instead.

func (*AlertPolicy_Condition_MonitoringQueryLanguageCondition) GetDuration

func (*AlertPolicy_Condition_MonitoringQueryLanguageCondition) GetEvaluationMissingData

func (*AlertPolicy_Condition_MonitoringQueryLanguageCondition) GetQuery

func (*AlertPolicy_Condition_MonitoringQueryLanguageCondition) GetTrigger

func (*AlertPolicy_Condition_MonitoringQueryLanguageCondition) ProtoMessage

func (*AlertPolicy_Condition_MonitoringQueryLanguageCondition) ProtoReflect

func (*AlertPolicy_Condition_MonitoringQueryLanguageCondition) Reset

func (*AlertPolicy_Condition_MonitoringQueryLanguageCondition) String

AlertPolicy_Condition_Trigger

type AlertPolicy_Condition_Trigger struct {

	// A type of trigger.
	//
	// Types that are assignable to Type:
	//
	//	*AlertPolicy_Condition_Trigger_Count
	//	*AlertPolicy_Condition_Trigger_Percent
	Type isAlertPolicy_Condition_Trigger_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

Specifies how many time series must fail a predicate to trigger a condition. If not specified, then a {count: 1} trigger is used.

func (*AlertPolicy_Condition_Trigger) Descriptor

func (*AlertPolicy_Condition_Trigger) Descriptor() ([]byte, []int)

Deprecated: Use AlertPolicy_Condition_Trigger.ProtoReflect.Descriptor instead.

func (*AlertPolicy_Condition_Trigger) GetCount

func (x *AlertPolicy_Condition_Trigger) GetCount() int32

func (*AlertPolicy_Condition_Trigger) GetPercent

func (x *AlertPolicy_Condition_Trigger) GetPercent() float64

func (*AlertPolicy_Condition_Trigger) GetType

func (m *AlertPolicy_Condition_Trigger) GetType() isAlertPolicy_Condition_Trigger_Type

func (*AlertPolicy_Condition_Trigger) ProtoMessage

func (*AlertPolicy_Condition_Trigger) ProtoMessage()

func (*AlertPolicy_Condition_Trigger) ProtoReflect

func (*AlertPolicy_Condition_Trigger) Reset

func (x *AlertPolicy_Condition_Trigger) Reset()

func (*AlertPolicy_Condition_Trigger) String

AlertPolicy_Condition_Trigger_Count

type AlertPolicy_Condition_Trigger_Count struct {
	// The absolute number of time series that must fail
	// the predicate for the condition to be triggered.
	Count int32 `protobuf:"varint,1,opt,name=count,proto3,oneof"`
}

AlertPolicy_Condition_Trigger_Percent

type AlertPolicy_Condition_Trigger_Percent struct {
	// The percentage of time series that must fail the
	// predicate for the condition to be triggered.
	Percent float64 `protobuf:"fixed64,2,opt,name=percent,proto3,oneof"`
}

AlertPolicy_Documentation

type AlertPolicy_Documentation struct {

	// The text of the documentation, interpreted according to `mime_type`.
	// The content may not exceed 8,192 Unicode characters and may not exceed
	// more than 10,240 bytes when encoded in UTF-8 format, whichever is
	// smaller. This text can be [templatized by using
	// variables](https://cloud.google.com/monitoring/alerts/doc-variables).
	Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	// The format of the `content` field. Presently, only the value
	// `"text/markdown"` is supported. See
	// [Markdown](https://en.wikipedia.org/wiki/Markdown) for more information.
	MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
	// contains filtered or unexported fields
}

A content string and a MIME type that describes the content string's format.

func (*AlertPolicy_Documentation) Descriptor

func (*AlertPolicy_Documentation) Descriptor() ([]byte, []int)

Deprecated: Use AlertPolicy_Documentation.ProtoReflect.Descriptor instead.

func (*AlertPolicy_Documentation) GetContent

func (x *AlertPolicy_Documentation) GetContent() string

func (*AlertPolicy_Documentation) GetMimeType

func (x *AlertPolicy_Documentation) GetMimeType() string

func (*AlertPolicy_Documentation) ProtoMessage

func (*AlertPolicy_Documentation) ProtoMessage()

func (*AlertPolicy_Documentation) ProtoReflect

func (*AlertPolicy_Documentation) Reset

func (x *AlertPolicy_Documentation) Reset()

func (*AlertPolicy_Documentation) String

func (x *AlertPolicy_Documentation) String() string

BasicSli

type BasicSli struct {

	// OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
	// other methods will not be used to calculate performance for this SLI. If
	// omitted, this SLI applies to all the Service's methods. For service types
	// that don't support breaking down by method, setting this field will result
	// in an error.
	Method []string `protobuf:"bytes,7,rep,name=method,proto3" json:"method,omitempty"`
	// OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
	// from other locations will not be used to calculate performance for this
	// SLI. If omitted, this SLI applies to all locations in which the Service has
	// activity. For service types that don't support breaking down by location,
	// setting this field will result in an error.
	Location []string `protobuf:"bytes,8,rep,name=location,proto3" json:"location,omitempty"`
	// OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
	// from other API versions will not be used to calculate performance for this
	// SLI. If omitted, this SLI applies to all API versions. For service types
	// that don't support breaking down by version, setting this field will result
	// in an error.
	Version []string `protobuf:"bytes,9,rep,name=version,proto3" json:"version,omitempty"`
	// This SLI can be evaluated on the basis of availability or latency.
	//
	// Types that are assignable to SliCriteria:
	//
	//	*BasicSli_Availability
	//	*BasicSli_Latency
	SliCriteria isBasicSli_SliCriteria `protobuf_oneof:"sli_criteria"`
	// contains filtered or unexported fields
}

An SLI measuring performance on a well-known service type. Performance will be computed on the basis of pre-defined metrics. The type of the service_resource determines the metrics to use and the service_resource.labels and metric_labels are used to construct a monitoring filter to filter that metric down to just the data relevant to this service.

func (*BasicSli) Descriptor

func (*BasicSli) Descriptor() ([]byte, []int)

Deprecated: Use BasicSli.ProtoReflect.Descriptor instead.

func (*BasicSli) GetAvailability

func (x *BasicSli) GetAvailability() *BasicSli_AvailabilityCriteria

func (*BasicSli) GetLatency

func (x *BasicSli) GetLatency() *BasicSli_LatencyCriteria

func (*BasicSli) GetLocation

func (x *BasicSli) GetLocation() []string

func (*BasicSli) GetMethod

func (x *BasicSli) GetMethod() []string

func (*BasicSli) GetSliCriteria

func (m *BasicSli) GetSliCriteria() isBasicSli_SliCriteria

func (*BasicSli) GetVersion

func (x *BasicSli) GetVersion() []string

func (*BasicSli) ProtoMessage

func (*BasicSli) ProtoMessage()

func (*BasicSli) ProtoReflect

func (x *BasicSli) ProtoReflect() protoreflect.Message

func (*BasicSli) Reset

func (x *BasicSli) Reset()

func (*BasicSli) String

func (x *BasicSli) String() string

BasicSli_Availability

type BasicSli_Availability struct {
	// Good service is defined to be the count of requests made to this service
	// that return successfully.
	Availability *BasicSli_AvailabilityCriteria `protobuf:"bytes,2,opt,name=availability,proto3,oneof"`
}

BasicSli_AvailabilityCriteria

type BasicSli_AvailabilityCriteria struct {
	// contains filtered or unexported fields
}

Future parameters for the availability SLI.

func (*BasicSli_AvailabilityCriteria) Descriptor

func (*BasicSli_AvailabilityCriteria) Descriptor() ([]byte, []int)

Deprecated: Use BasicSli_AvailabilityCriteria.ProtoReflect.Descriptor instead.

func (*BasicSli_AvailabilityCriteria) ProtoMessage

func (*BasicSli_AvailabilityCriteria) ProtoMessage()

func (*BasicSli_AvailabilityCriteria) ProtoReflect

func (*BasicSli_AvailabilityCriteria) Reset

func (x *BasicSli_AvailabilityCriteria) Reset()

func (*BasicSli_AvailabilityCriteria) String

BasicSli_Latency

type BasicSli_Latency struct {
	// Good service is defined to be the count of requests made to this service
	// that are fast enough with respect to `latency.threshold`.
	Latency *BasicSli_LatencyCriteria `protobuf:"bytes,3,opt,name=latency,proto3,oneof"`
}

BasicSli_LatencyCriteria

type BasicSli_LatencyCriteria struct {

	// Good service is defined to be the count of requests made to this service
	// that return in no more than `threshold`.
	Threshold *durationpb.Duration `protobuf:"bytes,3,opt,name=threshold,proto3" json:"threshold,omitempty"`
	// contains filtered or unexported fields
}

Parameters for a latency threshold SLI.

func (*BasicSli_LatencyCriteria) Descriptor

func (*BasicSli_LatencyCriteria) Descriptor() ([]byte, []int)

Deprecated: Use BasicSli_LatencyCriteria.ProtoReflect.Descriptor instead.

func (*BasicSli_LatencyCriteria) GetThreshold

func (x *BasicSli_LatencyCriteria) GetThreshold() *durationpb.Duration

func (*BasicSli_LatencyCriteria) ProtoMessage

func (*BasicSli_LatencyCriteria) ProtoMessage()

func (*BasicSli_LatencyCriteria) ProtoReflect

func (x *BasicSli_LatencyCriteria) ProtoReflect() protoreflect.Message

func (*BasicSli_LatencyCriteria) Reset

func (x *BasicSli_LatencyCriteria) Reset()

func (*BasicSli_LatencyCriteria) String

func (x *BasicSli_LatencyCriteria) String() string

ComparisonType

type ComparisonType int32

Specifies an ordering relationship on two arguments, called left and right.

ComparisonType_COMPARISON_UNSPECIFIED, ComparisonType_COMPARISON_GT, ComparisonType_COMPARISON_GE, ComparisonType_COMPARISON_LT, ComparisonType_COMPARISON_LE, ComparisonType_COMPARISON_EQ, ComparisonType_COMPARISON_NE

const (
	// No ordering relationship is specified.
	ComparisonType_COMPARISON_UNSPECIFIED ComparisonType = 0
	// True if the left argument is greater than the right argument.
	ComparisonType_COMPARISON_GT ComparisonType = 1
	// True if the left argument is greater than or equal to the right argument.
	ComparisonType_COMPARISON_GE ComparisonType = 2
	// True if the left argument is less than the right argument.
	ComparisonType_COMPARISON_LT ComparisonType = 3
	// True if the left argument is less than or equal to the right argument.
	ComparisonType_COMPARISON_LE ComparisonType = 4
	// True if the left argument is equal to the right argument.
	ComparisonType_COMPARISON_EQ ComparisonType = 5
	// True if the left argument is not equal to the right argument.
	ComparisonType_COMPARISON_NE ComparisonType = 6
)

func (ComparisonType) Descriptor

func (ComparisonType) Enum

func (x ComparisonType) Enum() *ComparisonType

func (ComparisonType) EnumDescriptor

func (ComparisonType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ComparisonType.Descriptor instead.

func (ComparisonType) Number

func (ComparisonType) String

func (x ComparisonType) String() string

func (ComparisonType) Type

CreateAlertPolicyRequest

type CreateAlertPolicyRequest struct {

	// Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
	// which to create the alerting policy. The format is:
	//
	//	projects/[PROJECT_ID_OR_NUMBER]
	//
	// Note that this field names the parent container in which the alerting
	// policy will be written, not the name of the created policy. |name| must be
	// a host project of a Metrics Scope, otherwise INVALID_ARGUMENT error will
	// return. The alerting policy that is returned will have a name that contains
	// a normalized representation of this name as a prefix but adds a suffix of
	// the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
	// container.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The requested alerting policy. You should omit the `name` field in this
	// policy. The name will be returned in the new policy, including
	// a new `[ALERT_POLICY_ID]` value.
	AlertPolicy *AlertPolicy `protobuf:"bytes,2,opt,name=alert_policy,json=alertPolicy,proto3" json:"alert_policy,omitempty"`
	// contains filtered or unexported fields
}

The protocol for the CreateAlertPolicy request.

func (*CreateAlertPolicyRequest) Descriptor

func (*CreateAlertPolicyRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateAlertPolicyRequest.ProtoReflect.Descriptor instead.

func (*CreateAlertPolicyRequest) GetAlertPolicy

func (x *CreateAlertPolicyRequest) GetAlertPolicy() *AlertPolicy

func (*CreateAlertPolicyRequest) GetName

func (x *CreateAlertPolicyRequest) GetName() string

func (*CreateAlertPolicyRequest) ProtoMessage

func (*CreateAlertPolicyRequest) ProtoMessage()

func (*CreateAlertPolicyRequest) ProtoReflect

func (x *CreateAlertPolicyRequest) ProtoReflect() protoreflect.Message

func (*CreateAlertPolicyRequest) Reset

func (x *CreateAlertPolicyRequest) Reset()

func (*CreateAlertPolicyRequest) String

func (x *CreateAlertPolicyRequest) String() string

CreateGroupRequest

type CreateGroupRequest struct {

	// Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
	// which to create the group. The format is:
	//
	//	projects/[PROJECT_ID_OR_NUMBER]
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Required. A group definition. It is an error to define the `name` field because
	// the system assigns the name.
	Group *Group `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"`
	// If true, validate this request but do not create the group.
	ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
	// contains filtered or unexported fields
}

The CreateGroup request.

func (*CreateGroupRequest) Descriptor

func (*CreateGroupRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateGroupRequest.ProtoReflect.Descriptor instead.

func (*CreateGroupRequest) GetGroup

func (x *CreateGroupRequest) GetGroup() *Group

func (*CreateGroupRequest) GetName

func (x *CreateGroupRequest) GetName() string

func (*CreateGroupRequest) GetValidateOnly

func (x *CreateGroupRequest) GetValidateOnly() bool

func (*CreateGroupRequest) ProtoMessage

func (*CreateGroupRequest) ProtoMessage()

func (*CreateGroupRequest) ProtoReflect

func (x *CreateGroupRequest) ProtoReflect() protoreflect.Message

func (*CreateGroupRequest) Reset

func (x *CreateGroupRequest) Reset()

func (*CreateGroupRequest) String

func (x *CreateGroupRequest) String() string

CreateMetricDescriptorRequest

type CreateMetricDescriptorRequest struct {

	// Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
	// which to execute the request. The format is:
	// 4
	//
	//	projects/[PROJECT_ID_OR_NUMBER]
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
	// descriptor.
	MetricDescriptor *metric.MetricDescriptor `protobuf:"bytes,2,opt,name=metric_descriptor,json=metricDescriptor,proto3" json:"metric_descriptor,omitempty"`
	// contains filtered or unexported fields
}

The CreateMetricDescriptor request.

func (*CreateMetricDescriptorRequest) Descriptor

func (*CreateMetricDescriptorRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateMetricDescriptorRequest.ProtoReflect.Descriptor instead.

func (*CreateMetricDescriptorRequest) GetMetricDescriptor

func (x *CreateMetricDescriptorRequest) GetMetricDescriptor() *metric.MetricDescriptor

func (*CreateMetricDescriptorRequest) GetName

func (*CreateMetricDescriptorRequest) ProtoMessage

func (*CreateMetricDescriptorRequest) ProtoMessage()

func (*CreateMetricDescriptorRequest) ProtoReflect

func (*CreateMetricDescriptorRequest) Reset

func (x *CreateMetricDescriptorRequest) Reset()

func (*CreateMetricDescriptorRequest) String

CreateNotificationChannelRequest

type CreateNotificationChannelRequest struct {

	// Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
	// which to execute the request. The format is:
	//
	//	projects/[PROJECT_ID_OR_NUMBER]
	//
	// This names the container into which the channel will be
	// written, this does not name the newly created channel. The resulting
	// channel's name will have a normalized version of this field as a prefix,
	// but will add `/notificationChannels/[CHANNEL_ID]` to identify the channel.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The definition of the `NotificationChannel` to create.
	NotificationChannel *NotificationChannel `protobuf:"bytes,2,opt,name=notification_channel,json=notificationChannel,proto3" json:"notification_channel,omitempty"`
	// contains filtered or unexported fields
}

The CreateNotificationChannel request.

func (*CreateNotificationChannelRequest) Descriptor

func (*CreateNotificationChannelRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateNotificationChannelRequest.ProtoReflect.Descriptor instead.

func (*CreateNotificationChannelRequest) GetName

func (*CreateNotificationChannelRequest) GetNotificationChannel

func (x *CreateNotificationChannelRequest) GetNotificationChannel() *NotificationChannel

func (*CreateNotificationChannelRequest) ProtoMessage

func (*CreateNotificationChannelRequest) ProtoMessage()

func (*CreateNotificationChannelRequest) ProtoReflect

func (*CreateNotificationChannelRequest) Reset

func (*CreateNotificationChannelRequest) String

CreateServiceLevelObjectiveRequest

type CreateServiceLevelObjectiveRequest struct {
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`

	ServiceLevelObjectiveId string "" /* 134 byte string literal not displayed */

	ServiceLevelObjective *ServiceLevelObjective `protobuf:"bytes,2,opt,name=service_level_objective,json=serviceLevelObjective,proto3" json:"service_level_objective,omitempty"`

}

The CreateServiceLevelObjective request.

func (*CreateServiceLevelObjectiveRequest) Descriptor

func (*CreateServiceLevelObjectiveRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateServiceLevelObjectiveRequest.ProtoReflect.Descriptor instead.

func (*CreateServiceLevelObjectiveRequest) GetParent

func (*CreateServiceLevelObjectiveRequest) GetServiceLevelObjective

func (x *CreateServiceLevelObjectiveRequest) GetServiceLevelObjective() *ServiceLevelObjective

func (*CreateServiceLevelObjectiveRequest) GetServiceLevelObjectiveId

func (x *CreateServiceLevelObjectiveRequest) GetServiceLevelObjectiveId() string

func (*CreateServiceLevelObjectiveRequest) ProtoMessage

func (*CreateServiceLevelObjectiveRequest) ProtoMessage()

func (*CreateServiceLevelObjectiveRequest) ProtoReflect

func (*CreateServiceLevelObjectiveRequest) Reset

func (*CreateServiceLevelObjectiveRequest) String

CreateServiceRequest

type CreateServiceRequest struct {

	// Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of
	// the parent workspace. The format is:
	//
	//	projects/[PROJECT_ID_OR_NUMBER]
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The Service id to use for this Service. If omitted, an id will be
	// generated instead. Must match the pattern `[a-z0-9\-]+`
	ServiceId string `protobuf:"bytes,3,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// Required. The `Service` to create.
	Service *Service `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
	// contains filtered or unexported fields
}

The CreateService request.

func (*CreateServiceRequest) Descriptor

func (*CreateServiceRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateServiceRequest.ProtoReflect.Descriptor instead.

func (*CreateServiceRequest) GetParent

func (x *CreateServiceRequest) GetParent() string

func (*CreateServiceRequest) GetService

func (x *CreateServiceRequest) GetService() *Service

func (*CreateServiceRequest) GetServiceId

func (x *CreateServiceRequest) GetServiceId() string

func (*CreateServiceRequest) ProtoMessage

func (*CreateServiceRequest) ProtoMessage()

func (*CreateServiceRequest) ProtoReflect

func (x *CreateServiceRequest) ProtoReflect() protoreflect.Message

func (*CreateServiceRequest) Reset

func (x *CreateServiceRequest) Reset()

func (*CreateServiceRequest) String

func (x *CreateServiceRequest) String() string

CreateTimeSeriesError

type CreateTimeSeriesError struct {

	// DEPRECATED. Time series ID that resulted in the `status` error.
	//
	// Deprecated: Do not use.
	TimeSeries *TimeSeries `protobuf:"bytes,1,opt,name=time_series,json=timeSeries,proto3" json:"time_series,omitempty"`
	// DEPRECATED. The status of the requested write operation for `time_series`.
	//
	// Deprecated: Do not use.
	Status *status.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

DEPRECATED. Used to hold per-time-series error status.

func (*CreateTimeSeriesError) Descriptor

func (*CreateTimeSeriesError) Descriptor() ([]byte, []int)

Deprecated: Use CreateTimeSeriesError.ProtoReflect.Descriptor instead.

func (*CreateTimeSeriesError) GetStatus

func (x *CreateTimeSeriesError) GetStatus() *status.Status

Deprecated: Do not use.

func (*CreateTimeSeriesError) GetTimeSeries

func (x *CreateTimeSeriesError) GetTimeSeries() *TimeSeries

Deprecated: Do not use.

func (*CreateTimeSeriesError) ProtoMessage

func (*CreateTimeSeriesError) ProtoMessage()

func (*CreateTimeSeriesError) ProtoReflect

func (x *CreateTimeSeriesError) ProtoReflect() protoreflect.Message

func (*CreateTimeSeriesError) Reset

func (x *CreateTimeSeriesError) Reset()

func (*CreateTimeSeriesError) String

func (x *CreateTimeSeriesError) String() string

CreateTimeSeriesRequest

type CreateTimeSeriesRequest struct {

	// Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
	// which to execute the request. The format is:
	//
	//	projects/[PROJECT_ID_OR_NUMBER]
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The new data to be added to a list of time series.
	// Adds at most one data point to each of several time series.  The new data
	// point must be more recent than any other point in its time series.  Each
	// `TimeSeries` value must fully specify a unique time series by supplying
	// all label values for the metric and the monitored resource.
	//
	// The maximum number of `TimeSeries` objects per `Create` request is 200.
	TimeSeries []*TimeSeries `protobuf:"bytes,2,rep,name=time_series,json=timeSeries,proto3" json:"time_series,omitempty"`
	// contains filtered or unexported fields
}

The CreateTimeSeries request.

func (*CreateTimeSeriesRequest) Descriptor

func (*CreateTimeSeriesRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateTimeSeriesRequest.ProtoReflect.Descriptor instead.

func (*CreateTimeSeriesRequest) GetName

func (x *CreateTimeSeriesRequest) GetName() string

func (*CreateTimeSeriesRequest) GetTimeSeries

func (x *CreateTimeSeriesRequest) GetTimeSeries() []*TimeSeries

func (*CreateTimeSeriesRequest) ProtoMessage

func (*CreateTimeSeriesRequest) ProtoMessage()

func (*CreateTimeSeriesRequest) ProtoReflect

func (x *CreateTimeSeriesRequest) ProtoReflect() protoreflect.Message

func (*CreateTimeSeriesRequest) Reset

func (x *CreateTimeSeriesRequest) Reset()

func (*CreateTimeSeriesRequest) String

func (x *CreateTimeSeriesRequest) String() string

CreateTimeSeriesSummary

type CreateTimeSeriesSummary struct {

	// The number of points in the request.
	TotalPointCount int32 `protobuf:"varint,1,opt,name=total_point_count,json=totalPointCount,proto3" json:"total_point_count,omitempty"`
	// The number of points that were successfully written.
	SuccessPointCount int32 `protobuf:"varint,2,opt,name=success_point_count,json=successPointCount,proto3" json:"success_point_count,omitempty"`
	// The number of points that failed to be written. Order is not guaranteed.
	Errors []*CreateTimeSeriesSummary_Error `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"`
	// contains filtered or unexported fields
}

Summary of the result of a failed request to write data to a time series.

func (*CreateTimeSeriesSummary) Descriptor

func (*CreateTimeSeriesSummary) Descriptor() ([]byte, []int)

Deprecated: Use CreateTimeSeriesSummary.ProtoReflect.Descriptor instead.

func (*CreateTimeSeriesSummary) GetErrors

func (*CreateTimeSeriesSummary) GetSuccessPointCount

func (x *CreateTimeSeriesSummary) GetSuccessPointCount() int32

func (*CreateTimeSeriesSummary) GetTotalPointCount

func (x *CreateTimeSeriesSummary) GetTotalPointCount() int32

func (*CreateTimeSeriesSummary) ProtoMessage

func (*CreateTimeSeriesSummary) ProtoMessage()

func (*CreateTimeSeriesSummary) ProtoReflect

func (x *CreateTimeSeriesSummary) ProtoReflect() protoreflect.Message

func (*CreateTimeSeriesSummary) Reset

func (x *CreateTimeSeriesSummary) Reset()

func (*CreateTimeSeriesSummary) String

func (x *CreateTimeSeriesSummary) String() string

CreateTimeSeriesSummary_Error

type CreateTimeSeriesSummary_Error struct {

	// The status of the requested write operation.
	Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// The number of points that couldn't be written because of `status`.
	PointCount int32 `protobuf:"varint,2,opt,name=point_count,json=pointCount,proto3" json:"point_count,omitempty"`
	// contains filtered or unexported fields
}

Detailed information about an error category.

func (*CreateTimeSeriesSummary_Error) Descriptor

func (*CreateTimeSeriesSummary_Error) Descriptor() ([]byte, []int)

Deprecated: Use CreateTimeSeriesSummary_Error.ProtoReflect.Descriptor instead.

func (*CreateTimeSeriesSummary_Error) GetPointCount

func (x *CreateTimeSeriesSummary_Error) GetPointCount() int32

func (*CreateTimeSeriesSummary_Error) GetStatus

func (*CreateTimeSeriesSummary_Error) ProtoMessage

func (*CreateTimeSeriesSummary_Error) ProtoMessage()

func (*CreateTimeSeriesSummary_Error) ProtoReflect

func (*CreateTimeSeriesSummary_Error) Reset

func (x *CreateTimeSeriesSummary_Error) Reset()

func (*CreateTimeSeriesSummary_Error) String

CreateUptimeCheckConfigRequest

type CreateUptimeCheckConfigRequest struct {

	// Required. The
	// [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
	// to create the Uptime check. The format is:
	//
	//	projects/[PROJECT_ID_OR_NUMBER]
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The new Uptime check configuration.
	UptimeCheckConfig *UptimeCheckConfig `protobuf:"bytes,2,opt,name=uptime_check_config,json=uptimeCheckConfig,proto3" json:"uptime_check_config,omitempty"`
	// contains filtered or unexported fields
}

The protocol for the CreateUptimeCheckConfig request.

func (*CreateUptimeCheckConfigRequest) Descriptor

func (*CreateUptimeCheckConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateUptimeCheckConfigRequest.ProtoReflect.Descriptor instead.

func (*CreateUptimeCheckConfigRequest) GetParent

func (x *CreateUptimeCheckConfigRequest) GetParent() string

func (*CreateUptimeCheckConfigRequest) GetUptimeCheckConfig

func (x *CreateUptimeCheckConfigRequest) GetUptimeCheckConfig() *UptimeCheckConfig

func (*CreateUptimeCheckConfigRequest) ProtoMessage

func (*CreateUptimeCheckConfigRequest) ProtoMessage()

func (*CreateUptimeCheckConfigRequest) ProtoReflect

func (*CreateUptimeCheckConfigRequest) Reset

func (x *CreateUptimeCheckConfigRequest) Reset()

func (*CreateUptimeCheckConfigRequest) String

DeleteAlertPolicyRequest

type DeleteAlertPolicyRequest struct {

	// Required. The alerting policy to delete. The format is:
	//
	//	projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
	//
	// For more information, see [AlertPolicy][google.monitoring.v3.AlertPolicy].
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

The protocol for the DeleteAlertPolicy request.

func (*DeleteAlertPolicyRequest) Descriptor

func (*DeleteAlertPolicyRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteAlertPolicyRequest.ProtoReflect.Descriptor instead.

func (*DeleteAlertPolicyRequest) GetName

func (x *DeleteAlertPolicyRequest) GetName() string

func (*DeleteAlertPolicyRequest) ProtoMessage

func (*DeleteAlertPolicyRequest) ProtoMessage()

func (*DeleteAlertPolicyRequest) ProtoReflect

func (x *DeleteAlertPolicyRequest) ProtoReflect() protoreflect.Message

func (*DeleteAlertPolicyRequest) Reset

func (x *DeleteAlertPolicyRequest) Reset()

func (*DeleteAlertPolicyRequest) String

func (x *DeleteAlertPolicyRequest) String() string

DeleteGroupRequest

type DeleteGroupRequest struct {

	// Required. The group to delete. The format is:
	//
	//	projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// If this field is true, then the request means to delete a group with all
	// its descendants. Otherwise, the request means to delete a group only when
	// it has no descendants. The default value is false.
	Recursive bool `protobuf:"varint,4,opt,name=recursive,proto3" json:"recursive,omitempty"`
	// contains filtered or unexported fields
}

The DeleteGroup request. The default behavior is to be able to delete a single group without any descendants.

func (*DeleteGroupRequest) Descriptor

func (*DeleteGroupRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteGroupRequest.ProtoReflect.Descriptor instead.

func (*DeleteGroupRequest) GetName

func (x *DeleteGroupRequest) GetName() string

func (*DeleteGroupRequest) GetRecursive

func (x *DeleteGroupRequest) GetRecursive() bool

func (*DeleteGroupRequest) ProtoMessage

func (*DeleteGroupRequest) ProtoMessage()

func (*DeleteGroupRequest) ProtoReflect

func (x *DeleteGroupRequest) ProtoReflect() protoreflect.Message

func (*DeleteGroupRequest) Reset

func (x *DeleteGroupRequest) Reset()

func (*DeleteGroupRequest) String

func (x *DeleteGroupRequest) String() string

DeleteMetricDescriptorRequest

type DeleteMetricDescriptorRequest struct {

	// Required. The metric descriptor on which to execute the request. The format is:
	//
	//	projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]
	//
	// An example of `[METRIC_ID]` is:
	// `"custom.googleapis.com/my_test_metric"`.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

The DeleteMetricDescriptor request.

func (*DeleteMetricDescriptorRequest) Descriptor

func (*DeleteMetricDescriptorRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteMetricDescriptorRequest.ProtoReflect.Descriptor instead.

func (*DeleteMetricDescriptorRequest) GetName

func (*DeleteMetricDescriptorRequest) ProtoMessage

func (*DeleteMetricDescriptorRequest) ProtoMessage()