/// <summary> /// Pattern every-operator and filter in combination, equivalent to the "every tag=MyEvent(vol > 100)" syntax. /// </summary> /// <param name="filter"> /// specifies the event type name and filter expression to filter for /// </param> /// <param name="tagName">is the tag name to assign to matching events</param> /// <returns>pattern expression</returns> public static PatternEveryExpr EveryFilter( Filter filter, string tagName) { PatternExpr inner = new PatternFilterExpr(filter, tagName); return new PatternEveryExpr(inner); }
/// <summary> /// Pattern every-operator and filter in combination, equivalent to the "every /// tag=MyEvent" syntax. /// </summary> /// <param name="eventTypeName">is the event type name to filter for</param> /// <param name="tagName">is the tag name to assign to matching events</param> /// <returns> /// pattern expression /// </returns> public static PatternEveryExpr EveryFilter( string eventTypeName, string tagName) { PatternExpr filter = new PatternFilterExpr(soda.Filter.Create(eventTypeName), tagName); return new PatternEveryExpr(filter); }
/// <summary> /// Pattern every-operator and filter in combination, equivalent to the "every MyEvent(vol > 100)" syntax. /// </summary> /// <param name="filter"> /// specifies the event type name and filter expression to filter for /// </param> /// <returns>pattern expression</returns> public static PatternEveryExpr EveryFilter(Filter filter) { PatternExpr inner = new PatternFilterExpr(filter); return new PatternEveryExpr(inner); }