azure-docs-sdk-java/docs-ref-autogen/com.azure.core.util.metrics...

45 строки
2.6 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.core.util.metrics.LongCounter"
fullName: "com.azure.core.util.metrics.LongCounter"
name: "LongCounter"
nameWithType: "LongCounter"
summary: "A counter instrument that records `long` values."
syntax: "public interface **LongCounter**"
methods:
- 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\" />"
type: "interface"
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."
metadata: {}
package: "com.azure.core.util.metrics"
artifact: com.azure:azure-core:1.52.0