Table of Contents

Class HystrixMetricsStreamPublisher

Namespace
Steeltoe.CircuitBreaker.Hystrix.MetricsStream
Assembly
Steeltoe.CircuitBreaker.HystrixBase.dll
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
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

options IOptions<HystrixMetricsStreamOptions>
stream HystrixDashboardStream
logger ILogger
discoveryClient IDiscoveryClient

Fields

SPRING_CLOUD_HYSTRIX_STREAM_EXCHANGE

protected const string SPRING_CLOUD_HYSTRIX_STREAM_EXCHANGE = "spring.cloud.hystrix.stream"

Field Value

string

discoveryClient

protected IDiscoveryClient discoveryClient

Field Value

IDiscoveryClient

logger

protected ILogger logger

Field Value

ILogger

observable

protected IObservable<List<string>> observable

Field Value

IObservable<List<string>>

options

protected HystrixMetricsStreamOptions options

Field Value

HystrixMetricsStreamOptions

sampleSubscription

protected IDisposable sampleSubscription

Field Value

IDisposable

Properties

SampleSubscription

protected IDisposable SampleSubscription { get; set; }

Property Value

IDisposable

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

EnsureConnection()

protected virtual bool EnsureConnection()

Returns

bool

OnComplete()

protected virtual void OnComplete()

OnError(Exception)

protected virtual void OnError(Exception error)

Parameters

error Exception

OnNext(List<string>)

protected virtual void OnNext(List<string> jsonList)

Parameters

jsonList List<string>

StartMetricsPublishing()

public void StartMetricsPublishing()