Documentation ¶
Overview ¶
Copyright 2019 The KubeSphere Authors. All rights reserved. Use of this source code is governed by a Apache license that can be found in the LICENSE file.
Index ¶
- func Serve()
- func ServeApiGateway()
- func ValidateCreateActionParams(ctx context.Context, req *pb.CreateActionRequest) error
- func ValidateCreateAlertParams(ctx context.Context, req *pb.CreateAlertRequest) error
- func ValidateCreateCommentParams(ctx context.Context, req *pb.CreateCommentRequest) error
- func ValidateCreateMetricParams(ctx context.Context, req *pb.CreateMetricRequest) error
- func ValidateCreatePolicyParams(ctx context.Context, req *pb.CreatePolicyRequest) error
- func ValidateCreateResourceFilterParams(ctx context.Context, req *pb.CreateResourceFilterRequest) error
- func ValidateCreateResourceTypeParams(ctx context.Context, req *pb.CreateResourceTypeRequest) error
- func ValidateCreateRuleParams(ctx context.Context, req *pb.CreateRuleRequest) error
- func ValidateModifyActionParams(ctx context.Context, req *pb.ModifyActionRequest) error
- func ValidateModifyAlertParams(ctx context.Context, req *pb.ModifyAlertRequest) error
- func ValidateModifyMetricParams(ctx context.Context, req *pb.ModifyMetricRequest) error
- func ValidateModifyPolicyParams(ctx context.Context, req *pb.ModifyPolicyRequest) error
- func ValidateModifyResourceFilterParams(ctx context.Context, req *pb.ModifyResourceFilterRequest) error
- func ValidateModifyResourceTypeParams(ctx context.Context, req *pb.ModifyResourceTypeRequest) error
- func ValidateModifyRuleParams(ctx context.Context, req *pb.ModifyRuleRequest) error
- type AlertBroadcast
- type AlertQueue
- type BroadcastInfo
- type Server
- func (s *Server) Checker(ctx context.Context, req interface{}) error
- func (s *Server) CreateAction(ctx context.Context, req *CreateActionRequest) (*CreateActionResponse, error)
- func (s *Server) CreateAlert(ctx context.Context, req *CreateAlertRequest) (*CreateAlertResponse, error)
- func (s *Server) CreateComment(ctx context.Context, req *CreateCommentRequest) (*CreateCommentResponse, error)
- func (s *Server) CreateExecutor(context.Context, *CreateExecutorRequest) (*CreateExecutorResponse, error)
- func (s *Server) CreateHistory(context.Context, *CreateHistoryRequest) (*CreateHistoryResponse, error)
- func (s *Server) CreateMetric(ctx context.Context, req *CreateMetricRequest) (*CreateMetricResponse, error)
- func (s *Server) CreatePolicy(ctx context.Context, req *CreatePolicyRequest) (*CreatePolicyResponse, error)
- func (s *Server) CreateResourceFilter(ctx context.Context, req *CreateResourceFilterRequest) (*CreateResourceFilterResponse, error)
- func (s *Server) CreateResourceType(ctx context.Context, req *CreateResourceTypeRequest) (*CreateResourceTypeResponse, error)
- func (s *Server) CreateRule(ctx context.Context, req *CreateRuleRequest) (*CreateRuleResponse, error)
- func (s *Server) DeleteActions(ctx context.Context, req *DeleteActionsRequest) (*DeleteActionsResponse, error)
- func (s *Server) DeleteAlerts(ctx context.Context, req *DeleteAlertsRequest) (*DeleteAlertsResponse, error)
- func (s *Server) DeleteComments(context.Context, *DeleteCommentsRequest) (*DeleteCommentsResponse, error)
- func (s *Server) DeleteExecutors(context.Context, *DeleteExecutorsRequest) (*DeleteExecutorsResponse, error)
- func (s *Server) DeleteHistories(context.Context, *DeleteHistoriesRequest) (*DeleteHistoriesResponse, error)
- func (s *Server) DeleteMetrics(ctx context.Context, req *DeleteMetricsRequest) (*DeleteMetricsResponse, error)
- func (s *Server) DeletePolicies(ctx context.Context, req *DeletePoliciesRequest) (*DeletePoliciesResponse, error)
- func (s *Server) DeleteResourceFilters(ctx context.Context, req *DeleteResourceFiltersRequest) (*DeleteResourceFiltersResponse, error)
- func (s *Server) DeleteResourceTypes(ctx context.Context, req *DeleteResourceTypesRequest) (*DeleteResourceTypesResponse, error)
- func (s *Server) DeleteRules(ctx context.Context, req *DeleteRulesRequest) (*DeleteRulesResponse, error)
- func (s *Server) DescribeActions(ctx context.Context, req *DescribeActionsRequest) (*DescribeActionsResponse, error)
- func (s *Server) DescribeAlertDetails(ctx context.Context, req *DescribeAlertDetailsRequest) (*DescribeAlertDetailsResponse, error)
- func (s *Server) DescribeAlertStatus(ctx context.Context, req *DescribeAlertStatusRequest) (*DescribeAlertStatusResponse, error)
- func (s *Server) DescribeAlerts(ctx context.Context, req *DescribeAlertsRequest) (*DescribeAlertsResponse, error)
- func (s *Server) DescribeAlertsWithResource(ctx context.Context, req *DescribeAlertsWithResourceRequest) (*DescribeAlertsWithResourceResponse, error)
- func (s *Server) DescribeComments(ctx context.Context, req *DescribeCommentsRequest) (*DescribeCommentsResponse, error)
- func (s *Server) DescribeExecutors(context.Context, *DescribeExecutorsRequest) (*DescribeExecutorsResponse, error)
- func (s *Server) DescribeHistories(ctx context.Context, req *DescribeHistoriesRequest) (*DescribeHistoriesResponse, error)
- func (s *Server) DescribeHistoryDetail(ctx context.Context, req *DescribeHistoryDetailRequest) (*DescribeHistoryDetailResponse, error)
- func (s *Server) DescribeMetrics(ctx context.Context, req *DescribeMetricsRequest) (*DescribeMetricsResponse, error)
- func (s *Server) DescribePolicies(ctx context.Context, req *DescribePoliciesRequest) (*DescribePoliciesResponse, error)
- func (s *Server) DescribeResourceFilters(ctx context.Context, req *DescribeResourceFiltersRequest) (*DescribeResourceFiltersResponse, error)
- func (s *Server) DescribeResourceTypes(ctx context.Context, req *DescribeResourceTypesRequest) (*DescribeResourceTypesResponse, error)
- func (s *Server) DescribeRules(ctx context.Context, req *DescribeRulesRequest) (*DescribeRulesResponse, error)
- func (s *Server) ModifyAction(ctx context.Context, req *ModifyActionRequest) (*ModifyActionResponse, error)
- func (s *Server) ModifyAlert(ctx context.Context, req *ModifyAlertRequest) (*ModifyAlertResponse, error)
- func (s *Server) ModifyComment(context.Context, *ModifyCommentRequest) (*ModifyCommentResponse, error)
- func (s *Server) ModifyExecutor(context.Context, *ModifyExecutorRequest) (*ModifyExecutorResponse, error)
- func (s *Server) ModifyHistory(context.Context, *ModifyHistoryRequest) (*ModifyHistoryResponse, error)
- func (s *Server) ModifyMetric(ctx context.Context, req *ModifyMetricRequest) (*ModifyMetricResponse, error)
- func (s *Server) ModifyPolicy(ctx context.Context, req *ModifyPolicyRequest) (*ModifyPolicyResponse, error)
- func (s *Server) ModifyResourceFilter(ctx context.Context, req *ModifyResourceFilterRequest) (*ModifyResourceFilterResponse, error)
- func (s *Server) ModifyResourceType(ctx context.Context, req *ModifyResourceTypeRequest) (*ModifyResourceTypeResponse, error)
- func (s *Server) ModifyRule(ctx context.Context, req *ModifyRuleRequest) (*ModifyRuleResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeApiGateway ¶
func ServeApiGateway()
func ValidateCreateActionParams ¶
func ValidateCreateActionParams(ctx context.Context, req *pb.CreateActionRequest) error
func ValidateCreateAlertParams ¶
func ValidateCreateAlertParams(ctx context.Context, req *pb.CreateAlertRequest) error
func ValidateCreateCommentParams ¶
func ValidateCreateCommentParams(ctx context.Context, req *pb.CreateCommentRequest) error
func ValidateCreateMetricParams ¶
func ValidateCreateMetricParams(ctx context.Context, req *pb.CreateMetricRequest) error
func ValidateCreatePolicyParams ¶
func ValidateCreatePolicyParams(ctx context.Context, req *pb.CreatePolicyRequest) error
func ValidateCreateResourceFilterParams ¶
func ValidateCreateResourceFilterParams(ctx context.Context, req *pb.CreateResourceFilterRequest) error
func ValidateCreateResourceTypeParams ¶
func ValidateCreateResourceTypeParams(ctx context.Context, req *pb.CreateResourceTypeRequest) error
func ValidateCreateRuleParams ¶
func ValidateCreateRuleParams(ctx context.Context, req *pb.CreateRuleRequest) error
func ValidateModifyActionParams ¶
func ValidateModifyActionParams(ctx context.Context, req *pb.ModifyActionRequest) error
func ValidateModifyAlertParams ¶
func ValidateModifyAlertParams(ctx context.Context, req *pb.ModifyAlertRequest) error
func ValidateModifyMetricParams ¶
func ValidateModifyMetricParams(ctx context.Context, req *pb.ModifyMetricRequest) error
func ValidateModifyPolicyParams ¶
func ValidateModifyPolicyParams(ctx context.Context, req *pb.ModifyPolicyRequest) error
func ValidateModifyResourceFilterParams ¶
func ValidateModifyResourceFilterParams(ctx context.Context, req *pb.ModifyResourceFilterRequest) error
func ValidateModifyResourceTypeParams ¶
func ValidateModifyResourceTypeParams(ctx context.Context, req *pb.ModifyResourceTypeRequest) error
func ValidateModifyRuleParams ¶
func ValidateModifyRuleParams(ctx context.Context, req *pb.ModifyRuleRequest) error
Types ¶
type AlertBroadcast ¶
type AlertBroadcast struct { }
func NewAlertBroadcast ¶
func NewAlertBroadcast() *AlertBroadcast
type AlertQueue ¶
type AlertQueue struct {
// contains filtered or unexported fields
}
func NewAlertQueue ¶
func NewAlertQueue() *AlertQueue
func (*AlertQueue) Enqueue ¶
func (aq *AlertQueue) Enqueue(alertId string) error
type BroadcastInfo ¶
BroadcastInfo is the service register information to etcd
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) CreateAction ¶
func (s *Server) CreateAction(ctx context.Context, req *CreateActionRequest) (*CreateActionResponse, error)
9.Action ********************************************************************************************************
func (*Server) CreateAlert ¶
func (s *Server) CreateAlert(ctx context.Context, req *CreateAlertRequest) (*CreateAlertResponse, error)
6.Alert ********************************************************************************************************
func (*Server) CreateComment ¶
func (s *Server) CreateComment(ctx context.Context, req *CreateCommentRequest) (*CreateCommentResponse, error)
8.Comment ********************************************************************************************************
func (*Server) CreateExecutor ¶
func (s *Server) CreateExecutor(context.Context, *CreateExecutorRequest) (*CreateExecutorResponse, error)
0.Executor ********************************************************************************************************
func (*Server) CreateHistory ¶
func (s *Server) CreateHistory(context.Context, *CreateHistoryRequest) (*CreateHistoryResponse, error)
7.History ********************************************************************************************************
func (*Server) CreateMetric ¶
func (s *Server) CreateMetric(ctx context.Context, req *CreateMetricRequest) (*CreateMetricResponse, error)
3.Metric ********************************************************************************************************
func (*Server) CreatePolicy ¶
func (s *Server) CreatePolicy(ctx context.Context, req *CreatePolicyRequest) (*CreatePolicyResponse, error)
4.Policy ********************************************************************************************************
func (*Server) CreateResourceFilter ¶
func (s *Server) CreateResourceFilter(ctx context.Context, req *CreateResourceFilterRequest) (*CreateResourceFilterResponse, error)
2.Resource Filter ********************************************************************************************************
func (*Server) CreateResourceType ¶
func (s *Server) CreateResourceType(ctx context.Context, req *CreateResourceTypeRequest) (*CreateResourceTypeResponse, error)
1.ResourceType ********************************************************************************************************
func (*Server) CreateRule ¶
func (s *Server) CreateRule(ctx context.Context, req *CreateRuleRequest) (*CreateRuleResponse, error)
5.Rule ********************************************************************************************************
func (*Server) DeleteActions ¶
func (*Server) DeleteAlerts ¶
func (*Server) DeleteComments ¶
func (*Server) DeleteExecutors ¶
func (*Server) DeleteHistories ¶
func (*Server) DeleteMetrics ¶
func (*Server) DeletePolicies ¶
func (*Server) DeleteResourceFilters ¶
func (*Server) DeleteResourceTypes ¶
func (*Server) DeleteRules ¶
func (*Server) DescribeActions ¶
func (*Server) DescribeAlertDetails ¶
func (*Server) DescribeAlertStatus ¶
func (*Server) DescribeAlerts ¶
func (*Server) DescribeAlertsWithResource ¶
func (s *Server) DescribeAlertsWithResource(ctx context.Context, req *DescribeAlertsWithResourceRequest) (*DescribeAlertsWithResourceResponse, error)
0.Alert ********************************************************************************************************
func (*Server) DescribeComments ¶
func (*Server) DescribeExecutors ¶
func (*Server) DescribeHistories ¶
func (*Server) DescribeHistoryDetail ¶
func (s *Server) DescribeHistoryDetail(ctx context.Context, req *DescribeHistoryDetailRequest) (*DescribeHistoryDetailResponse, error)
1.History ********************************************************************************************************