Class TextToSpeechModelMeterObservationHandler
java.lang.Object
org.springframework.ai.audio.tts.observation.TextToSpeechModelMeterObservationHandler
- All Implemented Interfaces:
io.micrometer.observation.ObservationHandler<TextToSpeechModelObservationContext>
public class TextToSpeechModelMeterObservationHandler
extends Object
implements io.micrometer.observation.ObservationHandler<TextToSpeechModelObservationContext>
Handler for generating metrics from text-to-speech model observations.
- Since:
- 2.0.2
- Author:
- Olivier Le Quellec
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micrometer.observation.ObservationHandler
io.micrometer.observation.ObservationHandler.AllMatchingCompositeObservationHandler, io.micrometer.observation.ObservationHandler.CompositeObservationHandler, io.micrometer.observation.ObservationHandler.FirstMatchingCompositeObservationHandler -
Constructor Summary
ConstructorsConstructorDescriptionTextToSpeechModelMeterObservationHandler(io.micrometer.core.instrument.MeterRegistry meterRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleansupportsContext(io.micrometer.observation.Observation.Context context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micrometer.observation.ObservationHandler
onError, onEvent, onScopeClosed, onScopeOpened, onScopeReset, onStart
-
Constructor Details
-
TextToSpeechModelMeterObservationHandler
public TextToSpeechModelMeterObservationHandler(io.micrometer.core.instrument.MeterRegistry meterRegistry)
-
-
Method Details
-
onStop
- Specified by:
onStopin interfaceio.micrometer.observation.ObservationHandler<TextToSpeechModelObservationContext>
-
supportsContext
public boolean supportsContext(io.micrometer.observation.Observation.Context context) - Specified by:
supportsContextin interfaceio.micrometer.observation.ObservationHandler<TextToSpeechModelObservationContext>
-