Sha256: f6713c2489139ce57df94d5bc8de46aa439bea56c9906ae8649db00f02a05c3c
Contents?: true
Size: 663 Bytes
Versions: 127
Compression:
Stored size: 663 Bytes
Contents
# encoding: utf-8 require "logstash/instrument/collector" require "logstash/util/loggable" 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
127 entries across 124 versions & 14 rubygems