com.netflix.servo.annotations
Annotation Type Monitor


@Documented
@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD})
public @interface Monitor

Annotation indicating a field or method should be collected for monitoring. The attributes annotated should be thread-safe for access by a background thread. If a method is annotated it should be inexpensive and avoid any potentially costly operations such as IO and networking. Expect that the fields will be polled frequently and cache values that require expensive computation rather than computing them inline.


Optional Element Summary
 java.lang.String description
          A human readable description of the annotated attribute.
 DataSourceLevel level
          Level of the value that is annotated, for more information see DataSourceLevel.
 java.lang.String name
          Name of the annotated attribute.
 DataSourceType type
          Type of value that is annotated, for more information see DataSourceType.
 

name

public abstract java.lang.String name
Name of the annotated attribute.

Default:
""

type

public abstract DataSourceType type
Type of value that is annotated, for more information see DataSourceType.

Default:
com.netflix.servo.annotations.DataSourceType.INFORMATIONAL

level

public abstract DataSourceLevel level
Level of the value that is annotated, for more information see DataSourceLevel.

Default:
com.netflix.servo.annotations.DataSourceLevel.INFO

description

public abstract java.lang.String description
A human readable description of the annotated attribute.

Default:
""