Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

Commit

Permalink
Amend graphql schema
Browse files Browse the repository at this point in the history
  • Loading branch information
hanahmily committed Mar 1, 2018
1 parent 73d211b commit 67c7fe9
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion mock/application.js
Expand Up @@ -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: [
Expand Down
2 changes: 1 addition & 1 deletion mock/dashboard.js
Expand Up @@ -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 }],
},
}
));
Expand Down
2 changes: 1 addition & 1 deletion src/models/application.js
Expand Up @@ -19,7 +19,7 @@ const dataQuery = `
getServerThroughput(applicationId: $applicationId, duration: $duration, topN: 10) {
key: id
name
tps
callsPerSec
}
getApplicationTopology(applicationId: $applicationId, duration: $duration) {
nodes {
Expand Down
2 changes: 1 addition & 1 deletion src/models/dashboard.js
Expand Up @@ -45,7 +45,7 @@ export default generateModal({
getTopNApplicationThroughput(duration: $duration, topN: 10) {
key: applicationId
applicationCode
tps
callsPerSec
}
}
`,
Expand Down
2 changes: 1 addition & 1 deletion src/routes/Application/Application.js
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/Dashboard/Dashboard.js
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/Server/Server.js
Expand Up @@ -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
Expand Down

0 comments on commit 67c7fe9

Please sign in to comment.