Class: Google::Apis::MonitoringV1::MonitoredProject

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MonitoredProject

Returns a new instance of MonitoredProject.



1203
1204
1205
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1203

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. The time when this MonitoredProject was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1192
1193
1194
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1192

def create_time
  @create_time
end

#nameString

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

Returns:

  • (String)


1201
1202
1203
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1201

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1208
1209
1210
1211
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1208

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @name = args[:name] if args.key?(:name)
end