mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-08-28 19:45:07 +08:00
fix(docs): add unifiedmonitor api docs (#22627)
This commit is contained in:
+132
-1159
File diff suppressed because it is too large
Load Diff
@@ -51,6 +51,7 @@ func init() {
|
||||
NodeAlertManager = NewNodeAlertManager()
|
||||
}
|
||||
|
||||
// +onecloud:swagger-gen-ignore
|
||||
type SV1AlertManager struct {
|
||||
SAlertManager
|
||||
}
|
||||
@@ -71,6 +72,7 @@ func NewNodeAlertManager() *SNodeAlertManager {
|
||||
return man
|
||||
}
|
||||
|
||||
// +onecloud:swagger-gen-ignore
|
||||
type SV1Alert struct {
|
||||
SAlert
|
||||
}
|
||||
|
||||
@@ -204,6 +204,18 @@ func (self *SUnifiedMonitorManager) SetHandlerProcessTimeout(info *appsrv.SHandl
|
||||
return 5 * time.Minute
|
||||
}
|
||||
|
||||
// +onecloud:swagger-gen-route-method=POST
|
||||
// +onecloud:swagger-gen-route-path=/unifiedmonitors/query
|
||||
// +onecloud:swagger-gen-route-tag=unifiedmonitor
|
||||
// +onecloud:swagger-gen-param-body-index=0
|
||||
// +onecloud:swagger-gen-resp-index=0
|
||||
// +onecloud:swagger-gen-resp-body-key=unifiedmonitor
|
||||
|
||||
// 查询监控数据接口
|
||||
func PerformQuery(input monitor.MetricQueryInput) *monitor.MetricsQueryResult {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (self *SUnifiedMonitorManager) PerformQuery(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, data jsonutils.JSONObject) (*monitor.MetricsQueryResult, error) {
|
||||
tmp := jsonutils.DeepCopy(data)
|
||||
self.handleDataPreSignature(ctx, tmp)
|
||||
|
||||
Reference in New Issue
Block a user