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 | Condition | Conditions that should be matched by the data to be considered of interest. |
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 | 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. |