Documentation ¶
Overview ¶
Package prometheus is a generated GoMock package.
Package prometheus is a generated GoMock package.
Index ¶
- type Metrics
- type MockCounter
- func (m *MockCounter) Add(arg0 float64)
- func (m *MockCounter) Collect(arg0 chan<- prometheus.Metric)
- func (m *MockCounter) Desc() *prometheus.Desc
- func (m *MockCounter) Describe(arg0 chan<- *prometheus.Desc)
- func (m *MockCounter) EXPECT() *MockCounterMockRecorder
- func (m *MockCounter) Inc()
- func (m *MockCounter) Write(arg0 *go0.Metric) error
- type MockCounterMockRecorder
- func (mr *MockCounterMockRecorder) Add(arg0 interface{}) *gomock.Call
- func (mr *MockCounterMockRecorder) Collect(arg0 interface{}) *gomock.Call
- func (mr *MockCounterMockRecorder) Desc() *gomock.Call
- func (mr *MockCounterMockRecorder) Describe(arg0 interface{}) *gomock.Call
- func (mr *MockCounterMockRecorder) Inc() *gomock.Call
- func (mr *MockCounterMockRecorder) Write(arg0 interface{}) *gomock.Call
- type MockGauge
- func (m *MockGauge) Add(arg0 float64)
- func (m *MockGauge) Collect(arg0 chan<- prometheus.Metric)
- func (m *MockGauge) Dec()
- func (m *MockGauge) Desc() *prometheus.Desc
- func (m *MockGauge) Describe(arg0 chan<- *prometheus.Desc)
- func (m *MockGauge) EXPECT() *MockGaugeMockRecorder
- func (m *MockGauge) Inc()
- func (m *MockGauge) Set(arg0 float64)
- func (m *MockGauge) SetToCurrentTime()
- func (m *MockGauge) Sub(arg0 float64)
- func (m *MockGauge) Write(arg0 *go0.Metric) error
- type MockGaugeMockRecorder
- func (mr *MockGaugeMockRecorder) Add(arg0 interface{}) *gomock.Call
- func (mr *MockGaugeMockRecorder) Collect(arg0 interface{}) *gomock.Call
- func (mr *MockGaugeMockRecorder) Dec() *gomock.Call
- func (mr *MockGaugeMockRecorder) Desc() *gomock.Call
- func (mr *MockGaugeMockRecorder) Describe(arg0 interface{}) *gomock.Call
- func (mr *MockGaugeMockRecorder) Inc() *gomock.Call
- func (mr *MockGaugeMockRecorder) Set(arg0 interface{}) *gomock.Call
- func (mr *MockGaugeMockRecorder) SetToCurrentTime() *gomock.Call
- func (mr *MockGaugeMockRecorder) Sub(arg0 interface{}) *gomock.Call
- func (mr *MockGaugeMockRecorder) Write(arg0 interface{}) *gomock.Call
- type MockcounterIniter
- type MockcounterIniterMockRecorder
- type MockgaugeIniter
- type MockgaugeIniterMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics describes Prometheus metric collector.
func (*Metrics) DisableMonitoring ¶
DisableMonitoring turns off metric for issue.
func (*Metrics) EnableMonitoring ¶
EnableMonitoring turns on metric for issue.
type MockCounter ¶
type MockCounter struct {
// contains filtered or unexported fields
}
MockCounter is a mock of Counter interface
func NewMockCounter ¶
func NewMockCounter(ctrl *gomock.Controller) *MockCounter
NewMockCounter creates a new mock instance
func (*MockCounter) Collect ¶
func (m *MockCounter) Collect(arg0 chan<- prometheus.Metric)
Collect mocks base method
func (*MockCounter) Describe ¶
func (m *MockCounter) Describe(arg0 chan<- *prometheus.Desc)
Describe mocks base method
func (*MockCounter) EXPECT ¶
func (m *MockCounter) EXPECT() *MockCounterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockCounterMockRecorder ¶
type MockCounterMockRecorder struct {
// contains filtered or unexported fields
}
MockCounterMockRecorder is the mock recorder for MockCounter
func (*MockCounterMockRecorder) Add ¶
func (mr *MockCounterMockRecorder) Add(arg0 interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockCounterMockRecorder) Collect ¶
func (mr *MockCounterMockRecorder) Collect(arg0 interface{}) *gomock.Call
Collect indicates an expected call of Collect
func (*MockCounterMockRecorder) Desc ¶
func (mr *MockCounterMockRecorder) Desc() *gomock.Call
Desc indicates an expected call of Desc
func (*MockCounterMockRecorder) Describe ¶
func (mr *MockCounterMockRecorder) Describe(arg0 interface{}) *gomock.Call
Describe indicates an expected call of Describe
func (*MockCounterMockRecorder) Inc ¶
func (mr *MockCounterMockRecorder) Inc() *gomock.Call
Inc indicates an expected call of Inc
func (*MockCounterMockRecorder) Write ¶
func (mr *MockCounterMockRecorder) Write(arg0 interface{}) *gomock.Call
Write indicates an expected call of Write
type MockGauge ¶
type MockGauge struct {
// contains filtered or unexported fields
}
MockGauge is a mock of Gauge interface
func NewMockGauge ¶
func NewMockGauge(ctrl *gomock.Controller) *MockGauge
NewMockGauge creates a new mock instance
func (*MockGauge) Collect ¶
func (m *MockGauge) Collect(arg0 chan<- prometheus.Metric)
Collect mocks base method
func (*MockGauge) Describe ¶
func (m *MockGauge) Describe(arg0 chan<- *prometheus.Desc)
Describe mocks base method
func (*MockGauge) EXPECT ¶
func (m *MockGauge) EXPECT() *MockGaugeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockGauge) SetToCurrentTime ¶
func (m *MockGauge) SetToCurrentTime()
SetToCurrentTime mocks base method
type MockGaugeMockRecorder ¶
type MockGaugeMockRecorder struct {
// contains filtered or unexported fields
}
MockGaugeMockRecorder is the mock recorder for MockGauge
func (*MockGaugeMockRecorder) Add ¶
func (mr *MockGaugeMockRecorder) Add(arg0 interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockGaugeMockRecorder) Collect ¶
func (mr *MockGaugeMockRecorder) Collect(arg0 interface{}) *gomock.Call
Collect indicates an expected call of Collect
func (*MockGaugeMockRecorder) Dec ¶
func (mr *MockGaugeMockRecorder) Dec() *gomock.Call
Dec indicates an expected call of Dec
func (*MockGaugeMockRecorder) Desc ¶
func (mr *MockGaugeMockRecorder) Desc() *gomock.Call
Desc indicates an expected call of Desc
func (*MockGaugeMockRecorder) Describe ¶
func (mr *MockGaugeMockRecorder) Describe(arg0 interface{}) *gomock.Call
Describe indicates an expected call of Describe
func (*MockGaugeMockRecorder) Inc ¶
func (mr *MockGaugeMockRecorder) Inc() *gomock.Call
Inc indicates an expected call of Inc
func (*MockGaugeMockRecorder) Set ¶
func (mr *MockGaugeMockRecorder) Set(arg0 interface{}) *gomock.Call
Set indicates an expected call of Set
func (*MockGaugeMockRecorder) SetToCurrentTime ¶
func (mr *MockGaugeMockRecorder) SetToCurrentTime() *gomock.Call
SetToCurrentTime indicates an expected call of SetToCurrentTime
func (*MockGaugeMockRecorder) Sub ¶
func (mr *MockGaugeMockRecorder) Sub(arg0 interface{}) *gomock.Call
Sub indicates an expected call of Sub
func (*MockGaugeMockRecorder) Write ¶
func (mr *MockGaugeMockRecorder) Write(arg0 interface{}) *gomock.Call
Write indicates an expected call of Write
type MockcounterIniter ¶
type MockcounterIniter struct {
// contains filtered or unexported fields
}
MockcounterIniter is a mock of counterIniter interface
func NewMockcounterIniter ¶
func NewMockcounterIniter(ctrl *gomock.Controller) *MockcounterIniter
NewMockcounterIniter creates a new mock instance
func (*MockcounterIniter) EXPECT ¶
func (m *MockcounterIniter) EXPECT() *MockcounterIniterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockcounterIniter) WithLabelValues ¶
func (m *MockcounterIniter) WithLabelValues(lvs ...string) prometheus.Counter
WithLabelValues mocks base method
type MockcounterIniterMockRecorder ¶
type MockcounterIniterMockRecorder struct {
// contains filtered or unexported fields
}
MockcounterIniterMockRecorder is the mock recorder for MockcounterIniter
func (*MockcounterIniterMockRecorder) WithLabelValues ¶
func (mr *MockcounterIniterMockRecorder) WithLabelValues(lvs ...interface{}) *gomock.Call
WithLabelValues indicates an expected call of WithLabelValues
type MockgaugeIniter ¶
type MockgaugeIniter struct {
// contains filtered or unexported fields
}
MockgaugeIniter is a mock of gaugeIniter interface
func NewMockgaugeIniter ¶
func NewMockgaugeIniter(ctrl *gomock.Controller) *MockgaugeIniter
NewMockgaugeIniter creates a new mock instance
func (*MockgaugeIniter) EXPECT ¶
func (m *MockgaugeIniter) EXPECT() *MockgaugeIniterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockgaugeIniter) WithLabelValues ¶
func (m *MockgaugeIniter) WithLabelValues(lvs ...string) prometheus.Gauge
WithLabelValues mocks base method
type MockgaugeIniterMockRecorder ¶
type MockgaugeIniterMockRecorder struct {
// contains filtered or unexported fields
}
MockgaugeIniterMockRecorder is the mock recorder for MockgaugeIniter
func (*MockgaugeIniterMockRecorder) WithLabelValues ¶
func (mr *MockgaugeIniterMockRecorder) WithLabelValues(lvs ...interface{}) *gomock.Call
WithLabelValues indicates an expected call of WithLabelValues