Table of Contents

Class KeycloakMetrics

Namespace
Keycloak.AuthServices.Authorization
Assembly
Keycloak.AuthServices.Authorization.dll

Represents a class for tracking Keycloak authorization metrics.

public class KeycloakMetrics
Inheritance
KeycloakMetrics
Inherited Members

Constructors

KeycloakMetrics(IMeterFactory)

Initializes a new instance of the KeycloakMetrics class.

public KeycloakMetrics(IMeterFactory meterFactory)

Parameters

meterFactory IMeterFactory

The meter factory used to create metrics.

Methods

ErrorRequirement(string)

Records an errored requirement.

public void ErrorRequirement(string requirement)

Parameters

requirement string

The name of the errored requirement.

FailRequirement(string)

Records a failed requirement.

public void FailRequirement(string requirement)

Parameters

requirement string

The name of the failed requirement.

SkipRequirement(string)

Records an skipped requirement.

public void SkipRequirement(string requirement)

Parameters

requirement string

The name of the skipped requirement.

SucceedRequirement(string)

Records a succeeded requirement.

public void SucceedRequirement(string requirement)

Parameters

requirement string

The name of the succeeded requirement.