Package org.springframework.jmx.export.annotation

# Annotation Interface ManagedMetric

@Target(METHOD) @Retention(RUNTIME) @Documented public @interface 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.

Since:
  3.0
Author:
  Jennifer Hickey
See Also:
  - `ManagedMetric`

## Optional Element Summary

Optional Elements
Modifier and Type
Optional Element
Description
`String`
`category`
`int`
`currencyTimeLimit`
`String`
`description`
`String`
`displayName`
`MetricType`
`metricType`
`int`
`persistPeriod`
`String`
`persistPolicy`
`String`
`unit`

## Element Details

### category

String category

Default:
  ""

### currencyTimeLimit

int currencyTimeLimit

Default:
  -1

### description

String description

Default:
  ""

### displayName

String displayName

Default:
  ""

### metricType

MetricType metricType

Default:
  GAUGE

### persistPeriod

int persistPeriod

Default:
  -1

### persistPolicy

String persistPolicy

Default:
  ""

### unit

String unit

Default:
  ""