Class: Google::Apis::MonitoringV3::Link

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/monitoring_v3/classes.rb,
lib/google/apis/monitoring_v3/representations.rb,
lib/google/apis/monitoring_v3/representations.rb

Overview

Links to content such as playbooks, repositories, and other resources.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Link

Returns a new instance of Link.



2247
2248
2249
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2247

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

Instance Attribute Details

#display_nameString

A short display name for the link. The display name must not be empty or exceed 63 characters. Example: "playbook". Corresponds to the JSON property displayName

Returns:

  • (String)


2237
2238
2239
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2237

def display_name
  @display_name
end

#urlString

The url of a webpage. A url can be templatized by using variables in the path or the query parameters. The total length of a URL should not exceed 2083 characters before and after variable expansion. Example: "https://my_domain. com/playbook?name=$resource.name" Corresponds to the JSON property url

Returns:

  • (String)


2245
2246
2247
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2245

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2252
2253
2254
2255
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2252

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