// Filter type and option definitions
syntax = "proto3";
import "common_variant.proto";
import "common_operators.proto";
package siemens.common.filters.v1;
message SupportedFilter {
string key = 1;
siemens.common.types.v1.VariantType datatype = 2;
}
message SupportedOption {
string key = 1;
siemens.common.types.v1.VariantType datatype = 2;
}
message ActiveFilter {
string key = 1; // e.g. Timeout
// array of raw-data
siemens.common.operators.v1.ComparisonOperator operator = 2; //optional
siemens.common.types.v1.Variant value = 3;
}
message ActiveOption {
string key = 1; // e.g. Timeout
// array of raw-data
siemens.common.operators.v1.ComparisonOperator operator = 2; //optional (when missing it means EQUAL)
siemens.common.types.v1.Variant value = 3;
}
// Get list of supported filter types from the connector
message FilterTypesRequest {
//void
}
message FilterTypesResponse {
repeated SupportedFilter filter_types = 1;
}
// Get list of supported filter options from the connector
message FilterOptionsRequest {
//void
}
message FilterOptionsResponse {
repeated SupportedOption filter_options = 1;
}
| Art der Meldung | Feld | Typ | Beschreibung |
|---|---|---|---|
| Unterstützter Filter | key | string | - |
| Datatype | siemens.common.types.v1.VariantType | - | |
| UnterstütztOption | key | string | - |
| Datatype | siemens.common.types.v1.VariantType | - | |
| AktivFilter | key | string | z.B. Zeitüberschreitung |
| Operator | siemens.common.operators.v1.ComparisonOperator | wahlfrei | |
| value | siemens.common.types.v1.Variant | - | |
| AktivOption | key | string | z.B. Zeitüberschreitung |
| Operator | siemens.common.operators.v1.ComparisonOperator | optional (wenn es fehlt, bedeutet es GLEICH) | |
| value | siemens.common.types.v1.Variant | - | |
| FilterTypenAnforderung | - | - | leer |
| FilterTypesAntwort | filter_types | wiederholter SupportedFilter | - |
| FilterOptionsAnfrage | - | - | leer |
| FilterOptionsAntwort | filter_options | wiederholte SupportedOption | - |