spring-framework / org.springframework.jmx.export.annotation / ManagedMetric

ManagedMetric

@Target([AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER]) class ManagedMetric

Method-level annotation that indicates to expose a given bean property as a JMX attribute, with added descriptor properties to indicate that it is a metric. Only valid when used on a JavaBean getter.

Author
Jennifer Hickey

Since
3.0

See Also
org.springframework.jmx.export.metadata.ManagedMetric

Constructors

<init>

ManagedMetric(category: String, currencyTimeLimit: Int, description: String, displayName: String, metricType: MetricType, persistPeriod: Int, persistPolicy: String, unit: String)

Method-level annotation that indicates to expose a given bean property as a JMX attribute, with added descriptor properties to indicate that it is a metric. Only valid when used on a JavaBean getter.

Properties

category

val category: String

currencyTimeLimit

val currencyTimeLimit: Int

description

val description: String

displayName

val displayName: String

metricType

val metricType: MetricType

persistPeriod

val persistPeriod: Int

persistPolicy

val persistPolicy: String

unit

val unit: String