C# Class KairosDbClient.QueryBuilder

Use to query 1 or more metrics for a time range. A start time is required, either absolute or relative. End time is optional and defaults to now
Show file Open project: syncromatics/KairosDbClientDotNet Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
AddQueryMetric ( QueryMetric metric ) : QueryBuilder

Add a metric to query for

SetCacheTime ( System.TimeSpan cacheTime ) : QueryBuilder
SetEnd ( DateTimeOffset end ) : QueryBuilder

This will be passed to kairosdb as an absolute time

SetEnd ( RelativeTime end ) : QueryBuilder

This will be passed to kairosdb as a relative time with the unit specified

SetEnd ( System.TimeSpan end ) : QueryBuilder

This will be passed to kairosdb as a relative milliseconds value

SetStart ( DateTimeOffset start ) : QueryBuilder

This will be passed to kairosdb as an absolute time

SetStart ( RelativeTime start ) : QueryBuilder

This will be passed to kairosdb as a relative time with the unit specified

SetStart ( System.TimeSpan start ) : QueryBuilder

This will be passed to kairosdb as a relative milliseconds value

SetTimeZone ( string timezone ) : QueryBuilder

Method Details

AddQueryMetric() public method

Add a metric to query for
public AddQueryMetric ( QueryMetric metric ) : QueryBuilder
metric QueryMetric
return QueryBuilder

SetCacheTime() public method

public SetCacheTime ( System.TimeSpan cacheTime ) : QueryBuilder
cacheTime System.TimeSpan
return QueryBuilder

SetEnd() public method

This will be passed to kairosdb as an absolute time
public SetEnd ( DateTimeOffset end ) : QueryBuilder
end DateTimeOffset
return QueryBuilder

SetEnd() public method

This will be passed to kairosdb as a relative time with the unit specified
public SetEnd ( RelativeTime end ) : QueryBuilder
end RelativeTime
return QueryBuilder

SetEnd() public method

This will be passed to kairosdb as a relative milliseconds value
public SetEnd ( System.TimeSpan end ) : QueryBuilder
end System.TimeSpan
return QueryBuilder

SetStart() public method

This will be passed to kairosdb as an absolute time
public SetStart ( DateTimeOffset start ) : QueryBuilder
start DateTimeOffset
return QueryBuilder

SetStart() public method

This will be passed to kairosdb as a relative time with the unit specified
public SetStart ( RelativeTime start ) : QueryBuilder
start RelativeTime
return QueryBuilder

SetStart() public method

This will be passed to kairosdb as a relative milliseconds value
public SetStart ( System.TimeSpan start ) : QueryBuilder
start System.TimeSpan
return QueryBuilder

SetTimeZone() public method

public SetTimeZone ( string timezone ) : QueryBuilder
timezone string
return QueryBuilder