google-apis-monitoring_v1 0.7.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/lib/google/apis/monitoring_v1.rb +2 -1
- data/lib/google/apis/monitoring_v1/classes.rb +219 -0
- data/lib/google/apis/monitoring_v1/gem_version.rb +3 -3
- data/lib/google/apis/monitoring_v1/representations.rb +93 -0
- data/lib/google/apis/monitoring_v1/service.rb +172 -4
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cf6a27e01685ea3a88c1c8858410b8c4f5cc6523557e8eb747639316f2cc95c
|
4
|
+
data.tar.gz: ab15eea73d9cf1db00e308c17a6a38f514f35a2cc618565dadca3fa9edb8da20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1361aaaa3556055609b8e79a4b4c67e661aad6050eb4f252189ac8f3c879868362f3812251de2ca0d5d46e33217b14aa2e7e6d9b4fe5155b8fa089296e09377b
|
7
|
+
data.tar.gz: 97456ce5cb27455736a3302b0a8b25355b170f2295c18d527fde90f4d72103ec9126bd08b7307cdae16ddffd5c6572b5f6180c343f5b0f0c218be6b78e5eacfa
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-monitoring_v1
|
2
2
|
|
3
|
+
### v0.11.0 (2021-07-30)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210727
|
6
|
+
|
7
|
+
### v0.10.0 (2021-07-16)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210712
|
10
|
+
|
11
|
+
### v0.9.0 (2021-07-02)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210625
|
14
|
+
* Regenerated using generator version 0.4.0
|
15
|
+
|
16
|
+
### v0.8.0 (2021-06-24)
|
17
|
+
|
18
|
+
* Unspecified changes
|
19
|
+
|
3
20
|
### v0.7.0 (2021-06-18)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210614
|
@@ -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
|
@@ -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
|
@@ -524,6 +544,98 @@ module Google
|
|
524
544
|
end
|
525
545
|
end
|
526
546
|
|
547
|
+
# Response for the ListMetricsScopesByMonitoredProject method.
|
548
|
+
class ListMetricsScopesByMonitoredProjectResponse
|
549
|
+
include Google::Apis::Core::Hashable
|
550
|
+
|
551
|
+
# A set of all metrics scopes that the specified monitored project has been
|
552
|
+
# added to.
|
553
|
+
# Corresponds to the JSON property `metricsScopes`
|
554
|
+
# @return [Array<Google::Apis::MonitoringV1::MetricsScope>]
|
555
|
+
attr_accessor :metrics_scopes
|
556
|
+
|
557
|
+
def initialize(**args)
|
558
|
+
update!(**args)
|
559
|
+
end
|
560
|
+
|
561
|
+
# Update properties of this object
|
562
|
+
def update!(**args)
|
563
|
+
@metrics_scopes = args[:metrics_scopes] if args.key?(:metrics_scopes)
|
564
|
+
end
|
565
|
+
end
|
566
|
+
|
567
|
+
# Represents a Metrics Scope (https://cloud.google.com/monitoring/settings#
|
568
|
+
# concept-scope) in Cloud Monitoring, which specifies one or more Google
|
569
|
+
# projects and zero or more AWS accounts to monitor together.
|
570
|
+
class MetricsScope
|
571
|
+
include Google::Apis::Core::Hashable
|
572
|
+
|
573
|
+
# Output only. The time when this Metrics Scope was created.
|
574
|
+
# Corresponds to the JSON property `createTime`
|
575
|
+
# @return [String]
|
576
|
+
attr_accessor :create_time
|
577
|
+
|
578
|
+
# Output only. The list of projects monitored by this Metrics Scope.
|
579
|
+
# Corresponds to the JSON property `monitoredProjects`
|
580
|
+
# @return [Array<Google::Apis::MonitoringV1::MonitoredProject>]
|
581
|
+
attr_accessor :monitored_projects
|
582
|
+
|
583
|
+
# Immutable. The resource name of the Monitoring Metrics Scope. On input, the
|
584
|
+
# resource name can be specified with the scoping project ID or number. On
|
585
|
+
# output, the resource name is specified with the scoping project number.
|
586
|
+
# Example: locations/global/metricsScopes/`SCOPING_PROJECT_ID_OR_NUMBER`
|
587
|
+
# Corresponds to the JSON property `name`
|
588
|
+
# @return [String]
|
589
|
+
attr_accessor :name
|
590
|
+
|
591
|
+
# Output only. The time when this Metrics Scope record was last updated.
|
592
|
+
# Corresponds to the JSON property `updateTime`
|
593
|
+
# @return [String]
|
594
|
+
attr_accessor :update_time
|
595
|
+
|
596
|
+
def initialize(**args)
|
597
|
+
update!(**args)
|
598
|
+
end
|
599
|
+
|
600
|
+
# Update properties of this object
|
601
|
+
def update!(**args)
|
602
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
603
|
+
@monitored_projects = args[:monitored_projects] if args.key?(:monitored_projects)
|
604
|
+
@name = args[:name] if args.key?(:name)
|
605
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
606
|
+
end
|
607
|
+
end
|
608
|
+
|
609
|
+
# A project being monitored (https://cloud.google.com/monitoring/settings/
|
610
|
+
# multiple-projects#create-multi) by a Metrics Scope.
|
611
|
+
class MonitoredProject
|
612
|
+
include Google::Apis::Core::Hashable
|
613
|
+
|
614
|
+
# Output only. The time when this MonitoredProject was created.
|
615
|
+
# Corresponds to the JSON property `createTime`
|
616
|
+
# @return [String]
|
617
|
+
attr_accessor :create_time
|
618
|
+
|
619
|
+
# Immutable. The resource name of the MonitoredProject. On input, the resource
|
620
|
+
# name includes the scoping project ID and monitored project ID. On output, it
|
621
|
+
# contains the equivalent project numbers. Example: locations/global/
|
622
|
+
# metricsScopes/`SCOPING_PROJECT_ID_OR_NUMBER`/projects/`
|
623
|
+
# MONITORED_PROJECT_ID_OR_NUMBER`
|
624
|
+
# Corresponds to the JSON property `name`
|
625
|
+
# @return [String]
|
626
|
+
attr_accessor :name
|
627
|
+
|
628
|
+
def initialize(**args)
|
629
|
+
update!(**args)
|
630
|
+
end
|
631
|
+
|
632
|
+
# Update properties of this object
|
633
|
+
def update!(**args)
|
634
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
635
|
+
@name = args[:name] if args.key?(:name)
|
636
|
+
end
|
637
|
+
end
|
638
|
+
|
527
639
|
# A mosaic layout divides the available space into a grid of blocks, and
|
528
640
|
# overlays the grid with tiles. Unlike GridLayout, tiles may span multiple grid
|
529
641
|
# blocks and can be placed at arbitrary locations in the grid.
|
@@ -552,6 +664,68 @@ module Google
|
|
552
664
|
end
|
553
665
|
end
|
554
666
|
|
667
|
+
# This resource represents a long-running operation that is the result of a
|
668
|
+
# network API call.
|
669
|
+
class Operation
|
670
|
+
include Google::Apis::Core::Hashable
|
671
|
+
|
672
|
+
# If the value is false, it means the operation is still in progress. If true,
|
673
|
+
# the operation is completed, and either error or response is available.
|
674
|
+
# Corresponds to the JSON property `done`
|
675
|
+
# @return [Boolean]
|
676
|
+
attr_accessor :done
|
677
|
+
alias_method :done?, :done
|
678
|
+
|
679
|
+
# The Status type defines a logical error model that is suitable for different
|
680
|
+
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
681
|
+
# (https://github.com/grpc). Each Status message contains three pieces of data:
|
682
|
+
# error code, error message, and error details.You can find out more about this
|
683
|
+
# error model and how to work with it in the API Design Guide (https://cloud.
|
684
|
+
# google.com/apis/design/errors).
|
685
|
+
# Corresponds to the JSON property `error`
|
686
|
+
# @return [Google::Apis::MonitoringV1::Status]
|
687
|
+
attr_accessor :error
|
688
|
+
|
689
|
+
# Service-specific metadata associated with the operation. It typically contains
|
690
|
+
# progress information and common metadata such as create time. Some services
|
691
|
+
# might not provide such metadata. Any method that returns a long-running
|
692
|
+
# operation should document the metadata type, if any.
|
693
|
+
# Corresponds to the JSON property `metadata`
|
694
|
+
# @return [Hash<String,Object>]
|
695
|
+
attr_accessor :metadata
|
696
|
+
|
697
|
+
# The server-assigned name, which is only unique within the same service that
|
698
|
+
# originally returns it. If you use the default HTTP mapping, the name should be
|
699
|
+
# a resource name ending with operations/`unique_id`.
|
700
|
+
# Corresponds to the JSON property `name`
|
701
|
+
# @return [String]
|
702
|
+
attr_accessor :name
|
703
|
+
|
704
|
+
# The normal response of the operation in case of success. If the original
|
705
|
+
# method returns no data on success, such as Delete, the response is google.
|
706
|
+
# protobuf.Empty. If the original method is standard Get/Create/Update, the
|
707
|
+
# response should be the resource. For other methods, the response should have
|
708
|
+
# the type XxxResponse, where Xxx is the original method name. For example, if
|
709
|
+
# the original method name is TakeSnapshot(), the inferred response type is
|
710
|
+
# TakeSnapshotResponse.
|
711
|
+
# Corresponds to the JSON property `response`
|
712
|
+
# @return [Hash<String,Object>]
|
713
|
+
attr_accessor :response
|
714
|
+
|
715
|
+
def initialize(**args)
|
716
|
+
update!(**args)
|
717
|
+
end
|
718
|
+
|
719
|
+
# Update properties of this object
|
720
|
+
def update!(**args)
|
721
|
+
@done = args[:done] if args.key?(:done)
|
722
|
+
@error = args[:error] if args.key?(:error)
|
723
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
724
|
+
@name = args[:name] if args.key?(:name)
|
725
|
+
@response = args[:response] if args.key?(:response)
|
726
|
+
end
|
727
|
+
end
|
728
|
+
|
555
729
|
# Contains metadata for longrunning operation for the edit Metrics Scope
|
556
730
|
# endpoints.
|
557
731
|
class OperationMetadata
|
@@ -912,6 +1086,45 @@ module Google
|
|
912
1086
|
end
|
913
1087
|
end
|
914
1088
|
|
1089
|
+
# The Status type defines a logical error model that is suitable for different
|
1090
|
+
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
1091
|
+
# (https://github.com/grpc). Each Status message contains three pieces of data:
|
1092
|
+
# error code, error message, and error details.You can find out more about this
|
1093
|
+
# error model and how to work with it in the API Design Guide (https://cloud.
|
1094
|
+
# google.com/apis/design/errors).
|
1095
|
+
class Status
|
1096
|
+
include Google::Apis::Core::Hashable
|
1097
|
+
|
1098
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
1099
|
+
# Corresponds to the JSON property `code`
|
1100
|
+
# @return [Fixnum]
|
1101
|
+
attr_accessor :code
|
1102
|
+
|
1103
|
+
# A list of messages that carry the error details. There is a common set of
|
1104
|
+
# message types for APIs to use.
|
1105
|
+
# Corresponds to the JSON property `details`
|
1106
|
+
# @return [Array<Hash<String,Object>>]
|
1107
|
+
attr_accessor :details
|
1108
|
+
|
1109
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
1110
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
1111
|
+
# field, or localized by the client.
|
1112
|
+
# Corresponds to the JSON property `message`
|
1113
|
+
# @return [String]
|
1114
|
+
attr_accessor :message
|
1115
|
+
|
1116
|
+
def initialize(**args)
|
1117
|
+
update!(**args)
|
1118
|
+
end
|
1119
|
+
|
1120
|
+
# Update properties of this object
|
1121
|
+
def update!(**args)
|
1122
|
+
@code = args[:code] if args.key?(:code)
|
1123
|
+
@details = args[:details] if args.key?(:details)
|
1124
|
+
@message = args[:message] if args.key?(:message)
|
1125
|
+
end
|
1126
|
+
end
|
1127
|
+
|
915
1128
|
# A widget that displays textual content.
|
916
1129
|
class Text
|
917
1130
|
include Google::Apis::Core::Hashable
|
@@ -1292,6 +1505,11 @@ module Google
|
|
1292
1505
|
class Widget
|
1293
1506
|
include Google::Apis::Core::Hashable
|
1294
1507
|
|
1508
|
+
# A chart that displays alert policy data.
|
1509
|
+
# Corresponds to the JSON property `alertChart`
|
1510
|
+
# @return [Google::Apis::MonitoringV1::AlertChart]
|
1511
|
+
attr_accessor :alert_chart
|
1512
|
+
|
1295
1513
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
1296
1514
|
# messages in your APIs. A typical example is to use it as the request or the
|
1297
1515
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -1328,6 +1546,7 @@ module Google
|
|
1328
1546
|
|
1329
1547
|
# Update properties of this object
|
1330
1548
|
def update!(**args)
|
1549
|
+
@alert_chart = args[:alert_chart] if args.key?(:alert_chart)
|
1331
1550
|
@blank = args[:blank] if args.key?(:blank)
|
1332
1551
|
@scorecard = args[:scorecard] if args.key?(:scorecard)
|
1333
1552
|
@text = args[:text] if args.key?(:text)
|
@@ -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.11.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 = "20210727"
|
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
|
@@ -352,6 +395,33 @@ module Google
|
|
352
395
|
end
|
353
396
|
end
|
354
397
|
|
398
|
+
class ListMetricsScopesByMonitoredProjectResponse
|
399
|
+
# @private
|
400
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
401
|
+
collection :metrics_scopes, as: 'metricsScopes', class: Google::Apis::MonitoringV1::MetricsScope, decorator: Google::Apis::MonitoringV1::MetricsScope::Representation
|
402
|
+
|
403
|
+
end
|
404
|
+
end
|
405
|
+
|
406
|
+
class MetricsScope
|
407
|
+
# @private
|
408
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
409
|
+
property :create_time, as: 'createTime'
|
410
|
+
collection :monitored_projects, as: 'monitoredProjects', class: Google::Apis::MonitoringV1::MonitoredProject, decorator: Google::Apis::MonitoringV1::MonitoredProject::Representation
|
411
|
+
|
412
|
+
property :name, as: 'name'
|
413
|
+
property :update_time, as: 'updateTime'
|
414
|
+
end
|
415
|
+
end
|
416
|
+
|
417
|
+
class MonitoredProject
|
418
|
+
# @private
|
419
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
420
|
+
property :create_time, as: 'createTime'
|
421
|
+
property :name, as: 'name'
|
422
|
+
end
|
423
|
+
end
|
424
|
+
|
355
425
|
class MosaicLayout
|
356
426
|
# @private
|
357
427
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -361,6 +431,18 @@ module Google
|
|
361
431
|
end
|
362
432
|
end
|
363
433
|
|
434
|
+
class Operation
|
435
|
+
# @private
|
436
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
437
|
+
property :done, as: 'done'
|
438
|
+
property :error, as: 'error', class: Google::Apis::MonitoringV1::Status, decorator: Google::Apis::MonitoringV1::Status::Representation
|
439
|
+
|
440
|
+
hash :metadata, as: 'metadata'
|
441
|
+
property :name, as: 'name'
|
442
|
+
hash :response, as: 'response'
|
443
|
+
end
|
444
|
+
end
|
445
|
+
|
364
446
|
class OperationMetadata
|
365
447
|
# @private
|
366
448
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -457,6 +539,15 @@ module Google
|
|
457
539
|
end
|
458
540
|
end
|
459
541
|
|
542
|
+
class Status
|
543
|
+
# @private
|
544
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
545
|
+
property :code, as: 'code'
|
546
|
+
collection :details, as: 'details'
|
547
|
+
property :message, as: 'message'
|
548
|
+
end
|
549
|
+
end
|
550
|
+
|
460
551
|
class Text
|
461
552
|
# @private
|
462
553
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -548,6 +639,8 @@ module Google
|
|
548
639
|
class Widget
|
549
640
|
# @private
|
550
641
|
class Representation < Google::Apis::Core::JsonRepresentation
|
642
|
+
property :alert_chart, as: 'alertChart', class: Google::Apis::MonitoringV1::AlertChart, decorator: Google::Apis::MonitoringV1::AlertChart::Representation
|
643
|
+
|
551
644
|
property :blank, as: 'blank', class: Google::Apis::MonitoringV1::Empty, decorator: Google::Apis::MonitoringV1::Empty::Representation
|
552
645
|
|
553
646
|
property :scorecard, as: 'scorecard', class: Google::Apis::MonitoringV1::Scorecard, decorator: Google::Apis::MonitoringV1::Scorecard::Representation
|
@@ -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,177 @@ module Google
|
|
53
54
|
@batch_path = 'batch'
|
54
55
|
end
|
55
56
|
|
57
|
+
# Returns a specific Metrics Scope.
|
58
|
+
# @param [String] name
|
59
|
+
# Required. The resource name of the Metrics Scope. Example: locations/global/
|
60
|
+
# metricsScopes/`SCOPING_PROJECT_ID_OR_NUMBER`
|
61
|
+
# @param [String] fields
|
62
|
+
# Selector specifying which fields to include in a partial response.
|
63
|
+
# @param [String] quota_user
|
64
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
65
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
66
|
+
# @param [Google::Apis::RequestOptions] options
|
67
|
+
# Request-specific options
|
68
|
+
#
|
69
|
+
# @yield [result, err] Result & error if block supplied
|
70
|
+
# @yieldparam result [Google::Apis::MonitoringV1::MetricsScope] parsed result object
|
71
|
+
# @yieldparam err [StandardError] error object if request failed
|
72
|
+
#
|
73
|
+
# @return [Google::Apis::MonitoringV1::MetricsScope]
|
74
|
+
#
|
75
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
76
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
77
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
78
|
+
def get_location_global_metrics_scope(name, fields: nil, quota_user: nil, options: nil, &block)
|
79
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
80
|
+
command.response_representation = Google::Apis::MonitoringV1::MetricsScope::Representation
|
81
|
+
command.response_class = Google::Apis::MonitoringV1::MetricsScope
|
82
|
+
command.params['name'] = name unless name.nil?
|
83
|
+
command.query['fields'] = fields unless fields.nil?
|
84
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
85
|
+
execute_or_queue_command(command, &block)
|
86
|
+
end
|
87
|
+
|
88
|
+
# Returns a list of every Metrics Scope that a specific MonitoredProject has
|
89
|
+
# been added to. The metrics scope representing the specified monitored project
|
90
|
+
# will always be the first entry in the response.
|
91
|
+
# @param [String] monitored_resource_container
|
92
|
+
# Required. The resource name of the Monitored Project being requested. Example:
|
93
|
+
# projects/`MONITORED_PROJECT_ID_OR_NUMBER`
|
94
|
+
# @param [String] fields
|
95
|
+
# Selector specifying which fields to include in a partial response.
|
96
|
+
# @param [String] quota_user
|
97
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
98
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
99
|
+
# @param [Google::Apis::RequestOptions] options
|
100
|
+
# Request-specific options
|
101
|
+
#
|
102
|
+
# @yield [result, err] Result & error if block supplied
|
103
|
+
# @yieldparam result [Google::Apis::MonitoringV1::ListMetricsScopesByMonitoredProjectResponse] parsed result object
|
104
|
+
# @yieldparam err [StandardError] error object if request failed
|
105
|
+
#
|
106
|
+
# @return [Google::Apis::MonitoringV1::ListMetricsScopesByMonitoredProjectResponse]
|
107
|
+
#
|
108
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
109
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
110
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
111
|
+
def list_location_global_metrics_scope_metrics_scopes_by_monitored_project(monitored_resource_container: nil, fields: nil, quota_user: nil, options: nil, &block)
|
112
|
+
command = make_simple_command(:get, 'v1/locations/global/metricsScopes:listMetricsScopesByMonitoredProject', options)
|
113
|
+
command.response_representation = Google::Apis::MonitoringV1::ListMetricsScopesByMonitoredProjectResponse::Representation
|
114
|
+
command.response_class = Google::Apis::MonitoringV1::ListMetricsScopesByMonitoredProjectResponse
|
115
|
+
command.query['monitoredResourceContainer'] = monitored_resource_container unless monitored_resource_container.nil?
|
116
|
+
command.query['fields'] = fields unless fields.nil?
|
117
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
118
|
+
execute_or_queue_command(command, &block)
|
119
|
+
end
|
120
|
+
|
121
|
+
# Adds a MonitoredProject with the given project ID to the specified Metrics
|
122
|
+
# Scope.
|
123
|
+
# @param [String] parent
|
124
|
+
# Required. The resource name of the existing Metrics Scope that will monitor
|
125
|
+
# this project. Example: locations/global/metricsScopes/`
|
126
|
+
# SCOPING_PROJECT_ID_OR_NUMBER`
|
127
|
+
# @param [Google::Apis::MonitoringV1::MonitoredProject] monitored_project_object
|
128
|
+
# @param [String] fields
|
129
|
+
# Selector specifying which fields to include in a partial response.
|
130
|
+
# @param [String] quota_user
|
131
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
132
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
133
|
+
# @param [Google::Apis::RequestOptions] options
|
134
|
+
# Request-specific options
|
135
|
+
#
|
136
|
+
# @yield [result, err] Result & error if block supplied
|
137
|
+
# @yieldparam result [Google::Apis::MonitoringV1::Operation] parsed result object
|
138
|
+
# @yieldparam err [StandardError] error object if request failed
|
139
|
+
#
|
140
|
+
# @return [Google::Apis::MonitoringV1::Operation]
|
141
|
+
#
|
142
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
143
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
144
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
145
|
+
def create_location_global_metrics_scope_project(parent, monitored_project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
146
|
+
command = make_simple_command(:post, 'v1/{+parent}/projects', options)
|
147
|
+
command.request_representation = Google::Apis::MonitoringV1::MonitoredProject::Representation
|
148
|
+
command.request_object = monitored_project_object
|
149
|
+
command.response_representation = Google::Apis::MonitoringV1::Operation::Representation
|
150
|
+
command.response_class = Google::Apis::MonitoringV1::Operation
|
151
|
+
command.params['parent'] = parent unless parent.nil?
|
152
|
+
command.query['fields'] = fields unless fields.nil?
|
153
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
154
|
+
execute_or_queue_command(command, &block)
|
155
|
+
end
|
156
|
+
|
157
|
+
# Deletes a MonitoredProject from the specified Metrics Scope.
|
158
|
+
# @param [String] name
|
159
|
+
# Required. The resource name of the MonitoredProject. Example: locations/global/
|
160
|
+
# metricsScopes/`SCOPING_PROJECT_ID_OR_NUMBER`/projects/`
|
161
|
+
# MONITORED_PROJECT_ID_OR_NUMBER`Authorization requires the following Google IAM
|
162
|
+
# (https://cloud.google.com/iam) permissions on both the Metrics Scope and on
|
163
|
+
# the MonitoredProject: monitoring.metricsScopes.link
|
164
|
+
# @param [String] fields
|
165
|
+
# Selector specifying which fields to include in a partial response.
|
166
|
+
# @param [String] quota_user
|
167
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
168
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
169
|
+
# @param [Google::Apis::RequestOptions] options
|
170
|
+
# Request-specific options
|
171
|
+
#
|
172
|
+
# @yield [result, err] Result & error if block supplied
|
173
|
+
# @yieldparam result [Google::Apis::MonitoringV1::Operation] parsed result object
|
174
|
+
# @yieldparam err [StandardError] error object if request failed
|
175
|
+
#
|
176
|
+
# @return [Google::Apis::MonitoringV1::Operation]
|
177
|
+
#
|
178
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
179
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
180
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
181
|
+
def delete_location_global_metrics_scope_project(name, fields: nil, quota_user: nil, options: nil, &block)
|
182
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
183
|
+
command.response_representation = Google::Apis::MonitoringV1::Operation::Representation
|
184
|
+
command.response_class = Google::Apis::MonitoringV1::Operation
|
185
|
+
command.params['name'] = name unless name.nil?
|
186
|
+
command.query['fields'] = fields unless fields.nil?
|
187
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
188
|
+
execute_or_queue_command(command, &block)
|
189
|
+
end
|
190
|
+
|
191
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
192
|
+
# to poll the operation result at intervals as recommended by the API service.
|
193
|
+
# @param [String] name
|
194
|
+
# The name of the operation resource.
|
195
|
+
# @param [String] fields
|
196
|
+
# Selector specifying which fields to include in a partial response.
|
197
|
+
# @param [String] quota_user
|
198
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
199
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
200
|
+
# @param [Google::Apis::RequestOptions] options
|
201
|
+
# Request-specific options
|
202
|
+
#
|
203
|
+
# @yield [result, err] Result & error if block supplied
|
204
|
+
# @yieldparam result [Google::Apis::MonitoringV1::Operation] parsed result object
|
205
|
+
# @yieldparam err [StandardError] error object if request failed
|
206
|
+
#
|
207
|
+
# @return [Google::Apis::MonitoringV1::Operation]
|
208
|
+
#
|
209
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
210
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
211
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
212
|
+
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
213
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
214
|
+
command.response_representation = Google::Apis::MonitoringV1::Operation::Representation
|
215
|
+
command.response_class = Google::Apis::MonitoringV1::Operation
|
216
|
+
command.params['name'] = name unless name.nil?
|
217
|
+
command.query['fields'] = fields unless fields.nil?
|
218
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
219
|
+
execute_or_queue_command(command, &block)
|
220
|
+
end
|
221
|
+
|
56
222
|
# 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
|
-
#
|
223
|
+
# create dashboards, see Managing dashboards by API (https://cloud.google.com/
|
224
|
+
# monitoring/dashboards/api-dashboard). This method requires the monitoring.
|
225
|
+
# dashboards.create permission on the specified project. For more information
|
226
|
+
# about permissions, see Cloud Identity and Access Management (https://cloud.
|
227
|
+
# google.com/iam).
|
60
228
|
# @param [String] parent
|
61
229
|
# Required. The project on which to execute the request. The format is: projects/
|
62
230
|
# [PROJECT_ID_OR_NUMBER] The [PROJECT_ID_OR_NUMBER] must match the dashboard
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
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.11.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-
|
11
|
+
date: 2021-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.4'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for Cloud Monitoring API V1. Simple REST
|
28
34
|
clients are Ruby client libraries that provide access to Google services via their
|
29
35
|
HTTP REST API endpoints. These libraries are generated and updated automatically
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-monitoring_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v1/v0.11.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-monitoring_v1
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|