Class HystrixMetricsStreamPublisher
- Namespace
- Steeltoe.CircuitBreaker.Hystrix.MetricsStream
- Assembly
- Steeltoe.CircuitBreaker.HystrixBase.dll
public class HystrixMetricsStreamPublisher : IDisposable
- Inheritance
-
HystrixMetricsStreamPublisher
- Implements
- Derived
- Inherited Members
Constructors
HystrixMetricsStreamPublisher(IOptions<HystrixMetricsStreamOptions>, HystrixDashboardStream, ILogger, IDiscoveryClient)
public HystrixMetricsStreamPublisher(IOptions<HystrixMetricsStreamOptions> options, HystrixDashboardStream stream, ILogger logger = null, IDiscoveryClient discoveryClient = null)
Parameters
optionsIOptions<HystrixMetricsStreamOptions>streamHystrixDashboardStreamloggerILoggerdiscoveryClientIDiscoveryClient
Fields
SPRING_CLOUD_HYSTRIX_STREAM_EXCHANGE
protected const string SPRING_CLOUD_HYSTRIX_STREAM_EXCHANGE = "spring.cloud.hystrix.stream"
Field Value
discoveryClient
protected IDiscoveryClient discoveryClient
Field Value
logger
protected ILogger logger
Field Value
observable
protected IObservable<List<string>> observable
Field Value
options
protected HystrixMetricsStreamOptions options
Field Value
sampleSubscription
protected IDisposable sampleSubscription
Field Value
Properties
SampleSubscription
protected IDisposable SampleSubscription { get; set; }
Property Value
Methods
Dispose()
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposingbool
EnsureConnection()
protected virtual bool EnsureConnection()
Returns
OnComplete()
protected virtual void OnComplete()
OnError(Exception)
protected virtual void OnError(Exception error)
Parameters
errorException
OnNext(List<string>)
protected virtual void OnNext(List<string> jsonList)
Parameters
StartMetricsPublishing()
public void StartMetricsPublishing()