-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathnoop_client.go
52 lines (48 loc) · 1.63 KB
/
noop_client.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package diego_logging_client
import (
"time"
loggregator "code.cloudfoundry.org/go-loggregator/v9"
)
type noopIngressClient struct{}
func (*noopIngressClient) SendDuration(name string, value time.Duration, opts ...loggregator.EmitGaugeOption) error {
return nil
}
func (*noopIngressClient) SendMebiBytes(name string, value int, opts ...loggregator.EmitGaugeOption) error {
return nil
}
func (*noopIngressClient) SendMetric(name string, value int, opts ...loggregator.EmitGaugeOption) error {
return nil
}
func (*noopIngressClient) SendBytesPerSecond(name string, value float64) error {
return nil
}
func (*noopIngressClient) SendRequestsPerSecond(name string, value float64) error {
return nil
}
func (*noopIngressClient) IncrementCounter(name string) error {
return nil
}
func (*noopIngressClient) IncrementCounterWithDelta(name string, value uint64) error {
return nil
}
func (*noopIngressClient) SendAppLog(message, sourceType string, tags map[string]string) error {
return nil
}
func (*noopIngressClient) SendAppErrorLog(message, sourceType string, tags map[string]string) error {
return nil
}
func (*noopIngressClient) SendAppMetrics(metrics ContainerMetric) error {
return nil
}
func (*noopIngressClient) SendAppLogRate(rate, rateLimit float64, tags map[string]string) error {
return nil
}
func (*noopIngressClient) SendSpikeMetrics(metrics SpikeMetric) error {
return nil
}
func (*noopIngressClient) SendComponentMetric(name string, value float64, unit string) error {
return nil
}
func (*noopIngressClient) SendCPUUsage(applicationID string, instanceIndex int, absoluteUsage, absoluteEntitlement, containerAge uint64) error {
return nil
}