Showing the changes to Source/Libraries/TimeSeriesPlatformLibrary/Samples/InstanceSubscribe.cpp (1 of 10 files). Show all
Unified · Split
| @@ -67,6 +67,9 @@ int main(int argc, char* argv[]) · 66 unmodified lines | ||
| 67 | 67 | break; |
| 68 | 68 | case 1: |
| 69 | 69 | subscriber->SetFilterExpression("FILTER TOP 10 ActiveMeasurements WHERE SignalType LIKE '%PHA'"); |
| 70 | + | |
| 71 | + // In this example we also specify a meta-data filtering expression: | |
| 72 | + subscriber->SetMetadataFilters(SubscriberInstance::FilterMetadataStatsExpression); | |
| 70 | 73 | break; |
| 71 | 74 | case 2: |
| 72 | 75 | subscriber->SetFilterExpression("FILTER TOP 10 ActiveMeasurements WHERE SignalType LIKE '%PHM'"); |