Documentation ¶
Index ¶
- type NotifyGroup
- func (o *NotifyGroup) BatchGet(ids []int64) ([]*apistructs.NotifyGroup, error)
- func (o *NotifyGroup) CheckNotifyChannels(channelStr string) error
- func (o *NotifyGroup) CheckNotifyGroupTarget(targets []apistructs.NotifyTarget) error
- func (o *NotifyGroup) Create(locale *i18n.LocaleResource, createReq *apistructs.CreateNotifyGroupRequest) (int64, error)
- func (o *NotifyGroup) CreateNotify(locale *i18n.LocaleResource, createReq *apistructs.CreateNotifyRequest) (int64, error)
- func (o *NotifyGroup) CreateNotifyHistory(request *apistructs.CreateNotifyHistoryRequest) (int64, error)
- func (o *NotifyGroup) Delete(id int64, orgID int64) error
- func (o *NotifyGroup) DeleteNotify(notifyID int64, deleteGroup bool, orgID int64) error
- func (o *NotifyGroup) DeleteNotifySource(request *apistructs.DeleteNotifySourceRequest) error
- func (o *NotifyGroup) FuzzyQueryNotifiesBySource(req apistructs.FuzzyQueryNotifiesBySourceRequest) (*apistructs.QueryNotifyData, error)
- func (o *NotifyGroup) Get(id int64, orgID int64) (*apistructs.NotifyGroup, error)
- func (o *NotifyGroup) GetDetail(id int64, orgID int64) (*apistructs.NotifyGroupDetail, error)
- func (o *NotifyGroup) GetNotify(notifyID int64, orgID int64) (*apistructs.NotifyDetail, error)
- func (o *NotifyGroup) GetNotifyItemsByNotifyID(notifyID int64) ([]*apistructs.NotifyItem, error)
- func (o *NotifyGroup) LocaleItem(locale *i18n.LocaleResource, item *apistructs.NotifyItem)
- func (o *NotifyGroup) Query(queryReq *apistructs.QueryNotifyGroupRequest, orgID int64) (*apistructs.QueryNotifyGroupData, error)
- func (o *NotifyGroup) QueryNotifies(request *apistructs.QueryNotifyRequest) (*apistructs.QueryNotifyData, error)
- func (o *NotifyGroup) QueryNotifiesBySource(locale *i18n.LocaleResource, sourceType, sourceID, itemName string, ...) ([]*apistructs.NotifyDetail, error)
- func (o *NotifyGroup) QueryNotifyHistories(request *apistructs.QueryNotifyHistoryRequest) (*apistructs.QueryNotifyHistoryData, error)
- func (o *NotifyGroup) QueryNotifyItems(locale *i18n.LocaleResource, request *apistructs.QueryNotifyItemRequest) (*apistructs.QueryNotifyItemData, error)
- func (o *NotifyGroup) Update(updateReq *apistructs.UpdateNotifyGroupRequest) error
- func (o *NotifyGroup) UpdateNotify(req *apistructs.UpdateNotifyRequest) error
- func (o *NotifyGroup) UpdateNotifyEnable(id int64, enabled bool, orgID int64) error
- func (o *NotifyGroup) UpdateNotifyItem(request *apistructs.UpdateNotifyItemRequest) error
- type Option
- type USERID
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotifyGroup ¶
type NotifyGroup struct {
// contains filtered or unexported fields
}
func New ¶
func New(options ...Option) *NotifyGroup
func (*NotifyGroup) BatchGet ¶
func (o *NotifyGroup) BatchGet(ids []int64) ([]*apistructs.NotifyGroup, error)
func (*NotifyGroup) CheckNotifyChannels ¶
func (o *NotifyGroup) CheckNotifyChannels(channelStr string) error
func (*NotifyGroup) CheckNotifyGroupTarget ¶
func (o *NotifyGroup) CheckNotifyGroupTarget(targets []apistructs.NotifyTarget) error
func (*NotifyGroup) Create ¶
func (o *NotifyGroup) Create(locale *i18n.LocaleResource, createReq *apistructs.CreateNotifyGroupRequest) (int64, error)
func (*NotifyGroup) CreateNotify ¶
func (o *NotifyGroup) CreateNotify(locale *i18n.LocaleResource, createReq *apistructs.CreateNotifyRequest) (int64, error)
func (*NotifyGroup) CreateNotifyHistory ¶
func (o *NotifyGroup) CreateNotifyHistory(request *apistructs.CreateNotifyHistoryRequest) (int64, error)
func (*NotifyGroup) DeleteNotify ¶
func (o *NotifyGroup) DeleteNotify(notifyID int64, deleteGroup bool, orgID int64) error
func (*NotifyGroup) DeleteNotifySource ¶
func (o *NotifyGroup) DeleteNotifySource(request *apistructs.DeleteNotifySourceRequest) error
func (*NotifyGroup) FuzzyQueryNotifiesBySource ¶
func (o *NotifyGroup) FuzzyQueryNotifiesBySource(req apistructs.FuzzyQueryNotifiesBySourceRequest) (*apistructs.QueryNotifyData, error)
func (*NotifyGroup) Get ¶
func (o *NotifyGroup) Get(id int64, orgID int64) (*apistructs.NotifyGroup, error)
func (*NotifyGroup) GetDetail ¶
func (o *NotifyGroup) GetDetail(id int64, orgID int64) (*apistructs.NotifyGroupDetail, error)
func (*NotifyGroup) GetNotify ¶
func (o *NotifyGroup) GetNotify(notifyID int64, orgID int64) (*apistructs.NotifyDetail, error)
func (*NotifyGroup) GetNotifyItemsByNotifyID ¶
func (o *NotifyGroup) GetNotifyItemsByNotifyID(notifyID int64) ([]*apistructs.NotifyItem, error)
func (*NotifyGroup) LocaleItem ¶
func (o *NotifyGroup) LocaleItem(locale *i18n.LocaleResource, item *apistructs.NotifyItem)
func (*NotifyGroup) Query ¶
func (o *NotifyGroup) Query(queryReq *apistructs.QueryNotifyGroupRequest, orgID int64) (*apistructs.QueryNotifyGroupData, error)
func (*NotifyGroup) QueryNotifies ¶
func (o *NotifyGroup) QueryNotifies(request *apistructs.QueryNotifyRequest) (*apistructs.QueryNotifyData, error)
func (*NotifyGroup) QueryNotifiesBySource ¶
func (o *NotifyGroup) QueryNotifiesBySource(locale *i18n.LocaleResource, sourceType, sourceID, itemName string, orgId int64, clusterName string, label string) ([]*apistructs.NotifyDetail, error)
func (*NotifyGroup) QueryNotifyHistories ¶
func (o *NotifyGroup) QueryNotifyHistories(request *apistructs.QueryNotifyHistoryRequest) (*apistructs.QueryNotifyHistoryData, error)
func (*NotifyGroup) QueryNotifyItems ¶
func (o *NotifyGroup) QueryNotifyItems(locale *i18n.LocaleResource, request *apistructs.QueryNotifyItemRequest) (*apistructs.QueryNotifyItemData, error)
func (*NotifyGroup) Update ¶
func (o *NotifyGroup) Update(updateReq *apistructs.UpdateNotifyGroupRequest) error
func (*NotifyGroup) UpdateNotify ¶
func (o *NotifyGroup) UpdateNotify(req *apistructs.UpdateNotifyRequest) error
func (*NotifyGroup) UpdateNotifyEnable ¶
func (o *NotifyGroup) UpdateNotifyEnable(id int64, enabled bool, orgID int64) error
func (*NotifyGroup) UpdateNotifyItem ¶
func (o *NotifyGroup) UpdateNotifyItem(request *apistructs.UpdateNotifyItemRequest) error
type Option ¶
type Option func(*NotifyGroup)
type USERID ¶
type USERID string
func (*USERID) UnmarshalJSON ¶
UnmarshalJSON maybe int or string, unmarshal them to string(USERID)
Click to show internal directories.
Click to hide internal directories.