working-config-otel
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
54
vendor/google.golang.org/api/monitoring/v3/monitoring-api.json
generated
vendored
54
vendor/google.golang.org/api/monitoring/v3/monitoring-api.json
generated
vendored
@@ -1217,7 +1217,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"pageSize": {
|
||||
"description": "A positive number that is the maximum number of results to return.",
|
||||
"description": "A positive number that is the maximum number of results to return. The default and maximum value is 10,000. If a page_size \u003c= 0 or \u003e 10,000 is submitted, will instead return a maximum of 10,000 results.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"type": "integer"
|
||||
@@ -1505,7 +1505,7 @@
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"description": "Lists the notification channels that have been created for the project.",
|
||||
"description": "Lists the notification channels that have been created for the project. To list the types of notification channels that are supported, use the ListNotificationChannelDescriptors method.",
|
||||
"flatPath": "v3/projects/{projectsId}/notificationChannels",
|
||||
"httpMethod": "GET",
|
||||
"id": "monitoring.projects.notificationChannels.list",
|
||||
@@ -2714,7 +2714,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20230212",
|
||||
"revision": "20230531",
|
||||
"rootUrl": "https://monitoring.googleapis.com/",
|
||||
"schemas": {
|
||||
"Aggregation": {
|
||||
@@ -2843,7 +2843,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"conditions": {
|
||||
"description": "A list of conditions for the policy. The conditions are combined by AND or OR according to the combiner field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions. If condition_time_series_query_language is present, it must be the only condition.",
|
||||
"description": "A list of conditions for the policy. The conditions are combined by AND or OR according to the combiner field. If the combined conditions evaluate to true, then an incident is created. A policy can have from one to six conditions. If condition_time_series_query_language is present, it must be the only condition. If condition_monitoring_query_language is present, it must be the only condition.",
|
||||
"items": {
|
||||
"$ref": "Condition"
|
||||
},
|
||||
@@ -2854,7 +2854,7 @@
|
||||
"description": "A read-only record of the creation of the alerting policy. If provided in a call to create or update, this field will be ignored."
|
||||
},
|
||||
"displayName": {
|
||||
"description": "A short name or phrase used to identify the policy in dashboards, notifications, and incidents. To avoid confusion, don't use the same display name for multiple policies in the same project. The name is limited to 512 Unicode characters.",
|
||||
"description": "A short name or phrase used to identify the policy in dashboards, notifications, and incidents. To avoid confusion, don't use the same display name for multiple policies in the same project. The name is limited to 512 Unicode characters.The convention for the display_name of a PrometheusQueryLanguageCondition is \"/\", where the and should be taken from the corresponding Prometheus configuration file. This convention is not enforced. In any case the display_name is not a unique key of the AlertPolicy.",
|
||||
"type": "string"
|
||||
},
|
||||
"documentation": {
|
||||
@@ -2884,12 +2884,12 @@
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "User-supplied key/value data to be used for organizing and identifying the AlertPolicy objects.The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.",
|
||||
"description": "User-supplied key/value data to be used for organizing and identifying the AlertPolicy objects.The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.Note that Prometheus and are valid Prometheus label names (https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels). This means that they cannot be stored as is in user labels, because Prometheus labels may contain upper-case letters.",
|
||||
"type": "object"
|
||||
},
|
||||
"validity": {
|
||||
"$ref": "Status",
|
||||
"description": "Read-only description of how the alert policy is invalid. OK if the alert policy is valid. If not OK, the alert policy will not generate incidents."
|
||||
"description": "Read-only description of how the alert policy is invalid. This field is only set when the alert policy is invalid. An invalid alert policy will not generate incidents."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -2903,6 +2903,13 @@
|
||||
"format": "google-duration",
|
||||
"type": "string"
|
||||
},
|
||||
"notificationChannelStrategy": {
|
||||
"description": "Control how notifications will be sent out, on a per-channel basis.",
|
||||
"items": {
|
||||
"$ref": "NotificationChannelStrategy"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"notificationRateLimit": {
|
||||
"$ref": "NotificationRateLimit",
|
||||
"description": "Required for alert policies with a LogMatch condition.This limit is not implemented for alert policies that are not log-based."
|
||||
@@ -3504,7 +3511,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"Exponential": {
|
||||
"description": "Specifies an exponential sequence of buckets that have a width that is proportional to the value of the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 \u003c= i \u003c N-1): scale * (growth_factor ^ i). Lower bound (1 \u003c= i \u003c N): scale * (growth_factor ^ (i - 1)).",
|
||||
"description": "Specifies an exponential sequence of buckets that have a width that is proportional to the value of the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 \u003c= i \u003c N-1): scale * (growth_factor ^ i).Lower bound (1 \u003c= i \u003c N): scale * (growth_factor ^ (i - 1)).",
|
||||
"id": "Exponential",
|
||||
"properties": {
|
||||
"growthFactor": {
|
||||
@@ -4033,7 +4040,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"Linear": {
|
||||
"description": "Specifies a linear sequence of buckets that all have the same width (except overflow and underflow). Each bucket represents a constant absolute uncertainty on the specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 \u003c= i \u003c N-1): offset + (width * i). Lower bound (1 \u003c= i \u003c N): offset + (width * (i - 1)).",
|
||||
"description": "Specifies a linear sequence of buckets that all have the same width (except overflow and underflow). Each bucket represents a constant absolute uncertainty on the specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 \u003c= i \u003c N-1): offset + (width * i).Lower bound (1 \u003c= i \u003c N): offset + (width * (i - 1)).",
|
||||
"id": "Linear",
|
||||
"properties": {
|
||||
"numFiniteBuckets": {
|
||||
@@ -4932,6 +4939,25 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"NotificationChannelStrategy": {
|
||||
"description": "Control over how the notification channels in notification_channels are notified when this alert fires, on a per-channel basis.",
|
||||
"id": "NotificationChannelStrategy",
|
||||
"properties": {
|
||||
"notificationChannelNames": {
|
||||
"description": "The full REST resource name for the notification channels that these settings apply to. Each of these correspond to the name field in one of the NotificationChannel objects referenced in the notification_channels field of this AlertPolicy. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID] ",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"renotifyInterval": {
|
||||
"description": "The frequency at which to send reminder notifications for open incidents.",
|
||||
"format": "google-duration",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"NotificationRateLimit": {
|
||||
"description": "Control over the rate of notifications sent to this alert policy's notification channels.",
|
||||
"id": "NotificationRateLimit",
|
||||
@@ -5624,6 +5650,10 @@
|
||||
"description": "A protocol buffer message type.",
|
||||
"id": "Type",
|
||||
"properties": {
|
||||
"edition": {
|
||||
"description": "The source edition string, only valid when syntax is SYNTAX_EDITIONS.",
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"description": "The list of fields.",
|
||||
"items": {
|
||||
@@ -5657,11 +5687,13 @@
|
||||
"description": "The source syntax.",
|
||||
"enum": [
|
||||
"SYNTAX_PROTO2",
|
||||
"SYNTAX_PROTO3"
|
||||
"SYNTAX_PROTO3",
|
||||
"SYNTAX_EDITIONS"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Syntax proto2.",
|
||||
"Syntax proto3."
|
||||
"Syntax proto3.",
|
||||
"Syntax editions."
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
|
108
vendor/google.golang.org/api/monitoring/v3/monitoring-gen.go
generated
vendored
108
vendor/google.golang.org/api/monitoring/v3/monitoring-gen.go
generated
vendored
@@ -77,6 +77,7 @@ var _ = errors.New
|
||||
var _ = strings.Replace
|
||||
var _ = context.Canceled
|
||||
var _ = internaloption.WithDefaultEndpoint
|
||||
var _ = internal.Version
|
||||
|
||||
const apiId = "monitoring:v3"
|
||||
const apiName = "monitoring"
|
||||
@@ -688,7 +689,8 @@ type AlertPolicy struct {
|
||||
// combined conditions evaluate to true, then an incident is created. A
|
||||
// policy can have from one to six conditions. If
|
||||
// condition_time_series_query_language is present, it must be the only
|
||||
// condition.
|
||||
// condition. If condition_monitoring_query_language is present, it must
|
||||
// be the only condition.
|
||||
Conditions []*Condition `json:"conditions,omitempty"`
|
||||
|
||||
// CreationRecord: A read-only record of the creation of the alerting
|
||||
@@ -699,7 +701,11 @@ type AlertPolicy struct {
|
||||
// DisplayName: A short name or phrase used to identify the policy in
|
||||
// dashboards, notifications, and incidents. To avoid confusion, don't
|
||||
// use the same display name for multiple policies in the same project.
|
||||
// The name is limited to 512 Unicode characters.
|
||||
// The name is limited to 512 Unicode characters.The convention for the
|
||||
// display_name of a PrometheusQueryLanguageCondition is "/", where the
|
||||
// and should be taken from the corresponding Prometheus configuration
|
||||
// file. This convention is not enforced. In any case the display_name
|
||||
// is not a unique key of the AlertPolicy.
|
||||
DisplayName string `json:"displayName,omitempty"`
|
||||
|
||||
// Documentation: Documentation that is included with notifications and
|
||||
@@ -746,12 +752,16 @@ type AlertPolicy struct {
|
||||
// 64 entries. Each key and value is limited to 63 Unicode characters or
|
||||
// 128 bytes, whichever is smaller. Labels and values can contain only
|
||||
// lowercase letters, numerals, underscores, and dashes. Keys must begin
|
||||
// with a letter.
|
||||
// with a letter.Note that Prometheus and are valid Prometheus label
|
||||
// names
|
||||
// (https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
|
||||
// This means that they cannot be stored as is in user labels, because
|
||||
// Prometheus labels may contain upper-case letters.
|
||||
UserLabels map[string]string `json:"userLabels,omitempty"`
|
||||
|
||||
// Validity: Read-only description of how the alert policy is invalid.
|
||||
// OK if the alert policy is valid. If not OK, the alert policy will not
|
||||
// generate incidents.
|
||||
// This field is only set when the alert policy is invalid. An invalid
|
||||
// alert policy will not generate incidents.
|
||||
Validity *Status `json:"validity,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
@@ -788,6 +798,10 @@ type AlertStrategy struct {
|
||||
// long, any open incidents will close
|
||||
AutoClose string `json:"autoClose,omitempty"`
|
||||
|
||||
// NotificationChannelStrategy: Control how notifications will be sent
|
||||
// out, on a per-channel basis.
|
||||
NotificationChannelStrategy []*NotificationChannelStrategy `json:"notificationChannelStrategy,omitempty"`
|
||||
|
||||
// NotificationRateLimit: Required for alert policies with a LogMatch
|
||||
// condition.This limit is not implemented for alert policies that are
|
||||
// not log-based.
|
||||
@@ -2004,12 +2018,29 @@ func (s *Explicit) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
func (s *Explicit) UnmarshalJSON(data []byte) error {
|
||||
type NoMethod Explicit
|
||||
var s1 struct {
|
||||
Bounds []gensupport.JSONFloat64 `json:"bounds"`
|
||||
*NoMethod
|
||||
}
|
||||
s1.NoMethod = (*NoMethod)(s)
|
||||
if err := json.Unmarshal(data, &s1); err != nil {
|
||||
return err
|
||||
}
|
||||
s.Bounds = make([]float64, len(s1.Bounds))
|
||||
for i := range s1.Bounds {
|
||||
s.Bounds[i] = float64(s1.Bounds[i])
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Exponential: Specifies an exponential sequence of buckets that have a
|
||||
// width that is proportional to the value of the lower bound. Each
|
||||
// bucket represents a constant relative uncertainty on a specific value
|
||||
// in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket
|
||||
// i has the following boundaries:Upper bound (0 <= i < N-1): scale *
|
||||
// (growth_factor ^ i). Lower bound (1 <= i < N): scale * (growth_factor
|
||||
// (growth_factor ^ i).Lower bound (1 <= i < N): scale * (growth_factor
|
||||
// ^ (i - 1)).
|
||||
type Exponential struct {
|
||||
// GrowthFactor: Must be greater than 1.
|
||||
@@ -2922,7 +2953,7 @@ func (s *LatencyCriteria) MarshalJSON() ([]byte, error) {
|
||||
// constant absolute uncertainty on the specific value in the
|
||||
// bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has
|
||||
// the following boundaries:Upper bound (0 <= i < N-1): offset + (width
|
||||
// * i). Lower bound (1 <= i < N): offset + (width * (i - 1)).
|
||||
// * i).Lower bound (1 <= i < N): offset + (width * (i - 1)).
|
||||
type Linear struct {
|
||||
// NumFiniteBuckets: Must be greater than 0.
|
||||
NumFiniteBuckets int64 `json:"numFiniteBuckets,omitempty"`
|
||||
@@ -4679,6 +4710,47 @@ func (s *NotificationChannelDescriptor) MarshalJSON() ([]byte, error) {
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// NotificationChannelStrategy: Control over how the notification
|
||||
// channels in notification_channels are notified when this alert fires,
|
||||
// on a per-channel basis.
|
||||
type NotificationChannelStrategy struct {
|
||||
// NotificationChannelNames: The full REST resource name for the
|
||||
// notification channels that these settings apply to. Each of these
|
||||
// correspond to the name field in one of the NotificationChannel
|
||||
// objects referenced in the notification_channels field of this
|
||||
// AlertPolicy. The format is:
|
||||
// projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
|
||||
NotificationChannelNames []string `json:"notificationChannelNames,omitempty"`
|
||||
|
||||
// RenotifyInterval: The frequency at which to send reminder
|
||||
// notifications for open incidents.
|
||||
RenotifyInterval string `json:"renotifyInterval,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g.
|
||||
// "NotificationChannelNames") to unconditionally include in API
|
||||
// requests. By default, fields with empty or default values are omitted
|
||||
// from API requests. However, any non-pointer, non-interface field
|
||||
// appearing in ForceSendFields will be sent to the server regardless of
|
||||
// whether the field is empty or not. This may be used to include empty
|
||||
// fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "NotificationChannelNames")
|
||||
// to include in API requests with the JSON null value. By default,
|
||||
// fields with empty values are omitted from API requests. However, any
|
||||
// field with an empty value appearing in NullFields will be sent to the
|
||||
// server as null. It is an error if a field in this list has a
|
||||
// non-empty value. This may be used to include null fields in Patch
|
||||
// requests.
|
||||
NullFields []string `json:"-"`
|
||||
}
|
||||
|
||||
func (s *NotificationChannelStrategy) MarshalJSON() ([]byte, error) {
|
||||
type NoMethod NotificationChannelStrategy
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
// NotificationRateLimit: Control over the rate of notifications sent to
|
||||
// this alert policy's notification channels.
|
||||
type NotificationRateLimit struct {
|
||||
@@ -6003,6 +6075,10 @@ func (s *Trigger) UnmarshalJSON(data []byte) error {
|
||||
|
||||
// Type: A protocol buffer message type.
|
||||
type Type struct {
|
||||
// Edition: The source edition string, only valid when syntax is
|
||||
// SYNTAX_EDITIONS.
|
||||
Edition string `json:"edition,omitempty"`
|
||||
|
||||
// Fields: The list of fields.
|
||||
Fields []*Field `json:"fields,omitempty"`
|
||||
|
||||
@@ -6024,9 +6100,10 @@ type Type struct {
|
||||
// Possible values:
|
||||
// "SYNTAX_PROTO2" - Syntax proto2.
|
||||
// "SYNTAX_PROTO3" - Syntax proto3.
|
||||
// "SYNTAX_EDITIONS" - Syntax editions.
|
||||
Syntax string `json:"syntax,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Fields") to
|
||||
// ForceSendFields is a list of field names (e.g. "Edition") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty or default values are omitted from API requests. However, any
|
||||
// non-pointer, non-interface field appearing in ForceSendFields will be
|
||||
@@ -6034,8 +6111,8 @@ type Type struct {
|
||||
// This may be used to include empty fields in Patch requests.
|
||||
ForceSendFields []string `json:"-"`
|
||||
|
||||
// NullFields is a list of field names (e.g. "Fields") to include in API
|
||||
// requests with the JSON null value. By default, fields with empty
|
||||
// NullFields is a list of field names (e.g. "Edition") to include in
|
||||
// API requests with the JSON null value. By default, fields with empty
|
||||
// values are omitted from API requests. However, any field with an
|
||||
// empty value appearing in NullFields will be sent to the server as
|
||||
// null. It is an error if a field in this list has a non-empty value.
|
||||
@@ -11235,7 +11312,9 @@ func (c *ProjectsMetricDescriptorsListCall) Filter(filter string) *ProjectsMetri
|
||||
}
|
||||
|
||||
// PageSize sets the optional parameter "pageSize": A positive number
|
||||
// that is the maximum number of results to return.
|
||||
// that is the maximum number of results to return. The default and
|
||||
// maximum value is 10,000. If a page_size <= 0 or > 10,000 is
|
||||
// submitted, will instead return a maximum of 10,000 results.
|
||||
func (c *ProjectsMetricDescriptorsListCall) PageSize(pageSize int64) *ProjectsMetricDescriptorsListCall {
|
||||
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
|
||||
return c
|
||||
@@ -11370,7 +11449,7 @@ func (c *ProjectsMetricDescriptorsListCall) Do(opts ...googleapi.CallOption) (*L
|
||||
// "type": "string"
|
||||
// },
|
||||
// "pageSize": {
|
||||
// "description": "A positive number that is the maximum number of results to return.",
|
||||
// "description": "A positive number that is the maximum number of results to return. The default and maximum value is 10,000. If a page_size \u003c= 0 or \u003e 10,000 is submitted, will instead return a maximum of 10,000 results.",
|
||||
// "format": "int32",
|
||||
// "location": "query",
|
||||
// "type": "integer"
|
||||
@@ -12787,7 +12866,8 @@ type ProjectsNotificationChannelsListCall struct {
|
||||
}
|
||||
|
||||
// List: Lists the notification channels that have been created for the
|
||||
// project.
|
||||
// project. To list the types of notification channels that are
|
||||
// supported, use the ListNotificationChannelDescriptors method.
|
||||
//
|
||||
// - name: The project
|
||||
// (https://cloud.google.com/monitoring/api/v3#project_name) on which
|
||||
@@ -12938,7 +13018,7 @@ func (c *ProjectsNotificationChannelsListCall) Do(opts ...googleapi.CallOption)
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Lists the notification channels that have been created for the project.",
|
||||
// "description": "Lists the notification channels that have been created for the project. To list the types of notification channels that are supported, use the ListNotificationChannelDescriptors method.",
|
||||
// "flatPath": "v3/projects/{projectsId}/notificationChannels",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "monitoring.projects.notificationChannels.list",
|
||||
|
Reference in New Issue
Block a user