All Implemented Interfaces:
NamedWriteable, Writeable, Resolvable

public class InstantSelector extends Selector
Represents a PromQL instant vector selector. An instant vector selects time series based on metric name and label matchers, returning the most recent sample at the evaluation timestamp. This corresponds to PromQL syntax: metric_name{label="value"} offset 5m @ timestamp Examples: http_requests_total cpu_usage{host="web-1"} memory_used{env=~"prod.*"} offset 10m up{job="prometheus"} @ 1609746000 The instant vector selects a single sample per matching time series at the evaluation time (with optional offset/@ modifiers), representing the current state. Conceptually an instant selector is a range selector with a null range.