Documentation ¶
Overview ¶
Package monitoring is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockgetIssueser ¶
type MockgetIssueser struct {
// contains filtered or unexported fields
}
MockgetIssueser is a mock of getIssueser interface
func NewMockgetIssueser ¶
func NewMockgetIssueser(ctrl *gomock.Controller) *MockgetIssueser
NewMockgetIssueser creates a new mock instance
func (*MockgetIssueser) EXPECT ¶
func (m *MockgetIssueser) EXPECT() *MockgetIssueserMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockgetIssueserMockRecorder ¶
type MockgetIssueserMockRecorder struct {
// contains filtered or unexported fields
}
MockgetIssueserMockRecorder is the mock recorder for MockgetIssueser
func (*MockgetIssueserMockRecorder) GetIssues ¶
func (mr *MockgetIssueserMockRecorder) GetIssues(query interface{}) *gomock.Call
GetIssues indicates an expected call of GetIssues
type Mockmetricser ¶
type Mockmetricser struct {
// contains filtered or unexported fields
}
Mockmetricser is a mock of metricser interface
func NewMockmetricser ¶
func NewMockmetricser(ctrl *gomock.Controller) *Mockmetricser
NewMockmetricser creates a new mock instance
func (*Mockmetricser) DisableMonitoring ¶
func (m *Mockmetricser) DisableMonitoring(queryName string, issue model.Issue)
DisableMonitoring mocks base method
func (*Mockmetricser) EXPECT ¶
func (m *Mockmetricser) EXPECT() *MockmetricserMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*Mockmetricser) EnableMonitoring ¶
func (m *Mockmetricser) EnableMonitoring(queryName string, issue model.Issue)
EnableMonitoring mocks base method
func (*Mockmetricser) ErrorInc ¶
func (m *Mockmetricser) ErrorInc(queryName string, err error)
ErrorInc mocks base method
type MockmetricserMockRecorder ¶
type MockmetricserMockRecorder struct {
// contains filtered or unexported fields
}
MockmetricserMockRecorder is the mock recorder for Mockmetricser
func (*MockmetricserMockRecorder) DisableMonitoring ¶
func (mr *MockmetricserMockRecorder) DisableMonitoring(queryName, issue interface{}) *gomock.Call
DisableMonitoring indicates an expected call of DisableMonitoring
func (*MockmetricserMockRecorder) EnableMonitoring ¶
func (mr *MockmetricserMockRecorder) EnableMonitoring(queryName, issue interface{}) *gomock.Call
EnableMonitoring indicates an expected call of EnableMonitoring
func (*MockmetricserMockRecorder) ErrorInc ¶
func (mr *MockmetricserMockRecorder) ErrorInc(queryName, err interface{}) *gomock.Call
ErrorInc indicates an expected call of ErrorInc
type Monitoring ¶
type Monitoring struct {
// contains filtered or unexported fields
}
Monitoring links YouTrack and Prometheus.
func New ¶
func New(issueser getIssueser, metricser metricser, queries map[string]string) *Monitoring
New creates Monitoring instance.
func (*Monitoring) RefreshMetrics ¶
func (m *Monitoring) RefreshMetrics()
RefreshMetrics gets actual issues and refreshes metrics.