forked from logrhythm/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request elastic#338 from kjell-hedstrom/LuaProtoScript
Added LuaDefined proto for Lua import/export/load
- Loading branch information
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package protoMsg; | ||
|
||
option java_package = "com.logrhythm.nm.message"; | ||
option java_outer_classname = "LuaRulesMsg"; | ||
|
||
|
||
message LuaDefinedRule { | ||
enum LuaType { | ||
CUSTOM = 0; | ||
SYSTEM = 1; | ||
} | ||
|
||
enum LuaExecution { | ||
PACKET_RULE = 0; | ||
FLOW_RULE = 1; | ||
} | ||
|
||
required LuaType type = 1; | ||
required string code =2; | ||
|
||
optional string name = 3; | ||
optional bool enabled = 4; | ||
optional string description = 5; | ||
optional string author = 6; | ||
optional string uuid = 7; | ||
optional uint64 last_modified_date =8; | ||
} | ||
|
||
|
||
|
||
message LuaRules { | ||
message LuaSerializedRule { | ||
optional string uuid = 1; | ||
required string rule = 2; | ||
} | ||
repeated LuaSerializedRule rules =1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters