public final class PunchletResources extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addStaticGrokResource(String grok)
Registers in a enrichment json tuple.
|
static void |
addStaticSiddhiRule(String name,
String value)
Registers in a siddhi rule.
|
static void |
addStaticString(Map<String,String> stringResources)
Registers in a string resource rule.
|
static Map<String,String> |
getFiles()
Punchlets can have associated files as resources.
|
static String |
getGroks()
Return the groks associated to this punchlet.
|
static Properties |
getProperties() |
static List<Map.Entry<String,String>> |
getRulesByShortNames() |
static List<Map.Entry<String,String>> |
getStringsByName() |
static List<Map.Entry<String,Tuple>> |
getTuplesByShortNames(Map<String,Tuple> jsonResources)
Simple conversion
|
static void |
reset()
Test method, lets you flush the static per jvm resources.
|
public static void addStaticSiddhiRule(String name, String value)
Watch out the '.rule' extension, if present, is removed from the name
name
- the tuple keyvalue
- the tuple valuepublic static void addStaticString(Map<String,String> stringResources)
stringResources
- resources to addpublic static void addStaticGrokResource(String grok)
grok
- one or several grok pattern, "\n" separated.public static String getGroks()
public static List<Map.Entry<String,String>> getRulesByShortNames()
public static List<Map.Entry<String,String>> getStringsByName()
public static List<Map.Entry<String,Tuple>> getTuplesByShortNames(Map<String,Tuple> jsonResources)
jsonResources
- the json resources to addpublic static Map<String,String> getFiles()
public static Properties getProperties()
public static void reset()
Copyright © 2023. All rights reserved.