Documentation ¶
Index ¶
- Constants
- type Option
- func Aggregates(values []string) Option
- func ApptimeLabel(s string) Option
- func CSVAggregates(csv string) Option
- func CSVExcludeStatuses(csv string) Option
- func CSVExcludes(csv string) Option
- func CSVIncludeStatuses(csv string) Option
- func CSVIncludes(csv string) Option
- func EndTime(s string) Option
- func EndTimeDuration(s string) Option
- func ExcludeStatuses(values []string) Option
- func Excludes(values []string) Option
- func File(s string) Option
- func IncludeStatuses(values []string) Option
- func Includes(values []string) Option
- func Limit(i int) Option
- func Location(s string) Option
- func MethodLabel(s string) Option
- func NoHeaders(b bool) Option
- func QueryString(b bool) Option
- func ReqtimeLabel(s string) Option
- func Reverse(b bool) Option
- func SizeLabel(s string) Option
- func Sort(s string) Option
- func StartTime(s string) Option
- func StartTimeDuration(s string) Option
- func StatusLabel(s string) Option
- func TimeLabel(s string) Option
- func Tsv(b bool) Option
- func UriLabel(s string) Option
- type Options
Constants ¶
View Source
const ( DefaultSortOption = "max" DefaultApptimeLabelOption = "apptime" DefaultReqtimeLabelOption = "reqtime" DefaultStatusLabelOption = "status" DefaultSizeLabelOption = "size" DefaultMethodLabelOption = "method" DefaultUriLabelOption = "uri" DefaultTimeLabelOption = "time" DefaultLimitOption = 5000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
func Aggregates ¶
func ApptimeLabel ¶
func CSVAggregates ¶
func CSVExcludeStatuses ¶
func CSVExcludes ¶
func CSVIncludeStatuses ¶
func CSVIncludes ¶
func EndTimeDuration ¶
func ExcludeStatuses ¶
func IncludeStatuses ¶
func MethodLabel ¶
func QueryString ¶
func ReqtimeLabel ¶
func StartTimeDuration ¶
func StatusLabel ¶
type Options ¶
type Options struct { File string `yaml:"file"` Sort string `yaml:"sort"` Reverse bool `yaml:"reverse"` QueryString bool `yaml:"query_string"` Tsv bool `yaml:"tsv"` NoHeaders bool `yaml:no_headers` ApptimeLabel string `yaml:"apptime_label"` ReqtimeLabel string `yaml:"reqtime_label"` StatusLabel string `yaml:"status_label"` SizeLabel string `yaml:"size_label"` MethodLabel string `yaml:"method_label"` UriLabel string `yaml:"uri_label"` TimeLabel string `yaml:"time_label"` Limit int `yaml:"limit"` Includes []string `yaml:"includes"` Excludes []string `yaml:"excludes"` IncludeStatuses []string `yaml:"include_statuses"` ExcludeStatuses []string `yaml:"exclude_statuses"` Aggregates []string `yaml:"aggregates"` StartTime string `yaml:"start_time"` EndTime string `yaml:"end_time"` StartTimeDuration string `yaml:"start_time_duration"` EndTimeDuration string `yaml:"end_time_duration"` Location string `yaml:location` }
func NewOptions ¶
func SetOptions ¶
Click to show internal directories.
Click to hide internal directories.