spec.proto
path vega/data/v1/spec.proto
package vega.data.v1
Messages
Condition
Condition describes the condition that must be validated by the network
Name | Type | Description |
---|---|---|
operator | Condition.Operator | Type of comparison to make on the value. |
value | string | Value to be compared with by the operator. |
Filter
Filter describes the conditions under which a data source data is considered of interest or not.
Name | Type | Description |
---|---|---|
key | PropertyKey | Data source's data property key targeted by the filter. |
conditions | repeated Condition | Conditions that should be matched by the data to be considered of interest. |
InternalTimeTrigger
Trigger for an internal time data source.
Name | Type | Description |
---|---|---|
initial | optional int64 | Trigger when the vega time is greater or equal to this time, in Unix seconds. |
every | int64 | Repeat the trigger every n seconds after the initial. If no time for initial was specified, begin repeating immediately. |
PropertyKey
PropertyKey describes the property key contained in data source data.
Name | Type | Description |
---|---|---|
name | string | Name of the property. |
type | PropertyKey.Type | Data type of the property. |
number_decimal_places | optional uint64 | Optional decimal place to be be applied on the provided value valid only for PropertyType of type DECIMAL and INTEGER |
Enums
Condition.Operator
Operator describes the type of comparison.
Name | Number | Description |
---|---|---|
OPERATOR_UNSPECIFIED | 0 | The default value |
OPERATOR_EQUALS | 1 | Verify if the property values are strictly equal or not. |
OPERATOR_GREATER_THAN | 2 | Verify if the data source data value is greater than the Condition value. |
OPERATOR_GREATER_THAN_OR_EQUAL | 3 | Verify if the data source data value is greater than or equal to the Condition value. |
OPERATOR_LESS_THAN | 4 | Verify if the data source data value is less than the Condition value. |
OPERATOR_LESS_THAN_OR_EQUAL | 5 | Verify if the data source data value is less or equal to than the Condition value. |
PropertyKey.Type
Type describes the data type of properties that are supported by the data source engine.
Name | Number | Description |
---|---|---|
TYPE_UNSPECIFIED | 0 | The default value. |
TYPE_EMPTY | 1 | Any type. |
TYPE_INTEGER | 2 | Integer type. |
TYPE_STRING | 3 | String type. |
TYPE_BOOLEAN | 4 | Boolean type. |
TYPE_DECIMAL | 5 | Any floating point decimal type. |
TYPE_TIMESTAMP | 6 | Timestamp date type. |