From de1233702c517cbae6e7bcdc0aabb60097313ea1 Mon Sep 17 00:00:00 2001 From: fabiovincenzi <93596376+fabiovincenzi@users.noreply.github.com> Date: Fri, 13 Oct 2023 09:53:05 +0200 Subject: [PATCH] Update search_syntax.md --- docs/search_syntax.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/search_syntax.md b/docs/search_syntax.md index 44d6d05d8..e2b9dcd82 100644 --- a/docs/search_syntax.md +++ b/docs/search_syntax.md @@ -214,6 +214,11 @@ Select only the metrics where the name starts with "Test" metric.name.startswith('Test') ``` +Select only the metrics where the name contains "Metric1" +```python +re.search("Metric1", metric.name) +``` + ### Example with ```metric.last``` (numeric) Select only the metrics where the last value is exactly 1.1