# Class SpringAIObservabilityHandler.RequestContext

java.lang.Object
com.google.adk.models.springai.observability.SpringAIObservabilityHandler.RequestContext

Enclosing class:
  `SpringAIObservabilityHandler`

public static class SpringAIObservabilityHandler.RequestContext extends Object
Context for tracking a single request with Micrometer timer.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `RequestContext(String modelName, String requestType, Instant startTime, boolean observable, io.micrometer.core.instrument.Timer.Sample timerSample)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getModelName()`
  `String`
  `getRequestType()`
  `Instant`
  `getStartTime()`
  `io.micrometer.core.instrument.Timer.Sample`
  `getTimerSample()`
  `boolean`
  `isObservable()`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### RequestContext

    public RequestContext(String modelName, String requestType, Instant startTime, boolean observable, io.micrometer.core.instrument.Timer.Sample timerSample)

- ## Method Details

  - ### getModelName

    public String getModelName()

  - ### getRequestType

    public String getRequestType()

  - ### getStartTime

    public Instant getStartTime()

  - ### isObservable

    public boolean isObservable()

  - ### getTimerSample

    public io.micrometer.core.instrument.Timer.Sample getTimerSample()