public interface LoggingRequestHelper
Modifier and Type | Method and Description |
---|---|
String |
createLogFileTailURI(String baseURI,
String componentName,
String hostName)
Appends the required LogSearch query parameters to a base URI
|
HostLogFilesResponse |
sendGetLogFileNamesRequest(String hostName)
Sends a request to obtain the log file names for a given host
|
LogLevelQueryResponse |
sendLogLevelQueryRequest(String componentName,
String hostName)
Sends a request to obtain the log level counts for a given component on
a given host
|
LogQueryResponse |
sendQueryRequest(Map<String,String> queryParameters)
Sends a search query request to the LogSearch server
|
LogQueryResponse sendQueryRequest(Map<String,String> queryParameters)
queryParameters
- the query parameters to pass to LogSearchHostLogFilesResponse sendGetLogFileNamesRequest(String hostName)
hostName
- the host nameLogLevelQueryResponse sendLogLevelQueryRequest(String componentName, String hostName)
componentName
- the component namehostName
- the host nameString createLogFileTailURI(String baseURI, String componentName, String hostName)
baseURI
- the base URI for this request, typically the URI to the
Ambari Integration searchEngine componentcomponentName
- the component namehostName
- the host nameCopyright © 2022 Apache Software Foundation. All rights reserved.