google-apis-monitoring_v1 0.8.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/lib/google/apis/monitoring_v1/classes.rb +238 -0
- data/lib/google/apis/monitoring_v1/gem_version.rb +3 -3
- data/lib/google/apis/monitoring_v1/representations.rb +97 -0
- data/lib/google/apis/monitoring_v1/service.rb +173 -4
- data/lib/google/apis/monitoring_v1.rb +3 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d77f39bc37e651ebdf187c18beb23071d307e81b975fcb5f2372d1a35cec8726
|
4
|
+
data.tar.gz: d829526718c427ec5788ac8f488e52512f147aa9288b8a652c48d0781c4691ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 463297005022f20a0a5666c742e58337c72e1aabb628545fe2e2d66aa4fe7d37dfb2065ea80ca63c5be4ab63152f03cb3ae1039224e7f54e92af2df29434f158
|
7
|
+
data.tar.gz: 6df27e09cbcae11219ea186663ca5fbd0869483bfbb9a21e572f638d8b3862dd30effa5c4dc72a9d789fbb001103c14ec0057f00bc51106f3027128b76eb3054
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-monitoring_v1
|
2
2
|
|
3
|
+
### v0.12.0 (2021-09-01)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210809
|
6
|
+
|
7
|
+
### v0.11.0 (2021-07-30)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210727
|
10
|
+
|
11
|
+
### v0.10.0 (2021-07-16)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210712
|
14
|
+
|
15
|
+
### v0.9.0 (2021-07-02)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210625
|
18
|
+
* Regenerated using generator version 0.4.0
|
19
|
+
|
3
20
|
### v0.8.0 (2021-06-24)
|
4
21
|
|
5
22
|
* Unspecified changes
|
@@ -116,6 +116,26 @@ module Google
|
|
116
116
|
end
|
117
117
|
end
|
118
118
|
|
119
|
+
# A chart that displays alert policy data.
|
120
|
+
class AlertChart
|
121
|
+
include Google::Apis::Core::Hashable
|
122
|
+
|
123
|
+
# Required. The resource name of the alert policy. The format is: projects/[
|
124
|
+
# PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
|
125
|
+
# Corresponds to the JSON property `name`
|
126
|
+
# @return [String]
|
127
|
+
attr_accessor :name
|
128
|
+
|
129
|
+
def initialize(**args)
|
130
|
+
update!(**args)
|
131
|
+
end
|
132
|
+
|
133
|
+
# Update properties of this object
|
134
|
+
def update!(**args)
|
135
|
+
@name = args[:name] if args.key?(:name)
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
119
139
|
# A chart axis.
|
120
140
|
class Axis
|
121
141
|
include Google::Apis::Core::Hashable
|
@@ -299,6 +319,11 @@ module Google
|
|
299
319
|
# @return [String]
|
300
320
|
attr_accessor :plot_type
|
301
321
|
|
322
|
+
# Optional. The target axis to use for plotting the metric.
|
323
|
+
# Corresponds to the JSON property `targetAxis`
|
324
|
+
# @return [String]
|
325
|
+
attr_accessor :target_axis
|
326
|
+
|
302
327
|
# TimeSeriesQuery collects the set of supported methods for querying time series
|
303
328
|
# data from the Stackdriver metrics API.
|
304
329
|
# Corresponds to the JSON property `timeSeriesQuery`
|
@@ -314,6 +339,7 @@ module Google
|
|
314
339
|
@legend_template = args[:legend_template] if args.key?(:legend_template)
|
315
340
|
@min_alignment_period = args[:min_alignment_period] if args.key?(:min_alignment_period)
|
316
341
|
@plot_type = args[:plot_type] if args.key?(:plot_type)
|
342
|
+
@target_axis = args[:target_axis] if args.key?(:target_axis)
|
317
343
|
@time_series_query = args[:time_series_query] if args.key?(:time_series_query)
|
318
344
|
end
|
319
345
|
end
|
@@ -524,6 +550,98 @@ module Google
|
|
524
550
|
end
|
525
551
|
end
|
526
552
|
|
553
|
+
# Response for the ListMetricsScopesByMonitoredProject method.
|
554
|
+
class ListMetricsScopesByMonitoredProjectResponse
|
555
|
+
include Google::Apis::Core::Hashable
|
556
|
+
|
557
|
+
# A set of all metrics scopes that the specified monitored project has been
|
558
|
+
# added to.
|
559
|
+
# Corresponds to the JSON property `metricsScopes`
|
560
|
+
# @return [Array<Google::Apis::MonitoringV1::MetricsScope>]
|
561
|
+
attr_accessor :metrics_scopes
|
562
|
+
|
563
|
+
def initialize(**args)
|
564
|
+
update!(**args)
|
565
|
+
end
|
566
|
+
|
567
|
+
# Update properties of this object
|
568
|
+
def update!(**args)
|
569
|
+
@metrics_scopes = args[:metrics_scopes] if args.key?(:metrics_scopes)
|
570
|
+
end
|
571
|
+
end
|
572
|
+
|
573
|
+
# Represents a Metrics Scope (https://cloud.google.com/monitoring/settings#
|
574
|
+
# concept-scope) in Cloud Monitoring, which specifies one or more Google
|
575
|
+
# projects and zero or more AWS accounts to monitor together.
|
576
|
+
class MetricsScope
|
577
|
+
include Google::Apis::Core::Hashable
|
578
|
+
|
579
|
+
# Output only. The time when this Metrics Scope was created.
|
580
|
+
# Corresponds to the JSON property `createTime`
|
581
|
+
# @return [String]
|
582
|
+
attr_accessor :create_time
|
583
|
+
|
584
|
+
# Output only. The list of projects monitored by this Metrics Scope.
|
585
|
+
# Corresponds to the JSON property `monitoredProjects`
|
586
|
+
# @return [Array<Google::Apis::MonitoringV1::MonitoredProject>]
|
587
|
+
attr_accessor :monitored_projects
|
588
|
+
|
589
|
+
# Immutable. The resource name of the Monitoring Metrics Scope. On input, the
|
590
|
+
# resource name can be specified with the scoping project ID or number. On
|
591
|
+
# output, the resource name is specified with the scoping project number.
|
592
|
+
# Example: locations/global/metricsScopes/`SCOPING_PROJECT_ID_OR_NUMBER`
|
593
|
+
# Corresponds to the JSON property `name`
|
594
|
+
# @return [String]
|
595
|
+
attr_accessor :name
|
596
|
+
|
597
|
+
# Output only. The time when this Metrics Scope record was last updated.
|
598
|
+
# Corresponds to the JSON property `updateTime`
|
599
|
+
# @return [String]
|
600
|
+
attr_accessor :update_time
|
601
|
+
|
602
|
+
def initialize(**args)
|
603
|
+
update!(**args)
|
604
|
+
end
|
605
|
+
|
606
|
+
# Update properties of this object
|
607
|
+
def update!(**args)
|
608
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
609
|
+
@monitored_projects = args[:monitored_projects] if args.key?(:monitored_projects)
|
610
|
+
@name = args[:name] if args.key?(:name)
|
611
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
612
|
+
end
|
613
|
+
end
|
614
|
+
|
615
|
+
# A project being monitored (https://cloud.google.com/monitoring/settings/
|
616
|
+
# multiple-projects#create-multi) by a Metrics Scope.
|
617
|
+
class MonitoredProject
|
618
|
+
include Google::Apis::Core::Hashable
|
619
|
+
|
620
|
+
# Output only. The time when this MonitoredProject was created.
|
621
|
+
# Corresponds to the JSON property `createTime`
|
622
|
+
# @return [String]
|
623
|
+
attr_accessor :create_time
|
624
|
+
|
625
|
+
# Immutable. The resource name of the MonitoredProject. On input, the resource
|
626
|
+
# name includes the scoping project ID and monitored project ID. On output, it
|
627
|
+
# contains the equivalent project numbers. Example: locations/global/
|
628
|
+
# metricsScopes/`SCOPING_PROJECT_ID_OR_NUMBER`/projects/`
|
629
|
+
# MONITORED_PROJECT_ID_OR_NUMBER`
|
630
|
+
# Corresponds to the JSON property `name`
|
631
|
+
# @return [String]
|
632
|
+
attr_accessor :name
|
633
|
+
|
634
|
+
def initialize(**args)
|
635
|
+
update!(**args)
|
636
|
+
end
|
637
|
+
|
638
|
+
# Update properties of this object
|
639
|
+
def update!(**args)
|
640
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
641
|
+
@name = args[:name] if args.key?(:name)
|
642
|
+
end
|
643
|
+
end
|
644
|
+
|
527
645
|
# A mosaic layout divides the available space into a grid of blocks, and
|
528
646
|
# overlays the grid with tiles. Unlike GridLayout, tiles may span multiple grid
|
529
647
|
# blocks and can be placed at arbitrary locations in the grid.
|
@@ -552,6 +670,68 @@ module Google
|
|
552
670
|
end
|
553
671
|
end
|
554
672
|
|
673
|
+
# This resource represents a long-running operation that is the result of a
|
674
|
+
# network API call.
|
675
|
+
class Operation
|
676
|
+
include Google::Apis::Core::Hashable
|
677
|
+
|
678
|
+
# If the value is false, it means the operation is still in progress. If true,
|
679
|
+
# the operation is completed, and either error or response is available.
|
680
|
+
# Corresponds to the JSON property `done`
|
681
|
+
# @return [Boolean]
|
682
|
+
attr_accessor :done
|
683
|
+
alias_method :done?, :done
|
684
|
+
|
685
|
+
# The Status type defines a logical error model that is suitable for different
|
686
|
+
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
687
|
+
# (https://github.com/grpc). Each Status message contains three pieces of data:
|
688
|
+
# error code, error message, and error details.You can find out more about this
|
689
|
+
# error model and how to work with it in the API Design Guide (https://cloud.
|
690
|
+
# google.com/apis/design/errors).
|
691
|
+
# Corresponds to the JSON property `error`
|
692
|
+
# @return [Google::Apis::MonitoringV1::Status]
|
693
|
+
attr_accessor :error
|
694
|
+
|
695
|
+
# Service-specific metadata associated with the operation. It typically contains
|
696
|
+
# progress information and common metadata such as create time. Some services
|
697
|
+
# might not provide such metadata. Any method that returns a long-running
|
698
|
+
# operation should document the metadata type, if any.
|
699
|
+
# Corresponds to the JSON property `metadata`
|
700
|
+
# @return [Hash<String,Object>]
|
701
|
+
attr_accessor :metadata
|
702
|
+
|
703
|
+
# The server-assigned name, which is only unique within the same service that
|
704
|
+
# originally returns it. If you use the default HTTP mapping, the name should be
|
705
|
+
# a resource name ending with operations/`unique_id`.
|
706
|
+
# Corresponds to the JSON property `name`
|
707
|
+
# @return [String]
|
708
|
+
attr_accessor :name
|
709
|
+
|
710
|
+
# The normal response of the operation in case of success. If the original
|
711
|
+
# method returns no data on success, such as Delete, the response is google.
|
712
|
+
# protobuf.Empty. If the original method is standard Get/Create/Update, the
|
713
|
+
# response should be the resource. For other methods, the response should have
|
714
|
+
# the type XxxResponse, where Xxx is the original method name. For example, if
|
715
|
+
# the original method name is TakeSnapshot(), the inferred response type is
|
716
|
+
# TakeSnapshotResponse.
|
717
|
+
# Corresponds to the JSON property `response`
|
718
|
+
# @return [Hash<String,Object>]
|
719
|
+
attr_accessor :response
|
720
|
+
|
721
|
+
def initialize(**args)
|
722
|
+
update!(**args)
|
723
|
+
end
|
724
|
+
|
725
|
+
# Update properties of this object
|
726
|
+
def update!(**args)
|
727
|
+
@done = args[:done] if args.key?(:done)
|
728
|
+
@error = args[:error] if args.key?(:error)
|
729
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
730
|
+
@name = args[:name] if args.key?(:name)
|
731
|
+
@response = args[:response] if args.key?(:response)
|
732
|
+
end
|
733
|
+
end
|
734
|
+
|
555
735
|
# Contains metadata for longrunning operation for the edit Metrics Scope
|
556
736
|
# endpoints.
|
557
737
|
class OperationMetadata
|
@@ -912,6 +1092,45 @@ module Google
|
|
912
1092
|
end
|
913
1093
|
end
|
914
1094
|
|
1095
|
+
# The Status type defines a logical error model that is suitable for different
|
1096
|
+
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
1097
|
+
# (https://github.com/grpc). Each Status message contains three pieces of data:
|
1098
|
+
# error code, error message, and error details.You can find out more about this
|
1099
|
+
# error model and how to work with it in the API Design Guide (https://cloud.
|
1100
|
+
# google.com/apis/design/errors).
|
1101
|
+
class Status
|
1102
|
+
include Google::Apis::Core::Hashable
|
1103
|
+
|
1104
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
1105
|
+
# Corresponds to the JSON property `code`
|
1106
|
+
# @return [Fixnum]
|
1107
|
+
attr_accessor :code
|
1108
|
+
|
1109
|
+
# A list of messages that carry the error details. There is a common set of
|
1110
|
+
# message types for APIs to use.
|
1111
|
+
# Corresponds to the JSON property `details`
|
1112
|
+
# @return [Array<Hash<String,Object>>]
|
1113
|
+
attr_accessor :details
|
1114
|
+
|
1115
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
1116
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
1117
|
+
# field, or localized by the client.
|
1118
|
+
# Corresponds to the JSON property `message`
|
1119
|
+
# @return [String]
|
1120
|
+
attr_accessor :message
|
1121
|
+
|
1122
|
+
def initialize(**args)
|
1123
|
+
update!(**args)
|
1124
|
+
end
|
1125
|
+
|
1126
|
+
# Update properties of this object
|
1127
|
+
def update!(**args)
|
1128
|
+
@code = args[:code] if args.key?(:code)
|
1129
|
+
@details = args[:details] if args.key?(:details)
|
1130
|
+
@message = args[:message] if args.key?(:message)
|
1131
|
+
end
|
1132
|
+
end
|
1133
|
+
|
915
1134
|
# A widget that displays textual content.
|
916
1135
|
class Text
|
917
1136
|
include Google::Apis::Core::Hashable
|
@@ -956,6 +1175,12 @@ module Google
|
|
956
1175
|
# @return [String]
|
957
1176
|
attr_accessor :label
|
958
1177
|
|
1178
|
+
# The target axis to use for plotting the threshold. Target axis is not allowed
|
1179
|
+
# in a Scorecard.
|
1180
|
+
# Corresponds to the JSON property `targetAxis`
|
1181
|
+
# @return [String]
|
1182
|
+
attr_accessor :target_axis
|
1183
|
+
|
959
1184
|
# The value of the threshold. The value should be defined in the native scale of
|
960
1185
|
# the metric.
|
961
1186
|
# Corresponds to the JSON property `value`
|
@@ -971,6 +1196,7 @@ module Google
|
|
971
1196
|
@color = args[:color] if args.key?(:color)
|
972
1197
|
@direction = args[:direction] if args.key?(:direction)
|
973
1198
|
@label = args[:label] if args.key?(:label)
|
1199
|
+
@target_axis = args[:target_axis] if args.key?(:target_axis)
|
974
1200
|
@value = args[:value] if args.key?(:value)
|
975
1201
|
end
|
976
1202
|
end
|
@@ -1292,6 +1518,11 @@ module Google
|
|
1292
1518
|
class Widget
|
1293
1519
|
include Google::Apis::Core::Hashable
|
1294
1520
|
|
1521
|
+
# A chart that displays alert policy data.
|
1522
|
+
# Corresponds to the JSON property `alertChart`
|
1523
|
+
# @return [Google::Apis::MonitoringV1::AlertChart]
|
1524
|
+
attr_accessor :alert_chart
|
1525
|
+
|
1295
1526
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
1296
1527
|
# messages in your APIs. A typical example is to use it as the request or the
|
1297
1528
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -1328,6 +1559,7 @@ module Google
|
|
1328
1559
|
|
1329
1560
|
# Update properties of this object
|
1330
1561
|
def update!(**args)
|
1562
|
+
@alert_chart = args[:alert_chart] if args.key?(:alert_chart)
|
1331
1563
|
@blank = args[:blank] if args.key?(:blank)
|
1332
1564
|
@scorecard = args[:scorecard] if args.key?(:scorecard)
|
1333
1565
|
@text = args[:text] if args.key?(:text)
|
@@ -1368,6 +1600,11 @@ module Google
|
|
1368
1600
|
# @return [Google::Apis::MonitoringV1::Axis]
|
1369
1601
|
attr_accessor :x_axis
|
1370
1602
|
|
1603
|
+
# A chart axis.
|
1604
|
+
# Corresponds to the JSON property `y2Axis`
|
1605
|
+
# @return [Google::Apis::MonitoringV1::Axis]
|
1606
|
+
attr_accessor :y2_axis
|
1607
|
+
|
1371
1608
|
# A chart axis.
|
1372
1609
|
# Corresponds to the JSON property `yAxis`
|
1373
1610
|
# @return [Google::Apis::MonitoringV1::Axis]
|
@@ -1384,6 +1621,7 @@ module Google
|
|
1384
1621
|
@thresholds = args[:thresholds] if args.key?(:thresholds)
|
1385
1622
|
@timeshift_duration = args[:timeshift_duration] if args.key?(:timeshift_duration)
|
1386
1623
|
@x_axis = args[:x_axis] if args.key?(:x_axis)
|
1624
|
+
@y2_axis = args[:y2_axis] if args.key?(:y2_axis)
|
1387
1625
|
@y_axis = args[:y_axis] if args.key?(:y_axis)
|
1388
1626
|
end
|
1389
1627
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module MonitoringV1
|
18
18
|
# Version of the google-apis-monitoring_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210809"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -28,6 +28,12 @@ module Google
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
+
class AlertChart
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
31
37
|
class Axis
|
32
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
39
|
|
@@ -100,12 +106,36 @@ module Google
|
|
100
106
|
include Google::Apis::Core::JsonObjectSupport
|
101
107
|
end
|
102
108
|
|
109
|
+
class ListMetricsScopesByMonitoredProjectResponse
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class MetricsScope
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class MonitoredProject
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
103
127
|
class MosaicLayout
|
104
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
129
|
|
106
130
|
include Google::Apis::Core::JsonObjectSupport
|
107
131
|
end
|
108
132
|
|
133
|
+
class Operation
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
109
139
|
class OperationMetadata
|
110
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
141
|
|
@@ -172,6 +202,12 @@ module Google
|
|
172
202
|
include Google::Apis::Core::JsonObjectSupport
|
173
203
|
end
|
174
204
|
|
205
|
+
class Status
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
175
211
|
class Text
|
176
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
213
|
|
@@ -236,6 +272,13 @@ module Google
|
|
236
272
|
end
|
237
273
|
end
|
238
274
|
|
275
|
+
class AlertChart
|
276
|
+
# @private
|
277
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
278
|
+
property :name, as: 'name'
|
279
|
+
end
|
280
|
+
end
|
281
|
+
|
239
282
|
class Axis
|
240
283
|
# @private
|
241
284
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -291,6 +334,7 @@ module Google
|
|
291
334
|
property :legend_template, as: 'legendTemplate'
|
292
335
|
property :min_alignment_period, as: 'minAlignmentPeriod'
|
293
336
|
property :plot_type, as: 'plotType'
|
337
|
+
property :target_axis, as: 'targetAxis'
|
294
338
|
property :time_series_query, as: 'timeSeriesQuery', class: Google::Apis::MonitoringV1::TimeSeriesQuery, decorator: Google::Apis::MonitoringV1::TimeSeriesQuery::Representation
|
295
339
|
|
296
340
|
end
|
@@ -352,6 +396,33 @@ module Google
|
|
352
396
|
end
|
353
397
|
end
|
354
398
|
|
399
|
+
class ListMetricsScopesByMonitoredProjectResponse
|
400
|
+
# @private
|
401
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
402
|
+
collection :metrics_scopes, as: 'metricsScopes', class: Google::Apis::MonitoringV1::MetricsScope, decorator: Google::Apis::MonitoringV1::MetricsScope::Representation
|
403
|
+
|
404
|
+
end
|
405
|
+
end
|
406
|
+
|
407
|
+
class MetricsScope
|
408
|
+
# @private
|
409
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
410
|
+
property :create_time, as: 'createTime'
|
411
|
+
collection :monitored_projects, as: 'monitoredProjects', class: Google::Apis::MonitoringV1::MonitoredProject, decorator: Google::Apis::MonitoringV1::MonitoredProject::Representation
|
412
|
+
|
413
|
+
property :name, as: 'name'
|
414
|
+
property :update_time, as: 'updateTime'
|
415
|
+
end
|
416
|
+
end
|
417
|
+
|
418
|
+
class MonitoredProject
|
419
|
+
# @private
|
420
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
421
|
+
property :create_time, as: 'createTime'
|
422
|
+
property :name, as: 'name'
|
423
|
+
end
|
424
|
+
end
|
425
|
+
|
355
426
|
class MosaicLayout
|
356
427
|
# @private
|
357
428
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -361,6 +432,18 @@ module Google
|
|
361
432
|
end
|
362
433
|
end
|
363
434
|
|
435
|
+
class Operation
|
436
|
+
# @private
|
437
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
438
|
+
property :done, as: 'done'
|
439
|
+
property :error, as: 'error', class: Google::Apis::MonitoringV1::Status, decorator: Google::Apis::MonitoringV1::Status::Representation
|
440
|
+
|
441
|
+
hash :metadata, as: 'metadata'
|
442
|
+
property :name, as: 'name'
|
443
|
+
hash :response, as: 'response'
|
444
|
+
end
|
445
|
+
end
|
446
|
+
|
364
447
|
class OperationMetadata
|
365
448
|
# @private
|
366
449
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -457,6 +540,15 @@ module Google
|
|
457
540
|
end
|
458
541
|
end
|
459
542
|
|
543
|
+
class Status
|
544
|
+
# @private
|
545
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
546
|
+
property :code, as: 'code'
|
547
|
+
collection :details, as: 'details'
|
548
|
+
property :message, as: 'message'
|
549
|
+
end
|
550
|
+
end
|
551
|
+
|
460
552
|
class Text
|
461
553
|
# @private
|
462
554
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -471,6 +563,7 @@ module Google
|
|
471
563
|
property :color, as: 'color'
|
472
564
|
property :direction, as: 'direction'
|
473
565
|
property :label, as: 'label'
|
566
|
+
property :target_axis, as: 'targetAxis'
|
474
567
|
property :value, as: 'value'
|
475
568
|
end
|
476
569
|
end
|
@@ -548,6 +641,8 @@ module Google
|
|
548
641
|
class Widget
|
549
642
|
# @private
|
550
643
|
class Representation < Google::Apis::Core::JsonRepresentation
|
644
|
+
property :alert_chart, as: 'alertChart', class: Google::Apis::MonitoringV1::AlertChart, decorator: Google::Apis::MonitoringV1::AlertChart::Representation
|
645
|
+
|
551
646
|
property :blank, as: 'blank', class: Google::Apis::MonitoringV1::Empty, decorator: Google::Apis::MonitoringV1::Empty::Representation
|
552
647
|
|
553
648
|
property :scorecard, as: 'scorecard', class: Google::Apis::MonitoringV1::Scorecard, decorator: Google::Apis::MonitoringV1::Scorecard::Representation
|
@@ -572,6 +667,8 @@ module Google
|
|
572
667
|
property :timeshift_duration, as: 'timeshiftDuration'
|
573
668
|
property :x_axis, as: 'xAxis', class: Google::Apis::MonitoringV1::Axis, decorator: Google::Apis::MonitoringV1::Axis::Representation
|
574
669
|
|
670
|
+
property :y2_axis, as: 'y2Axis', class: Google::Apis::MonitoringV1::Axis, decorator: Google::Apis::MonitoringV1::Axis::Representation
|
671
|
+
|
575
672
|
property :y_axis, as: 'yAxis', class: Google::Apis::MonitoringV1::Axis, decorator: Google::Apis::MonitoringV1::Axis::Representation
|
576
673
|
|
577
674
|
end
|
@@ -26,7 +26,8 @@ module Google
|
|
26
26
|
# associated with a Workspace, with a few exceptions as noted on the individual
|
27
27
|
# method pages. The table entries below are presented in alphabetical order, not
|
28
28
|
# in order of common use. For explanations of the concepts found in the table
|
29
|
-
# entries, read the Cloud Monitoring documentation.
|
29
|
+
# entries, read the Cloud Monitoring documentation (https://cloud.google.com/
|
30
|
+
# monitoring/docs).
|
30
31
|
#
|
31
32
|
# @example
|
32
33
|
# require 'google/apis/monitoring_v1'
|
@@ -53,10 +54,178 @@ module Google
|
|
53
54
|
@batch_path = 'batch'
|
54
55
|
end
|
55
56
|
|
57
|
+
# Returns a specific Metrics Scope, including the list of projects monitored by
|
58
|
+
# the specified Metrics Scope.
|
59
|
+
# @param [String] name
|
60
|
+
# Required. The resource name of the Metrics Scope. Example: locations/global/
|
61
|
+
# metricsScopes/`SCOPING_PROJECT_ID_OR_NUMBER`
|
62
|
+
# @param [String] fields
|
63
|
+
# Selector specifying which fields to include in a partial response.
|
64
|
+
# @param [String] quota_user
|
65
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
66
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
67
|
+
# @param [Google::Apis::RequestOptions] options
|
68
|
+
# Request-specific options
|
69
|
+
#
|
70
|
+
# @yield [result, err] Result & error if block supplied
|
71
|
+
# @yieldparam result [Google::Apis::MonitoringV1::MetricsScope] parsed result object
|
72
|
+
# @yieldparam err [StandardError] error object if request failed
|
73
|
+
#
|
74
|
+
# @return [Google::Apis::MonitoringV1::MetricsScope]
|
75
|
+
#
|
76
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
77
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
78
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
79
|
+
def get_location_global_metrics_scope(name, fields: nil, quota_user: nil, options: nil, &block)
|
80
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
81
|
+
command.response_representation = Google::Apis::MonitoringV1::MetricsScope::Representation
|
82
|
+
command.response_class = Google::Apis::MonitoringV1::MetricsScope
|
83
|
+
command.params['name'] = name unless name.nil?
|
84
|
+
command.query['fields'] = fields unless fields.nil?
|
85
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
86
|
+
execute_or_queue_command(command, &block)
|
87
|
+
end
|
88
|
+
|
89
|
+
# Returns a list of every Metrics Scope that a specific MonitoredProject has
|
90
|
+
# been added to. The metrics scope representing the specified monitored project
|
91
|
+
# will always be the first entry in the response.
|
92
|
+
# @param [String] monitored_resource_container
|
93
|
+
# Required. The resource name of the Monitored Project being requested. Example:
|
94
|
+
# projects/`MONITORED_PROJECT_ID_OR_NUMBER`
|
95
|
+
# @param [String] fields
|
96
|
+
# Selector specifying which fields to include in a partial response.
|
97
|
+
# @param [String] quota_user
|
98
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
99
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
100
|
+
# @param [Google::Apis::RequestOptions] options
|
101
|
+
# Request-specific options
|
102
|
+
#
|
103
|
+
# @yield [result, err] Result & error if block supplied
|
104
|
+
# @yieldparam result [Google::Apis::MonitoringV1::ListMetricsScopesByMonitoredProjectResponse] parsed result object
|
105
|
+
# @yieldparam err [StandardError] error object if request failed
|
106
|
+
#
|
107
|
+
# @return [Google::Apis::MonitoringV1::ListMetricsScopesByMonitoredProjectResponse]
|
108
|
+
#
|
109
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
110
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
111
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
112
|
+
def list_location_global_metrics_scope_metrics_scopes_by_monitored_project(monitored_resource_container: nil, fields: nil, quota_user: nil, options: nil, &block)
|
113
|
+
command = make_simple_command(:get, 'v1/locations/global/metricsScopes:listMetricsScopesByMonitoredProject', options)
|
114
|
+
command.response_representation = Google::Apis::MonitoringV1::ListMetricsScopesByMonitoredProjectResponse::Representation
|
115
|
+
command.response_class = Google::Apis::MonitoringV1::ListMetricsScopesByMonitoredProjectResponse
|
116
|
+
command.query['monitoredResourceContainer'] = monitored_resource_container unless monitored_resource_container.nil?
|
117
|
+
command.query['fields'] = fields unless fields.nil?
|
118
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
119
|
+
execute_or_queue_command(command, &block)
|
120
|
+
end
|
121
|
+
|
122
|
+
# Adds a MonitoredProject with the given project ID to the specified Metrics
|
123
|
+
# Scope.
|
124
|
+
# @param [String] parent
|
125
|
+
# Required. The resource name of the existing Metrics Scope that will monitor
|
126
|
+
# this project. Example: locations/global/metricsScopes/`
|
127
|
+
# SCOPING_PROJECT_ID_OR_NUMBER`
|
128
|
+
# @param [Google::Apis::MonitoringV1::MonitoredProject] monitored_project_object
|
129
|
+
# @param [String] fields
|
130
|
+
# Selector specifying which fields to include in a partial response.
|
131
|
+
# @param [String] quota_user
|
132
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
133
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
134
|
+
# @param [Google::Apis::RequestOptions] options
|
135
|
+
# Request-specific options
|
136
|
+
#
|
137
|
+
# @yield [result, err] Result & error if block supplied
|
138
|
+
# @yieldparam result [Google::Apis::MonitoringV1::Operation] parsed result object
|
139
|
+
# @yieldparam err [StandardError] error object if request failed
|
140
|
+
#
|
141
|
+
# @return [Google::Apis::MonitoringV1::Operation]
|
142
|
+
#
|
143
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
144
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
145
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
146
|
+
def create_location_global_metrics_scope_project(parent, monitored_project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
147
|
+
command = make_simple_command(:post, 'v1/{+parent}/projects', options)
|
148
|
+
command.request_representation = Google::Apis::MonitoringV1::MonitoredProject::Representation
|
149
|
+
command.request_object = monitored_project_object
|
150
|
+
command.response_representation = Google::Apis::MonitoringV1::Operation::Representation
|
151
|
+
command.response_class = Google::Apis::MonitoringV1::Operation
|
152
|
+
command.params['parent'] = parent unless parent.nil?
|
153
|
+
command.query['fields'] = fields unless fields.nil?
|
154
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
155
|
+
execute_or_queue_command(command, &block)
|
156
|
+
end
|
157
|
+
|
158
|
+
# Deletes a MonitoredProject from the specified Metrics Scope.
|
159
|
+
# @param [String] name
|
160
|
+
# Required. The resource name of the MonitoredProject. Example: locations/global/
|
161
|
+
# metricsScopes/`SCOPING_PROJECT_ID_OR_NUMBER`/projects/`
|
162
|
+
# MONITORED_PROJECT_ID_OR_NUMBER`Authorization requires the following Google IAM
|
163
|
+
# (https://cloud.google.com/iam) permissions on both the Metrics Scope and on
|
164
|
+
# the MonitoredProject: monitoring.metricsScopes.link
|
165
|
+
# @param [String] fields
|
166
|
+
# Selector specifying which fields to include in a partial response.
|
167
|
+
# @param [String] quota_user
|
168
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
169
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
170
|
+
# @param [Google::Apis::RequestOptions] options
|
171
|
+
# Request-specific options
|
172
|
+
#
|
173
|
+
# @yield [result, err] Result & error if block supplied
|
174
|
+
# @yieldparam result [Google::Apis::MonitoringV1::Operation] parsed result object
|
175
|
+
# @yieldparam err [StandardError] error object if request failed
|
176
|
+
#
|
177
|
+
# @return [Google::Apis::MonitoringV1::Operation]
|
178
|
+
#
|
179
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
180
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
181
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
182
|
+
def delete_location_global_metrics_scope_project(name, fields: nil, quota_user: nil, options: nil, &block)
|
183
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
184
|
+
command.response_representation = Google::Apis::MonitoringV1::Operation::Representation
|
185
|
+
command.response_class = Google::Apis::MonitoringV1::Operation
|
186
|
+
command.params['name'] = name unless name.nil?
|
187
|
+
command.query['fields'] = fields unless fields.nil?
|
188
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
189
|
+
execute_or_queue_command(command, &block)
|
190
|
+
end
|
191
|
+
|
192
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
193
|
+
# to poll the operation result at intervals as recommended by the API service.
|
194
|
+
# @param [String] name
|
195
|
+
# The name of the operation resource.
|
196
|
+
# @param [String] fields
|
197
|
+
# Selector specifying which fields to include in a partial response.
|
198
|
+
# @param [String] quota_user
|
199
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
200
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
201
|
+
# @param [Google::Apis::RequestOptions] options
|
202
|
+
# Request-specific options
|
203
|
+
#
|
204
|
+
# @yield [result, err] Result & error if block supplied
|
205
|
+
# @yieldparam result [Google::Apis::MonitoringV1::Operation] parsed result object
|
206
|
+
# @yieldparam err [StandardError] error object if request failed
|
207
|
+
#
|
208
|
+
# @return [Google::Apis::MonitoringV1::Operation]
|
209
|
+
#
|
210
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
211
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
212
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
213
|
+
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
214
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
215
|
+
command.response_representation = Google::Apis::MonitoringV1::Operation::Representation
|
216
|
+
command.response_class = Google::Apis::MonitoringV1::Operation
|
217
|
+
command.params['name'] = name unless name.nil?
|
218
|
+
command.query['fields'] = fields unless fields.nil?
|
219
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
220
|
+
execute_or_queue_command(command, &block)
|
221
|
+
end
|
222
|
+
|
56
223
|
# Creates a new custom dashboard. For examples on how you can use this API to
|
57
|
-
# create dashboards, see Managing dashboards by API.
|
58
|
-
# monitoring
|
59
|
-
#
|
224
|
+
# create dashboards, see Managing dashboards by API (https://cloud.google.com/
|
225
|
+
# monitoring/dashboards/api-dashboard). This method requires the monitoring.
|
226
|
+
# dashboards.create permission on the specified project. For more information
|
227
|
+
# about permissions, see Cloud Identity and Access Management (https://cloud.
|
228
|
+
# google.com/iam).
|
60
229
|
# @param [String] parent
|
61
230
|
# Required. The project on which to execute the request. The format is: projects/
|
62
231
|
# [PROJECT_ID_OR_NUMBER] The [PROJECT_ID_OR_NUMBER] must match the dashboard
|
@@ -25,7 +25,8 @@ module Google
|
|
25
25
|
# associated with a Workspace, with a few exceptions as noted on the individual
|
26
26
|
# method pages. The table entries below are presented in alphabetical order, not
|
27
27
|
# in order of common use. For explanations of the concepts found in the table
|
28
|
-
# entries, read the Cloud Monitoring documentation.
|
28
|
+
# entries, read the Cloud Monitoring documentation (https://cloud.google.com/
|
29
|
+
# monitoring/docs).
|
29
30
|
#
|
30
31
|
# @see https://cloud.google.com/monitoring/api/
|
31
32
|
module MonitoringV1
|
@@ -33,7 +34,7 @@ module Google
|
|
33
34
|
# This is NOT the gem version.
|
34
35
|
VERSION = 'V1'
|
35
36
|
|
36
|
-
# See, edit, configure, and delete your Google Cloud
|
37
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
37
38
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
38
39
|
|
39
40
|
# View and write monitoring data for all of your Google and third-party Cloud and API projects
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-monitoring_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.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: 2021-06
|
11
|
+
date: 2021-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.4'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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/master/generated/google-apis-monitoring_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v1/v0.12.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-monitoring_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|