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

Commit

Permalink
Fix wording
Browse files Browse the repository at this point in the history
  • Loading branch information
songy23 committed Apr 19, 2019
1 parent c0edc18 commit 44a913e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@

/**
* Derived Double Cumulative metric, to report cumulative measurement of a double value. Cumulative
* values can go up or stay the same, but can never go down. The cumulative values cannot be
* negative.
* values can go up or stay the same, but can never go down. Cumulative values cannot be negative.
*
* <p>Example: Create a Cumulative with an object and a callback function.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@

/**
* Derived Long Cumulative metric, to report cumulative measurement of an int64 value. Cumulative
* values can go up or stay the same, but can never go down. The cumulative values cannot be
* negative.
* values can go up or stay the same, but can never go down. Cumulative values cannot be negative.
*
* <p>Example: Create a Cumulative with an object and a callback function.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@

/**
* Double Cumulative metric, to report instantaneous measurement of a double value. Cumulative
* values can go up or stay the same, but can never go down. The cumulative values cannot be
* negative.
* values can go up or stay the same, but can never go down. Cumulative values cannot be negative.
*
* <p>Example 1: Create a Cumulative with default labels.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

/**
* Long Cumulative metric, to report instantaneous measurement of an int64 value. Cumulative values
* can go up or stay the same, but can never go down. The cumulative values cannot be negative.
* can go up or stay the same, but can never go down. Cumulative values cannot be negative.
*
* <p>Example 1: Create a Cumulative with default labels.
*
Expand Down
24 changes: 12 additions & 12 deletions api/src/main/java/io/opencensus/metrics/MetricRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public LongGauge addLongGauge(
}

/**
* Builds a new long gauge to be added to the registry. This is more convenient form when you want
* to manually increase and decrease values as per your service requirements.
* Builds a new long gauge to be added to the registry. This is a more convenient form when you
* want to manually increase and decrease values as per your service requirements.
*
* @param name the name of the metric.
* @param options the options for the metric.
Expand Down Expand Up @@ -82,7 +82,7 @@ public DoubleGauge addDoubleGauge(
}

/**
* Builds a new double gauge to be added to the registry. This is more convenient form when you
* Builds a new double gauge to be added to the registry. This is a more convenient form when you
* want to manually increase and decrease values as per your service requirements.
*
* @param name the name of the metric.
Expand Down Expand Up @@ -114,8 +114,8 @@ public DerivedLongGauge addDerivedLongGauge(
}

/**
* Builds a new derived long gauge to be added to the registry. This is more convenient form when
* you want to define a gauge by executing a {@link ToLongFunction} on an object.
* Builds a new derived long gauge to be added to the registry. This is a more convenient form
* when you want to define a gauge by executing a {@link ToLongFunction} on an object.
*
* @param name the name of the metric.
* @param options the options for the metric.
Expand Down Expand Up @@ -146,7 +146,7 @@ public DerivedDoubleGauge addDerivedDoubleGauge(
}

/**
* Builds a new derived double gauge to be added to the registry. This is more convenient form
* Builds a new derived double gauge to be added to the registry. This is a more convenient form
* when you want to define a gauge by executing a {@link ToDoubleFunction} on an object.
*
* @param name the name of the metric.
Expand All @@ -160,8 +160,8 @@ public DerivedDoubleGauge addDerivedDoubleGauge(
public abstract DerivedDoubleGauge addDerivedDoubleGauge(String name, MetricOptions options);

/**
* Builds a new long cumulative to be added to the registry. This is more convenient form when you
* want to manually increase values as per your service requirements.
* Builds a new long cumulative to be added to the registry. This is a more convenient form when
* you want to manually increase values as per your service requirements.
*
* @param name the name of the metric.
* @param options the options for the metric.
Expand All @@ -174,7 +174,7 @@ public DerivedDoubleGauge addDerivedDoubleGauge(
public abstract LongCumulative addLongCumulative(String name, MetricOptions options);

/**
* Builds a new double cumulative to be added to the registry. This is more convenient form when
* Builds a new double cumulative to be added to the registry. This is a more convenient form when
* you want to manually increase values as per your service requirements.
*
* @param name the name of the metric.
Expand All @@ -188,8 +188,8 @@ public DerivedDoubleGauge addDerivedDoubleGauge(
public abstract DoubleCumulative addDoubleCumulative(String name, MetricOptions options);

/**
* Builds a new derived long cumulative to be added to the registry. This is more convenient form
* when you want to define a cumulative by executing a {@link ToLongFunction} on an object.
* Builds a new derived long cumulative to be added to the registry. This is a more convenient
* form when you want to define a cumulative by executing a {@link ToLongFunction} on an object.
*
* @param name the name of the metric.
* @param options the options for the metric.
Expand All @@ -203,7 +203,7 @@ public abstract DerivedLongCumulative addDerivedLongCumulative(
String name, MetricOptions options);

/**
* Builds a new derived double cumulative to be added to the registry. This is more convenient
* Builds a new derived double cumulative to be added to the registry. This is a more convenient
* form when you want to define a cumulative by executing a {@link ToDoubleFunction} on an object.
*
* @param name the name of the metric.
Expand Down

0 comments on commit 44a913e

Please sign in to comment.