// Copyright 2018 JDCLOUD.COM
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// NOTE: This class is auto generated by the jdcloud code generator program.

package models


type UpdatePanelSpec struct {

    /* 要更新panel所属dashboard的uid  */
    DashboardUid string `json:"dashboardUid"`

    /* 要更新panel所属维度 (Optional) */
    Dimension string `json:"dimension"`

    /* 要更新panel包含的metric  */
    PanelMetrics []PanelMetricForCreate `json:"panelMetrics"`

    /* 要更新panel的名字 (Optional) */
    PanelName string `json:"panelName"`

    /* 资源id列表,与标签服务互斥,且资源id列表与标签服务列表至少传一个 (Optional) */
    PanelResources []PanelResource `json:"panelResources"`

    /* 标签服务列表,与资源id列表互斥,且资源id列表与标签服务列表至少传一个 (Optional) */
    PanelTagResources []PanelTagResource `json:"panelTagResources"`

    /* topN的数量，图表类型为3(topN表格)时必填 (Optional) */
    PanelTopNum int64 `json:"panelTopNum"`

    /* 要更新panel的类型，1-折线图(明细);2-折线图(汇总);3-topN表格  */
    PanelType int64 `json:"panelType"`

    /* 要更新panel的uuid  */
    PanelUid string `json:"panelUid"`

    /* 要更新panel所属产品  */
    Product string `json:"product"`

    /* 依据tag过滤(维度) (Optional) */
    Tags []TagFilter `json:"tags"`
}
