Class: Google::Apis::MonitoringV3::InternalChecker
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::InternalChecker
- 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
-
#display_name ⇒ String
The checker's human-readable name.
-
#gcp_zone ⇒ String
The GCP zone the Uptime check should egress from.
-
#name ⇒ String
A unique resource name for this InternalChecker.
-
#network ⇒ String
The GCP VPC network (https://cloud.google.com/vpc/docs/vpc) where the internal resource lives (ex: "default").
-
#peer_project_id ⇒ String
The GCP project ID where the internal checker lives.
-
#state ⇒ String
The current operational state of the internal checker.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InternalChecker
constructor
A new instance of InternalChecker.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InternalChecker
Returns a new instance of InternalChecker.
1799 1800 1801 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1799 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
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
1766 1767 1768 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1766 def display_name @display_name end |
#gcp_zone ⇒ String
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
1772 1773 1774 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1772 def gcp_zone @gcp_zone end |
#name ⇒ String
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
1780 1781 1782 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1780 def name @name end |
#network ⇒ String
The GCP VPC network (https://cloud.google.com/vpc/docs/vpc) where the internal
resource lives (ex: "default").
Corresponds to the JSON property network
1786 1787 1788 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1786 def network @network end |
#peer_project_id ⇒ String
The GCP project ID where the internal checker lives. Not necessary the same as
the Metrics Scope project.
Corresponds to the JSON property peerProjectId
1792 1793 1794 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1792 def peer_project_id @peer_project_id end |
#state ⇒ String
The current operational state of the internal checker.
Corresponds to the JSON property state
1797 1798 1799 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1797 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1804 1805 1806 1807 1808 1809 1810 1811 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 1804 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 |