Package com.datadog.api.client.v1.model
Class LogsSchemaCategoryMapper
java.lang.Object
com.datadog.api.client.v1.model.LogsSchemaCategoryMapper
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class LogsSchemaCategoryMapper
extends Object
Use the Schema Category Mapper to categorize log event into enum fields. In the case of OCSF,
they can be used to map sibling fields which are composed of an ID and a name.
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.
- Categories are executed in order and processing stops at the first match. Make sure categories are properly ordered in case a log could match multiple queries.
- Sibling fields always have a numerical ID field and a human-readable string name.
- A fallback section handles cases where the name or ID value matches a specific value. If the name matches "Other" or the ID matches 99, the value of the sibling name field will be pulled from a source field from the original log.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLogsSchemaCategoryMapper(List<LogsSchemaCategoryMapperCategory> categories, String name, LogsSchemaCategoryMapperTargets targets, LogsSchemaCategoryMapperType type) -
Method Summary
Modifier and TypeMethodDescriptionaddCategoriesItem(LogsSchemaCategoryMapperCategory categoriesItem) categories(List<LogsSchemaCategoryMapperCategory> categories) booleanReturn true if this LogsSchemaCategoryMapper object is equal to o.fallback(LogsSchemaCategoryMapperFallback fallback) 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.Used to override hardcoded category values with a value pulled from a source attribute on the log.getName()Name of the logs schema category mapper.Name of the target attributes which value is defined by the matching category.getType()Type of logs schema category mapper.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCategories(List<LogsSchemaCategoryMapperCategory> categories) voidsetFallback(LogsSchemaCategoryMapperFallback fallback) voidvoidvoidtargets(LogsSchemaCategoryMapperTargets targets) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CATEGORIES
- See Also:
-
JSON_PROPERTY_FALLBACK
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_TARGETS
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
LogsSchemaCategoryMapper
public LogsSchemaCategoryMapper() -
LogsSchemaCategoryMapper
public LogsSchemaCategoryMapper(List<LogsSchemaCategoryMapperCategory> categories, String name, LogsSchemaCategoryMapperTargets targets, LogsSchemaCategoryMapperType 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
-
fallback
-
getFallback
Used to override hardcoded category values with a value pulled from a source attribute on the log.- Returns:
- fallback
-
setFallback
-
name
-
getName
Name of the logs schema category mapper.- Returns:
- name
-
setName
-
targets
-
getTargets
Name of the target attributes which value is defined by the matching category.- Returns:
- targets
-
setTargets
-
type
-
getType
Type of logs schema category mapper.- 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:
- LogsSchemaCategoryMapper
-
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 LogsSchemaCategoryMapper object is equal to o. -
hashCode
public int hashCode() -
toString
-