Skip to content

Commit

Permalink
Merge pull request elastic#344 from Tom-Artale/config-ux
Browse files Browse the repository at this point in the history
Moved config protos to package; added UX protos
  • Loading branch information
Tom Artale authored and Tom Artale committed Jun 3, 2015
2 parents 3321aaa + b311375 commit ee21e3f
Show file tree
Hide file tree
Showing 45 changed files with 495 additions and 23 deletions.
19 changes: 19 additions & 0 deletions protofiles/configelements/AllConf.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package configelements;

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "AllConfUXMsg";

import "ConfigUX.proto";

// http://host:port/getAll/
// http://news.softpedia.com/news/Hasbro-Setting-Up-AllSpark-Website-for-3D-Printed-Transformers-442669.shtml
message AllConf {

message Entry {
optional string type = 1;
optional ConfigUX configUX = 2;
optional bytes serializedConfigUXMessage = 3;
}

repeated Entry allConf = 1;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package protoMsg;
package configelements;

import "EncryptedString.proto";

Expand Down
56 changes: 56 additions & 0 deletions protofiles/configelements/CarpenterConfigUX.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
package configelements; import "ConfigUX.proto";

import "EncryptedString.proto";

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "CarpenterConfigUXMsg";

message CarpenterConfig {
optional ConfigUX minutesToRest = 1;
optional ConfigUX listTable = 3;
optional ConfigUX listTableIDColumn = 4;
optional ConfigUX listTableItemColumn = 5;
optional ConfigUX commonEventTable = 6;
optional ConfigUX commonEventTableIDColumn = 7;
optional ConfigUX commonEventTableItemColumn = 8;
optional ConfigUX hostTable = 9;
optional ConfigUX hostTableIDColumn = 10;
optional ConfigUX hostTableItemColumn = 11;
optional ConfigUX networkTable = 12;
optional ConfigUX networkTableIDColumn = 13;
optional ConfigUX networkTableItemColumn = 14;
optional ConfigUX serviceTable = 15;
optional ConfigUX serviceTableIDColumn = 16;
optional ConfigUX serviceTableItemColumn = 17;
optional ConfigUX protocolTable = 18;
optional ConfigUX protocolTableIDColumn = 19;
optional ConfigUX protocolTableItemColumn = 20;
optional ConfigUX msgSourceTable = 21;
optional ConfigUX msgSourceTableIDColumn = 22;
optional ConfigUX msgSourceTableItemColumn = 23;
optional ConfigUX msgSourceTypeTable = 24;
optional ConfigUX msgSourceTypeTableIDColumn = 25;
optional ConfigUX msgSourceTypeTableItemColumn = 26;
optional ConfigUX msgClassTable = 27;
optional ConfigUX msgClassTableIDColumn = 28;
optional ConfigUX msgClassTableItemColumn = 29;
optional ConfigUX entityTable = 30;
optional ConfigUX entityTableIDColumn = 31;
optional ConfigUX entityTableItemColumn = 32;
optional ConfigUX mpeRuleTable = 33;
optional ConfigUX mpeRuleTableIDColumn = 34;
optional ConfigUX mpeRuleTableItemColumn = 35;
optional ConfigUX aclTable = 36;
optional ConfigUX aclTableIDColumn = 37;
optional ConfigUX aclTableItemColumn = 38;
optional ConfigUX directionTable = 39;
optional ConfigUX directionTableIDColumn = 40;
optional ConfigUX directionTableItemColumn = 41;
optional ConfigUX zoneTable = 42;
optional ConfigUX zoneTableIDColumn = 43;
optional ConfigUX zoneTableItemColumn = 44;
optional ConfigUX dbUsername = 45;
optional ConfigUX dbPassword = 46;
optional ConfigUX emdbHost = 47;
optional ConfigUX sqlPagingSize = 48;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package protoMsg;
package configelements;

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "CassandraConfigMsg";
Expand Down
12 changes: 12 additions & 0 deletions protofiles/configelements/CassandraConfigUX.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package configelements; import "ConfigUX.proto";

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "CassandraConfigUXMsg";




message CassandraConfig {
optional ConfigUX statsDBClusterName = 1;
optional ConfigUX statsDBUrl = 2;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package protoMsg;
package configelements;

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "ColumboClientConfigMsg";
Expand Down
11 changes: 11 additions & 0 deletions protofiles/configelements/ColumboClientConfigUX.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package configelements; import "ConfigUX.proto";

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "ColumboClientConfigUXMsg";




message ColumboClientConfig {
optional ConfigUX requestQueue = 1;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package protoMsg;
package configelements;

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "ColumboConfigMsg";
Expand Down
16 changes: 16 additions & 0 deletions protofiles/configelements/ColumboConfigUX.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package configelements; import "ConfigUX.proto";

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "ColumboConfigUXMsg";




message ColumboConfig {
optional ConfigUX requestQueue = 1;
optional ConfigUX resendTranslationTableIntervalInMS = 2;
optional ConfigUX requestBackend = 3;
optional ConfigUX searchThreadpoolSize = 4;
optional ConfigUX minutesToCache = 5;
optional ConfigUX cacheSizeInRecords = 6;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package protoMsg;
package configelements;

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "ConfigReplyMsg";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package protoMsg;
package configelements;

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "ConfigRequestMsg";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package protoMsg;
package configelements;

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "ConfigServerConfigMsg";
Expand Down
14 changes: 14 additions & 0 deletions protofiles/configelements/ConfigServerConfigUX.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package configelements; import "ConfigUX.proto";

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "ConfigServerConfigUXMsg";




message ConfigServerConfig {
repeated ConfigUX configRequestQueue = 1;
optional ConfigUX frontEndRelayQueue = 2;
optional ConfigUX backEndHandlerQueue = 3;
optional ConfigUX maxSimultaneousRequests = 4;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package protoMsg;
package configelements;

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "ConfigTypeMsg";
Expand Down
44 changes: 44 additions & 0 deletions protofiles/configelements/ConfigUX.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
package configelements;

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "ConfigUXMsg";


message ConfigUX {

enum DisplayType {
INTEGER = 1;
NATURAL = 2;
REAL = 3;
TEXT = 4;
BOOLEAN = 5;
ENUMERATION = 6;
USERNAME = 7;
PASSWORD = 8;
IPV4 = 9;
IPV6 = 10;
DISPLAY = 11; // This is to control cross-referenced data-points.
}

enum DisplayUnit {
NONE = 0;
MILLISECONDS = 1;
SECONDS = 2;
}

message SelectableValue {
required string display = 1;
required string value = 2;
}

optional string defaultValue = 1; // Default value associated with the field.
optional string currentValue = 2; // Currently saved value in the config.yaml file(s).
repeated SelectableValue selectableValues = 3; // Pairs for a drop-down.
optional DisplayType displayType = 4; // Helps UX control input (ie positive numbers only).
optional DisplayUnit displayUnit = 5; // Possible units of the display type
optional string displayValue = 6; // Human readable version of camel-case name of data-point.
optional bool isReadOnly = 7; // Renders the data-point as read-only.
optional bool isVisible = 8; // Flag causes UI to not render the data point.
optional string validateHint = 9; // Text that can be read as part of tool tip.
repeated string validateErrors = 10; // Messages resulting from invalid input.
}
21 changes: 21 additions & 0 deletions protofiles/configelements/ConfigUXReply.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package configelements;

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "ConfigUXReplyMsg";
import "AllConf.proto";




message ConfigUXReply {
enum ReplyType {
SUCCESS = 0;
ERROR = 1;
}


optional string requestId = 1;
optional ReplyType replyType = 2;
optional string errorMessage = 3;
optional AllConf allConf = 4;
}
20 changes: 20 additions & 0 deletions protofiles/configelements/ConfigUXRequest.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package configelements;

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "ConfigUXRequestMsg";
import "AllConf.proto";




message ConfigUXRequest {
enum RequestType {
READ_ALL = 0;
WRITE = 1;
VALIDATE = 2;
}

optional string requestId = 1;
optional RequestType requestType = 2;
optional AllConf allConf = 3;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package protoMsg;
package configelements;

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "DispatchClientConfigMsg";
Expand Down
13 changes: 13 additions & 0 deletions protofiles/configelements/DispatchClientConfigUX.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package configelements; import "ConfigUX.proto";

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "DispatchClientConfigUXMsg";




message DispatchClientConfig {

optional ConfigUX dataInsertQueue = 1;
optional ConfigUX bulkDataInsertQueue = 2;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package protoMsg;
package configelements;

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "DispatchConfigMsg";
Expand Down
53 changes: 53 additions & 0 deletions protofiles/configelements/DispatchConfigUX.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
package configelements; import "ConfigUX.proto";

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "DispatchConfigUXMsg";




message DispatchConfig {

message IndexerConfig {
optional ConfigUX inputQueue = 1;
optional ConfigUX inputQueueTimeoutSec = 2;
optional ConfigUX inputQueueOwnsSocket = 3;
optional ConfigUX inputQueueHighWaterMark = 4;
optional ConfigUX indexAttemptLimit = 5;
optional ConfigUX indexRetryBackoffDurationMs = 6;
optional ConfigUX dataBufferLimit = 7;
optional ConfigUX statReportIntervalMs = 8;
optional ConfigUX statCountKey = 9;
optional ConfigUX statFinishedKey = 10;
optional ConfigUX statRetryKey = 11;
optional ConfigUX statFailedKey = 12;
optional ConfigUX statRequestKey = 13;
optional ConfigUX dataHandler = 14;
optional ConfigUX sendToPercolator = 15;
optional ConfigUX sendToRecorder = 16;
optional ConfigUX passthroughQName = 17;
}

message AccumulatorConfig {
optional ConfigUX secondsToAccumulate = 1;
optional ConfigUX entriesToAccumulate = 2;
optional ConfigUX inputQueue = 3;
optional ConfigUX outputQueue = 4;
optional ConfigUX dataAccumulator = 5;
}

message PercolatorConfig {
optional ConfigUX inputQueue = 1;
optional ConfigUX inputQueueTimeoutSec = 2;
optional ConfigUX inputQueueHighWaterMark = 3;
optional ConfigUX dataHandler = 4;
optional ConfigUX dataBufferLimit = 5;
optional ConfigUX percolateAttemptLimit = 6;
optional ConfigUX syslogQueue = 7;
}

repeated IndexerConfig indexerConf = 1;
optional AccumulatorConfig accumulatorConf = 2;
optional PercolatorConfig percolatorConf = 3;

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package protoMsg;
package configelements;

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "ElasticSearchClientConfigMsg";
Expand Down
20 changes: 20 additions & 0 deletions protofiles/configelements/ElasticSearchClientConfigUX.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package configelements; import "ConfigUX.proto";

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "ElasticSearchClientConfigUXMsg";




message ElasticSearchClientConfig {
message SettingsEntry {
optional ConfigUX key = 1;
optional ConfigUX value = 2;
}

optional ConfigUX OBSOLETE_elasticsearchClusterName = 1;
optional ConfigUX OBSOLETE_elasticsearchNodeIp = 2;
optional ConfigUX elasticsearchServerConfigPath = 3;
repeated ConfigUX elasticsearchClientTransportAddress = 4;
repeated SettingsEntry elasticsearchClientSettings = 5;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package protoMsg;
package configelements;

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "EncryptedStringMsg";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package protoMsg;
package configelements;

option java_package = "com.logrhythm.configelements";
option java_outer_classname = "EnigmaConfigMsg";
Expand Down
Loading

0 comments on commit ee21e3f

Please sign in to comment.