Sha256: 69ef5d5602fd8484ba88efa05188f0370889d39c0eaa9a5a4879a37b415b70ac
Contents?: true
Size: 630 Bytes
Versions: 59
Compression:
Stored size: 630 Bytes
Contents
# encoding: utf-8 require "logstash/instrument/collector" module LogStash module Api class Service include LogStash::Util::Loggable attr_reader :agent def initialize(agent) @agent = agent logger.debug("[api-service] start") if logger.debug? end def started? true end def snapshot agent.metric.collector.snapshot_metric end def get_shallow(*path) snapshot.metric_store.get_shallow(*path) end def extract_metrics(path, *keys) snapshot.metric_store.extract_metrics(path, *keys) end end end end
Version data entries
59 entries across 59 versions & 1 rubygems