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

Commit

Permalink
Add comments for getMetric() method
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurkale22 committed Apr 11, 2019
1 parent e8c2965 commit 6444d01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ export class Cumulative implements Meter {
/**
* Provides a Metric with one or more TimeSeries.
*
* @returns {Metric} The Metric.
* @returns {Metric} The Metric, or null if TimeSeries is not present in
* Metric.
*/
getMetric(): Metric|null {
if (this.registeredPoints.size === 0) {
Expand Down
4 changes: 3 additions & 1 deletion packages/opencensus-core/src/metrics/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@
import {MeasureUnit} from './../stats/types';
import {LabelKey, LabelValue, Metric} from './export/types';

/** Provides a {@link Metric} with one or more {@link TimeSeries} */
export interface Meter {
/**
* Provides a Metric with one or more TimeSeries.
*
* @returns {Metric} The Metric.
* @returns {Metric} The Metric, or null if TimeSeries is not present in
* Metric.
*/
getMetric(): Metric|null;
}
Expand Down

0 comments on commit 6444d01

Please sign in to comment.