mengxin523 commented on issue #3809: URL: https://github.com/apache/hertzbeat/issues/3809#issuecomment-3392858729
> > [@Duansg](https://github.com/Duansg) [@pentium100](https://github.com/pentium100) > > Hi, [@mengxin523](https://github.com/mengxin523) thank you for your question. Real-time threshold expressions are executed within a single monitoring task and cannot perform aggregation operations across tasks. You can use Periodic Threshold for this purpose. However, upon reviewing this metric in the DNS template, since it is not numeric, you will need to customize the processing template to convert the `status` field within the metric into a numeric value. How should I write the expression in this YAML to convert records where status=NOERROR into a value of 1 for an additional new field, and set the value to 0 for all other cases? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
