@@ -36,13 +36,12 @@ export class Cumulative implements Meter {
3636 /**
3737 * Constructs a new Cumulative instance.
3838 *
39- * @param {string } name The name of the metric.
40- * @param {string } description The description of the metric.
41- * @param {string } unit The unit of the metric.
42- * @param {MetricDescriptorType } type The type of metric.
43- * @param {LabelKey[] } labelKeys The list of the label keys.
44- * @param {Map<LabelKey, LabelValue> } constantLabels The map of constant
45- * labels for the Metric.
39+ * @param name The name of the metric.
40+ * @param description The description of the metric.
41+ * @param unit The unit of the metric.
42+ * @param type The type of metric.
43+ * @param labelKeys The list of the label keys.
44+ * @param constantLabels The map of constant labels for the Metric.
4645 */
4746 constructor (
4847 name : string , description : string , unit : string ,
@@ -65,8 +64,8 @@ export class Cumulative implements Meter {
6564 * It is recommended to keep a reference to the Point instead of always
6665 * calling this method for manual operations.
6766 *
68- * @param { LabelValue[] } labelValues The list of the label values.
69- * @returns { CumulativePoint } The value of single cumulative.
67+ * @param labelValues The list of the label values.
68+ * @returns The value of single cumulative.
7069 */
7170 getOrCreateTimeSeries ( labelValues : LabelValue [ ] ) : CumulativePoint {
7271 validateArrayElementsNotNull (
@@ -78,7 +77,7 @@ export class Cumulative implements Meter {
7877 * Returns a Point for a cumulative with all labels not set, or default
7978 * labels.
8079 *
81- * @returns { CumulativePoint } The value of single cumulative.
80+ * @returns The value of single cumulative.
8281 */
8382 getDefaultTimeSeries ( ) : CumulativePoint {
8483 return this . registerTimeSeries ( this . defaultLabelValues ) ;
@@ -89,7 +88,7 @@ export class Cumulative implements Meter {
8988 * references to previous Point objects are invalid (not part of the
9089 * metric).
9190 *
92- * @param { LabelValue[] } labelValues The list of label values.
91+ * @param labelValues The list of label values.
9392 */
9493 removeTimeSeries ( labelValues : LabelValue [ ] ) : void {
9594 validateNotNull ( labelValues , 'labelValues' ) ;
@@ -109,8 +108,8 @@ export class Cumulative implements Meter {
109108 * labelValues is not already associated with this cumulative, else returns an
110109 * existing Point.
111110 *
112- * @param { LabelValue[] } labelValues The list of the label values.
113- * @returns { CumulativePoint } The value of single cumulative.
111+ * @param labelValues The list of the label values.
112+ * @returns The value of single cumulative.
114113 */
115114 private registerTimeSeries ( labelValues : LabelValue [ ] ) : CumulativePoint {
116115 const hash = hashLabelValues ( labelValues ) ;
@@ -131,8 +130,7 @@ export class Cumulative implements Meter {
131130 /**
132131 * Provides a Metric with one or more TimeSeries.
133132 *
134- * @returns {Metric } The Metric, or null if TimeSeries is not present in
135- * Metric.
133+ * @returns The Metric, or null if TimeSeries is not present in Metric.
136134 */
137135 getMetric ( ) : Metric | null {
138136 if ( this . registeredPoints . size === 0 ) {
@@ -168,7 +166,7 @@ export class CumulativePointEntry implements CumulativePoint {
168166
169167 /**
170168 * Increment the cumulative metric.
171- * @param { number } val The new value.
169+ * @param val The new value.
172170 */
173171 inc ( val ?: number ) : void {
174172 if ( ( val && ! Number . isFinite ( val ) ) || ( val !== undefined && isNaN ( val ) ) ) {
@@ -184,8 +182,8 @@ export class CumulativePointEntry implements CumulativePoint {
184182 /**
185183 * Returns the TimeSeries with one or more Point.
186184 *
187- * @param { Timestamp } now The time at which the cumulative is recorded.
188- * @returns { TimeSeries } The TimeSeries.
185+ * @param now The time at which the cumulative is recorded.
186+ * @returns The TimeSeries.
189187 */
190188 getTimeSeries ( now : Timestamp ) : TimeSeries {
191189 return {
0 commit comments