You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by hx...@apache.org on 2022/08/12 04:46:42 UTC

[flink] branch release-1.15 updated: [hotfix][python][dcos] Fix the typos in the Metrics Doc

This is an automated email from the ASF dual-hosted git repository.

hxb pushed a commit to branch release-1.15
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.15 by this push:
     new 718bd1ec40d [hotfix][python][dcos] Fix the typos in the Metrics Doc
718bd1ec40d is described below

commit 718bd1ec40d8b2a340e732aaf60ce08272d442a1
Author: huangxingbo <hx...@apache.org>
AuthorDate: Fri Aug 12 12:06:02 2022 +0800

    [hotfix][python][dcos] Fix the typos in the Metrics Doc
---
 docs/content.zh/docs/ops/metrics.md | 2 +-
 docs/content/docs/ops/metrics.md    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/content.zh/docs/ops/metrics.md b/docs/content.zh/docs/ops/metrics.md
index e13d83056c4..b0c871300e1 100644
--- a/docs/content.zh/docs/ops/metrics.md
+++ b/docs/content.zh/docs/ops/metrics.md
@@ -414,7 +414,7 @@ class MyMapperMeter(MapFunction):
             .meter("my_meter", time_span_in_seconds=120)
 
     def map(self, value: str):
-        self.meter.markEvent()
+        self.meter.mark_event()
         return value
 
 ```
diff --git a/docs/content/docs/ops/metrics.md b/docs/content/docs/ops/metrics.md
index 9ef43ec1707..2146a0b8f3c 100644
--- a/docs/content/docs/ops/metrics.md
+++ b/docs/content/docs/ops/metrics.md
@@ -414,7 +414,7 @@ class MyMapperMeter(MapFunction):
             .meter("my_meter", time_span_in_seconds=120)
 
     def map(self, value: str):
-        self.meter.markEvent()
+        self.meter.mark_event()
         return value
 
 ```