Documentation
¶
Index ¶
- func ToLogItem(detail *LogDetail, msec int64) *log_driver.LogItem
- type Data
- type Driver
- func (d *Driver) LogCount(clusterId string, conditions map[string]string, spendHour int64, group string) (map[string]int64, error)
- func (d *Driver) LogInfo(clusterId string, id string) (*log_driver.LogInfo, error)
- func (d *Driver) LogRecords(clusterId string, start time.Time, end time.Time) ([]*log_driver.LogItem, error)
- func (d *Driver) Logs(clusterId string, conditions map[string]string, start time.Time, end time.Time, ...) ([]*log_driver.LogItem, int64, error)
- type DriverConfig
- type LogBodyDetail
- type LogCount
- type LogDetail
- type LogInfo
- type Param
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func (*Driver) LogRecords ¶
type DriverConfig ¶
func (*DriverConfig) Check ¶
func (d *DriverConfig) Check() error
type LogBodyDetail ¶
type LogDetail ¶
type LogDetail struct {
Api string `json:"api"`
Application string `json:"application"`
Strategy string `json:"strategy"`
ContentType string `json:"content_type"`
Cluster string `json:"cluster"`
Msec string `json:"msec"`
Node string `json:"node"`
RequestId string `json:"request_id"`
RequestMethod string `json:"request_method"`
RequestScheme string `json:"request_scheme"`
RequestHeader string `json:"request_header"`
RequestTime string `json:"request_time"`
RequestUri string `json:"request_uri"`
RequestBody string `json:"request_body"`
ProxyBody string `json:"proxy_body"`
ResponseBody string `json:"response_body"`
ResponseHeader string `json:"response_header"`
ProxyResponseBody string `json:"proxy_response_body"`
Service string `json:"service"`
Provider string `json:"provider"`
Authorization string `json:"authorization"`
SrcIp string `json:"src_ip"`
Status string `json:"status"`
AIProvider string `json:"ai_provider"`
AIModel string `json:"ai_model"`
AIModelInputToken interface{} `json:"ai_model_input_token"`
AIModelOutputToken interface{} `json:"ai_model_output_token"`
AIModelTotalToken interface{} `json:"ai_model_total_token"`
}
Click to show internal directories.
Click to hide internal directories.