Documentation ¶
Index ¶
- type Aggregation
- type AggregationType
- type Calendar
- type Client
- type DataType
- type Days
- type Entity
- func (self *Entity) Enabled() *bool
- func (self *Entity) LastIsertTime() *time.Time
- func (self *Entity) Name() string
- func (self *Entity) SetEnabled(isEnabled bool) *Entity
- func (self *Entity) SetTag(key, val string) *Entity
- func (self *Entity) Tags() map[string]string
- func (self *Entity) UnmarshalJSON(data []byte) error
- type EntityGroup
- type ForecastMeta
- type Group
- type GroupType
- type InterpolationType
- type InvalidAction
- type Message
- func (self *Message) Entity() string
- func (self *Message) MarshalJSON() ([]byte, error)
- func (self *Message) Message() string
- func (self *Message) SetEntity(entity string) *Message
- func (self *Message) SetMessage(message string) *Message
- func (self *Message) SetSeverity(severity Severity) *Message
- func (self *Message) SetSource(source string) *Message
- func (self *Message) SetTag(name, value string) *Message
- func (self *Message) SetTimestamp(timestamp net.Millis) *Message
- func (self *Message) SetType(mType string) *Message
- func (self *Message) Severity() *Severity
- func (self *Message) Source() *string
- func (self *Message) String() string
- func (self *Message) TagValue(name string) (string, bool)
- func (self *Message) Timestamp() *net.Millis
- func (self *Message) Type() *string
- func (self *Message) UnmarshalJSON(data []byte) error
- type MessagesQuery
- func (self *MessagesQuery) EndDateTime() *time.Time
- func (self *MessagesQuery) Entity() string
- func (self *MessagesQuery) Limit() *uint64
- func (self *MessagesQuery) MarshalJSON() ([]byte, error)
- func (self *MessagesQuery) SetEndDateTime(endDateTime time.Time) *MessagesQuery
- func (self *MessagesQuery) SetEntity(entity string) *MessagesQuery
- func (self *MessagesQuery) SetLimit(limit uint64) *MessagesQuery
- func (self *MessagesQuery) SetSeverity(severity Severity) *MessagesQuery
- func (self *MessagesQuery) SetSource(source string) *MessagesQuery
- func (self *MessagesQuery) SetStartDateTime(startDateTime time.Time) *MessagesQuery
- func (self *MessagesQuery) SetTag(name string, values []string) *MessagesQuery
- func (self *MessagesQuery) SetType(mType string) *MessagesQuery
- func (self *MessagesQuery) Severity() *Severity
- func (self *MessagesQuery) Source() *string
- func (self *MessagesQuery) StartDateTime() *time.Time
- func (self *MessagesQuery) String() string
- func (self *MessagesQuery) TagValue(name string) ([]string, bool)
- func (self *MessagesQuery) Type() *string
- type Metric
- func (self *Metric) Counter() bool
- func (self *Metric) DataType() DataType
- func (self *Metric) Description() *string
- func (self *Metric) Enabled() bool
- func (self *Metric) Filter() *string
- func (self *Metric) GetLastInsertTime() *time.Time
- func (self *Metric) InvalidAction() InvalidAction
- func (self *Metric) Label() *string
- func (self *Metric) MarshalJSON() ([]byte, error)
- func (self *Metric) MaxValue() *net.Number
- func (self *Metric) MinValue() *net.Number
- func (self *Metric) Name() string
- func (self *Metric) Persistent() bool
- func (self *Metric) RetentionInterval() Days
- func (self *Metric) SetCounter(isCounter bool) *Metric
- func (self *Metric) SetDataType(dataType DataType) *Metric
- func (self *Metric) SetDescription(description string) *Metric
- func (self *Metric) SetEnabled(isEnabled bool) *Metric
- func (self *Metric) SetFilter(filter string) *Metric
- func (self *Metric) SetInvalidAction(invalidAction InvalidAction) *Metric
- func (self *Metric) SetLabel(label string) *Metric
- func (self *Metric) SetMaxValue(maxValue net.Number) *Metric
- func (self *Metric) SetMinValue(minValue net.Number) *Metric
- func (self *Metric) SetName(name string) *Metric
- func (self *Metric) SetPersistent(isPersistent bool) *Metric
- func (self *Metric) SetRetentionInterval(retentionInterval Days) *Metric
- func (self *Metric) SetTag(name, value string) *Metric
- func (self *Metric) SetTimePrecision(timePrecision TimePrecision) *Metric
- func (self *Metric) TagValue(name string) (string, bool)
- func (self *Metric) TimePrecision() TimePrecision
- type Period
- type Property
- func (self *Property) Entity() string
- func (self *Property) Key() map[string]string
- func (self *Property) MarshalJSON() ([]byte, error)
- func (self *Property) PropType() string
- func (self *Property) SetAllTags(tags map[string]string) *Property
- func (self *Property) SetKey(key map[string]string) *Property
- func (self *Property) SetKeyPart(name, value string) *Property
- func (self *Property) SetTag(name, value string) *Property
- func (self *Property) SetTimestamp(timestamp net.Millis) *Property
- func (self *Property) String() string
- func (self *Property) TagValue(name string) (string, bool)
- func (self *Property) Tags() map[string]string
- func (self *Property) Timestamp() *net.Millis
- type Rate
- type Sample
- type Series
- type SeriesQuery
- type SeriesType
- type Severity
- type Table
- type Threshold
- type TimePrecision
- type Unit
- type WorkingMinutes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregation ¶
type Aggregation struct { Types []AggregationType `json:"types,omitempty"` Type AggregationType `json:"type,omitempty"` Period Period `json:"period,omitempty"` Interpolate InterpolationType `json:"interpolate,omitempty"` Threshold *Threshold `json:"threshold,omitempty"` Calendar *Calendar `json:"calendar,omitempty"` WorkingMinutes *WorkingMinutes `json:"workingMinutes,omitempty"` Counter bool `json:"counter,omitempty"` Order uint `json:"order,omitempty"` }
type AggregationType ¶
type AggregationType string
const ( AgDetail AggregationType = "DETAIL" AgCount AggregationType = "COUNT" AgMin AggregationType = "MIN" AgMax AggregationType = "MAX" AgAvg AggregationType = "AVG" AgSum AggregationType = "SUM" AgPercentile999 AggregationType = "PERCENTILE_999" AgPercentile995 AggregationType = "PERCENTILE_995" AgPercentile99 AggregationType = "PERCENTILE_99" AgPercentile95 AggregationType = "PERCENTILE_95" AgPercentile90 AggregationType = "PERCENTILE_90" AgPercentile75 AggregationType = "PERCENTILE_75" AgPercentile50 AggregationType = "PERCENTILE_50" AgMedian AggregationType = "MEDIAN" AgStandardDeviation AggregationType = "STANDARD_DEVIATION" AgFirst AggregationType = "FIRST" AgLast AggregationType = "LAST" AgDelta AggregationType = "DELTA" AgWavg AggregationType = "WAVG" AgWtavg AggregationType = "WTAVG" AgThresholdCount AggregationType = "THRESHOLD_COUNT" AgThresholdDuration AggregationType = "THRESHOLD_DURATION" AgThreshold_Percent AggregationType = "THRESHOLD_PERCENT" AgMinValueTime AggregationType = "MIN_VALUE_TIME" AgMaxValueTime AggregationType = "MAX_VALUE_TIME" )
type Client ¶
type Client struct { Series *seriesApi Properties *propertiesApi Entities *entitiesApi EntityGroups *entityGroupsApi Messages *messagesApi Metric *metricApi SQL *sqlApi // contains filtered or unexported fields }
type Entity ¶
type Entity struct {
// contains filtered or unexported fields
}
func (*Entity) LastIsertTime ¶
func (*Entity) SetEnabled ¶
func (*Entity) UnmarshalJSON ¶
type EntityGroup ¶
type ForecastMeta ¶
type Group ¶
type Group struct { Type GroupType `json:"type"` Interpolate InterpolationType `json:"interpolate,omitempty"` Truncate bool `json:"truncate,omitempty"` Period *Period `json:"period,omitempty"` Order uint `json:"order,omitempty"` }
type GroupType ¶
type GroupType string
const ( StatCount GroupType = "COUNT" StatMin GroupType = "MIN" StatMax GroupType = "MAX" StatAvg GroupType = "AVG" StatSum GroupType = "SUM" StatPercentile999 GroupType = "PERCENTILE_999" StatPercentile995 GroupType = "PERCENTILE_995" StatPercentile99 GroupType = "PERCENTILE_99" StatPercentile95 GroupType = "PERCENTILE_95" StatPercentile90 GroupType = "PERCENTILE_90" StatPercentile75 GroupType = "PERCENTILE_75" StatPercentile50 GroupType = "PERCENTILE_50" StatMedian GroupType = "MEDIAN" StatStandardDeviation GroupType = "STANDARD_DEVIATION" StatMinValueTime GroupType = "MIN_VALUE_TIME" StatMaxValueTime GroupType = "MAX_VALUE_TIME" )
type InterpolationType ¶
type InterpolationType string
const ( None InterpolationType = "NONE" Step InterpolationType = "STEP" Linear InterpolationType = "LINEAR" )
type InvalidAction ¶
type InvalidAction int
const ( NONE InvalidAction = iota DISCARD TRANSFORM RAISE_ERROR )
func (InvalidAction) String ¶
func (self InvalidAction) String() string
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func NewMessage ¶
func (*Message) MarshalJSON ¶
func (*Message) SetMessage ¶
func (*Message) SetSeverity ¶
func (*Message) UnmarshalJSON ¶
type MessagesQuery ¶
type MessagesQuery struct {
// contains filtered or unexported fields
}
func NewMessagesQuery ¶
func NewMessagesQuery(entity string) *MessagesQuery
func (*MessagesQuery) EndDateTime ¶
func (self *MessagesQuery) EndDateTime() *time.Time
func (*MessagesQuery) Entity ¶
func (self *MessagesQuery) Entity() string
func (*MessagesQuery) Limit ¶
func (self *MessagesQuery) Limit() *uint64
func (*MessagesQuery) MarshalJSON ¶
func (self *MessagesQuery) MarshalJSON() ([]byte, error)
func (*MessagesQuery) SetEndDateTime ¶
func (self *MessagesQuery) SetEndDateTime(endDateTime time.Time) *MessagesQuery
func (*MessagesQuery) SetEntity ¶
func (self *MessagesQuery) SetEntity(entity string) *MessagesQuery
func (*MessagesQuery) SetLimit ¶
func (self *MessagesQuery) SetLimit(limit uint64) *MessagesQuery
func (*MessagesQuery) SetSeverity ¶
func (self *MessagesQuery) SetSeverity(severity Severity) *MessagesQuery
func (*MessagesQuery) SetSource ¶
func (self *MessagesQuery) SetSource(source string) *MessagesQuery
func (*MessagesQuery) SetStartDateTime ¶
func (self *MessagesQuery) SetStartDateTime(startDateTime time.Time) *MessagesQuery
func (*MessagesQuery) SetTag ¶
func (self *MessagesQuery) SetTag(name string, values []string) *MessagesQuery
func (*MessagesQuery) SetType ¶
func (self *MessagesQuery) SetType(mType string) *MessagesQuery
func (*MessagesQuery) Severity ¶
func (self *MessagesQuery) Severity() *Severity
func (*MessagesQuery) Source ¶
func (self *MessagesQuery) Source() *string
func (*MessagesQuery) StartDateTime ¶
func (self *MessagesQuery) StartDateTime() *time.Time
func (*MessagesQuery) String ¶
func (self *MessagesQuery) String() string
func (*MessagesQuery) Type ¶
func (self *MessagesQuery) Type() *string
type Metric ¶
type Metric struct {
// contains filtered or unexported fields
}
func (*Metric) Description ¶
func (*Metric) GetLastInsertTime ¶
func (*Metric) InvalidAction ¶
func (self *Metric) InvalidAction() InvalidAction
func (*Metric) MarshalJSON ¶
func (*Metric) Persistent ¶
func (*Metric) RetentionInterval ¶
func (*Metric) SetCounter ¶
func (*Metric) SetDataType ¶
func (*Metric) SetDescription ¶
func (*Metric) SetEnabled ¶
func (*Metric) SetInvalidAction ¶
func (self *Metric) SetInvalidAction(invalidAction InvalidAction) *Metric
func (*Metric) SetPersistent ¶
func (*Metric) SetRetentionInterval ¶
func (*Metric) SetTimePrecision ¶
func (self *Metric) SetTimePrecision(timePrecision TimePrecision) *Metric
func (*Metric) TimePrecision ¶
func (self *Metric) TimePrecision() TimePrecision
type Property ¶
type Property struct {
// contains filtered or unexported fields
}
func NewProperty ¶
func (*Property) MarshalJSON ¶
func (*Property) SetKeyPart ¶
type Sample ¶
func (*Sample) UnmarshalJSON ¶
type Series ¶
type Series struct { Entity string `json:"entity"` Metric string `json:"metric"` Tags map[string]string `json:"tags,omitempty"` Warning string `json:"warning,omitempty"` Data []*Sample `json:"data"` Type SeriesType `json:"type"` ForecastName string `json:"forecastName,omitempty"` RequestId string `json:"requestId,omitempty"` Meta *ForecastMeta `json:"meta,omitempty"` Aggregate *Aggregation `json:"aggregate,omitempty"` }
type SeriesQuery ¶
type SeriesQuery struct { StartTime net.Millis `json:"startTime,omitempty"` EndTime net.Millis `json:"endTime,omitempty"` StartDate string `json:"startDate,omitempty"` EndDate string `json:"endDate,omitempty"` Interval string `json:"interval,omitempty"` Limit uint64 `json:"limit,omitempty"` Entity string `json:"entity"` Metric string `json:"metric"` Last bool `json:"last,omitempty"` Cache bool `json:"cache,omitempty"` Type SeriesType `json:"type,omitempty"` ForecastName string `json:"forecastName,omitempty"` Group *Group `json:"group,omitempty"` Rate *Rate `json:"rate,omitempty"` Aggregate *Aggregation `json:"aggregate,omitempty"` RequestId *string `json:"requestId,omitempty"` Tags map[string][]string `json:"tags,omitempty"` }
type SeriesType ¶
type SeriesType string
const ( History SeriesType = "HISTORY" Forecast SeriesType = "FORECAST" ForecastDeviation SeriesType = "FORECAST_DEVIATION" )
type Table ¶
type Table struct { Metadata interface{} `json:"metadata"` Data [][]interface{} `json:"data"` }
type TimePrecision ¶
type TimePrecision int
const ( SECONDS TimePrecision = iota MILLISECONDS )
func (TimePrecision) String ¶
func (self TimePrecision) String() string
type WorkingMinutes ¶
Click to show internal directories.
Click to hide internal directories.