diff --git a/docs/data.proto.md b/docs/data.proto.md index f5c1c80..76805fb 100644 --- a/docs/data.proto.md +++ b/docs/data.proto.md @@ -80,6 +80,10 @@ are any how cast to UINT64 in the real time platform | `DATA_TYPE_ANALOG` | 44 | Analog. It maps to Analog. | | `DATA_TYPE_NORMALIZED_RESIDUAL` | 45 | Normalized Residual. It maps to Analog. | | `DATA_TYPE_OBJECTIVE_FUNCTION` | 46 | Objective Function. It maps to Analog. | +| `DATA_TYPE_SWITCH_POSITION_CHECK` | 47 | Switch Position Check. It maps to Boolean. | +| `DATA_TYPE_TEMPERATURE_ALARM` | 48 | Temperature Alarm. It maps to Boolean. | +| `DATA_TYPE_PRESSURE_ALARM` | 49 | Pressure Alarm. It maps to Boolean. | +| `DATA_TYPE_DOOR_ALARM` | 50 | Door Alarm. It maps to Boolean. | @@ -141,6 +145,10 @@ class DataType{ DATA_TYPE_ANALOG DATA_TYPE_NORMALIZED_RESIDUAL DATA_TYPE_OBJECTIVE_FUNCTION + DATA_TYPE_SWITCH_POSITION_CHECK + DATA_TYPE_TEMPERATURE_ALARM + DATA_TYPE_PRESSURE_ALARM + DATA_TYPE_DOOR_ALARM } ``` ### Data Diagram diff --git a/go/grid/v1/data.pb.go b/go/grid/v1/data.pb.go index d3c3b83..b6dd835 100644 --- a/go/grid/v1/data.pb.go +++ b/go/grid/v1/data.pb.go @@ -76,6 +76,10 @@ const ( DataType_DATA_TYPE_ANALOG DataType = 44 //Analog. It maps to Analog. DataType_DATA_TYPE_NORMALIZED_RESIDUAL DataType = 45 //Normalized Residual. It maps to Analog. DataType_DATA_TYPE_OBJECTIVE_FUNCTION DataType = 46 //Objective Function. It maps to Analog. + DataType_DATA_TYPE_SWITCH_POSITION_CHECK DataType = 47 //Switch Position Check. It maps to Boolean. + DataType_DATA_TYPE_TEMPERATURE_ALARM DataType = 48 //Temperature Alarm. It maps to Boolean. + DataType_DATA_TYPE_PRESSURE_ALARM DataType = 49 //Pressure Alarm. It maps to Boolean. + DataType_DATA_TYPE_DOOR_ALARM DataType = 50 //Door Alarm. It maps to Boolean. ) // Enum value maps for DataType. @@ -128,6 +132,10 @@ var ( 44: "DATA_TYPE_ANALOG", 45: "DATA_TYPE_NORMALIZED_RESIDUAL", 46: "DATA_TYPE_OBJECTIVE_FUNCTION", + 47: "DATA_TYPE_SWITCH_POSITION_CHECK", + 48: "DATA_TYPE_TEMPERATURE_ALARM", + 49: "DATA_TYPE_PRESSURE_ALARM", + 50: "DATA_TYPE_DOOR_ALARM", } DataType_value = map[string]int32{ "DATA_TYPE_UNSPECIFIED": 0, @@ -177,6 +185,10 @@ var ( "DATA_TYPE_ANALOG": 44, "DATA_TYPE_NORMALIZED_RESIDUAL": 45, "DATA_TYPE_OBJECTIVE_FUNCTION": 46, + "DATA_TYPE_SWITCH_POSITION_CHECK": 47, + "DATA_TYPE_TEMPERATURE_ALARM": 48, + "DATA_TYPE_PRESSURE_ALARM": 49, + "DATA_TYPE_DOOR_ALARM": 50, } ) @@ -350,7 +362,7 @@ var file_zaphiro_grid_v1_data_proto_rawDesc = []byte{ 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2b, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, 0xb8, 0x0b, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x54, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, 0xb6, 0x0c, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, @@ -442,8 +454,16 @@ var file_zaphiro_grid_v1_data_proto_rawDesc = []byte{ 0x49, 0x5a, 0x45, 0x44, 0x5f, 0x52, 0x45, 0x53, 0x49, 0x44, 0x55, 0x41, 0x4c, 0x10, 0x2d, 0x12, 0x20, 0x0a, 0x1c, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x46, 0x55, 0x4e, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, - 0x2e, 0x42, 0x0b, 0x5a, 0x09, 0x2e, 0x2f, 0x67, 0x72, 0x69, 0x64, 0x2f, 0x76, 0x31, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x12, 0x23, 0x0a, 0x1f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, + 0x57, 0x49, 0x54, 0x43, 0x48, 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, + 0x48, 0x45, 0x43, 0x4b, 0x10, 0x2f, 0x12, 0x1f, 0x0a, 0x1b, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x54, 0x45, 0x4d, 0x50, 0x45, 0x52, 0x41, 0x54, 0x55, 0x52, 0x45, 0x5f, + 0x41, 0x4c, 0x41, 0x52, 0x4d, 0x10, 0x30, 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x41, 0x54, 0x41, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x53, 0x55, 0x52, 0x45, 0x5f, 0x41, 0x4c, + 0x41, 0x52, 0x4d, 0x10, 0x31, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x44, 0x4f, 0x4f, 0x52, 0x5f, 0x41, 0x4c, 0x41, 0x52, 0x4d, 0x10, 0x32, 0x42, + 0x0b, 0x5a, 0x09, 0x2e, 0x2f, 0x67, 0x72, 0x69, 0x64, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/python/zaphiro/grid/v1/data_pb2.py b/python/zaphiro/grid/v1/data_pb2.py index dfc4744..7ef53a7 100644 --- a/python/zaphiro/grid/v1/data_pb2.py +++ b/python/zaphiro/grid/v1/data_pb2.py @@ -14,7 +14,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1azaphiro/grid/v1/data.proto\x12\x0fzaphiro.grid.v1\"\x82\x01\n\x04\x44\x61ta\x12\x35\n\x08\x64\x61taType\x18\x01 \x01(\x0e\x32\x19.zaphiro.grid.v1.DataTypeR\x08\x64\x61taType\x12\x1e\n\nmeasuredAt\x18\x02 \x01(\x03R\nmeasuredAt\x12\x19\n\x05value\x18\x03 \x01(\x04H\x00R\x05value\x88\x01\x01\x42\x08\n\x06_value\"\xb1\x01\n\x07\x44\x61taSet\x12\x1e\n\nproducerId\x18\x01 \x01(\tR\nproducerId\x12\x36\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\".zaphiro.grid.v1.DataSet.DataEntryR\x04\x64\x61ta\x1aN\n\tDataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x15.zaphiro.grid.v1.DataR\x05value:\x02\x38\x01*\xb8\x0b\n\x08\x44\x61taType\x12\x19\n\x15\x44\x41TA_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x44\x41TA_TYPE_ACTIVE_POWER\x10\x01\x12\x13\n\x0f\x44\x41TA_TYPE_ANGLE\x10\x02\x12\x17\n\x13\x44\x41TA_TYPE_AUTOMATIC\x10\x03\x12\x15\n\x11\x44\x41TA_TYPE_BOOLEAN\x10\x04\x12\x1b\n\x17\x44\x41TA_TYPE_CONFIG_CHANGE\x10\x05\x12\'\n#DATA_TYPE_CURRENT_SEQUENCE_NEGATIVE\x10\x06\x12\'\n#DATA_TYPE_CURRENT_SEQUENCE_POSITIVE\x10\x07\x12#\n\x1f\x44\x41TA_TYPE_CURRENT_SEQUENCE_ZERO\x10\x08\x12\x18\n\x14\x44\x41TA_TYPE_DATA_ERROR\x10\t\x12\x1b\n\x17\x44\x41TA_TYPE_DATA_MODIFIED\x10\n\x12\x1a\n\x16\x44\x41TA_TYPE_DATA_SORTING\x10\x0b\x12\x14\n\x10\x44\x41TA_TYPE_ENERGY\x10\x0c\x12\x17\n\x13\x44\x41TA_TYPE_FREQUENCY\x10\r\x12\x1a\n\x16\x44\x41TA_TYPE_LINE_CURRENT\x10\x0e\x12\"\n\x1e\x44\x41TA_TYPE_LINE_TO_LINE_VOLTAGE\x10\x0f\x12\x1d\n\x19\x44\x41TA_TYPE_LOCAL_OPERATION\x10\x10\x12\x1d\n\x19\x44\x41TA_TYPE_OPERATION_COUNT\x10\x11\x12\x1c\n\x18\x44\x41TA_TYPE_PACKET_LATENCY\x10\x12\x12\x1b\n\x17\x44\x41TA_TYPE_PHASE_VOLTAGE\x10\x13\x12\x1c\n\x18\x44\x41TA_TYPE_PHASOR_CURRENT\x10\x14\x12\x1c\n\x18\x44\x41TA_TYPE_PHASOR_VOLTAGE\x10\x15\x12\x16\n\x12\x44\x41TA_TYPE_PMU_SYNC\x10\x16\x12\x1e\n\x1a\x44\x41TA_TYPE_PMU_TIME_QUALITY\x10\x17\x12\"\n\x1e\x44\x41TA_TYPE_PMU_TRIGGER_DETECTED\x10\x18\x12\x13\n\x0f\x44\x41TA_TYPE_POWER\x10\x19\x12\x1a\n\x16\x44\x41TA_TYPE_POWER_FACTOR\x10\x1a\x12\x16\n\x12\x44\x41TA_TYPE_PRESSURE\x10\x1b\x12)\n%DATA_TYPE_RATE_OF_CHANGE_OF_FREQUENCY\x10\x1c\x12\x1c\n\x18\x44\x41TA_TYPE_REACTIVE_POWER\x10\x1d\x12\x1d\n\x19\x44\x41TA_TYPE_SWITCH_POSITION\x10\x1e\x12\x1a\n\x16\x44\x41TA_TYPE_TAP_POSITION\x10\x1f\x12\x19\n\x15\x44\x41TA_TYPE_TEMPERATURE\x10 \x12&\n\"DATA_TYPE_THREE_PHASE_ACTIVE_POWER\x10!\x12!\n\x1d\x44\x41TA_TYPE_THREE_PHASE_CURRENT\x10\"\x12\x1f\n\x1b\x44\x41TA_TYPE_THREE_PHASE_POWER\x10#\x12&\n\"DATA_TYPE_THREE_PHASE_POWER_FACTOR\x10$\x12(\n$DATA_TYPE_THREE_PHASE_REACTIVE_POWER\x10%\x12\x1c\n\x18\x44\x41TA_TYPE_TRIGGER_REASON\x10&\x12\x1b\n\x17\x44\x41TA_TYPE_UNLOCKED_TIME\x10\'\x12\'\n#DATA_TYPE_VOLTAGE_SEQUENCE_NEGATIVE\x10(\x12\'\n#DATA_TYPE_VOLTAGE_SEQUENCE_POSITIVE\x10)\x12#\n\x1f\x44\x41TA_TYPE_VOLTAGE_SEQUENCE_ZERO\x10*\x12\x16\n\x12\x44\x41TA_TYPE_DISCRETE\x10+\x12\x14\n\x10\x44\x41TA_TYPE_ANALOG\x10,\x12!\n\x1d\x44\x41TA_TYPE_NORMALIZED_RESIDUAL\x10-\x12 \n\x1c\x44\x41TA_TYPE_OBJECTIVE_FUNCTION\x10.B\x0bZ\t./grid/v1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1azaphiro/grid/v1/data.proto\x12\x0fzaphiro.grid.v1\"\x82\x01\n\x04\x44\x61ta\x12\x35\n\x08\x64\x61taType\x18\x01 \x01(\x0e\x32\x19.zaphiro.grid.v1.DataTypeR\x08\x64\x61taType\x12\x1e\n\nmeasuredAt\x18\x02 \x01(\x03R\nmeasuredAt\x12\x19\n\x05value\x18\x03 \x01(\x04H\x00R\x05value\x88\x01\x01\x42\x08\n\x06_value\"\xb1\x01\n\x07\x44\x61taSet\x12\x1e\n\nproducerId\x18\x01 \x01(\tR\nproducerId\x12\x36\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\".zaphiro.grid.v1.DataSet.DataEntryR\x04\x64\x61ta\x1aN\n\tDataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x15.zaphiro.grid.v1.DataR\x05value:\x02\x38\x01*\xb6\x0c\n\x08\x44\x61taType\x12\x19\n\x15\x44\x41TA_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x44\x41TA_TYPE_ACTIVE_POWER\x10\x01\x12\x13\n\x0f\x44\x41TA_TYPE_ANGLE\x10\x02\x12\x17\n\x13\x44\x41TA_TYPE_AUTOMATIC\x10\x03\x12\x15\n\x11\x44\x41TA_TYPE_BOOLEAN\x10\x04\x12\x1b\n\x17\x44\x41TA_TYPE_CONFIG_CHANGE\x10\x05\x12\'\n#DATA_TYPE_CURRENT_SEQUENCE_NEGATIVE\x10\x06\x12\'\n#DATA_TYPE_CURRENT_SEQUENCE_POSITIVE\x10\x07\x12#\n\x1f\x44\x41TA_TYPE_CURRENT_SEQUENCE_ZERO\x10\x08\x12\x18\n\x14\x44\x41TA_TYPE_DATA_ERROR\x10\t\x12\x1b\n\x17\x44\x41TA_TYPE_DATA_MODIFIED\x10\n\x12\x1a\n\x16\x44\x41TA_TYPE_DATA_SORTING\x10\x0b\x12\x14\n\x10\x44\x41TA_TYPE_ENERGY\x10\x0c\x12\x17\n\x13\x44\x41TA_TYPE_FREQUENCY\x10\r\x12\x1a\n\x16\x44\x41TA_TYPE_LINE_CURRENT\x10\x0e\x12\"\n\x1e\x44\x41TA_TYPE_LINE_TO_LINE_VOLTAGE\x10\x0f\x12\x1d\n\x19\x44\x41TA_TYPE_LOCAL_OPERATION\x10\x10\x12\x1d\n\x19\x44\x41TA_TYPE_OPERATION_COUNT\x10\x11\x12\x1c\n\x18\x44\x41TA_TYPE_PACKET_LATENCY\x10\x12\x12\x1b\n\x17\x44\x41TA_TYPE_PHASE_VOLTAGE\x10\x13\x12\x1c\n\x18\x44\x41TA_TYPE_PHASOR_CURRENT\x10\x14\x12\x1c\n\x18\x44\x41TA_TYPE_PHASOR_VOLTAGE\x10\x15\x12\x16\n\x12\x44\x41TA_TYPE_PMU_SYNC\x10\x16\x12\x1e\n\x1a\x44\x41TA_TYPE_PMU_TIME_QUALITY\x10\x17\x12\"\n\x1e\x44\x41TA_TYPE_PMU_TRIGGER_DETECTED\x10\x18\x12\x13\n\x0f\x44\x41TA_TYPE_POWER\x10\x19\x12\x1a\n\x16\x44\x41TA_TYPE_POWER_FACTOR\x10\x1a\x12\x16\n\x12\x44\x41TA_TYPE_PRESSURE\x10\x1b\x12)\n%DATA_TYPE_RATE_OF_CHANGE_OF_FREQUENCY\x10\x1c\x12\x1c\n\x18\x44\x41TA_TYPE_REACTIVE_POWER\x10\x1d\x12\x1d\n\x19\x44\x41TA_TYPE_SWITCH_POSITION\x10\x1e\x12\x1a\n\x16\x44\x41TA_TYPE_TAP_POSITION\x10\x1f\x12\x19\n\x15\x44\x41TA_TYPE_TEMPERATURE\x10 \x12&\n\"DATA_TYPE_THREE_PHASE_ACTIVE_POWER\x10!\x12!\n\x1d\x44\x41TA_TYPE_THREE_PHASE_CURRENT\x10\"\x12\x1f\n\x1b\x44\x41TA_TYPE_THREE_PHASE_POWER\x10#\x12&\n\"DATA_TYPE_THREE_PHASE_POWER_FACTOR\x10$\x12(\n$DATA_TYPE_THREE_PHASE_REACTIVE_POWER\x10%\x12\x1c\n\x18\x44\x41TA_TYPE_TRIGGER_REASON\x10&\x12\x1b\n\x17\x44\x41TA_TYPE_UNLOCKED_TIME\x10\'\x12\'\n#DATA_TYPE_VOLTAGE_SEQUENCE_NEGATIVE\x10(\x12\'\n#DATA_TYPE_VOLTAGE_SEQUENCE_POSITIVE\x10)\x12#\n\x1f\x44\x41TA_TYPE_VOLTAGE_SEQUENCE_ZERO\x10*\x12\x16\n\x12\x44\x41TA_TYPE_DISCRETE\x10+\x12\x14\n\x10\x44\x41TA_TYPE_ANALOG\x10,\x12!\n\x1d\x44\x41TA_TYPE_NORMALIZED_RESIDUAL\x10-\x12 \n\x1c\x44\x41TA_TYPE_OBJECTIVE_FUNCTION\x10.\x12#\n\x1f\x44\x41TA_TYPE_SWITCH_POSITION_CHECK\x10/\x12\x1f\n\x1b\x44\x41TA_TYPE_TEMPERATURE_ALARM\x10\x30\x12\x1c\n\x18\x44\x41TA_TYPE_PRESSURE_ALARM\x10\x31\x12\x18\n\x14\x44\x41TA_TYPE_DOOR_ALARM\x10\x32\x42\x0bZ\t./grid/v1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -25,7 +25,7 @@ _globals['_DATASET_DATAENTRY']._loaded_options = None _globals['_DATASET_DATAENTRY']._serialized_options = b'8\001' _globals['_DATATYPE']._serialized_start=361 - _globals['_DATATYPE']._serialized_end=1825 + _globals['_DATATYPE']._serialized_end=1951 _globals['_DATA']._serialized_start=48 _globals['_DATA']._serialized_end=178 _globals['_DATASET']._serialized_start=181 diff --git a/python/zaphiro/grid/v1/data_pb2.pyi b/python/zaphiro/grid/v1/data_pb2.pyi index 8be6749..b600543 100644 --- a/python/zaphiro/grid/v1/data_pb2.pyi +++ b/python/zaphiro/grid/v1/data_pb2.pyi @@ -55,6 +55,10 @@ class DataType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): DATA_TYPE_ANALOG: _ClassVar[DataType] DATA_TYPE_NORMALIZED_RESIDUAL: _ClassVar[DataType] DATA_TYPE_OBJECTIVE_FUNCTION: _ClassVar[DataType] + DATA_TYPE_SWITCH_POSITION_CHECK: _ClassVar[DataType] + DATA_TYPE_TEMPERATURE_ALARM: _ClassVar[DataType] + DATA_TYPE_PRESSURE_ALARM: _ClassVar[DataType] + DATA_TYPE_DOOR_ALARM: _ClassVar[DataType] DATA_TYPE_UNSPECIFIED: DataType DATA_TYPE_ACTIVE_POWER: DataType DATA_TYPE_ANGLE: DataType @@ -102,6 +106,10 @@ DATA_TYPE_DISCRETE: DataType DATA_TYPE_ANALOG: DataType DATA_TYPE_NORMALIZED_RESIDUAL: DataType DATA_TYPE_OBJECTIVE_FUNCTION: DataType +DATA_TYPE_SWITCH_POSITION_CHECK: DataType +DATA_TYPE_TEMPERATURE_ALARM: DataType +DATA_TYPE_PRESSURE_ALARM: DataType +DATA_TYPE_DOOR_ALARM: DataType class Data(_message.Message): __slots__ = ("dataType", "measuredAt", "value")