Package com.carfey.ops.api.bean.log
Class LogListingParameters
- java.lang.Object
-
- com.carfey.ops.api.bean.log.LogListingParameters
-
public class LogListingParameters extends java.lang.ObjectUsed to filter aLogListingviaLogManager.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description LogListingParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Category>getCategories()If non-empty, limits results to those matching a supplied category.com.carfey.jdk.lang.DateTimegetEndDate()Limits the listing to the selected end time (based on scheduled time).java.lang.StringgetFilterText()Limits results to those with summary or message text matching the supplied text.java.util.List<java.lang.String>getHosts()If non-empty, limits results to those matching a supplied host name.java.util.List<LogLevel>getLevels()If non-empty, limits results to those matching a supplied severity log level.com.carfey.jdk.lang.DateTimegetStartDate()Limits the listing to the selected start time (based on scheduled time).java.lang.StringgetStartKey()Used to fetch a subsequent page of results, based on the key returned byLogListing.voidsetCategories(java.util.List<Category> categories)voidsetEndDate(com.carfey.jdk.lang.DateTime endDate)voidsetFilterText(java.lang.String filterText)voidsetHosts(java.util.List<java.lang.String> hosts)voidsetLevels(java.util.List<LogLevel> levels)voidsetStartDate(com.carfey.jdk.lang.DateTime startDate)voidsetStartKey(java.lang.String startKey)java.lang.StringtoString()LogListingParameterswithCategories(java.util.List<Category> categories)LogListingParameterswithEndDate(com.carfey.jdk.lang.DateTime endDate)LogListingParameterswithFilterText(java.lang.String filterText)LogListingParameterswithHosts(java.util.List<java.lang.String> hosts)LogListingParameterswithLevels(java.util.List<LogLevel> levels)LogListingParameterswithStartDate(com.carfey.jdk.lang.DateTime startDate)LogListingParameterswithStartKey(java.lang.String startKey)
-
-
-
Method Detail
-
getStartDate
public com.carfey.jdk.lang.DateTime getStartDate()
Limits the listing to the selected start time (based on scheduled time). Defaults to 24 hours ago.- Returns:
- start date
-
setStartDate
public void setStartDate(com.carfey.jdk.lang.DateTime startDate)
-
withStartDate
public LogListingParameters withStartDate(com.carfey.jdk.lang.DateTime startDate)
-
getEndDate
public com.carfey.jdk.lang.DateTime getEndDate()
Limits the listing to the selected end time (based on scheduled time). Defaults to 24 hours after start date.- Returns:
- end date
-
setEndDate
public void setEndDate(com.carfey.jdk.lang.DateTime endDate)
-
withEndDate
public LogListingParameters withEndDate(com.carfey.jdk.lang.DateTime endDate)
-
getFilterText
public java.lang.String getFilterText()
Limits results to those with summary or message text matching the supplied text. The wildcard character '%' may be used along with regular characters.- Returns:
- filter text
-
setFilterText
public void setFilterText(java.lang.String filterText)
-
withFilterText
public LogListingParameters withFilterText(java.lang.String filterText)
-
getCategories
public java.util.List<Category> getCategories()
If non-empty, limits results to those matching a supplied category.- Returns:
- categories
-
setCategories
public void setCategories(java.util.List<Category> categories)
-
withCategories
public LogListingParameters withCategories(java.util.List<Category> categories)
-
getLevels
public java.util.List<LogLevel> getLevels()
If non-empty, limits results to those matching a supplied severity log level.- Returns:
- log levels
-
setLevels
public void setLevels(java.util.List<LogLevel> levels)
-
withLevels
public LogListingParameters withLevels(java.util.List<LogLevel> levels)
-
getHosts
public java.util.List<java.lang.String> getHosts()
If non-empty, limits results to those matching a supplied host name.- Returns:
- hosts
-
setHosts
public void setHosts(java.util.List<java.lang.String> hosts)
-
withHosts
public LogListingParameters withHosts(java.util.List<java.lang.String> hosts)
-
getStartKey
public java.lang.String getStartKey()
Used to fetch a subsequent page of results, based on the key returned byLogListing.- Returns:
- start key
-
setStartKey
public void setStartKey(java.lang.String startKey)
-
withStartKey
public LogListingParameters withStartKey(java.lang.String startKey)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-