feat: remove metric name from queries (#275)

This commit is contained in:
Fine0830
2023-06-07 16:58:30 +08:00
committed by GitHub
parent b293f4ddb5
commit d662a0fb54
10 changed files with 48 additions and 32 deletions

3
src/types/app.d.ts vendored
View File

@@ -42,8 +42,7 @@ export type EventParams = {
dataIndex: number;
data: unknown;
dataType: string;
value: number | Array;
value: number | any[];
color: string;
event: any;
dataIndex: number;
};

View File

@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { DurationTime } from "./app";
export type DashboardItem = {
id?: string;
entity: string;
@@ -75,8 +75,8 @@ export type MetricConfigOpt = {
unit?: string;
label?: string;
calculation?: string;
labelsIndex: string;
sortOrder: string;
labelsIndex?: string;
sortOrder?: string;
topN?: number;
index?: number;
};