示例#1
0
        /// <summary>
        /// Pattern every-operator and filter in combination, equivalent to the "every MyEvent(vol &gt; 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));
        }
示例#2
0
        /// <summary>
        /// Pattern every-operator and filter in combination, equivalent to the "every tag=MyEvent(vol &gt; 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));
        }
示例#3
0
        /// <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));
        }