Interface ConfluenceMonitoring
- All Known Implementing Classes:
AtlassianInstrumentationConfluenceMonitoring
@Internal
@ParametersAreNonnullByDefault
public interface ConfluenceMonitoring
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NonNull String
createName
(String name, String... optional) Creates a legal name from the supplied mandatory suggestion, and optional extra parts.default @NonNull Counter
fetchCounter
(String name) Fetches the counter associated with the supplied name details.@NonNull Counter
fetchCounter
(String name, String... optional) Deprecated.@NonNull Counter
fetchCounter
(String name, Map<String, String> tags) Fetches the counter associated with the supplied name details.default @NonNull Split
startSplit
(String name) Creates and starts a split timer associated with the supplied name details.@NonNull Split
startSplit
(String name, String... optional) Deprecated.since 7.1 UsestartSplit(String, Map)
@NonNull Split
startSplit
(String name, Map<String, String> tags) Creates and starts a split timer associated with the supplied name details.
-
Method Details
-
fetchCounter
Deprecated.since 7.1 UsefetchCounter(String, Map)
Fetches the counter associated with the supplied name details. The name is constructed callingcreateName(String, String...)
.- Parameters:
name
- the mandatory suggested nameoptional
- the optional parts to concatenate with themandatory
suggestion- Returns:
- the counter associated with the name.
-
fetchCounter
Fetches the counter associated with the supplied name details.- Parameters:
name
- the mandatory suggested name- Returns:
- the counter associated with the name.
- Since:
- 7.1
-
fetchCounter
Fetches the counter associated with the supplied name details.- Parameters:
name
- the mandatory suggested nametags
- the name-value tags to apply- Returns:
- the counter associated with the name.
- Since:
- 7.1
-
startSplit
Deprecated.since 7.1 UsestartSplit(String, Map)
Creates and starts a split timer associated with the supplied name details. The name is constructed callingcreateName(String, String...)
.The typical usage is:
try (Split split = instance.startSplit("name")) { // code to execute }
- Parameters:
name
- the mandatory suggested nameoptional
- the optional parts to concatenate with themandatory
suggestion- Returns:
- the running split timer
-
startSplit
Creates and starts a split timer associated with the supplied name details.The typical usage is:
try (Split split = instance.startSplit("name")) { // code to execute }
- Parameters:
name
- the mandatory suggested name- Returns:
- the running split timer
- Since:
- 7.1
-
startSplit
Creates and starts a split timer associated with the supplied name details.The typical usage is:
try (Split split = instance.startSplit("name", singletonMap("tagname", "tagvalue"))) { // code to execute }
- Parameters:
name
- the mandatory suggested nametags
- the name-value tags to apply- Returns:
- the running split timer
- Since:
- 7.1
-
createName
Creates a legal name from the supplied mandatory suggestion, and optional extra parts.- Parameters:
name
- the mandatory suggested nameoptional
- the optional parts to concatenate with themandatory
suggestion- Returns:
- a legal name based on the inputs
-
fetchCounter(String, Map)