-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding visualizations panel to metrics (#1222)
* adding vizualization components Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> * added metrics layout to redux Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> * removed comments and updated constants Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> * remove excess console.log Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
- Loading branch information
Showing
13 changed files
with
812 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { VisualizationType } from './custom_panels'; | ||
|
||
export interface MetricData { | ||
metricId: string; | ||
metricType: 'savedCustomMetric' | 'prometheusMetric'; | ||
metricName: string; | ||
} | ||
|
||
export interface MetricType extends VisualizationType { | ||
id: string; | ||
savedVisualizationId: string; | ||
x: number; | ||
y: number; | ||
w: number; | ||
h: number; | ||
metricType: 'savedCustomMetric' | 'prometheusMetric'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.