Package com.datadog.api.client.v1.model
Class LogsCategoryProcessor
java.lang.Object
com.datadog.api.client.v1.model.LogsCategoryProcessor
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class LogsCategoryProcessor
extends Object
Use the Category Processor to add a new attribute (without spaces or special characters in the
new attribute name) to a log matching a provided search query. Use categories to create groups
for an analytical view. For example, URL groups, machine groups, environments, and response time
buckets.
Notes:
- The syntax of the query is the one of Logs Explorer search bar. The query can be done on any log attribute or tag, whether it is a facet or not. Wildcards can also be used inside your query.
- Once the log has matched one of the Processor queries, it stops. Make sure they are properly ordered in case a log could match several queries.
- The names of the categories must be unique.
- Once defined in the Category Processor, you can map categories to log status using the Log Status Remapper.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLogsCategoryProcessor(List<LogsCategoryProcessorCategory> categories, String target, LogsCategoryProcessorType type) -
Method Summary
Modifier and TypeMethodDescriptionaddCategoriesItem(LogsCategoryProcessorCategory categoriesItem) categories(List<LogsCategoryProcessorCategory> categories) booleanReturn true if this LogsCategoryProcessor object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Array of filters to match or not a log and their correspondingnameto assign a custom value to the log.Whether or not the processor is enabled.getName()Name of the processor.Name of the target attribute which value is defined by the matching category.getType()Type of logs category processor.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCategories(List<LogsCategoryProcessorCategory> categories) voidsetIsEnabled(Boolean isEnabled) voidvoidvoidtoString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CATEGORIES
- See Also:
-
JSON_PROPERTY_IS_ENABLED
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_TARGET
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
LogsCategoryProcessor
public LogsCategoryProcessor() -
LogsCategoryProcessor
public LogsCategoryProcessor(List<LogsCategoryProcessorCategory> categories, String target, LogsCategoryProcessorType type)
-
-
Method Details
-
categories
-
addCategoriesItem
-
getCategories
Array of filters to match or not a log and their correspondingnameto assign a custom value to the log.- Returns:
- categories
-
setCategories
-
isEnabled
-
getIsEnabled
Whether or not the processor is enabled.- Returns:
- isEnabled
-
setIsEnabled
-
name
-
getName
Name of the processor.- Returns:
- name
-
setName
-
target
-
getTarget
Name of the target attribute which value is defined by the matching category.- Returns:
- target
-
setTarget
-
type
-
getType
Type of logs category processor.- Returns:
- type
-
setType
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- LogsCategoryProcessor
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this LogsCategoryProcessor object is equal to o. -
hashCode
public int hashCode() -
toString
-