Class: PEClient::Resource::NodeClassifierV1::Nodes
- Defined in:
- lib/pe_client/resources/node_classifier.v1/nodes.rb
Overview
Use the nodes endpoints to retrieve records about nodes that have checked into the node classifier.
Constant Summary collapse
- BASE_PATH =
The base path for Node Classifier API v1 nodes endpoints.
"#{NodeClassifierV1::BASE_PATH}/nodes".freeze
Instance Method Summary collapse
-
#get(node: nil, limit: nil, offset: nil) ⇒ Hash
Retrieve check-in history for all nodes or a specific node that have checked in with the node classifier.
Methods inherited from Base
Constructor Details
This class inherits a constructor from PEClient::Resource::Base
Instance Method Details
#get(node: nil, limit: nil, offset: nil) ⇒ Hash
Retrieve check-in history for all nodes or a specific node that have checked in with the node classifier.
39 40 41 42 43 44 45 |
# File 'lib/pe_client/resources/node_classifier.v1/nodes.rb', line 39 def get(node: nil, limit: nil, offset: nil) if node @client.get "#{BASE_PATH}/#{node}" else @client.get BASE_PATH, params: {limit:, offset:}.compact end end |