华为云用户手册

  • 请求示例 查询2c0689c860ad4728a497c91ec0844383项目下的0d146099-8cf4-437d-b6ef-88e043771c8b任务的统计 GET https://{endpoint}/v2/2c0689c860ad4728a497c91ec0844383/sync-tasks/0d146099-8cf4-437d-b6ef-88e043771c8b/statistics?data_type=REQUEST { "sync_task_id" : "4fb05cd2-c94e-44e4-a07f-e65a2f01ebcb", "statistic_time_type" : "FIVE_MINUTES", "statistic_datas" : [ { "data_type" : "REQUEST", "data" : [ { "time_stamp" : 1700150400000, "statistic_num" : 1 }, { "time_stamp" : 1700151000000, "statistic_num" : 20 }, { "time_stamp" : 1700151300000, "statistic_num" : 13 }, { "time_stamp" : 1700151600000, "statistic_num" : 12 }, { "time_stamp" : 1700151900000, "statistic_num" : 10 }, { "time_stamp" : 1700152200000, "statistic_num" : 11 }, { "time_stamp" : 1700152500000, "statistic_num" : 9 }, { "time_stamp" : 1700152800000, "statistic_num" : 12 }, { "time_stamp" : 1700153100000, "statistic_num" : 9 }, { "time_stamp" : 1700153400000, "statistic_num" : 10 }, { "time_stamp" : 1700153700000, "statistic_num" : 7 }, { "time_stamp" : 1700154000000, "statistic_num" : 13 }, { "time_stamp" : 1700154300000, "statistic_num" : 9 }, { "time_stamp" : 1700154600000, "statistic_num" : 9 }, { "time_stamp" : 1700154900000, "statistic_num" : 9 }, { "time_stamp" : 1700155200000, "statistic_num" : 10 }, { "time_stamp" : 1700155500000, "statistic_num" : 11 }, { "time_stamp" : 1700155800000, "statistic_num" : 9 }, { "time_stamp" : 1700156100000, "statistic_num" : 8 }, { "time_stamp" : 1700156400000, "statistic_num" : 11 }, { "time_stamp" : 1700156700000, "statistic_num" : 10 }, { "time_stamp" : 1700157000000, "statistic_num" : 8 }, { "time_stamp" : 1700157300000, "statistic_num" : 10 }, { "time_stamp" : 1700157600000, "statistic_num" : 11 }, { "time_stamp" : 1700157900000, "statistic_num" : 9 }, { "time_stamp" : 1700158200000, "statistic_num" : 11 }, { "time_stamp" : 1700158500000, "statistic_num" : 9 }, { "time_stamp" : 1700158800000, "statistic_num" : 10 }, { "time_stamp" : 1700159100000, "statistic_num" : 11 }, { "time_stamp" : 1700159400000, "statistic_num" : 9 }, { "time_stamp" : 1700159700000, "statistic_num" : 11 }, { "time_stamp" : 1700160000000, "statistic_num" : 10 }, { "time_stamp" : 1700160300000, "statistic_num" : 10 }, { "time_stamp" : 1700160600000, "statistic_num" : 9 }, { "time_stamp" : 1700160900000, "statistic_num" : 8 }, { "time_stamp" : 1700161200000, "statistic_num" : 11 }, { "time_stamp" : 1700161500000, "statistic_num" : 9 }, { "time_stamp" : 1700161800000, "statistic_num" : 9 }, { "time_stamp" : 1700162100000, "statistic_num" : 9 }, { "time_stamp" : 1700162400000, "statistic_num" : 10 }, { "time_stamp" : 1700162700000, "statistic_num" : 11 }, { "time_stamp" : 1700163000000, "statistic_num" : 9 }, { "time_stamp" : 1700163300000, "statistic_num" : 9 }, { "time_stamp" : 1700163600000, "statistic_num" : 11 }, { "time_stamp" : 1700163900000, "statistic_num" : 10 }, { "time_stamp" : 1700164200000, "statistic_num" : 9 }, { "time_stamp" : 1700164500000, "statistic_num" : 10 }, { "time_stamp" : 1700164800000, "statistic_num" : 9 }, { "time_stamp" : 1700165100000, "statistic_num" : 11 }, { "time_stamp" : 1700165400000, "statistic_num" : 10 }, { "time_stamp" : 1700165700000, "statistic_num" : 10 }, { "time_stamp" : 1700166000000, "statistic_num" : 11 }, { "time_stamp" : 1700166300000, "statistic_num" : 10 }, { "time_stamp" : 1700166600000, "statistic_num" : 9 }, { "time_stamp" : 1700166900000, "statistic_num" : 9 }, { "time_stamp" : 1700167200000, "statistic_num" : 11 }, { "time_stamp" : 1700167500000, "statistic_num" : 10 }, { "time_stamp" : 1700167800000, "statistic_num" : 8 }, { "time_stamp" : 1700168100000, "statistic_num" : 11 }, { "time_stamp" : 1700168400000, "statistic_num" : 8 }, { "time_stamp" : 1700168700000, "statistic_num" : 10 }, { "time_stamp" : 1700169000000, "statistic_num" : 10 }, { "time_stamp" : 1700169300000, "statistic_num" : 9 }, { "time_stamp" : 1700169600000, "statistic_num" : 10 }, { "time_stamp" : 1700169900000, "statistic_num" : 8 }, { "time_stamp" : 1700170200000, "statistic_num" : 11 }, { "time_stamp" : 1700170500000, "statistic_num" : 9 }, { "time_stamp" : 1700170800000, "statistic_num" : 13 }, { "time_stamp" : 1700171100000, "statistic_num" : 10 }, { "time_stamp" : 1700171400000, "statistic_num" : 8 }, { "time_stamp" : 1700171700000, "statistic_num" : 10 }, { "time_stamp" : 1700172000000, "statistic_num" : 11 }, { "time_stamp" : 1700172300000, "statistic_num" : 11 }, { "time_stamp" : 1700172600000, "statistic_num" : 10 }, { "time_stamp" : 1700172900000, "statistic_num" : 11 }, { "time_stamp" : 1700173200000, "statistic_num" : 9 }, { "time_stamp" : 1700173500000, "statistic_num" : 9 }, { "time_stamp" : 1700173800000, "statistic_num" : 12 }, { "time_stamp" : 1700174100000, "statistic_num" : 9 }, { "time_stamp" : 1700174400000, "statistic_num" : 11 }, { "time_stamp" : 1700174700000, "statistic_num" : 10 }, { "time_stamp" : 1700175000000, "statistic_num" : 10 }, { "time_stamp" : 1700175300000, "statistic_num" : 11 }, { "time_stamp" : 1700175600000, "statistic_num" : 9 }, { "time_stamp" : 1700175900000, "statistic_num" : 11 }, { "time_stamp" : 1700176200000, "statistic_num" : 10 }, { "time_stamp" : 1700176500000, "statistic_num" : 9 }, { "time_stamp" : 1700176800000, "statistic_num" : 11 }, { "time_stamp" : 1700177100000, "statistic_num" : 9 }, { "time_stamp" : 1700177400000, "statistic_num" : 11 }, { "time_stamp" : 1700177700000, "statistic_num" : 9 }, { "time_stamp" : 1700178000000, "statistic_num" : 12 }, { "time_stamp" : 1700178300000, "statistic_num" : 10 }, { "time_stamp" : 1700178600000, "statistic_num" : 9 }, { "time_stamp" : 1700178900000, "statistic_num" : 11 }, { "time_stamp" : 1700179200000, "statistic_num" : 9 }, { "time_stamp" : 1700179500000, "statistic_num" : 10 }, { "time_stamp" : 1700179800000, "statistic_num" : 10 }, { "time_stamp" : 1700180100000, "statistic_num" : 11 }, { "time_stamp" : 1700180400000, "statistic_num" : 10 }, { "time_stamp" : 1700180700000, "statistic_num" : 9 }, { "time_stamp" : 1700181000000, "statistic_num" : 12 }, { "time_stamp" : 1700181300000, "statistic_num" : 9 }, { "time_stamp" : 1700181600000, "statistic_num" : 12 }, { "time_stamp" : 1700181900000, "statistic_num" : 9 }, { "time_stamp" : 1700182200000, "statistic_num" : 11 }, { "time_stamp" : 1700182500000, "statistic_num" : 9 }, { "time_stamp" : 1700182800000, "statistic_num" : 10 }, { "time_stamp" : 1700183100000, "statistic_num" : 11 }, { "time_stamp" : 1700183400000, "statistic_num" : 10 }, { "time_stamp" : 1700183700000, "statistic_num" : 9 }, { "time_stamp" : 1700184000000, "statistic_num" : 8 }, { "time_stamp" : 1700188200000, "statistic_num" : 1 } ] } ] }
  • 响应示例 状态码: 200 OK { "sync_task_id" : "4fb05cd2-c94e-44e4-a07f-e65a2f01ebcb", "statistic_time_type" : "FIVE_MINUTES", "statistic_datas" : [ { "data_type" : "REQUEST", "data" : [ { "time_stamp" : 1700150400000, "statistic_num" : 1 }, { "time_stamp" : 1700151000000, "statistic_num" : 20 }, { "time_stamp" : 1700151300000, "statistic_num" : 13 }, { "time_stamp" : 1700151600000, "statistic_num" : 12 }, { "time_stamp" : 1700151900000, "statistic_num" : 10 }, { "time_stamp" : 1700152200000, "statistic_num" : 11 }, { "time_stamp" : 1700152500000, "statistic_num" : 9 }, { "time_stamp" : 1700152800000, "statistic_num" : 12 }, { "time_stamp" : 1700153100000, "statistic_num" : 9 }, { "time_stamp" : 1700153400000, "statistic_num" : 10 }, { "time_stamp" : 1700153700000, "statistic_num" : 7 }, { "time_stamp" : 1700154000000, "statistic_num" : 13 }, { "time_stamp" : 1700154300000, "statistic_num" : 9 }, { "time_stamp" : 1700154600000, "statistic_num" : 9 }, { "time_stamp" : 1700154900000, "statistic_num" : 9 }, { "time_stamp" : 1700155200000, "statistic_num" : 10 }, { "time_stamp" : 1700155500000, "statistic_num" : 11 }, { "time_stamp" : 1700155800000, "statistic_num" : 9 }, { "time_stamp" : 1700156100000, "statistic_num" : 8 }, { "time_stamp" : 1700156400000, "statistic_num" : 11 }, { "time_stamp" : 1700156700000, "statistic_num" : 10 }, { "time_stamp" : 1700157000000, "statistic_num" : 8 }, { "time_stamp" : 1700157300000, "statistic_num" : 10 }, { "time_stamp" : 1700157600000, "statistic_num" : 11 }, { "time_stamp" : 1700157900000, "statistic_num" : 9 }, { "time_stamp" : 1700158200000, "statistic_num" : 11 }, { "time_stamp" : 1700158500000, "statistic_num" : 9 }, { "time_stamp" : 1700158800000, "statistic_num" : 10 }, { "time_stamp" : 1700159100000, "statistic_num" : 11 }, { "time_stamp" : 1700159400000, "statistic_num" : 9 }, { "time_stamp" : 1700159700000, "statistic_num" : 11 }, { "time_stamp" : 1700160000000, "statistic_num" : 10 }, { "time_stamp" : 1700160300000, "statistic_num" : 10 }, { "time_stamp" : 1700160600000, "statistic_num" : 9 }, { "time_stamp" : 1700160900000, "statistic_num" : 8 }, { "time_stamp" : 1700161200000, "statistic_num" : 11 }, { "time_stamp" : 1700161500000, "statistic_num" : 9 }, { "time_stamp" : 1700161800000, "statistic_num" : 9 }, { "time_stamp" : 1700162100000, "statistic_num" : 9 }, { "time_stamp" : 1700162400000, "statistic_num" : 10 }, { "time_stamp" : 1700162700000, "statistic_num" : 11 }, { "time_stamp" : 1700163000000, "statistic_num" : 9 }, { "time_stamp" : 1700163300000, "statistic_num" : 9 }, { "time_stamp" : 1700163600000, "statistic_num" : 11 }, { "time_stamp" : 1700163900000, "statistic_num" : 10 }, { "time_stamp" : 1700164200000, "statistic_num" : 9 }, { "time_stamp" : 1700164500000, "statistic_num" : 10 }, { "time_stamp" : 1700164800000, "statistic_num" : 9 }, { "time_stamp" : 1700165100000, "statistic_num" : 11 }, { "time_stamp" : 1700165400000, "statistic_num" : 10 }, { "time_stamp" : 1700165700000, "statistic_num" : 10 }, { "time_stamp" : 1700166000000, "statistic_num" : 11 }, { "time_stamp" : 1700166300000, "statistic_num" : 10 }, { "time_stamp" : 1700166600000, "statistic_num" : 9 }, { "time_stamp" : 1700166900000, "statistic_num" : 9 }, { "time_stamp" : 1700167200000, "statistic_num" : 11 }, { "time_stamp" : 1700167500000, "statistic_num" : 10 }, { "time_stamp" : 1700167800000, "statistic_num" : 8 }, { "time_stamp" : 1700168100000, "statistic_num" : 11 }, { "time_stamp" : 1700168400000, "statistic_num" : 8 }, { "time_stamp" : 1700168700000, "statistic_num" : 10 }, { "time_stamp" : 1700169000000, "statistic_num" : 10 }, { "time_stamp" : 1700169300000, "statistic_num" : 9 }, { "time_stamp" : 1700169600000, "statistic_num" : 10 }, { "time_stamp" : 1700169900000, "statistic_num" : 8 }, { "time_stamp" : 1700170200000, "statistic_num" : 11 }, { "time_stamp" : 1700170500000, "statistic_num" : 9 }, { "time_stamp" : 1700170800000, "statistic_num" : 13 }, { "time_stamp" : 1700171100000, "statistic_num" : 10 }, { "time_stamp" : 1700171400000, "statistic_num" : 8 }, { "time_stamp" : 1700171700000, "statistic_num" : 10 }, { "time_stamp" : 1700172000000, "statistic_num" : 11 }, { "time_stamp" : 1700172300000, "statistic_num" : 11 }, { "time_stamp" : 1700172600000, "statistic_num" : 10 }, { "time_stamp" : 1700172900000, "statistic_num" : 11 }, { "time_stamp" : 1700173200000, "statistic_num" : 9 }, { "time_stamp" : 1700173500000, "statistic_num" : 9 }, { "time_stamp" : 1700173800000, "statistic_num" : 12 }, { "time_stamp" : 1700174100000, "statistic_num" : 9 }, { "time_stamp" : 1700174400000, "statistic_num" : 11 }, { "time_stamp" : 1700174700000, "statistic_num" : 10 }, { "time_stamp" : 1700175000000, "statistic_num" : 10 }, { "time_stamp" : 1700175300000, "statistic_num" : 11 }, { "time_stamp" : 1700175600000, "statistic_num" : 9 }, { "time_stamp" : 1700175900000, "statistic_num" : 11 }, { "time_stamp" : 1700176200000, "statistic_num" : 10 }, { "time_stamp" : 1700176500000, "statistic_num" : 9 }, { "time_stamp" : 1700176800000, "statistic_num" : 11 }, { "time_stamp" : 1700177100000, "statistic_num" : 9 }, { "time_stamp" : 1700177400000, "statistic_num" : 11 }, { "time_stamp" : 1700177700000, "statistic_num" : 9 }, { "time_stamp" : 1700178000000, "statistic_num" : 12 }, { "time_stamp" : 1700178300000, "statistic_num" : 10 }, { "time_stamp" : 1700178600000, "statistic_num" : 9 }, { "time_stamp" : 1700178900000, "statistic_num" : 11 }, { "time_stamp" : 1700179200000, "statistic_num" : 9 }, { "time_stamp" : 1700179500000, "statistic_num" : 10 }, { "time_stamp" : 1700179800000, "statistic_num" : 10 }, { "time_stamp" : 1700180100000, "statistic_num" : 11 }, { "time_stamp" : 1700180400000, "statistic_num" : 10 }, { "time_stamp" : 1700180700000, "statistic_num" : 9 }, { "time_stamp" : 1700181000000, "statistic_num" : 12 }, { "time_stamp" : 1700181300000, "statistic_num" : 9 }, { "time_stamp" : 1700181600000, "statistic_num" : 12 }, { "time_stamp" : 1700181900000, "statistic_num" : 9 }, { "time_stamp" : 1700182200000, "statistic_num" : 11 }, { "time_stamp" : 1700182500000, "statistic_num" : 9 }, { "time_stamp" : 1700182800000, "statistic_num" : 10 }, { "time_stamp" : 1700183100000, "statistic_num" : 11 }, { "time_stamp" : 1700183400000, "statistic_num" : 10 }, { "time_stamp" : 1700183700000, "statistic_num" : 9 }, { "time_stamp" : 1700184000000, "statistic_num" : 8 }, { "time_stamp" : 1700188200000, "statistic_num" : 1 } ] } ] }
  • 响应参数 状态码: 200 表4 响应Body参数 参数 参数类型 描述 sync_task_id String 同步任务id 最小长度:1 最大长度:255 statistic_time_type String 统计结果时间间隔说明描述 FIVE_MINUTES:5分钟 ONE_HOUR:1小时 最小长度:1 最大长度:255 枚举值: FIVE_MINUTES ONE_HOUR statistic_datas Array of StatisticTypeData objects 查询的同步任务统计结果集 数组长度:0 - 1000 表5 StatisticTypeData 参数 参数类型 描述 data_type String 统计数据类型: REQUEST:请求对象数 SUC CES S:成功对象数 FAILURE:失败对象数 SKIP:跳过对象数 SIZE:对象容量(Byte) 最小长度:1 最大长度:255 枚举值: REQUEST SUCCESS FAILURE SKIP SIZE data Array of StatisticData objects 查询的同步任务统计结果集 数组长度:0 - 1000 表6 StatisticData 参数 参数类型 描述 time_stamp Long 统计时间戳 最小值:0 最大值:9223372036854775807 statistic_num Long 统计数量 最小值:0 最大值:9223372036854775807 状态码: 404 表7 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 error_code String 错误码。
  • URI GET /v2/{project_id}/sync-tasks/{sync_task_id}/statistics 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String 项目ID 最小长度:1 最大长度:1024 sync_task_id 是 String 同步任务ID。 最小长度:0 最大长度:255 表2 Query参数 参数 是否必选 参数类型 描述 data_type 是 String 统计数据类型: 多类型查询用‘,’分割; REQUEST:接收同步请求对象数 SUCCESS:同步成功对象数 FAILURE:同步失败对象数 SKIP:同步跳过对象数 SIZE:同步成功对象容量(Byte) 最小长度:1 最大长度:255 枚举值: REQUEST SUCCESS FAILURE SKIP SIZE start_time 是 String 查询开始时间 最小长度:1 最大长度:1024 end_time 是 String 查询开始时间 最小长度:1 最大长度:1024
  • 查看配置 系统会根据解析出来的产品规格及用量自动匹配华为云上的产品及用量,在匹配策略上系统坚持在不低于您当前配置的前提下优先考虑成本的原则,给出华为云上的产品规格及用量配置。 您可以通过查看配置进入产品映射明细列表,在这个列表中,您可以添加、修改、删除产品和规格映射,调整程序预定义的资源映射逻辑,从而获取您真实需要的产品规格列表。 在TCO任务列表,单击任务名称。 单击操作列的“查看配置”按钮,进入“产品映射”页面。 单击映射类型前的按钮,可以查看映射详情。
  • 产品对比 在使用成本方面,系统会对指定时间内,源端云厂商使用费用和华为云使用费用进行比较,您可以在产品对比页面的对比结果中查看。 我们还会给出源端云厂商和华为云同等规格配置的产品月均成本比较,您可以在产品对比页面的产品价格对比中查看。并且可以通过和您的销售经理沟通,针对每种类别产品分别调整价格计算比例(优惠折扣)进一步优化华为云的使用成本。 在TCO任务列表,单击任务名称。 单击操作列的“产品对比”按钮,进入“产品对比”页面。 查看成本对比结果和产品价格对比,根据实际情况调整价格计算比例(优惠折扣)优化华为云的使用成本。 单击页面右上角“导出结果”按钮,可以将产品对比结果导出PDF格式到本地。
  • 查看设备 登录迁移中心管理控制台。 单击左侧导航栏的“迁移工具”,在页面右上角的当前项目下拉列表中选择迁移项目,即可查看当前项目下的所有Edge设备以及设备状态。 设备状态说明参见下表。 表1 设备状态说明 设备状态 说明 在线 Edge与MgC控制台之间一直连接,无断开。 离线 Edge运行程序退出与MgC控制台之间的连接断开1分钟后,置为“离线”状态。 未激活 已在Edge完成注册但设备还未接入平台。 异常 无此状态,如出现该状态,请联系华为云技术支持。 冻结 无此状态,如出现该状态,请联系华为云技术支持。 单击设备名称前的下拉按钮,可以查看该Edge设备所安装的采集器类型、版本和状态等信息。
  • 事件结构 云审计 服务用于标示每个操作事件关键字段的详细信息,具体如表1所示。 为方便用户,部分字段在管理控制台呈现时进行了格式优化。 本章节将基于 CTS 管理控制台进行介绍和描述。 表1 事件的关键字段 字段名称 是否必选 类型 描述 time 是 Date 事件发生时间。以当地标准时间(采用格林威治时间加当地时区形式)进行展示,例如:2016/12/08 11:24:04 GMT+08:00。在接口中,该字段以时间戳格式进行传输和存储。该字段为格林威治时间1970年01月01日00时00分00秒至现在的总毫秒数。 user 是 Structure 发起操作的云账户信息。 在界面事件列表中,该字段于Operator列呈现。 该字段在API接口中以String类型进行传输和存储。 request 否 Structure 操作的请求内容。 该字段在API接口中以String类型进行传输和存储。 response 否 Structure 操作的响应内容。 该字段在API接口中以String类型进行传输和存储。 service_type 是 String 操作来源。 resource_type 是 String 资源类型。 resource_name 否 String 资源名称。 resource_id 否 String 资源的唯一标识。 source_ip 是 String 发起本次操作的用户的IP,若为系统内调用,则为空。 trace_name 是 String 操作名称。 trace_rating 是 String 操作事件等级,分为normal(正常)、warning(警告)和incident(事故)。 normal:代表本次操作成功。 warning:代表本次操作失败。 incident:代表本次操作引起了比失败更严重的后果,比如会造成节点故障或用户业务故障等情况。 trace_type 是 String 操作类型,分为如下五种: ConsoleAction表示通过管理控制台执行的操作。 SystemAction表示系统内部触发的操作。 ApiCall表示调用ApiGateway触发的操作。 ObsSDK表示通过调用OBS提供的SDK触发的关于OBS桶相关操作。 Others表示除去通过“ObsSDK”触发的关于OBS桶相关的操作。 api_version 否 String 作为操作来源的云服务的API版本号。 message 否 Structure 备注信息。 record_time 是 Number 记录操作的时间,表示方式为时间戳。 trace_id 是 String 操作的唯一标识。 code 否 Number 事件http返回码例如200,400 request_id 否 String 记录本次请求的request id location_info 否 String 记录本次请求出错后,问题定位所需要的辅助信息 endpoint 否 String 该操作涉及云资源的详情页面的endpoint resource_url 否 String 该操作涉及云资源的详情页面的访问链接(不含endpoint) user_agent 否 String OBS桶相关操作中非ObsSDK方式调用时的操作类型。 content_length 否 Number OBS桶相关操作中请求消息体的长度。 total_time 否 Number OBS桶相关操作中请求的响应时间。 父主题: 云审计服务事件参考
  • 响应消息 响应参数 参数 参数类型 描述 status String 任务状态,目前取值如下: SUCCESS:表示该任务执行已经结束,任务执行成功。 FAIL:表示该任务执行已经结束,任务执行失败。 RUNNING:表示该任务正在执行。 INIT:表示该任务还未执行,正在初始化。 job_id String 任务ID。 job_type String 任务类型。 imsCreateImageByInstance:云服务器制作镜像 imsImportImageJob:外部镜像文件创建镜像 imsImportOvaImageJob:外部Ova镜像文件创建镜像 imsVolumeCreateImageJob:数据盘制作数据盘镜像 imsImportDataImageJob:外部镜像文件制作数据盘镜像 imsCreateWholeImageByInstanceJob:云服务器制作整机镜像 imsCreateWholeImageByBackupJob:云备份或云服务器备份制作整机镜像 imsNativeImportImageJob:注册镜像 imsNativeExportImageJob:导出镜像 imsAddImageMembersJob:添加镜像成员 imsDelImageMembersJob:删除镜像成员 imsUpdateImageMembersJob:修改镜像成员 imsCopyImageInRegionJob:Region内复制镜像 imsCopyImageCrossUserJob:跨Region复制镜像 begin_time String 任务开始执行时间。格式为UTC时间。 end_time String 任务结束时间。格式为UTC时间。 error_code String 错误码。 fail_reason String 失败原因。 entities Object 任务自定义属性。 任务正常时,返回镜像的ID;任务异常时,返回错误码和信息。 详情请参见表2。 表2 entities字段数据结构说明 参数 参数类型 描述 image_id String 镜像ID。 current_task String 当前任务名称。 image_name String 镜像名称。 process_percent Double 任务执行进度。 results Array of result objects 批量任务执行结果。详情请参见表3。 sub_jobs_result Array of objects 子任务执行结果。详情请参见表4。 sub_jobs_list Array of string 子任务id列表。 addition_error_code string 添加错误码 addition_error_msg string 添加错误消息 error_code string 错误码 error string 错误消息 alarm_code string 告警代码 表3 result字段数据结构说明 参数 参数类型 描述 image_id String 镜像ID。 project_id String 项目ID。 status String 任务状态。 表4 SubJobResult字段数据结构说明 参数 参数类型 描述 status String 子任务状态,取值如下: SUCCESS:表示该任务执行已经结束,任务执行成功。 FAIL:表示该任务执行已经结束,任务执行失败。 RUNNING:表示该任务正在执行。 INIT:表示该任务还未执行,正在初始化。 job_id String 子任务ID。 job_type String 子任务类型。 begin_time String 子任务开始执行时间。格式为UTC时间。 end_time String 子任务结束时间。格式为UTC时间。 error_code String 错误码。 fail_reason String 失败原因。 entities Object 子任务自定义属性。详情请参见表5 任务正常时,返回镜像的ID。 任务异常时,返回错误码和信息。 表5 SubJobEntities字段数据结构说明 参数 参数类型 描述 image_id String 镜像ID。 image_name String 镜像名称。 响应样例 STATUS CODE 200 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 { "status": "SUCCESS", "entities": { "image_id": "e9e91bff-14b6-4a0b-8377-4ed0813e3360", "image_name": "asdfasdfasdfas", "process_percent": 0.20, "current_task": "CreateImageByInstanceTask", "results": [{ "image_id": "49e9447f-7dff-41e0-8036-f66fe5488c8b", "project_id": "089b2f9a3d80d3062f24c00ca4ed5cbd", "status": "success" } ] }, "job_id": "ff8080814dbd65d7014dbe0d84db0013", "job_type": "createImageByInstance", "begin_time": "04-Jun-2015 18:11:06:586", "end_time": "", "error_code": null, "fail_reason": null }
  • 风格一致:测试用例表达用词要求风格一致 规则7.5.1 测试语法表达规则,即测试用例的表达须符合测试语法表达规则。 规则7.5.2 测试逻辑与测试数据分离。 【测试语法表达规则案例】 类别 说明 建议的语法 语法 操作类 指执行一个特定操作或动作,主要是指测试执行步骤。 [操作者][动作][对象][参数] 用户按键1234567890#* 赋值类 指设置某个对象的属性,主要指预置条件。 设置[对象][属性]为[参数] 设置ICD业务字冠为1234567890#* 检查类 指检查某个对象的属性,主要指预期结果。 检查[对象][属性]为[参数] 检查ICD业务字冠为1234567890#* 重复类 当需要多次重复执行时。 重复步骤[X]到步骤[Y],重复N次 重复执行步骤(或流程)3~10,重复2次 父主题: 用例前置条件、测试步骤、预期结果文字表达规则
  • 身份认证 用户访问代码检查服务的方式有多种,包括代码检查用户界面、API、SDK,无论访问方式封装成何种形式,其本质都是通过代码检查提供的REST风格的API接口进行请求。 代码检查的接口需要经过认证请求后才可以访问成功。代码检查支持两种认证方式: Token认证:通过Token认证调用请求,访问代码检查用户界面默认使用Token认证机制。 AK/SK认证:通过AK(Access Key ID)/SK(Secret Access Key)加密调用请求。推荐使用AK/SK认证,其安全性比Token认证要高。 关于认证鉴权的详细介绍及获取方式,请参见认证鉴权。
  • 可视化训练作业介绍 ModelArts支持在新版开发环境中开启TensorBoard和MindInsight可视化工具。在开发环境中通过小数据集训练调试算法,主要目的是验证算法收敛性、检查是否有训练过程中的问题,方便用户调测。 ModelArts可视化作业支持创建TensorBoard类型和MindInsight两种类型。 TensorBoard和MindInsight能够有效地展示训练作业在运行过程中的变化趋势以及训练中使用到的数据信息。 TensorBoard TensorBoard是一个可视化工具,能够有效地展示TensorFlow在运行过程中的计算图、各种指标随着时间的变化趋势以及训练中使用到的数据信息。TensorBoard相关概念请参考TensorBoard官网。 TensorBoard可视化训练作业,当前仅支持基于TensorFlow2.1、Pytorch1.4/1.8版本镜像,CPU/GPU规格的资源类型。请根据实际局点支持的镜像和资源规格选择使用。 MindInsight MindInsight能可视化展现出训练过程中的标量、图像、计算图以及模型超参等信息,同时提供训练看板、模型溯源、数据溯源、性能调试等功能,帮助您在更高效地训练调试模型。MindInsight当前支持基于MindSpore引擎的训练作业。MindInsight相关概念请参考MindSpore官网。 MindInsight可视化训练作业,当前支持的镜像如下,请根据实际局点支持的镜像和资源规格选择使用。 mindspore1.2.0版本,CPU/GPU规格的资源类型。 mindspore1.5.x以上版本,Ascend规格的资源类型。 您可以使用模型训练时产生的Summary文件在开发环境Notebook中创建可视化作业。 在开发环境中创建MindInsight可视化作业,请参见MindInsight可视化作业。 在开发环境中创建TensorBoard可视化作业,请参见TensorBoard可视化作业。 父主题: 可视化训练作业
  • 相关操作 关闭TensorBoard方式如下: 方式1:单击下图所示的,进入TensorBoard实例管理界面,该界面记录了所有启动的TensorBoard实例,单击对应实例后面的SHUT DOWN即可停止该实例。 图8 单击SHUT DOWN停该实例 方式2:在开发环境JupyterLab中的.ipynb文件窗口中输入命令,关闭 TensorBoard。PID在启动界面有提示或者通过 ps -ef | grep tensorboard 查看。 !kill PID 方式3:单击下方红框中的按钮可以关闭所有启动的TensorBoard实例。 图9 关闭所有启动的TensorBoard实例 方式4(不推荐):直接在JupyterLab中上关闭TensorBoard窗口,此方式仅关闭可视化窗口,并未关闭后台。
  • 如何查看用户组是否具有Tenant Administrator或VSS Administrator权限,及如何对用户组角色授权? 登录华为云,在右上角单击“控制台”。 单击右上角的个人账号下的“ 统一身份认证 ”,进入“统一身份认证服务”页面。 选择“用户组”,单击用户组名称即可查看角色授权记录。 图1 查看用户组授权记录 切换至“用户管理”页签,可以查看该用户组下的所有用户,也可以将其他用户添加至该用户组。 如果该用户组缺少相应角色权限,单击“授权”,进入“选择策略”步骤,模糊搜索“Tenant Administrator”或“VSS Administrator”权限的关键字,勾选相应策略。 单击“下一步”,设置最小授权范围。 图2 设置最小授权范围 单击“确定”,即可完成用户组角色授权。 父主题: 二进制成分分析类
  • 请求示例 新建处理任务,目前只支持卫星影像处理任务(ORSIP)。 POST https://{Endpoint}/v1/kmp-control/tasks { "task_name": "这是任务描述", "task_type": "ORSIP", "data_ids": [ "ed9313d537dd4cf7a6a7758f9xxxxd84", "8dc0d6187b8e4f429c2d20d34xxxxx5a" ], "production_level": "L2", "task_description": "这是任务描述", "workspace_id": "dfa3527b45a24de6a2d0ddbcb8xxxxxx", "shape_id": null, "data_alias": { "JL1_20160112_203_0018_L2": "JL1_20160112_203_0018_L2" }, "coordination": "WGS84", "data_description": { "JL1_20160112_203_0018_L2": null }, "csv_ids": [3cd09e0xbf7949a59c9ec14012a4xxxx], "is_clip": "0", "is_tile": "0" }
  • 响应示例 状态码: 200 请求成功。 { "task_id" : "4d40e927514a40898d23a20155xxxxxx", "workspace_id" : "dfa3527b45a24de6a2d0ddbcb8xxxxxx", "data_id" : "[\"ed9313d537dd4cf7a6a7758f942xxxxx\",\"8dc0d6187b8e4f429c2d20d340xxxxxa\"]", "task_name" : "测试", "domain_id" : "234602bf93714dcba145eaa45xxxxxxx", "creator" : "xxxxx", "create_time" : "2023-02-17T09:27:07Z", "task_status" : "INIT", "task_type" : "ORSIP", "task_description" : "测试", "exec_start_time" : null, "exec_stop_time" : null, "origin_data_alias" : null, "production_level" : "L2", "task_progress" : "0.0", "shape_id" : null, "is_deleted" : 0, "image_url" : null, "frozen_tag" : null, "is_clip" : "0", "is_tile" : "0" }
  • 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 task_id String 任务唯一标识ID。 最小长度:32 最大长度:36 workspace_id String 工作共享空间ID。 data_id String 数据ID。 task_name String 任务名称。 最小长度:2 最大长度:64 creator String 创建者ID。 最小长度:2 最大长度:512 create_time String 创建时间。 task_status String 任务状态。包括INIT(初始化)、RUNNING(运行中)、SUCCESS(执行成功)、ARCHIVED(已归档)、FAILED(执行失败)、STOPPING(停止中)、STOP_SUCCESS(已停止)、STOP_FAILED(停止失败)、START_RUNNING(等待中)。 task_type String 任务类型。 当前仅支持ORSIP(卫星影像生产)。 task_description String 任务描述。 exec_start_time String 开始操作时间。 缺省值:null exec_stop_time String 停止操作时间。 缺省值:null origin_data_alias String 原始数据别名。 production_level String 任务输出结果影像级别,当前支持以下级别: L2、L3、L4、L5。 task_progress String 任务执行进度。 shape_id String 矢量数据文件ID,“isClip”为“1”时必填。 is_deleted Integer 是否删除。 0:未删除 1:已删除 image_url String 影像链接。 domain_id String 租户ID。 fail_message String 任务失败原因。 frozen_tag String 任务冻结状态。当前仅支持frozen(冻结中)。 isClip String 是否为矢量切割。 0:否 1:是 isTile String 是否为金字塔切割。 0:否 1:是 状态码: 400 表4 响应Body参数 参数 参数类型 描述 error_code String 请求状态码。 最小长度:3 最大长度:36 error_msg String 错误描述。 最小长度:2 最大长度:512 状态码: 500 表5 响应Body参数 参数 参数类型 描述 error_code String 请求状态码。 最小长度:3 最大长度:36 error_msg String 错误描述。 最小长度:2 最大长度:512
  • 响应示例 状态码: 200 请求成功。 { "data" : [ { "usage_measure_name" : "时空专属存储", "usage_type" : "DATA", "domain_id" : "abc123c55c3c4526b2ed7a0213bc9xxx", "usage_subtype" : null, "usage_unit_type" : "VOLUME", "capacity" : 0, "usage" : 0, "unit" : "GB", "created_time" : "2022-10-27T13:12:56Z", "update_time" : "2022-10-27T13:12:56Z" } ], "page" : { "offset" : 0, "limit" : 10, "total" : 1 } }
  • 响应参数 状态码: 200 表3 响应Header参数 参数 参数类型 描述 X-request-id String 请求ID,用于运维人员定位请求日志。 表4 响应Body参数 参数 参数类型 描述 data Array of UsageInfo objects 用量信息列表。 page Page object 分页信息。 表5 UsageInfo 参数 参数类型 描述 usage_measure_name String 用量度量名称,通常与KooMap的计费项保持一致。当前支持以下用量度量名称: 时空专属存储 基础处理:色彩增强与粗纠正L2 基础处理:色彩增强与精纠正L3 基础处理:正射纠正L4 基础处理:影像镶嵌L5 最小长度:0 最大长度:50 usage_unit_type String 用量单位类型,表示单条用量单位所对应的类型。 该值为“VOLUME”时表示用量单位是存储量。 该值为“TIME”时表示用量单位是次数。 usage_type String 用量类型。 该值为“DATA”时表示时空专属存储服务对应的用量。 该值为“TASK”时表示处理任务服务对应的用量。 domain_id String 用量所属租户ID,为32位UUID。 最小长度:32 最大长度:32 usage_subtype String 用量子类型,用于区分同一用量类型下的多个子用量,目前usage_type为“TASK”时才需要设置该值。 L2:L2等级生产服务 L3:L3等级生产服务 L4:L4等级生产服务 L5:L5等级生产服务 最小长度:0 最大长度:20 usage Float 租户当前的使用量数值。 capacity Float 租户购买的套餐总量值,按需使用取值为0。 unit String 用量的计量单位。 当用量单位类型为“VOLUME”时,单位为存储量相关的单位,如:GB。 当用量单位类型为“TIME”时,单位为“次”。 created_time String 用量记录的创建时间。格式为UTC标准时间:yyyy-MM-dd'T'HH:mm:ss'Z'。 最小长度:20 最大长度:20 update_time String 用量记录的更新时间。格式为UTC标准时间:yyyy-MM-dd'T'HH:mm:ss'Z'。 最小长度:20 最大长度:20 表6 Page 参数 参数类型 描述 offset Integer 偏移量,表示从第几条数据开始查询。 limit Integer 每页包含的查询记录数量。 total Integer 符合查询条件的记录总数。 状态码: 400 表7 响应Header参数 参数 参数类型 描述 X-request-id String 请求ID,用于运维人员定位请求日志。 表8 响应Body参数 参数 参数类型 描述 error_code String 请求状态码。 最小长度:3 最大长度:36 error_msg String 错误描述。 最小长度:2 最大长度:512 状态码: 500 表9 响应Header参数 参数 参数类型 描述 X-request-id String 请求ID,用于运维人员定位请求日志。 表10 响应Body参数 参数 参数类型 描述 error_code String 请求状态码。 最小长度:3 最大长度:36 error_msg String 错误描述。 最小长度:2 最大长度:512
  • URI GET /v1/kmp-control/usages 表1 Query参数 参数 是否必选 参数类型 描述 usage_type 是 String 查询的用量类型。 DATA:时空专属存储服务占用空间大小。 TASK:成功处理的成果影像数据大小以及成功处理任务次数。 limit 否 Integer 分页大小。 最小值:1 最大值:100 缺省值:10 offset 否 Integer 偏移量,表示从第几条记录开始查询。 最小值:0 最大值:2147483647 缺省值:0
  • 请求示例 navi请求体示例。 POST https://{Endpoint}.com/v1/algo/navi { "payload" : { "from" : { "x" : "xxx", "y" : "xxx", "z" : "xxx" }, "to" : { "x" : "xxx", "y" : "xxx", "z" : "xxx" }, "utm" : "51N" } }
  • 响应参数 状态码: 200 表6 响应Header参数 参数 参数类型 描述 X-Trace-Id String 跟踪请求ID。 表7 响应Body参数 参数 参数类型 描述 result Integer 接口返回状态码。 0:导航成功 1:起始地点无效 2:目标地点无效 3:未连接 6:栅格数据 8:途径地点无效 path Array of path objects 返回的路径信息。 表8 path 参数 参数类型 描述 linkID String 路段ID。 x Float X坐标。 y Float Y坐标。 z Float Z坐标。 floor String 楼层信息。 building String 楼层的描述。 status Integer 路段状态。 0:未经计算 1:直行 2:左转 3:左前方 4:左后方 5:右转 6:右前方 7:右后方 8:直梯 9:终止点 10:扶梯 11:楼梯 12:途经点
  • 请求参数 表1 请求Header参数 参数 是否必选 参数类型 描述 X-Trace-Id 否 String 追踪请求ID。 App-Id 否 String 可选项,场景模板分配的app_id;若无,置空。 Uuid 是 String 设备或者用户唯一标识。 X-Auth-Token 否 String IAM Token,和Authorization二选一必传。 Authorization 否 String AK/SK签名结果,和X-Auth-Token二选一必传。 表2 请求Body参数 参数 是否必选 参数类型 描述 payload 是 payload object 导航服务请求体。 表3 payload 参数 是否必选 参数类型 描述 from 是 from object 起始位置。 to 是 to object 终点位置。 utm 是 String 地区UTM编码。 表4 from 参数 是否必选 参数类型 描述 x 是 String X坐标。 y 是 String Y坐标。 z 是 String Z坐标。 表5 to 参数 是否必选 参数类型 描述 x 是 String X坐标。 y 是 String Y坐标。 z 是 String Z坐标。
  • 响应参数 状态码: 400 表3 响应Header参数 参数 参数类型 描述 X-request-id String 请求ID,用于运维人员定位请求日志。 表4 响应Body参数 参数 参数类型 描述 error_code String 请求状态码。 最小长度:3 最大长度:36 error_msg String 错误描述。 最小长度:2 最大长度:512 状态码: 500 表5 响应Header参数 参数 参数类型 描述 X-request-id String 请求ID,用于运维人员定位请求日志。 表6 响应Body参数 参数 参数类型 描述 error_code String 请求状态码。 最小长度:3 最大长度:36 error_msg String 错误描述。 最小长度:2 最大长度:512
  • 响应参数 状态码: 400 表4 响应Header参数 参数 参数类型 描述 X-request-id String 请求ID,用于运维人员定位请求日志。 表5 响应Body参数 参数 参数类型 描述 error_code String 请求状态码。 最小长度:3 最大长度:36 error_msg String 错误描述。 最小长度:2 最大长度:512 状态码: 500 表6 响应Header参数 参数 参数类型 描述 X-request-id String 请求ID,用于运维人员定位请求日志。 表7 响应Body参数 参数 参数类型 描述 error_code String 请求状态码。 最小长度:3 最大长度:36 error_msg String 错误描述。 最小长度:2 最大长度:512
  • 请求示例 归档任务。 POST https://{Endpoint}/v1/kmp-control/tasks/archive?archived=true { "id" : "0004d71bcb51497f89b5c79254d6xxxx" } 取消归档任务。 POST https://{Endpoint}/v1/kmp-control/tasks/archive?archived=false { "id" : "0004d71bcb51497f89b5c79254d6xxxx" }
  • 响应参数 状态码: 400 表3 响应Header参数 参数 参数类型 描述 X-request-id String 请求ID,用于运维人员定位请求日志。 表4 响应Body参数 参数 参数类型 描述 error_code String 请求状态码。 最小长度:3 最大长度:36 error_msg String 错误描述。 最小长度:2 最大长度:512 状态码: 500 表5 响应Header参数 参数 参数类型 描述 X-request-id String 请求ID,用于运维人员定位请求日志。 表6 响应Body参数 参数 参数类型 描述 error_code String 请求状态码。 最小长度:3 最大长度:36 error_msg String 错误描述。 最小长度:2 最大长度:512
  • 响应参数 状态码: 400 表3 响应Header参数 参数 参数类型 描述 X-request-id String 请求ID,用于运维人员定位请求日志。 表4 响应Body参数 参数 参数类型 描述 error_code String 请求状态码。 最小长度:3 最大长度:36 error_msg String 错误描述。 最小长度:2 最大长度:512 状态码: 500 表5 响应Header参数 参数 参数类型 描述 X-request-id String 请求ID,用于运维人员定位请求日志。 表6 响应Body参数 参数 参数类型 描述 error_code String 请求状态码。 最小长度:3 最大长度:36 error_msg String 错误描述。 最小长度:2 最大长度:512
  • 响应示例 状态码: 200 请求成功。 { "data_info" : [ { "image_name" : "影像名称", "is_product" : "0", "image_level" : "L1A", "image_status" : "完成", "image_date" : "2013-10-09T16:00:00Z", "upload_date" : "2022-11-09T03:02:52Z", "image_resolution" : "16.0", "image_description" : "", "image_id" : "9260ad8d63f84ed1a9269f56162e42a5", "image_type" : "1", "user_name" : "IAM用户名称", "image_alias" : "WFV3", "product_clip" : 1, "product_tile" : 1, "is_cog" : 1 } ] } 状态码: 400 非法请求。 { "error_code" : "400", "error_msg" : "参数不符合规范。" }
  • 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 data_info Array of DataInfo objects 数据信息列表。 page Page object 分页信息。 表4 DataInfo 参数 参数类型 描述 image_name String 卫星影像名称。 支持模糊查询,格式为中英文、数字、下划线、中划线、“.”,长度100个字符以内。 is_product String 卫星影像是否为成果影像。 目前只支持原始影像(0)、成果影像(1)。 枚举值: 0 1 image_level String 卫星影像等级。 目前只支持L1、L1A、L1B、L2、L3、L4、L5。 最小长度:2 最大长度:3 image_status String 卫星影像迁移状态。当前仅支持完成(0)、迁入中(1)、迁入失败(2)、迁出中(3)、迁出失败(4)、删除中(6)、卫星影像正在被任务使用导致删除失败(7)、网络错误导致删除失败(8)。 image_date String 卫星影像成像时间。 格式为UTC标准时间:yyyy-MM-dd'T'HH:mm:ss'Z'。 最小长度:20 最大长度:20 upload_date String 卫星影像上传时间。 格式为UTC标准时间:yyyy-MM-dd'T'HH:mm:ss'Z'。 最小长度:20 最大长度:20 image_resolution String 卫星影像分辨率,精确到小数点后一位。 image_description String 卫星影像描述。 格式为中英文、数字、下划线、中划线,长度255个字符以内。 最小长度:0 最大长度:255 image_id String 卫星影像ID。 格式为英文、数字,长度为32。 最小长度:32 最大长度:32 image_type String 卫星影像类型。当前仅支持全色(0)、多光谱(1)。 枚举值: 0 1 user_name String IAM用户名称。 image_alias String 卫星影像别名。 格式为中英文、数字、下划线、中划线、“.”,长度255个字符以内。 最小长度:0 最大长度:255 product_clip Integer 是否为矢量切割影像。当前仅支持是(1)、否(0)。 枚举值: 0 1 product_tile Integer 是否为金字塔切割影像。当前仅支持是(1)、否(0)。 枚举值: 0 1 is_cog Integer 是否为COG影像。当前仅支持是(1)、否(0)。 枚举值: 0 1 表5 Page 参数 参数类型 描述 offset Integer 偏移量,表示从第几条数据开始查询。 limit Integer 每页包含的查询记录数量。 total Integer 符合查询条件的记录总数。 状态码: 400 表6 响应Body参数 参数 参数类型 描述 error_code String 请求状态码。 最小长度:3 最大长度:36 error_msg String 错误描述。 最小长度:2 最大长度:512 状态码: 500 表7 响应Header参数 参数 参数类型 描述 X-request-id String 请求ID,用于运维人员定位请求日志。 表8 响应Body参数 参数 参数类型 描述 error_code String 请求状态码。 最小长度:3 最大长度:36 error_msg String 错误描述。 最小长度:2 最大长度:512
共100000条