Documentation ¶
Index ¶
Constants ¶
View Source
const ( ResourceOrgCenter = "monitor_org_center" ResourceRuntime = "monitor_runtime" ResourceProject = "monitor_project" ResourceOrgAlert = "monitor_org_alert" ResourceNotify = "notify" )
permission resources
View Source
const ( ResourceMonitor string = "ResourceMonitor" ResourceMonitorTopology string = "monitor_topology" ResourceReport string = "report" ResourceMonitorProjectAlert string = "monitor_project_alert" ResourceMicroService string = "microservice_metric" )
monitor permission resources
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExtResponse ¶
type ExtResponse struct { Success bool `json:"success,omitempty"` Data interface{} `json:"data,omitempty"` Err *api.Error `json:"err,omitempty"` UserIDs []string `json:"userIDs,omitempty"` // contains filtered or unexported fields }
ExtResponse .
func SuccessExt ¶
func SuccessExt(data interface{}, userIDs []string, status ...int) *ExtResponse
SuccessExt .
func (*ExtResponse) ReadCloser ¶
func (r *ExtResponse) ReadCloser(ctx httpserver.Context) io.ReadCloser
ReadCloser .
func (*ExtResponse) Response ¶
func (r *ExtResponse) Response(ctx httpserver.Context) httpserver.Response
Click to show internal directories.
Click to hide internal directories.