Documentation
¶
Index ¶
- func CallAddService(ctx context.Context, req *AddServiceRequest) (response *http.Response, err error)
- func CallModelValidate(ctx context.Context, req *ScriptValidateRequest) (response *http.Response, err error)
- func CallNormalTest(ctx context.Context, req *NormalTesterSettings) (response *http.Response, err error)
- func CreateMonitorService(ctx context.Context, serviceName string, tags map[string]string) (err error)
- func DeleteMonitorService(ctx context.Context, serviceName string) (err error)
- func FetchSerialData(ctx context.Context, startTime, endTime time.Time, tags map[string]string) (data map[string][]SerialDataPoint, err error)
- func GetConfigMap(ctx context.Context, name string) (configMap *corev1.ConfigMap, err error)
- func InitClient()
- func InitHTTPClient()
- func InitK8sClient()
- func InitPrometheusClient()
- func UpdateConfigMap(ctx context.Context, name string, configMap *corev1.ConfigMap) (err error)
- type AddServiceRequest
- type NormalTesterSettings
- type ScriptValidateRequest
- type SerialDataPoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallAddService ¶
func CallModelValidate ¶
func CallNormalTest ¶
func CreateMonitorService ¶
func CreateMonitorService(ctx context.Context, serviceName string, tags map[string]string) (err error)
创建prometheus监控
func DeleteMonitorService ¶
删除prometheus监控
func FetchSerialData ¶
func GetConfigMap ¶
获取ConfigMap
func InitClient ¶
func InitClient()
func InitHTTPClient ¶
func InitHTTPClient()
func InitK8sClient ¶
func InitK8sClient()
func InitPrometheusClient ¶
func InitPrometheusClient()
Types ¶
type AddServiceRequest ¶
type NormalTesterSettings ¶
type NormalTesterSettings struct {
Name string `json:"name"`
Method string `json:"method"`
Url string `json:"url"`
ContentType string `json:"content_type"`
Content string `json:"content"`
InitialQPS *int64 `json:"initial_qps"`
Timeout *int64 `json:"timeout"`
}
调用压测模块的请求体
type ScriptValidateRequest ¶
type SerialDataPoint ¶
func RealTimeData ¶
func RealTimeData(ctx context.Context, tagStr string) (data SerialDataPoint, err error)
查询服务的qps实时数据点
Click to show internal directories.
Click to hide internal directories.