dev.openfga.sdk.telemetry.Telemetry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openfga-sdk Show documentation
Show all versions of openfga-sdk Show documentation
This is an autogenerated Java SDK for OpenFGA. It provides a wrapper around the [OpenFGA API definition](https://openfga.dev/api).
package dev.openfga.sdk.telemetry;
import dev.openfga.sdk.api.configuration.Configuration;
/**
* The Telemetry class provides access to telemetry-related functionality.
*/
public class Telemetry {
private Configuration configuration = new Configuration();
private Metrics metrics = null;
public Telemetry(Configuration configuration) {
this.configuration = configuration;
}
/**
* Returns a Metrics singleton for collecting telemetry data.
* If the Metrics singleton has not previously been initialized, it will be created.
*/
public Metrics metrics() {
if (metrics == null) {
metrics = new Metrics(this.configuration);
}
return metrics;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy