Documentation ¶
Overview ¶
Package suanliclient suanli client
Index ¶
Constants ¶
View Source
const ( // LongDateTimeFormat long date time format LongDateTimeFormat = "2006-01-02 15:04:05" // LongDateTimeMminuteFormat long datetime minute format LongDateTimeMminuteFormat = "2006-01-02 15:04" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChartInfo ¶
type ChartInfo struct { Title string `json:"title"` DetailDataList []*DetailData `json:"detail_data_list"` }
ChartInfo chart info
type Data ¶
type Data struct { PageNum int64 `json:"page_num"` MetricUnitDict map[string]string `json:"metric_unit_dict"` ChartInfoList []*ChartInfo `json:"chart_info"` TotalNum int64 `json:"total_num"` }
Data data
type DetailData ¶
DetailData detail data
type SuanLiClient ¶
type SuanLiClient struct {
// contains filtered or unexported fields
}
SuanLiClient xxx
func NewSuanLiClient ¶
func NewSuanLiClient(config *SuanLiConfig) (*SuanLiClient, error)
NewSuanLiClient xxx
func (*SuanLiClient) QueryInfo ¶
func (c *SuanLiClient) QueryInfo(ctx context.Context, metricName string, tagFilters []*TagFilter, startTime, endTime int64) (*Response, error)
QueryInfo 分钟级监控数据
func (*SuanLiClient) QuerySecondInfo ¶
func (c *SuanLiClient) QuerySecondInfo(ctx context.Context, metricName string, tagFilters []*TagFilter, startTime, endTime int64) (*Response, error)
QuerySecondInfo 秒级监控数据
Click to show internal directories.
Click to hide internal directories.