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

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

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

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) ⇒ InternalChecker

Returns a new instance of InternalChecker



1246
1247
1248
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1246

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 Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced. Corresponds to the JSON property displayName

Returns:

  • (String)


1213
1214
1215
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1213

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)


1219
1220
1221
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1219

def gcp_zone
  @gcp_zone
end

#nameString

A unique resource name for this InternalChecker. The format is:projects/[ PROJECT_ID]/internalCheckers/[INTERNAL_CHECKER_ID].PROJECT_ID is the stackdriver workspace project for the uptime check config associated with the internal checker. Corresponds to the JSON property name

Returns:

  • (String)


1227
1228
1229
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1227

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)


1233
1234
1235
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1233

def network
  @network
end

#peer_project_idString

The GCP project_id where the internal checker lives. Not necessary the same as the workspace project. Corresponds to the JSON property peerProjectId

Returns:

  • (String)


1239
1240
1241
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1239

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)


1244
1245
1246
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1244

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1251
1252
1253
1254
1255
1256
1257
1258
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1251

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