google-cloud-monitoring-v3 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/monitoring/v3/alert_policy_service/client.rb +4 -4
- data/lib/google/cloud/monitoring/v3/alert_policy_service.rb +3 -3
- data/lib/google/cloud/monitoring/v3/version.rb +1 -1
- data/lib/google/monitoring/v3/alert_pb.rb +9 -0
- data/lib/google/monitoring/v3/alert_service_services_pb.rb +3 -3
- data/proto_docs/google/monitoring/v3/alert.rb +33 -4
- data/proto_docs/google/monitoring/v3/alert_service.rb +1 -1
- data/proto_docs/google/protobuf/empty.rb +0 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f4a2337dbf0ef457c6d081534bebf6bd7e520c20206d888197b9d0b4ba4bef8
|
4
|
+
data.tar.gz: e2d84d8f5d5c8b1a3b499a62c9e2def1dd6038547c508a212f61a69b297bcd48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62cd6eac0899172c7158161e8b15d6c7f4a7e637411b775a9b581ad56961550f6fe2b29887a215602eee0a43915f8a8308c8fdb7a890abd47820a5ac5f591efb
|
7
|
+
data.tar.gz: 7d9a6175333c76488d187ece3deaca8d95ac15e259c977ff9102c104caf638513d1a60d5f293389e9619812280fab3671059821d1333b1cd3db2df09fd5bc9c9
|
@@ -28,14 +28,14 @@ module Google
|
|
28
28
|
# Client for the AlertPolicyService service.
|
29
29
|
#
|
30
30
|
# The AlertPolicyService API is used to manage (list, create, delete,
|
31
|
-
# edit) alert policies in
|
31
|
+
# edit) alert policies in Cloud Monitoring. An alerting policy is
|
32
32
|
# a description of the conditions under which some aspect of your
|
33
33
|
# system is considered to be "unhealthy" and the ways to notify
|
34
34
|
# people or services about this state. In addition to using this API, alert
|
35
35
|
# policies can also be managed through
|
36
|
-
# [
|
36
|
+
# [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
|
37
37
|
# which can be reached by clicking the "Monitoring" tab in
|
38
|
-
# [Cloud
|
38
|
+
# [Cloud console](https://console.cloud.google.com/).
|
39
39
|
#
|
40
40
|
class Client
|
41
41
|
include Paths
|
@@ -404,7 +404,7 @@ module Google
|
|
404
404
|
#
|
405
405
|
# Note that this field names the parent container in which the alerting
|
406
406
|
# policy will be written, not the name of the created policy. |name| must be
|
407
|
-
# a host project of a
|
407
|
+
# a host project of a Metrics Scope, otherwise INVALID_ARGUMENT error will
|
408
408
|
# return. The alerting policy that is returned will have a name that contains
|
409
409
|
# a normalized representation of this name as a prefix but adds a suffix of
|
410
410
|
# the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
|
@@ -32,14 +32,14 @@ module Google
|
|
32
32
|
module V3
|
33
33
|
##
|
34
34
|
# The AlertPolicyService API is used to manage (list, create, delete,
|
35
|
-
# edit) alert policies in
|
35
|
+
# edit) alert policies in Cloud Monitoring. An alerting policy is
|
36
36
|
# a description of the conditions under which some aspect of your
|
37
37
|
# system is considered to be "unhealthy" and the ways to notify
|
38
38
|
# people or services about this state. In addition to using this API, alert
|
39
39
|
# policies can also be managed through
|
40
|
-
# [
|
40
|
+
# [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
|
41
41
|
# which can be reached by clicking the "Monitoring" tab in
|
42
|
-
# [Cloud
|
42
|
+
# [Cloud console](https://console.cloud.google.com/).
|
43
43
|
#
|
44
44
|
# To load this service and instantiate a client:
|
45
45
|
#
|
@@ -56,6 +56,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
56
56
|
optional :threshold_value, :double, 5
|
57
57
|
optional :duration, :message, 6, "google.protobuf.Duration"
|
58
58
|
optional :trigger, :message, 7, "google.monitoring.v3.AlertPolicy.Condition.Trigger"
|
59
|
+
optional :evaluation_missing_data, :enum, 11, "google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData"
|
59
60
|
end
|
60
61
|
add_message "google.monitoring.v3.AlertPolicy.Condition.MetricAbsence" do
|
61
62
|
optional :filter, :string, 1
|
@@ -71,6 +72,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
71
72
|
optional :query, :string, 1
|
72
73
|
optional :duration, :message, 2, "google.protobuf.Duration"
|
73
74
|
optional :trigger, :message, 3, "google.monitoring.v3.AlertPolicy.Condition.Trigger"
|
75
|
+
optional :evaluation_missing_data, :enum, 4, "google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData"
|
76
|
+
end
|
77
|
+
add_enum "google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData" do
|
78
|
+
value :EVALUATION_MISSING_DATA_UNSPECIFIED, 0
|
79
|
+
value :EVALUATION_MISSING_DATA_INACTIVE, 1
|
80
|
+
value :EVALUATION_MISSING_DATA_ACTIVE, 2
|
81
|
+
value :EVALUATION_MISSING_DATA_NO_OP, 3
|
74
82
|
end
|
75
83
|
add_message "google.monitoring.v3.AlertPolicy.AlertStrategy" do
|
76
84
|
optional :notification_rate_limit, :message, 1, "google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit"
|
@@ -100,6 +108,7 @@ module Google
|
|
100
108
|
AlertPolicy::Condition::MetricAbsence = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.MetricAbsence").msgclass
|
101
109
|
AlertPolicy::Condition::LogMatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.LogMatch").msgclass
|
102
110
|
AlertPolicy::Condition::MonitoringQueryLanguageCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition").msgclass
|
111
|
+
AlertPolicy::Condition::EvaluationMissingData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData").enummodule
|
103
112
|
AlertPolicy::AlertStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.AlertStrategy").msgclass
|
104
113
|
AlertPolicy::AlertStrategy::NotificationRateLimit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit").msgclass
|
105
114
|
AlertPolicy::ConditionCombinerType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.ConditionCombinerType").enummodule
|
@@ -25,14 +25,14 @@ module Google
|
|
25
25
|
module V3
|
26
26
|
module AlertPolicyService
|
27
27
|
# The AlertPolicyService API is used to manage (list, create, delete,
|
28
|
-
# edit) alert policies in
|
28
|
+
# edit) alert policies in Cloud Monitoring. An alerting policy is
|
29
29
|
# a description of the conditions under which some aspect of your
|
30
30
|
# system is considered to be "unhealthy" and the ways to notify
|
31
31
|
# people or services about this state. In addition to using this API, alert
|
32
32
|
# policies can also be managed through
|
33
|
-
# [
|
33
|
+
# [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
|
34
34
|
# which can be reached by clicking the "Monitoring" tab in
|
35
|
-
# [Cloud
|
35
|
+
# [Cloud console](https://console.cloud.google.com/).
|
36
36
|
class Service
|
37
37
|
|
38
38
|
include ::GRPC::GenericService
|
@@ -32,7 +32,7 @@ module Google
|
|
32
32
|
#
|
33
33
|
# projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
|
34
34
|
#
|
35
|
-
# `[ALERT_POLICY_ID]` is assigned by
|
35
|
+
# `[ALERT_POLICY_ID]` is assigned by Cloud Monitoring when the policy
|
36
36
|
# is created. When calling the
|
37
37
|
# {::Google::Cloud::Monitoring::V3::AlertPolicyService::Client#create_alert_policy alertPolicies.create}
|
38
38
|
# method, do not include the `name` field in the alerting policy passed as
|
@@ -118,7 +118,8 @@ module Google
|
|
118
118
|
# The text of the documentation, interpreted according to `mime_type`.
|
119
119
|
# The content may not exceed 8,192 Unicode characters and may not exceed
|
120
120
|
# more than 10,240 bytes when encoded in UTF-8 format, whichever is
|
121
|
-
# smaller.
|
121
|
+
# smaller. This text can be [templatized by using
|
122
|
+
# variables](https://cloud.google.com/monitoring/alerts/doc-variables).
|
122
123
|
# @!attribute [rw] mime_type
|
123
124
|
# @return [::String]
|
124
125
|
# The format of the `content` field. Presently, only the value
|
@@ -139,13 +140,13 @@ module Google
|
|
139
140
|
#
|
140
141
|
# projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
|
141
142
|
#
|
142
|
-
# `[CONDITION_ID]` is assigned by
|
143
|
+
# `[CONDITION_ID]` is assigned by Cloud Monitoring when the
|
143
144
|
# condition is created as part of a new or updated alerting policy.
|
144
145
|
#
|
145
146
|
# When calling the
|
146
147
|
# {::Google::Cloud::Monitoring::V3::AlertPolicyService::Client#create_alert_policy alertPolicies.create}
|
147
148
|
# method, do not include the `name` field in the conditions of the
|
148
|
-
# requested alerting policy.
|
149
|
+
# requested alerting policy. Cloud Monitoring creates the
|
149
150
|
# condition identifiers and includes them in the new policy.
|
150
151
|
#
|
151
152
|
# When calling the
|
@@ -279,6 +280,10 @@ module Google
|
|
279
280
|
# time series that have been identified by `filter` and `aggregations`,
|
280
281
|
# or by the ratio, if `denominator_filter` and `denominator_aggregations`
|
281
282
|
# are specified.
|
283
|
+
# @!attribute [rw] evaluation_missing_data
|
284
|
+
# @return [::Google::Cloud::Monitoring::V3::AlertPolicy::Condition::EvaluationMissingData]
|
285
|
+
# A condition control that determines how metric-threshold conditions
|
286
|
+
# are evaluated when data stops arriving.
|
282
287
|
class MetricThreshold
|
283
288
|
include ::Google::Protobuf::MessageExts
|
284
289
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -396,10 +401,34 @@ module Google
|
|
396
401
|
# time series that have been identified by `filter` and `aggregations`,
|
397
402
|
# or by the ratio, if `denominator_filter` and `denominator_aggregations`
|
398
403
|
# are specified.
|
404
|
+
# @!attribute [rw] evaluation_missing_data
|
405
|
+
# @return [::Google::Cloud::Monitoring::V3::AlertPolicy::Condition::EvaluationMissingData]
|
406
|
+
# A condition control that determines how metric-threshold conditions
|
407
|
+
# are evaluated when data stops arriving.
|
399
408
|
class MonitoringQueryLanguageCondition
|
400
409
|
include ::Google::Protobuf::MessageExts
|
401
410
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
402
411
|
end
|
412
|
+
|
413
|
+
# A condition control that determines how metric-threshold conditions
|
414
|
+
# are evaluated when data stops arriving.
|
415
|
+
# This control doesn't affect metric-absence policies.
|
416
|
+
module EvaluationMissingData
|
417
|
+
# An unspecified evaluation missing data option. Equivalent to
|
418
|
+
# EVALUATION_MISSING_DATA_NO_OP.
|
419
|
+
EVALUATION_MISSING_DATA_UNSPECIFIED = 0
|
420
|
+
|
421
|
+
# If there is no data to evaluate the condition, then evaluate the
|
422
|
+
# condition as false.
|
423
|
+
EVALUATION_MISSING_DATA_INACTIVE = 1
|
424
|
+
|
425
|
+
# If there is no data to evaluate the condition, then evaluate the
|
426
|
+
# condition as true.
|
427
|
+
EVALUATION_MISSING_DATA_ACTIVE = 2
|
428
|
+
|
429
|
+
# Do not evaluate the condition to any value if there is no data.
|
430
|
+
EVALUATION_MISSING_DATA_NO_OP = 3
|
431
|
+
end
|
403
432
|
end
|
404
433
|
|
405
434
|
# Control over how the notification channels in `notification_channels`
|
@@ -31,7 +31,7 @@ module Google
|
|
31
31
|
#
|
32
32
|
# Note that this field names the parent container in which the alerting
|
33
33
|
# policy will be written, not the name of the created policy. |name| must be
|
34
|
-
# a host project of a
|
34
|
+
# a host project of a Metrics Scope, otherwise INVALID_ARGUMENT error will
|
35
35
|
# return. The alerting policy that is returned will have a name that contains
|
36
36
|
# a normalized representation of this name as a prefix but adds a suffix of
|
37
37
|
# the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
|
@@ -26,8 +26,6 @@ module Google
|
|
26
26
|
# service Foo {
|
27
27
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
28
28
|
# }
|
29
|
-
#
|
30
|
-
# The JSON representation for `Empty` is empty JSON object `{}`.
|
31
29
|
class Empty
|
32
30
|
include ::Google::Protobuf::MessageExts
|
33
31
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-monitoring-v3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|