Add Microsoft Application Insights output plugin (#4010)
This commit is contained in:
committed by
Daniel Nelson
parent
99033241c4
commit
863af9d1d4
@@ -0,0 +1,12 @@
|
||||
package mocks
|
||||
|
||||
import mock "github.com/stretchr/testify/mock"
|
||||
|
||||
// DiagnosticsMessageSubscriber is an autogenerated mock type for the DiagnosticsMessageSubscriber type
|
||||
type DiagnosticsMessageListener struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
func (_m *DiagnosticsMessageListener) Remove() {
|
||||
_m.Called()
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
// Code generated by mockery v1.0.0
|
||||
package mocks
|
||||
|
||||
import appinsights "github.com/Microsoft/ApplicationInsights-Go/appinsights"
|
||||
|
||||
import mock "github.com/stretchr/testify/mock"
|
||||
|
||||
// DiagnosticsMessageSubscriber is an autogenerated mock type for the DiagnosticsMessageSubscriber type
|
||||
type DiagnosticsMessageSubscriber struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
// Subscribe provides a mock function with given fields: _a0
|
||||
func (_m *DiagnosticsMessageSubscriber) Subscribe(_a0 appinsights.DiagnosticsMessageHandler) appinsights.DiagnosticsMessageListener {
|
||||
ret := _m.Called(_a0)
|
||||
|
||||
var r0 appinsights.DiagnosticsMessageListener
|
||||
if rf, ok := ret.Get(0).(func(appinsights.DiagnosticsMessageHandler) appinsights.DiagnosticsMessageListener); ok {
|
||||
r0 = rf(_a0)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(appinsights.DiagnosticsMessageListener)
|
||||
}
|
||||
}
|
||||
|
||||
return r0
|
||||
}
|
||||
32
plugins/outputs/application_insights/mocks/transmitter.go
Normal file
32
plugins/outputs/application_insights/mocks/transmitter.go
Normal file
@@ -0,0 +1,32 @@
|
||||
// Code generated by mockery v1.0.0
|
||||
package mocks
|
||||
|
||||
import appinsights "github.com/Microsoft/ApplicationInsights-Go/appinsights"
|
||||
|
||||
import mock "github.com/stretchr/testify/mock"
|
||||
|
||||
// Transmitter is an autogenerated mock type for the Transmitter type
|
||||
type Transmitter struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
// Close provides a mock function with given fields:
|
||||
func (_m *Transmitter) Close() <-chan struct{} {
|
||||
ret := _m.Called()
|
||||
|
||||
var r0 <-chan struct{}
|
||||
if rf, ok := ret.Get(0).(func() <-chan struct{}); ok {
|
||||
r0 = rf()
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(<-chan struct{})
|
||||
}
|
||||
}
|
||||
|
||||
return r0
|
||||
}
|
||||
|
||||
// Track provides a mock function with given fields: _a0
|
||||
func (_m *Transmitter) Track(_a0 appinsights.Telemetry) {
|
||||
_m.Called(_a0)
|
||||
}
|
||||
Reference in New Issue
Block a user