COSMOS ${releaseVersion} data-collection Project
Public API Specification

org.eclipse.cosmos.dc.mgmt.annotations
Annotation Type ManagedMetric


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

Annotation used to indicate a metric. This annotation may be applied to any field with ManagedProperty applied, or to any method that had ManagedPropertyGetter applied.


Optional Element Summary
 java.lang.String calulationInterval
          The calculation interval for the metric, specified in the format of an XML schema duration.
 ManagedMetric.CHANGE_TYPE changeType
          The change type of the metric.
 ManagedMetric.GATHERING_TIME gatheringTime
          The gathering time of the metric.
 java.lang.String group
          The local name for the metric group.
 java.lang.String namespace
          The namespace to be used for the operation.
 ManagedMetric.TIME_SCOPE timeScope
          The time scope of the metric.
 

namespace

public abstract java.lang.String namespace
The namespace to be used for the operation. If no namespace is provided, and the operation is declared as a member of a ManagedResource, then the ManagedResource annotation's namespacewill be used. If no namespace is provided, and the operation is operation is declared as a member of a ManagedResourceCapability, then the ManagedResourceCapability's namespace will be used.

Default:
""

group

public abstract java.lang.String group
The local name for the metric group.

Default:
""

calulationInterval

public abstract java.lang.String calulationInterval
The calculation interval for the metric, specified in the format of an XML schema duration. Required if timeScope is set to INTERVAL. Prohibited if the timeScope value is POINT_IN_TIME or SINCE_RESET.

Default:
""

changeType

public abstract ManagedMetric.CHANGE_TYPE changeType
The change type of the metric. See CHANGE_TYPE for a discussion of valid values.

Default:
UNKNOWN

timeScope

public abstract ManagedMetric.TIME_SCOPE timeScope
The time scope of the metric. See TIME_SCOPE for a discussion of valid values.

Default:
POINT_IN_TIME

gatheringTime

public abstract ManagedMetric.GATHERING_TIME gatheringTime
The gathering time of the metric. See GATHERING_TIME for a discussion of valid values.

Default:
UNKNOWN

COSMOS ${releaseVersion} data-collection Project
Public API Specification