From 34f16e244d67e5aecfa4dd6fd3985dc763fb86b7 Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Thu, 10 Mar 2022 11:12:49 +0800 Subject: [PATCH] remove unused codes --- src/graphql/fragments/dashboard.ts | 15 --------------- src/graphql/query/dashboard.ts | 8 +------- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/src/graphql/fragments/dashboard.ts b/src/graphql/fragments/dashboard.ts index 8819dd52..7cf89f01 100644 --- a/src/graphql/fragments/dashboard.ts +++ b/src/graphql/fragments/dashboard.ts @@ -29,18 +29,3 @@ export const listMetrics = { } `, }; - -export const queryHeatMap = { - variable: ["$condition: MetricsCondition!, $duration: Duration!"], - query: ` - readHeatMap: readHeatMap(condition: $condition, duration: $duration) { - values { - id - values - } - buckets { - min - max - } - }`, -}; diff --git a/src/graphql/query/dashboard.ts b/src/graphql/query/dashboard.ts index 9717f42e..5ff9e092 100644 --- a/src/graphql/query/dashboard.ts +++ b/src/graphql/query/dashboard.ts @@ -14,14 +14,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { - TypeOfMetrics, - queryHeatMap, - listMetrics, -} from "../fragments/dashboard"; +import { TypeOfMetrics, listMetrics } from "../fragments/dashboard"; export const queryTypeOfMetrics = `query typeOfMetrics(${TypeOfMetrics.variable}) {${TypeOfMetrics.query}}`; -export const readHeatMap = `query queryData(${queryHeatMap.variable}) {${queryHeatMap.query}}`; - export const queryMetrics = `query queryData(${listMetrics.variable}) {${listMetrics.query}}`;