监控看板:更新视图 监控看板 监控看板:更新视图 接口功能介绍 更新已有监控视图。 接口约束 参见请求参数说明。 URI POST /v4/monitor/monitorboard/updateview 路径参数 无 Query参数 无 请求参数 请求头header参数 无 请求体body参数 参数 是否必填 参数类型 说明 示例 下级对象 regionID 是 String 资源池ID 81f7728662dd11ec810800155d307d5b viewID 是 String 监控视图ID 58631437d4897105d9ac9bc044d7b6ab view 是 Object 监控视图更新内容 view 表 view 参数 是否必填 参数类型 说明 示例 下级对象 name 是 String 监控视图名称 名称 service 是 String 云监控服务 ecs dimension 是 String 云监控维度 ecs viewType 是 String 视图类型。取值范围:timeSeries:折线图。gauge:仪表盘。barChart:柱状图。table:表格。pieChart:饼状图。根据以上范围取值。 timeSeries orderIndex 否 Integer 视图排序次数。默认值为0。 0 itemNameList 是 Array of Strings 监控指标,指标项最多支持20个,当viewType为gauge和pieChart时,仅支持单监控指标 ['cpuutil'] compares 否 Array of Strings 同比环比比较时间配置,格式为“数字+单位”,单位为空时默认为秒。当前只支持1d和7d。单位取值范围:m:分钟。h:小时。d:天。根据以上范围取值。 ['1d'] resources 是 Array of Objects 监控资源实例,监控资源实例最多支持20个,当viewType为gauge时,仅支持单资源实例 resource gaugePattern 否 Object 仪表盘配置,仅当viewType为gauge时生效 gaugePattern 表 resource 参数 是否必填 参数类型 说明 示例 下级对象 resource 是 Array of Objects 资源 obj 表 obj 参数 是否必填 参数类型 说明 示例 下级对象 key 是 String 资源键 uuid value 是 String 资源键对应的值 xxxx 表 gaugePattern 参数 是否必填 参数类型 说明 示例 下级对象 minVal 否 Integer 仪表盘最小值。默认值为0 0 maxVal 否 Integer 仪表盘最大值。默认值为100 100 threshold 否 Array of Integers 仪表盘中间分段取值,长度必须为2。默认值为[30,80] [30,80]