Class: Google::Apis::MonitoringV1::MonitoredProject
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::MonitoredProject
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/monitoring_v1/classes.rb,
lib/google/apis/monitoring_v1/representations.rb,
lib/google/apis/monitoring_v1/representations.rb
Overview
A project being monitored (https://cloud.google.com/monitoring/settings/ multiple-projects#create-multi) by a Metrics Scope.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#is_tombstoned ⇒ Boolean
(also: #is_tombstoned?)
Output only.
-
#name ⇒ String
Immutable.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MonitoredProject
constructor
A new instance of MonitoredProject.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MonitoredProject
Returns a new instance of MonitoredProject.
1335 1336 1337 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1335 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time when this MonitoredProject was created.
Corresponds to the JSON property createTime
1318 1319 1320 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1318 def create_time @create_time end |
#is_tombstoned ⇒ Boolean Also known as: is_tombstoned?
Output only. Set if the project has been tombstoned by the user.
Corresponds to the JSON property isTombstoned
1323 1324 1325 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1323 def is_tombstoned @is_tombstoned end |
#name ⇒ String
Immutable. The resource name of the MonitoredProject. On input, the resource
name includes the scoping project ID and monitored project ID. On output, it
contains the equivalent project numbers. Example: locations/global/
metricsScopes/SCOPING_PROJECT_ID_OR_NUMBER/projects/
MONITORED_PROJECT_ID_OR_NUMBER
Corresponds to the JSON property name
1333 1334 1335 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1333 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1340 1341 1342 1343 1344 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1340 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @is_tombstoned = args[:is_tombstoned] if args.key?(:is_tombstoned) @name = args[:name] if args.key?(:name) end |