Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Add JSDoc for CumulativeEntry interface and its members
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurkale22 committed May 8, 2019
1 parent 5aa9f43 commit 565b325
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,16 @@ import * as util from '../utils';

type ValueExtractor = () => number;

/**
* An interface that describes the entry for every TimeSeries (Point) added to
* the Cumulative metric.
*/
interface CumulativeEntry {
/** The list of the label values. */
readonly labelValues: LabelValue[];
/** The function to get the actual value of point. */
readonly extractor: ValueExtractor;
/** The previous value of the point. */
prevValue: number;
}

Expand Down

0 comments on commit 565b325

Please sign in to comment.