Table of Contents

Class ObservabilityBridgeExtensions

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

Extension methods for registering Typhon Observability Bridge services with dependency injection.

public static class ObservabilityBridgeExtensions
Inheritance
ObservabilityBridgeExtensions
Inherited Members

Methods

AddTyphonObservabilityBridge(IServiceCollection, Action<ObservabilityBridgeOptions>)

Adds the Typhon Observability Bridge to the service collection.

public static IServiceCollection AddTyphonObservabilityBridge(this IServiceCollection services, Action<ObservabilityBridgeOptions> configure = null)

Parameters

services IServiceCollection

The service collection.

configure Action<ObservabilityBridgeOptions>

Optional action to configure bridge options.

Returns

IServiceCollection

The service collection for chaining.

Remarks

This method registers:

Prerequisites: IResourceGraph must be registered in the service collection.

services.AddSingleton<IResourceGraph>(sp => ...);
services.AddTyphonObservabilityBridge(options =>
{
    options.SnapshotInterval = TimeSpan.FromSeconds(10);
    options.Thresholds["Storage/PageCache"] = new HealthThresholds(0.70, 0.90);
});