2022-08-10 05:41:55 +03:00
### YamlMime:JavaType
uid : "com.azure.core.util.metrics.LongCounter"
fullName : "com.azure.core.util.metrics.LongCounter"
name : "LongCounter"
nameWithType : "LongCounter"
2022-08-11 07:43:16 +03:00
summary : "A counter instrument that records `long` values."
2022-11-01 07:30:49 +03:00
syntax : "public interface **LongCounter**"
2022-08-10 05:41:55 +03:00
methods :
2022-08-22 08:55:24 +03:00
- uid : "com.azure.core.util.metrics.LongCounter.add(long,com.azure.core.util.TelemetryAttributes,com.azure.core.util.Context)"
fullName : "com.azure.core.util.metrics.LongCounter.add(long value, TelemetryAttributes attributes, Context context)"
name : "add(long value, TelemetryAttributes attributes, Context context)"
nameWithType : "LongCounter.add(long value, TelemetryAttributes attributes, Context context)"
summary : "Records a value with a set of attributes."
modifiers :
- "abstract"
parameters :
- description : "The amount of the measurement."
name : "value"
type : "<xref href=\"long?alt=long&text=long\" data-throw-if-not-resolved=\"False\" />"
- description : "Collection of attributes representing metric dimensions."
name : "attributes"
type : "<xref href=\"com.azure.core.util.TelemetryAttributes?alt=com.azure.core.util.TelemetryAttributes&text=TelemetryAttributes\" data-throw-if-not-resolved=\"False\" />"
- description : "The explicit context to associate with this measurement."
name : "context"
type : "<xref href=\"com.azure.core.util.Context?alt=com.azure.core.util.Context&text=Context\" data-throw-if-not-resolved=\"False\" />"
syntax : "public abstract void add(long value, TelemetryAttributes attributes, Context context)"
desc : "Records a value with a set of attributes."
- uid : "com.azure.core.util.metrics.LongCounter.isEnabled()"
fullName : "com.azure.core.util.metrics.LongCounter.isEnabled()"
name : "isEnabled()"
nameWithType : "LongCounter.isEnabled()"
summary : "Flag indicating if metric implementation is detected and functional, use it to minimize performance impact associated with metrics, e.<wbr>g."
modifiers :
- "abstract"
syntax : "public abstract boolean isEnabled()"
desc : "Flag indicating if metric implementation is detected and functional, use it to minimize performance impact associated with metrics, e.g. measuring latency."
returns :
description : "<code>true</code> if enabled, <code>false</code> otherwise"
type : "<xref href=\"boolean?alt=boolean&text=boolean\" data-throw-if-not-resolved=\"False\" />"
2022-08-10 05:41:55 +03:00
type : "interface"
2022-08-11 07:43:16 +03:00
desc : "A counter instrument that records `long` values.\n\nCounters only allow adding positive values, and guarantee the resulting metrics will be always-increasing monotonic sums."
2022-08-10 05:41:55 +03:00
metadata : {}
package : "com.azure.core.util.metrics"
2024-09-13 07:59:32 +03:00
artifact : com.azure:azure-core:1.52.0