You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@skywalking.apache.org by ha...@apache.org on 2018/03/01 08:06:06 UTC

[incubator-skywalking-ui] 01/02: Amend graphql schema

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

hanahmily pushed a commit to branch fix/e2e
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking-ui.git

commit 67c7fe9f26d9e5493da95c8f8f3ac95b7b94f63b
Author: hanahmily <ha...@gmail.com>
AuthorDate: Thu Mar 1 10:10:21 2018 +0800

    Amend graphql schema
---
 mock/application.js                   | 2 +-
 mock/dashboard.js                     | 2 +-
 src/models/application.js             | 2 +-
 src/models/dashboard.js               | 2 +-
 src/routes/Application/Application.js | 2 +-
 src/routes/Dashboard/Dashboard.js     | 2 +-
 src/routes/Server/Server.js           | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/mock/application.js b/mock/application.js
index f4e67ea..e7be7be 100644
--- a/mock/application.js
+++ b/mock/application.js
@@ -15,7 +15,7 @@ export default {
       {
         data: {
           'getSlowService|10': [{ 'key|+1': 1, name: '@name', 'avgResponseTime|200-1000': 1 }],
-          'getServerThroughput|10': [{ 'key|+1': 1, name: '@name', 'tps|100-10000': 1 }],
+          'getServerThroughput|10': [{ 'key|+1': 1, name: '@name', 'callsPerSec|100-10000': 1 }],
           getApplicationTopology: () => {
             const application = mockjs.mock({
               nodes: [
diff --git a/mock/dashboard.js b/mock/dashboard.js
index 479e595..fd5928c 100644
--- a/mock/dashboard.js
+++ b/mock/dashboard.js
@@ -19,7 +19,7 @@ export default {
             'apps|3-5': [{ 'name|1': ['Oracle', 'MySQL', 'ActiveMQ', 'Redis', 'Memcache', 'SQLServer'], num: '@natural(1, 20)' }],
           },
           'getTopNSlowService|10': [{ 'key|+1': 1, name: '@url', 'avgResponseTime|200-1000': 1 }],
-          'getTopNApplicationThroughput|10': [{ 'key|+1': 1, applicationCode: '@name', 'tps|100-10000': 1 }],
+          'getTopNApplicationThroughput|10': [{ 'key|+1': 1, applicationCode: '@name', 'callsPerSec|100-10000': 1 }],
         },
       }
     ));
diff --git a/src/models/application.js b/src/models/application.js
index 5c36c92..136f3be 100644
--- a/src/models/application.js
+++ b/src/models/application.js
@@ -19,7 +19,7 @@ const dataQuery = `
     getServerThroughput(applicationId: $applicationId, duration: $duration, topN: 10) {
       key: id
       name
-      tps
+      callsPerSec
     }
     getApplicationTopology(applicationId: $applicationId, duration: $duration) {
       nodes {
diff --git a/src/models/dashboard.js b/src/models/dashboard.js
index 7608e4d..8702972 100644
--- a/src/models/dashboard.js
+++ b/src/models/dashboard.js
@@ -45,7 +45,7 @@ export default generateModal({
       getTopNApplicationThroughput(duration: $duration, topN: 10) {
         key: applicationId
         applicationCode
-        tps
+        callsPerSec
       }
     }
   `,
diff --git a/src/routes/Application/Application.js b/src/routes/Application/Application.js
index ab07b15..7df9661 100644
--- a/src/routes/Application/Application.js
+++ b/src/routes/Application/Application.js
@@ -110,7 +110,7 @@ export default class Application extends PureComponent {
                 bordered={false}
                 bodyStyle={{ padding: '0px 10px' }}
               >
-                <Ranking data={data.getServerThroughput} title="name" content="tps" unit="t/s" />
+                <Ranking data={data.getServerThroughput} title="name" content="callsPerSec" unit="t/s" />
               </Card>
             </Col>
           </Row>
diff --git a/src/routes/Dashboard/Dashboard.js b/src/routes/Dashboard/Dashboard.js
index 417ab63..c59182f 100644
--- a/src/routes/Dashboard/Dashboard.js
+++ b/src/routes/Dashboard/Dashboard.js
@@ -121,7 +121,7 @@ export default class Dashboard extends PureComponent {
               bordered={false}
               bodyStyle={{ padding: '0px 10px' }}
             >
-              <Ranking data={data.getTopNApplicationThroughput} title="applicationCode" content="tps" unit="t/s" />
+              <Ranking data={data.getTopNApplicationThroughput} title="applicationCode" content="callsPerSec" unit="t/s" />
             </Card>
           </Col>
         </Row>
diff --git a/src/routes/Server/Server.js b/src/routes/Server/Server.js
index 4ea724e..b212276 100644
--- a/src/routes/Server/Server.js
+++ b/src/routes/Server/Server.js
@@ -111,7 +111,7 @@ export default class Server extends PureComponent {
             </Col>
             <Col xs={24} sm={24} md={24} lg={12} xl={12} style={{ marginTop: 24 }}>
               <ChartCard
-                title="Avg TPS"
+                title="Avg Calls Per Second"
                 total={`${this.avg(getServerTPSTrend.trendList)} ms`}
               >
                 <MiniBar

-- 
To stop receiving notification emails like this one, please contact
hanahmily@apache.org.