Class: Google::Apis::MonitoringV3::Link
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::Link
- 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
-
#display_name ⇒ String
A short display name for the link.
-
#url ⇒ String
The url of a webpage.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Link
constructor
A new instance of Link.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_name ⇒ String
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
2237 2238 2239 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2237 def display_name @display_name end |
#url ⇒ String
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
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 |