google-apis-monitoring_v3 0.46.0 → 0.47.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 597c4c5269296fe9b17d05f9c44dbfb7ded4da6a5da8ec4e6437148ffc2605f4
|
4
|
+
data.tar.gz: 415c6eeef658a86fd5b9296351d1ade45303f657dc8f1908bba450dedc4ab81b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92129e6d00a3e4bb323f338dbc77d618e68af41a38c3d35c0687fe083c9acdd8884d4a1166daa4016feada68b30232ac8e2687869bb1c238a605f774c907af63
|
7
|
+
data.tar.gz: 7aedf7c117d11b6c5831812c3b129fae6640b25fd3dc3f5789af0228e5aa233803cc36a99e991ed2b962e92a706add64320e5d128dd9d5adb23da7e2c007e6a8
|
data/CHANGELOG.md
CHANGED
@@ -770,6 +770,32 @@ module Google
|
|
770
770
|
# @return [Google::Apis::MonitoringV3::MonitoringQueryLanguageCondition]
|
771
771
|
attr_accessor :condition_monitoring_query_language
|
772
772
|
|
773
|
+
# A condition type that allows alert policies to be defined using Prometheus
|
774
|
+
# Query Language (PromQL) (https://prometheus.io/docs/prometheus/latest/querying/
|
775
|
+
# basics/).The PrometheusQueryLanguageCondition message contains information
|
776
|
+
# from a Prometheus alerting rule and its associated rule group.A Prometheus
|
777
|
+
# alerting rule is described here (https://prometheus.io/docs/prometheus/latest/
|
778
|
+
# configuration/alerting_rules/). The semantics of a Prometheus alerting rule is
|
779
|
+
# described here (https://prometheus.io/docs/prometheus/latest/configuration/
|
780
|
+
# recording_rules/#rule).A Prometheus rule group is described here (https://
|
781
|
+
# prometheus.io/docs/prometheus/latest/configuration/recording_rules/). The
|
782
|
+
# semantics of a Prometheus rule group is described here (https://prometheus.io/
|
783
|
+
# docs/prometheus/latest/configuration/recording_rules/#rule_group).Because
|
784
|
+
# Cloud Alerting has no representation of a Prometheus rule group resource, we
|
785
|
+
# must embed the information of the parent rule group inside each of the
|
786
|
+
# conditions that refer to it. We must also update the contents of all
|
787
|
+
# Prometheus alerts in case the information of their rule group changes.The
|
788
|
+
# PrometheusQueryLanguageCondition protocol buffer combines the information of
|
789
|
+
# the corresponding rule group and alerting rule. The structure of the
|
790
|
+
# PrometheusQueryLanguageCondition protocol buffer does NOT mimic the structure
|
791
|
+
# of the Prometheus rule group and alerting rule YAML declarations. The
|
792
|
+
# PrometheusQueryLanguageCondition protocol buffer may change in the future to
|
793
|
+
# support future rule group and/or alerting rule features. There are no new such
|
794
|
+
# features at the present time (2023-06-26).
|
795
|
+
# Corresponds to the JSON property `conditionPrometheusQueryLanguage`
|
796
|
+
# @return [Google::Apis::MonitoringV3::PrometheusQueryLanguageCondition]
|
797
|
+
attr_accessor :condition_prometheus_query_language
|
798
|
+
|
773
799
|
# A condition type that compares a collection of time series against a threshold.
|
774
800
|
# Corresponds to the JSON property `conditionThreshold`
|
775
801
|
# @return [Google::Apis::MonitoringV3::MetricThreshold]
|
@@ -809,6 +835,7 @@ module Google
|
|
809
835
|
@condition_absent = args[:condition_absent] if args.key?(:condition_absent)
|
810
836
|
@condition_matched_log = args[:condition_matched_log] if args.key?(:condition_matched_log)
|
811
837
|
@condition_monitoring_query_language = args[:condition_monitoring_query_language] if args.key?(:condition_monitoring_query_language)
|
838
|
+
@condition_prometheus_query_language = args[:condition_prometheus_query_language] if args.key?(:condition_prometheus_query_language)
|
812
839
|
@condition_threshold = args[:condition_threshold] if args.key?(:condition_threshold)
|
813
840
|
@display_name = args[:display_name] if args.key?(:display_name)
|
814
841
|
@name = args[:name] if args.key?(:name)
|
@@ -1159,6 +1186,20 @@ module Google
|
|
1159
1186
|
# @return [String]
|
1160
1187
|
attr_accessor :mime_type
|
1161
1188
|
|
1189
|
+
# Optional. The subject line of the notification. The subject line may not
|
1190
|
+
# exceed 10,240 bytes. In notifications generated by this policy, the contents
|
1191
|
+
# of the subject line after variable expansion will be truncated to 255 bytes or
|
1192
|
+
# shorter at the latest UTF-8 character boundary. The 255-byte limit is
|
1193
|
+
# recommended by this thread (https://stackoverflow.com/questions/1592291/what-
|
1194
|
+
# is-the-email-subject-length-limit). It is both the limit imposed by some third-
|
1195
|
+
# party ticketing products and it is common to define textual fields in
|
1196
|
+
# databases as VARCHAR(255).The contents of the subject line can be templatized
|
1197
|
+
# by using variables (https://cloud.google.com/monitoring/alerts/doc-variables).
|
1198
|
+
# If this field is missing or empty, a default subject line will be generated.
|
1199
|
+
# Corresponds to the JSON property `subject`
|
1200
|
+
# @return [String]
|
1201
|
+
attr_accessor :subject
|
1202
|
+
|
1162
1203
|
def initialize(**args)
|
1163
1204
|
update!(**args)
|
1164
1205
|
end
|
@@ -1167,6 +1208,7 @@ module Google
|
|
1167
1208
|
def update!(**args)
|
1168
1209
|
@content = args[:content] if args.key?(:content)
|
1169
1210
|
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
1211
|
+
@subject = args[:subject] if args.key?(:subject)
|
1170
1212
|
end
|
1171
1213
|
end
|
1172
1214
|
|
@@ -3669,6 +3711,103 @@ module Google
|
|
3669
3711
|
end
|
3670
3712
|
end
|
3671
3713
|
|
3714
|
+
# A condition type that allows alert policies to be defined using Prometheus
|
3715
|
+
# Query Language (PromQL) (https://prometheus.io/docs/prometheus/latest/querying/
|
3716
|
+
# basics/).The PrometheusQueryLanguageCondition message contains information
|
3717
|
+
# from a Prometheus alerting rule and its associated rule group.A Prometheus
|
3718
|
+
# alerting rule is described here (https://prometheus.io/docs/prometheus/latest/
|
3719
|
+
# configuration/alerting_rules/). The semantics of a Prometheus alerting rule is
|
3720
|
+
# described here (https://prometheus.io/docs/prometheus/latest/configuration/
|
3721
|
+
# recording_rules/#rule).A Prometheus rule group is described here (https://
|
3722
|
+
# prometheus.io/docs/prometheus/latest/configuration/recording_rules/). The
|
3723
|
+
# semantics of a Prometheus rule group is described here (https://prometheus.io/
|
3724
|
+
# docs/prometheus/latest/configuration/recording_rules/#rule_group).Because
|
3725
|
+
# Cloud Alerting has no representation of a Prometheus rule group resource, we
|
3726
|
+
# must embed the information of the parent rule group inside each of the
|
3727
|
+
# conditions that refer to it. We must also update the contents of all
|
3728
|
+
# Prometheus alerts in case the information of their rule group changes.The
|
3729
|
+
# PrometheusQueryLanguageCondition protocol buffer combines the information of
|
3730
|
+
# the corresponding rule group and alerting rule. The structure of the
|
3731
|
+
# PrometheusQueryLanguageCondition protocol buffer does NOT mimic the structure
|
3732
|
+
# of the Prometheus rule group and alerting rule YAML declarations. The
|
3733
|
+
# PrometheusQueryLanguageCondition protocol buffer may change in the future to
|
3734
|
+
# support future rule group and/or alerting rule features. There are no new such
|
3735
|
+
# features at the present time (2023-06-26).
|
3736
|
+
class PrometheusQueryLanguageCondition
|
3737
|
+
include Google::Apis::Core::Hashable
|
3738
|
+
|
3739
|
+
# Optional. The alerting rule name of this alert in the corresponding Prometheus
|
3740
|
+
# configuration file.Some external tools may require this field to be populated
|
3741
|
+
# correctly in order to refer to the original Prometheus configuration file. The
|
3742
|
+
# rule group name and the alert name are necessary to update the relevant
|
3743
|
+
# AlertPolicies in case the definition of the rule group changes in the future.
|
3744
|
+
# This field is optional. If this field is not empty, then it must be a valid
|
3745
|
+
# Prometheus label name (https://prometheus.io/docs/concepts/data_model/#metric-
|
3746
|
+
# names-and-labels).
|
3747
|
+
# Corresponds to the JSON property `alertRule`
|
3748
|
+
# @return [String]
|
3749
|
+
attr_accessor :alert_rule
|
3750
|
+
|
3751
|
+
# Optional. Alerts are considered firing once their PromQL expression was
|
3752
|
+
# evaluated to be "true" for this long. Alerts whose PromQL expression was not
|
3753
|
+
# evaluated to be "true" for long enough are considered pending. The default
|
3754
|
+
# value is zero. Must be zero or positive.
|
3755
|
+
# Corresponds to the JSON property `duration`
|
3756
|
+
# @return [String]
|
3757
|
+
attr_accessor :duration
|
3758
|
+
|
3759
|
+
# Required. How often this rule should be evaluated. Must be a positive multiple
|
3760
|
+
# of 30 seconds or missing. The default value is 30 seconds. If this
|
3761
|
+
# PrometheusQueryLanguageCondition was generated from a Prometheus alerting rule,
|
3762
|
+
# then this value should be taken from the enclosing rule group.
|
3763
|
+
# Corresponds to the JSON property `evaluationInterval`
|
3764
|
+
# @return [String]
|
3765
|
+
attr_accessor :evaluation_interval
|
3766
|
+
|
3767
|
+
# Optional. Labels to add to or overwrite in the PromQL query result. Label
|
3768
|
+
# names must be valid (https://prometheus.io/docs/concepts/data_model/#metric-
|
3769
|
+
# names-and-labels). Label values can be templatized by using variables (https://
|
3770
|
+
# cloud.google.com/monitoring/alerts/doc-variables). The only available variable
|
3771
|
+
# names are the names of the labels in the PromQL result, including "__name__"
|
3772
|
+
# and "value". "labels" may be empty.
|
3773
|
+
# Corresponds to the JSON property `labels`
|
3774
|
+
# @return [Hash<String,String>]
|
3775
|
+
attr_accessor :labels
|
3776
|
+
|
3777
|
+
# Required. The PromQL expression to evaluate. Every evaluation cycle this
|
3778
|
+
# expression is evaluated at the current time, and all resultant time series
|
3779
|
+
# become pending/firing alerts. This field must not be empty.
|
3780
|
+
# Corresponds to the JSON property `query`
|
3781
|
+
# @return [String]
|
3782
|
+
attr_accessor :query
|
3783
|
+
|
3784
|
+
# Optional. The rule group name of this alert in the corresponding Prometheus
|
3785
|
+
# configuration file.Some external tools may require this field to be populated
|
3786
|
+
# correctly in order to refer to the original Prometheus configuration file. The
|
3787
|
+
# rule group name and the alert name are necessary to update the relevant
|
3788
|
+
# AlertPolicies in case the definition of the rule group changes in the future.
|
3789
|
+
# This field is optional. If this field is not empty, then it must be a valid
|
3790
|
+
# Prometheus label name (https://prometheus.io/docs/concepts/data_model/#metric-
|
3791
|
+
# names-and-labels).
|
3792
|
+
# Corresponds to the JSON property `ruleGroup`
|
3793
|
+
# @return [String]
|
3794
|
+
attr_accessor :rule_group
|
3795
|
+
|
3796
|
+
def initialize(**args)
|
3797
|
+
update!(**args)
|
3798
|
+
end
|
3799
|
+
|
3800
|
+
# Update properties of this object
|
3801
|
+
def update!(**args)
|
3802
|
+
@alert_rule = args[:alert_rule] if args.key?(:alert_rule)
|
3803
|
+
@duration = args[:duration] if args.key?(:duration)
|
3804
|
+
@evaluation_interval = args[:evaluation_interval] if args.key?(:evaluation_interval)
|
3805
|
+
@labels = args[:labels] if args.key?(:labels)
|
3806
|
+
@query = args[:query] if args.key?(:query)
|
3807
|
+
@rule_group = args[:rule_group] if args.key?(:rule_group)
|
3808
|
+
end
|
3809
|
+
end
|
3810
|
+
|
3672
3811
|
# The QueryTimeSeries request.
|
3673
3812
|
class QueryTimeSeriesRequest
|
3674
3813
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module MonitoringV3
|
18
18
|
# Version of the google-apis-monitoring_v3 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.47.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230703"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -538,6 +538,12 @@ module Google
|
|
538
538
|
include Google::Apis::Core::JsonObjectSupport
|
539
539
|
end
|
540
540
|
|
541
|
+
class PrometheusQueryLanguageCondition
|
542
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
543
|
+
|
544
|
+
include Google::Apis::Core::JsonObjectSupport
|
545
|
+
end
|
546
|
+
|
541
547
|
class QueryTimeSeriesRequest
|
542
548
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
543
549
|
|
@@ -891,6 +897,8 @@ module Google
|
|
891
897
|
|
892
898
|
property :condition_monitoring_query_language, as: 'conditionMonitoringQueryLanguage', class: Google::Apis::MonitoringV3::MonitoringQueryLanguageCondition, decorator: Google::Apis::MonitoringV3::MonitoringQueryLanguageCondition::Representation
|
893
899
|
|
900
|
+
property :condition_prometheus_query_language, as: 'conditionPrometheusQueryLanguage', class: Google::Apis::MonitoringV3::PrometheusQueryLanguageCondition, decorator: Google::Apis::MonitoringV3::PrometheusQueryLanguageCondition::Representation
|
901
|
+
|
894
902
|
property :condition_threshold, as: 'conditionThreshold', class: Google::Apis::MonitoringV3::MetricThreshold, decorator: Google::Apis::MonitoringV3::MetricThreshold::Representation
|
895
903
|
|
896
904
|
property :display_name, as: 'displayName'
|
@@ -990,6 +998,7 @@ module Google
|
|
990
998
|
class Representation < Google::Apis::Core::JsonRepresentation
|
991
999
|
property :content, as: 'content'
|
992
1000
|
property :mime_type, as: 'mimeType'
|
1001
|
+
property :subject, as: 'subject'
|
993
1002
|
end
|
994
1003
|
end
|
995
1004
|
|
@@ -1584,6 +1593,18 @@ module Google
|
|
1584
1593
|
end
|
1585
1594
|
end
|
1586
1595
|
|
1596
|
+
class PrometheusQueryLanguageCondition
|
1597
|
+
# @private
|
1598
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1599
|
+
property :alert_rule, as: 'alertRule'
|
1600
|
+
property :duration, as: 'duration'
|
1601
|
+
property :evaluation_interval, as: 'evaluationInterval'
|
1602
|
+
hash :labels, as: 'labels'
|
1603
|
+
property :query, as: 'query'
|
1604
|
+
property :rule_group, as: 'ruleGroup'
|
1605
|
+
end
|
1606
|
+
end
|
1607
|
+
|
1587
1608
|
class QueryTimeSeriesRequest
|
1588
1609
|
# @private
|
1589
1610
|
class Representation < Google::Apis::Core::JsonRepresentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-monitoring_v3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.47.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: 2023-
|
11
|
+
date: 2023-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-monitoring_v3/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v3/v0.47.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-monitoring_v3
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|