You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2021/06/10 08:35:27 UTC

[skywalking] branch website-docs/8.4.0 updated: Fix doc bug (#7093) (#7102)

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

wusheng pushed a commit to branch website-docs/8.4.0
in repository https://gitbox.apache.org/repos/asf/skywalking.git


The following commit(s) were added to refs/heads/website-docs/8.4.0 by this push:
     new 0bdb386  Fix doc bug (#7093) (#7102)
0bdb386 is described below

commit 0bdb38615c099d05ae397b5143473a31c8ceab3f
Author: xdRight <34...@users.noreply.github.com>
AuthorDate: Thu Jun 10 16:35:13 2021 +0800

    Fix doc bug (#7093) (#7102)
    
    - sum should be modified to count
    - the endpointName not in the scope of Endpoint, should be modified to name
---
 docs/en/concepts-and-designs/oal.md | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/docs/en/concepts-and-designs/oal.md b/docs/en/concepts-and-designs/oal.md
index af618b6..93938ed 100644
--- a/docs/en/concepts-and-designs/oal.md
+++ b/docs/en/concepts-and-designs/oal.md
@@ -59,8 +59,8 @@ In this case, all input are requests of each endpoint, condition is `endpoint.st
 In this case, all input are requests of each browser app traffic, `numerator` condition is `trafficCategory == BrowserAppTrafficCategory.FIRST_ERROR` and `denominator` condition is `trafficCategory == BrowserAppTrafficCategory.NORMAL`.
 The parameter (1) is the `numerator` condition.
 The parameter (2) is the `denominator` condition.
-- `sum`. The sum calls per scope entity.
-> service_calls_sum = from(Service.*).sum();
+- `count`. The sum calls per scope entity.
+> service_calls_sum = from(Service.*).count();
 
 In this case, calls of each service. 
 
@@ -121,16 +121,16 @@ endpoint_percentile = from(Endpoint.latency).percentile(10)
 endpoint_success = from(Endpoint.*).filter(status == true).percent()
 
 // Calculate the sum of response code in [404, 500, 503], for each service.
-endpoint_abnormal = from(Endpoint.*).filter(responseCode in [404, 500, 503]).sum()
+endpoint_abnormal = from(Endpoint.*).filter(responseCode in [404, 500, 503]).count()
 
 // Calculate the sum of request type in [RequestType.RPC, RequestType.gRPC], for each service.
-endpoint_rpc_calls_sum = from(Endpoint.*).filter(type in [RequestType.RPC, RequestType.gRPC]).sum()
+endpoint_rpc_calls_sum = from(Endpoint.*).filter(type in [RequestType.RPC, RequestType.gRPC]).count()
 
 // Calculate the sum of endpoint name in ["/v1", "/v2"], for each service.
-endpoint_url_sum = from(Endpoint.*).filter(endpointName in ["/v1", "/v2"]).sum()
+endpoint_url_sum = from(Endpoint.*).filter(name in ["/v1", "/v2"]).count()
 
 // Calculate the sum of calls for each service.
-endpoint_calls = from(Endpoint.*).sum()
+endpoint_calls = from(Endpoint.*).count()
 
 // Calculate the CPM with the GET method for each service.The value is made up with `tagKey:tagValue`.
 service_cpm_http_get = from(Service.*).filter(tags contain "http.method:GET").cpm()