Class TemplateResolverConfig


  • public class TemplateResolverConfig
    extends MapAccessor
    Accessor to the resolver configuration JSON object read from the template. Template resolvers can use this class to read the configuration associated with them.

    For instance, given the following template:

     {
       "@version": 1,
       "message": {
         "$resolver": "message",
         "stringified": true
       },
       "level": {
         "$resolver": "level",
         "field": "severity",
         "severity": {
           "field": "code"
         }
       }
     }
     
    LevelResolverFactory.create(EventResolverContext, TemplateResolverConfig) will be called with a TemplateResolverConfig accessor to the following configuration JSON object block:
     {
       "$resolver": "level",
       "field": "severity",
       "severity": {
         "field": "code"
       }
     }