Showing the changes to Source/Libraries/TimeSeriesPlatformLibrary/Samples/InstanceSubscribe.cpp (1 of 1 file). Show all
Unified · Split
| @@ -60,14 +60,17 @@ int main(int argc, char* argv[]) · 59 unmodified lines | |||
| 60 | 60 | ||
| 61 | switch (i) | 61 | switch (i) |
| 62 | { | 62 | { |
| 63 | case 0: | ||
| 64 | subscriber->SetFilterExpression("FILTER TOP 10 ActiveMeasurements WHERE SignalType = 'FREQ'"); | ||
| 65 | break; | ||
| 63 | case 1: | 66 | case 1: |
| 64 | subscriber->SetFilterExpression("FILTER TOP 5 ActiveMeasurements WHERE SignalType = 'FREQ'"); | 67 | subscriber->SetFilterExpression("FILTER TOP 10 ActiveMeasurements WHERE SignalType LIKE '%PHA'"); |
| 65 | break; | 68 | break; |
| 66 | case 2: | 69 | case 2: |
| 67 | subscriber->SetFilterExpression("FILTER TOP 10 ActiveMeasurements WHERE SignalType LIKE '%PHA'"); | 70 | subscriber->SetFilterExpression("FILTER TOP 10 ActiveMeasurements WHERE SignalType LIKE '%PHM'"); |
| 68 | break; | 71 | break; |
| 69 | default: | 72 | default: |
| 70 | subscriber->SetFilterExpression("FILTER TOP 10 ActiveMeasurements WHERE SignalType LIKE '%PHM'"); | 73 | subscriber->SetFilterExpression(SubscriberInstance::SubscribeAllNoStatsExpression); |
| 71 | break; | 74 | break; |
| 72 | } | 75 | } |
| 73 | 76 | ||