Documentation ¶
Index ¶
- Constants
- func DoCronStatisticsAddAndRepairBug(db *dao.DBClient, bdl *bundle.Bundle)
- func MetricsIssueById(ID int, db *dao.DBClient, uc *ucauth.UCClient, bdl *bundle.Bundle)
- func RunHistoryData(db *dao.DBClient, bdl *bundle.Bundle)
- func RunIssueHistoryData(db *dao.DBClient, uc *ucauth.UCClient, bdl *bundle.Bundle)
- func TimedTaskMetricsAddAndRepairBug(db *dao.DBClient, bdl *bundle.Bundle)
- func TimedTaskMetricsIssue(db *dao.DBClient, uc *ucauth.UCClient, bdl *bundle.Bundle)
- type IssueMonitor
- type Option
- func WithAssignee(name string) Option
- func WithDelete(id int) Option
- func WithIssueId(id int) Option
- func WithIssueIteratorId(iteratorId int) Option
- func WithIssuePriority(priority apistructs.IssuePriority) Option
- func WithIssueProjectId(projectId int) Option
- func WithIssueSeverity(severity apistructs.IssueSeverity) Option
- func WithIssueState(state apistructs.IssueStateBelong) Option
- func WithIssueTitle(title string) Option
- func WithIssueType(typer apistructs.IssueType) Option
- func WithManHour(manHour apistructs.IssueManHour) Option
- func WithNick(nick string) Option
- func WithReOpen(reOpen bool) Option
- func WithReOpenTime(time int) Option
- func WithResponse(createTime time.Time, endUpdateTime time.Time) Option
- type StatisticsAddAndRepairBugRequest
Constants ¶
View Source
const ( CronBugStatisticsLock = "/devops/cmdb/cron/bug-add-and-repair/lock" CronStatisticsLock = "/devops/cmdb/cron/issue/lock" CronBugStatistics = "cron_bug_statistics" IssueMetricsName = "issue_metrics_statistics" IssueAddAndRepairMetricsName = "issue_add_or_repair_metrics_statistics" )
Variables ¶
This section is empty.
Functions ¶
func MetricsIssueById ¶
func RunIssueHistoryData ¶
Types ¶
type IssueMonitor ¶
type IssueMonitor struct { Fields map[string]interface{} `json:"fields"` Tags map[string]string `json:"tags"` // contains filtered or unexported fields }
func NewIssueMonitor ¶
func NewIssueMonitor(opts ...Option) *IssueMonitor
type Option ¶
type Option func(monitor *IssueMonitor)
func WithAssignee ¶
func WithDelete ¶
func WithIssueId ¶
func WithIssueIteratorId ¶
func WithIssuePriority ¶
func WithIssuePriority(priority apistructs.IssuePriority) Option
func WithIssueProjectId ¶
func WithIssueSeverity ¶
func WithIssueSeverity(severity apistructs.IssueSeverity) Option
func WithIssueState ¶
func WithIssueState(state apistructs.IssueStateBelong) Option
func WithIssueTitle ¶
func WithIssueType ¶
func WithIssueType(typer apistructs.IssueType) Option
func WithManHour ¶
func WithManHour(manHour apistructs.IssueManHour) Option
func WithReOpen ¶
func WithReOpenTime ¶
Click to show internal directories.
Click to hide internal directories.