class
Loki::Client
- Loki::Client
- Reference
- Object
Defined in:
client.crconfig.cr
Constructors
Class Method Summary
Instance Method Summary
- #buildinfo : Loki::Model::BuildInfoResponse
- #config : Config
- #detected_field_values(name : String, query : String, start : Time, end_time : Time, limit : Int32 = 1000, line_limit : Int32 = 100, step : Time::Span | Nil = nil) : Loki::Model::DetectedFieldValuesResponse
- #detected_fields(query : String, start : Time, end_time : Time, limit : Int32 = 1000, line_limit : Int32 = 100, step : Time::Span | Nil = nil) : Loki::Model::DetectedFieldsResponse
- #format_query(query : String) : Loki::Model::FormatQueryResponse
- #get_config(mode : String | Nil = nil) : JSON::Any
- #list_label_values(name : String, start : Time, end_time : Time) : Loki::Model::LabelResponse
- #list_label_values(label : String, since : Time::Span = 1.hour) : Loki::Model::LabelResponse
- #list_labels(start : Time, end_time : Time) : Loki::Model::LabelResponse
- #list_labels(since : Time::Span = 1.hour) : Loki::Model::LabelResponse
- #log_level : Loki::Model::LogLevelResponse
- #metrics : String
- #patterns(query : String, start : Time, end_time : Time, step : Time::Span | Nil = nil) : Loki::Model::PatternsResponse
- #query(query : String, limit : Int32, time : Time, direction : Loki::Direction) : Loki::Model::QueryResponse
- #query(query : String, limit : Int32 = 30)
- #query_range(query : String, limit : Int32, start : Time, end_time : Time, direction : Loki::Direction, step : Time::Span | Nil = nil, interval : Time::Span | Nil = nil) : Loki::Model::QueryResponse
- #query_range(query : String, limit : Int32 = 30)
- #ready? : Bool
- #series(matches : Array(String), start : Time, end_time : Time) : Loki::Model::SeriesResponse
- #series(matches : Array(String) = Array(String).new, since : Time::Span = 1.hour)
- #services : Loki::Model::ServicesResponse
- #stats(query : String, start : Time, end_time : Time) : Loki::Model::IndexStatsResponse
- #stats(query : String, since = 1.hour)
- #tail(query : String, limit : Int32 = 100, delay_for : Int32 = 0, start : Time | Nil = nil) : HTTP::WebSocket
- #tail(query : String, limit : Int32 = 100, delay_for : Int32 = 0, start : Time | Nil = nil, &block : Loki::Model::TailResponse -> ) : Nil
- #volume(query : String, start : Time, end_time : Time, limit : Int32 = 100, target_labels : String | Nil = nil, aggregate_by : String | Nil = nil) : Loki::Model::VolumeResponse
- #volume_range(query : String, start : Time, end_time : Time, limit : Int32 = 100, step : Time::Span | Nil = nil, target_labels : String | Nil = nil, aggregate_by : String | Nil = nil) : Loki::Model::VolumeResponse
Constructor Detail
Class Method Detail
Instance Method Detail
def detected_field_values(name : String, query : String, start : Time, end_time : Time, limit : Int32 = 1000, line_limit : Int32 = 100, step : Time::Span | Nil = nil) : Loki::Model::DetectedFieldValuesResponse
#
def detected_fields(query : String, start : Time, end_time : Time, limit : Int32 = 1000, line_limit : Int32 = 100, step : Time::Span | Nil = nil) : Loki::Model::DetectedFieldsResponse
#
def list_label_values(name : String, start : Time, end_time : Time) : Loki::Model::LabelResponse
#
def patterns(query : String, start : Time, end_time : Time, step : Time::Span | Nil = nil) : Loki::Model::PatternsResponse
#
def query(query : String, limit : Int32, time : Time, direction : Loki::Direction) : Loki::Model::QueryResponse
#
def query_range(query : String, limit : Int32, start : Time, end_time : Time, direction : Loki::Direction, step : Time::Span | Nil = nil, interval : Time::Span | Nil = nil) : Loki::Model::QueryResponse
#
def series(matches : Array(String), start : Time, end_time : Time) : Loki::Model::SeriesResponse
#
def stats(query : String, start : Time, end_time : Time) : Loki::Model::IndexStatsResponse
#
def tail(query : String, limit : Int32 = 100, delay_for : Int32 = 0, start : Time | Nil = nil) : HTTP::WebSocket
#
def tail(query : String, limit : Int32 = 100, delay_for : Int32 = 0, start : Time | Nil = nil, &block : Loki::Model::TailResponse -> ) : Nil
#
def volume(query : String, start : Time, end_time : Time, limit : Int32 = 100, target_labels : String | Nil = nil, aggregate_by : String | Nil = nil) : Loki::Model::VolumeResponse
#
def volume_range(query : String, start : Time, end_time : Time, limit : Int32 = 100, step : Time::Span | Nil = nil, target_labels : String | Nil = nil, aggregate_by : String | Nil = nil) : Loki::Model::VolumeResponse
#