| Package | Description |
|---|---|
| com.atlassian.util.profiling | |
| com.atlassian.util.profiling.strategy |
| Modifier and Type | Method and Description |
|---|---|
static MetricKey |
MetricKey.metricKey(String metricName) |
static MetricKey |
MetricKey.metricKey(String metricName,
Collection<MetricTag.RequiredMetricTag> tags) |
static MetricKey |
MetricKey.metricKey(String metricName,
MetricTag.RequiredMetricTag... tags) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Metrics.resetMetric(MetricKey metricKey)
Resets (that may mean removal depending on the metric strategy) a specific metric that exactly matches a
MetricKey. |
| Modifier and Type | Method and Description |
|---|---|
default void |
MetricStrategy.incrementCounter(MetricKey metricKey,
long deltaValue)
Does not guarantee safety from lost-updates, check implementations.
|
default void |
MetricStrategy.incrementGauge(MetricKey metricKey,
long deltaValue)
Does not guarantee safety from lost-updates, check implementations.
|
default void |
MetricStrategy.resetMetric(MetricKey metricKey)
Resets (that may mean removal depending on the metric strategy) a specific metric that exactly matches a
MetricKey. |
default void |
MetricStrategy.setGauge(MetricKey metricKey,
long currentValue)
Called to set the gauge by the value.
|
default Ticker |
MetricStrategy.startLongRunningTimer(MetricKey metricKey)
Called to time something that is long-running and could benefit from periodic updates on the timer duration.
|
default Ticker |
MetricStrategy.startTimer(MetricKey metricKey)
Called to mark the end of a block of code for which metrics should be calculated.
|
default void |
MetricStrategy.updateHistogram(MetricKey metricKey,
long value)
Called when a histogram is
updated. |
default void |
MetricStrategy.updateTimer(MetricKey metricKey,
Duration time)
Called when a metric is
updated. |
Copyright © 2023 Atlassian. All rights reserved.