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.
2340 2341 2342 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2340 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
2330 2331 2332 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2330 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
2338 2339 2340 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2338 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2345 2346 2347 2348 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2345 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @url = args[:url] if args.key?(:url) end |