Package io.quarkus.analytics.rest
Class RestClient
java.lang.Object
io.quarkus.analytics.rest.RestClient
- All Implemented Interfaces:
ConfigClient,SegmentClient
Client to post the analytics data to the upstream collection tool.
We use plain REST API calls and not any wrapping library.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpostIdentity(Identity identity) Posts the anonymous identity to the upstream collection tool.Posts the trace to the upstream collection tool.
-
Field Details
-
DEFAULT_TIMEOUT
public static final int DEFAULT_TIMEOUT- See Also:
-
-
Constructor Details
-
RestClient
public RestClient(io.quarkus.devtools.messagewriter.MessageWriter log) -
RestClient
public RestClient()
-
-
Method Details
-
postIdentity
Description copied from interface:SegmentClientPosts the anonymous identity to the upstream collection tool. Usually this is done once per user's UUID- Specified by:
postIdentityin interfaceSegmentClient- Parameters:
identity-
-
postTrack
Description copied from interface:SegmentClientPosts the trace to the upstream collection tool. This contains the actual data to be collected.- Specified by:
postTrackin interfaceSegmentClient- Parameters:
track-
-
getConfig
- Specified by:
getConfigin interfaceConfigClient
-