Interface EventConverter<E extends Exceptional>

All Known Implementing Classes:
BaseEventConverter

public interface EventConverter<E extends Exceptional>
Given a failure event that extends Exceptional, provide a mechanism for transforming its fields into an ECS document.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.elasticsearch.hadoop.util.ecs.ElasticCommonSchema.TemplateBuilder
    configureTemplate(org.elasticsearch.hadoop.util.ecs.ElasticCommonSchema.TemplateBuilder templateBuilder)
    Perform some logic against the template builder in order to inject values before the template is built.
    org.elasticsearch.hadoop.util.BytesArray
    generateEvent(E event, org.elasticsearch.hadoop.util.ecs.MessageTemplate template)
    Converts an event into an ECS compliant document using the given message template.
  • Method Details

    • configureTemplate

      org.elasticsearch.hadoop.util.ecs.ElasticCommonSchema.TemplateBuilder configureTemplate(org.elasticsearch.hadoop.util.ecs.ElasticCommonSchema.TemplateBuilder templateBuilder)
      Perform some logic against the template builder in order to inject values before the template is built.
    • generateEvent

      org.elasticsearch.hadoop.util.BytesArray generateEvent(E event, org.elasticsearch.hadoop.util.ecs.MessageTemplate template) throws IOException
      Converts an event into an ECS compliant document using the given message template.
      Parameters:
      event - Exceptional event to convert
      template - template to use for conversion
      Returns:
      BytesArray containing the document data
      Throws:
      IOException