class Loki::Client

Defined in:

client.cr
config.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(config : Loki::Client::Config) #

[View source]

Class Method Detail

def self.from_env #

[View source]

Instance Method Detail

def config : Config #

[View source]
def list_label_values(name : String, start : Time, end_time : Time) : Loki::Model::LabelResponse #

[View source]
def list_label_values(label : String, since : Time::Span = 1.hour) : Loki::Model::LabelResponse #

[View source]
def list_labels(start : Time, end_time : Time) : Loki::Model::LabelResponse #

[View source]
def list_labels(since : Time::Span = 1.hour) : Loki::Model::LabelResponse #

[View source]
def query(query : String, limit : Int32, time : Time, direction : Loki::Direction) : Loki::Model::QueryResponse #

[View source]
def query(query : String, limit : Int32 = 30) #

[View source]
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 #

[View source]
def query_range(query : String, limit : Int32 = 30) #

[View source]
def series(matches : Array(String), start : Time, end_time : Time) : Loki::Model::SeriesResponse #

[View source]
def series(matches : Array(String) = Array(String).new, since : Time::Span = 1.hour) #

[View source]
def stats(query : String, start : Time, end_time : Time) : Loki::Model::IndexStatsResponse #

[View source]
def stats(query : String, since = 1.hour) #

[View source]