Annotation Type ManagedResource


@Retention(CLASS) @Target(TYPE) public @interface ManagedResource

Publishes this bean's ManagedAttribute getters as metrics and its ManagedOperation methods as operations -- the JMX model, over OpenTelemetry.

Each numeric attribute becomes an observable gauge named <objectName>.<attribute>, read when metrics are collected. The operations are listed by the management endpoint and by the development MCP server, which can invoke them. Everything is enumerated by the build; the generated code calls the getters and the operations directly.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    What the bean is, for the listing.
    The prefix the metrics are named under.
  • Element Details

    • objectName

      String objectName
      The prefix the metrics are named under. Empty means the class's simple name.
      Default:
      ""
    • description

      String description
      What the bean is, for the listing.
      Default:
      ""