feat: Implement templates for dashboards (#28)

This commit is contained in:
Fine0830
2022-03-19 12:11:35 +08:00
committed by GitHub
parent 1cf3887675
commit 597e98e291
61 changed files with 1583 additions and 1193 deletions

View File

@@ -14,6 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export type DashboardItem = {
id?: string;
entity: string;
layer: string;
isRoot: boolean;
name: string;
};
export interface LayoutConfig {
x: number;
y: number;
@@ -38,8 +46,8 @@ export interface WidgetConfig {
export interface StandardConfig {
sortOrder?: string;
unit?: string;
max?: string;
min?: string;
labelsIndex?: string;
metricLabels?: string;
plus?: string;
minus?: string;
multiply?: string;
@@ -99,6 +107,7 @@ export interface ServiceListConfig {
type?: string;
dashboardName: string;
fontSize: number;
showGroup: boolean;
}
export interface InstanceListConfig {