Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement metrics chart component to overview and monitoring page #1408

Merged
merged 13 commits into from
Sep 14, 2022
Merged
2 changes: 1 addition & 1 deletion ui/packages/tidb-dashboard-for-clinic-cloud/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pingcap/tidb-dashboard-for-clinic-cloud",
"version": "0.0.9",
"version": "0.0.10",
"main": "dist/dashboardApp.js",
"module": "dist/dashboardApp.js",
"files": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,15 @@ import client from '~/client'
import { getMonitoringItems } from './metricsQueries'

class DataSource implements IMonitoringDataSource {
metricsQueryGet(
endTimeSec?: number,
query?: string,
startTimeSec?: number,
stepSec?: number,
options?: ReqConfig
) {
return client.getInstance().metricsQueryGet(
{
endTimeSec,
query,
startTimeSec,
stepSec
},
options
)
metricsQueryGet(params: {
endTimeSec?: number
query?: string
startTimeSec?: number
stepSec?: number
}) {
return client.getInstance().metricsQueryGet(params, {
handleError: 'custom'
} as ReqConfig)
}
}

Expand Down
Loading