Class: Google::Apis::MonitoringV3::UptimeCheckIp

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

Overview

Contains the region, location, and list of IP addresses where checkers in the location run from.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UptimeCheckIp

Returns a new instance of UptimeCheckIp



2872
2873
2874
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2872

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

Instance Attribute Details

#ip_addressString

The IP address from which the uptime check originates. This is a full IP address (not an IP address range). Most IP addresses, as of this publication, are in IPv4 format; however, one should not rely on the IP addresses being in IPv4 format indefinitely and should support interpreting this field in either IPv4 or IPv6 format. Corresponds to the JSON property ipAddress

Returns:

  • (String)


2858
2859
2860
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2858

def ip_address
  @ip_address
end

#locationString

A more specific location within the region that typically encodes a particular city/town/metro (and its containing state/province or country) within the broader umbrella region category. Corresponds to the JSON property location

Returns:

  • (String)


2865
2866
2867
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2865

def location
  @location
end

#regionString

A broad region category in which the IP address is located. Corresponds to the JSON property region

Returns:

  • (String)


2870
2871
2872
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2870

def region
  @region
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2877
2878
2879
2880
2881
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2877

def update!(**args)
  @ip_address = args[:ip_address] if args.key?(:ip_address)
  @location = args[:location] if args.key?(:location)
  @region = args[:region] if args.key?(:region)
end