Class: Google::Apis::MonitoringV3::InternalChecker

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

An internal checker allows Uptime checks to run on private/internal GCP resources.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InternalChecker

Returns a new instance of InternalChecker.



1998
1999
2000
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1998

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

Instance Attribute Details

#display_nameString

The checker's human-readable name. The display name should be unique within a Cloud Monitoring Metrics Scope in order to make it easier to identify; however, uniqueness is not enforced. Corresponds to the JSON property displayName

Returns:

  • (String)


1965
1966
1967
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1965

def display_name
  @display_name
end

#gcp_zoneString

The GCP zone the Uptime check should egress from. Only respected for internal Uptime checks, where internal_network is specified. Corresponds to the JSON property gcpZone

Returns:

  • (String)


1971
1972
1973
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1971

def gcp_zone
  @gcp_zone
end

#nameString

A unique resource name for this InternalChecker. The format is: projects/[ PROJECT_ID_OR_NUMBER]/internalCheckers/[INTERNAL_CHECKER_ID] [ PROJECT_ID_OR_NUMBER] is the Cloud Monitoring Metrics Scope project for the Uptime check config associated with the internal checker. Corresponds to the JSON property name

Returns:

  • (String)


1979
1980
1981
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1979

def name
  @name
end

#networkString

The GCP VPC network (https://cloud.google.com/vpc/docs/vpc) where the internal resource lives (ex: "default"). Corresponds to the JSON property network

Returns:

  • (String)


1985
1986
1987
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1985

def network
  @network
end

#peer_project_idString

The GCP project ID where the internal checker lives. Not necessary the same as the Metrics Scope project. Corresponds to the JSON property peerProjectId

Returns:

  • (String)


1991
1992
1993
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1991

def peer_project_id
  @peer_project_id
end

#stateString

The current operational state of the internal checker. Corresponds to the JSON property state

Returns:

  • (String)


1996
1997
1998
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1996

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2003
2004
2005
2006
2007
2008
2009
2010
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2003

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @gcp_zone = args[:gcp_zone] if args.key?(:gcp_zone)
  @name = args[:name] if args.key?(:name)
  @network = args[:network] if args.key?(:network)
  @peer_project_id = args[:peer_project_id] if args.key?(:peer_project_id)
  @state = args[:state] if args.key?(:state)
end