VersionAgeMetric

Description

Inherits from Metric.

Important public methods of this class are:

Key

Return Type

Description

getMetricResult

int

Returns a number indicating the staleness of the definition version in relation to the definition date. It is useful for dealing with products which have high update frequency. Return code 3 indicates that the definition version is current to latest definition date. Code 2 indicates that the definition version is current to the latest definition date within 12hr window. Code 1 indicates that the definition version is current to the latest definition date within 36hr window. Code 0 indicates that metric does not apply or insufficient information to determine metric. Code -1 indicates that the definition version is older than 36hr window. Code -2 indicates invalid or absent information given in request. Code -3 indicates OPSWAT Internal Error.