云服务器内容精选

  • 实例同步日志说明 “实例同步状态”统计的是实例同步成功率。当该状态显示“暂无数据”,则表示未同步数据,可能是实体未发布或模型初次同步失败等原因导致。 单击“实例同步状态”链接,弹出实例同步日志窗口。该弹窗展示的是xDM-F实体对应的实例数据入图调度执行情况。 图2 实例同步日志示例 筛选调度日志:在“执行开始时间”选择开始时间和结束时间,单击“搜索”。 查看调度日志执行详情:单击具体日志的“操作”列处的,在弹窗中查看调度执行进展、消息解析详细信息和入图详细信息等。 如果消息解析失败,单击“错误信息”列处的,查看错误详情。
  • 操作步骤 登录管理控制台,进入“对象存储迁移服务”页面。 在左侧导航树,选择“同步任务”。 单击“创建同步任务”。 仔细阅读弹出的隐私协议声明,勾选“同意以上隐私协议”,单击“确定”,进入“创建同步任务”页面。 选择源端/目的端。 1. 选择源端,具体参数说明参见表1。 表1 源端选择参数 参数 说明 数据源 待迁移的源端云服务提供商,包括: 华为云 亚马逊云(中国) 阿里云 微软云 腾讯云 谷歌云 七牛云 青云 百度云 金山云 优刻得 appID 如果源端云服务提供商为腾讯云,则需要输入该参数,appID 是您腾讯云账户的一个标识。 访问密钥 源端云服务提供商的访问密钥(AK)。最大长度是100个字符。 私有访问密钥 源端云服务提供商的私有访问密钥(SK),与AK相匹配。最大长度是100个字符。 是否指定桶名 当您不具备列举桶权限,但具有列举桶中对象、获取对象元数据和获取对象权限时可以开启此参数,通过指定源端桶的路径来进行迁移。 设置说明参见表2。 表2 “是否指定桶名”的设置说明 如果... 那么... 开启“是否指定桶名” 在“选择区域”下拉框中选择源端桶所在区域。 在“桶名或路径”文本框中输入源端桶名或带桶名的路径。 单击“连接源端桶”。 对象存储迁移服务将检查源端信息填写是否正确。如果填写正确,会提示连接桶成功。 关闭“是否指定桶名”(默认设置) 单击“列举源端桶”。 对象存储迁移服务将检查源端信息填写是否正确。如果填写正确,且您的账号具有列举桶名的权限,则会在“桶名”中列举您名下的所有桶。 在“桶名”中选择待迁移数据所在的桶。 2. 选择目的端,具体参数参见表3。 表3 目的端选择参数 参数 说明 访问密钥 华为云的访问密钥(AK)。最大长度是100个字符。 私有访问密钥 华为云的私有访问密钥(SK),与AK相匹配。最大长度是100个字符。 输入访问密钥和私有访问密钥后,请单击“连接目的端桶”。 桶名 存放迁移数据的华为云OBS桶。 单击“下一步”,设置任务参数。具体选项参见表4。 表4 任务参数 参数 说明 元数据迁移方式 忽略元数据:OMS只迁移源端ContentType元数据。 保留元数据:OMS会迁移支持范围内的元数据。 服务端加密 如果勾选“KMS”,所有数据在迁移到OBS服务后都将被加密存储。 说明: 使用KMS服务端加密可能会降低迁移速率10%左右。 当前区域支持KMS加密时,此参数才可用。 解冻归档数据 归档类型的对象存储要实现迁移,必须预先解冻。当您的源端云服务提供商支持自动解冻归档类型数据时,可以勾选此选项。 勾选:如果遇到归档类型对象,则自动解冻该对象并进行迁移。如果解冻失败,则判定该对象迁移失败并跳过,继续迁移其余对象。 注意: 目前支持以下云服务提供商的归档数据的自动解冻:华为云、阿里云、金山云、腾讯云。 在数据迁移时,系统会对所有数据发起取回操作,源端云服务商会收取相应的API调用费用和存储费用。 默认取回时间为3天,当迁移对象数超过300 w或容量大小超过3 TB时,为避免迁移时间过长,数据再次归档后导致迁移失败,请选择迁移任务组方式迁移。 在迁移任务开始后,暂停/重启操作会导致所有取回重新执行,造成解冻周期延长、存储费用增加,请谨慎操作。 对象存储数据从源端云服务提供商迁移到华为云后,存储类型和目的端桶的存储类型保持一致,与源端对象存储类型无关。 不勾选:如果遇到归档类型对象,则直接判定该对象迁移失败并跳过,继续迁移其余对象。 说明: 目前支持以下云服务提供商的归档数据的自动解冻:华为云、阿里云、金山云、腾讯云。 解冻预计耗时1分钟及以上,对象越大解冻耗时越长,超过3分钟默认解冻失败。各云服务提供商的解冻耗时可能存在差异,具体请参考各云服务提供商的相关文档。 解冻归档数据的过程中会产生两种费用,一是API调用费用,二是归档数据取回费用,这些均由源端云服务提供商向您收取。 归档数据的解冻状态会持续一段时间,在此时间内支持对象的下载/访问,超过此时间后需要重新解冻。解冻状态持续时间请参考各云服务提供商的相关文档。 对象存储数据从源端云服务提供商迁移到华为云后,存储类型和目的端桶的存储类型保持一致,与源端对象存储类型无关。 一致性校验 默认按照大小/最后修改时间策略进行校验。 单击“下一步”,进入确认信息页面。 确认同步任务信息的设置,并启动同步。 1. 浏览各项同步任务参数的设置是否正确。 如果有误,可以单击“上一步”返回之前的页面进行修改。 2. 单击“启动同步”。 提示任务提交成功。返回任务列表查看该同步任务。 关于状态说明,参见表5 同步任务状态。 表5 同步任务状态 状态 说明 同步中 表明源端对象存储服务的数据正在进行同步。 说明: 创建同步任务后,该任务状态显示为同步中,仅代表可以接受源端发送的同步请求并进行同步,需要您前往源端完成同步请求的配置,详情请参见源端配置同步请求。通过源端配置,使得源端新增/修改对象能够发送同步请求。配置完成后,您的数据将开始进行同步迁移。 已停止 表明停止对源端对象存储服务数据的同步。 说明: 如要停止对源端对象存储服务数据的同步,请先在源端执行暂停操作,建议等待十五分钟后,然后在同步任务页面单击“停止”。否则由于时间差可能会造成部分已接收到的同步请求对象同步失败。 操作同步任务。 1. 启动同步任务。 状态为“已停止”的同步任务,才可执行同步任务的重新启动。 停止后再次启动同步任务,出于安全考虑,系统不保存个人数据,需要重新输入源端,目的端访问密钥以及私有访问密钥,完成身份验证。 2. 停止同步任务。 状态为“同步中”的同步任务,才可执行同步任务的停止。 如要停止对源端对象存储服务数据的同步,请先在源端执行暂停操作,建议等待十五分钟后,然后在同步任务页面单击“停止”。否则由于时间差可能会造成部分已接收到的同步请求对象同步失败。 3. 删除同步任务。 状态为“已停止”的同步任务,才可执行同步任务的删除。
  • 前提条件 已注册华为账号并开通华为云,完成实名认证。 已获取源端和目的端账号的AK/SK。 源端桶对应账户需要的权限包括:列举桶,获取桶位置,列举对象,获取对象元数据,获取对象内容。获取方式参见源端桶权限获取。 目的端桶需要的权限包括:列举桶,获取桶位置,列举对象,获取对象元数据,获取对象内容,上传对象,列举已上传段,取回归档存储对象。获取方式参见目的端桶权限获取。 已在华为云OBS服务中创建桶。 您过去24小时内已创建的迁移任务未满1000000个。 您名下处于“等待中”状态的迁移任务未满1000000个。 您名下处于“同步中”状态的同步任务未满5个。
  • 源端同步请求配置方式 基于源端云服务提供商的对象存储服务和函数工作流服务:通过配置源端云服务提供商的对象存储服务和函数工作流服务来触发新增、修改对象的同步请求。 客户需要在源端云服务提供商的函数工作流服务中,创建OMS数据同步函数,然后在对象存储服务中设置基于函数工作流服务的事件通知,从而完成源端对象存储服务,函数工作流服务以及OMS服务之间的数据链调用配置。 当源端对象发生新增、修改时,源端对象存储服务会主动调用函数工作流服务中配置的OMS数据同步函数,从而完成源端对象同步迁移。 基于客户自建业务系统:通过客户自建业务系统触发新增、修改对象的同步请求。 当源端对象发生新增,修改时,客户自建业务系统通过接收源端对象存储服务的消息通知或解析业务系统数据库变化来主动捕获对象信息,然后调用OMS服务的同步接口,从而完成源端同步迁移。
  • URI GET /v2/{project_id}/sync-tasks/{sync_task_id} 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String 项目ID 最小长度:1 最大长度:1024 sync_task_id 是 String 同步任务ID。 最小长度:0 最大长度:255 表2 Query参数 参数 是否必选 参数类型 描述 query_time 是 String 查询同步任务详情的时间(毫秒),依据该值返回所在月份的统计数据。 最小长度:1 最大长度:1024
  • 响应示例 状态码: 200 OK { "sync_task_id" : "d18befdd-eb82-41f3-8019-bbb593d74a3e", "src_cloud_type" : "HuaweiCloud", "src_region" : "cn-north-7", "src_bucket" : "oms-sdk-test-src", "create_time" : 1700639560751, "last_start_time" : 1700639560751, "dst_bucket" : "oms-sdk-test-dst", "dst_region" : "cn-north-7", "description" : "sync task test", "status" : "SYNCHRONIZING", "enable_kms" : false, "enable_metadata_migration" : false, "enable_restore" : false, "app_id" : null, "monthly_acceptance_request" : 11, "monthly_success_object" : 0, "monthly_failure_object" : 11, "monthly_skip_object" : 0, "monthly_size" : 0, "object_overwrite_mode" : "SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE", "dst_storage_policy" : null, "consistency_check" : "size_last_modified" }
  • 请求示例 创建阿里云北京api-auto-test1桶到华为云北京4的oms-sonar-north桶的同步任务 POST https://v2/{project_id}/sync-tasks { "src_cloud_type" : "Aliyun", "src_region" : "cn-beijing", "src_bucket" : "api-auto-test1", "src_ak" : "src_ak", "src_sk" : "src_sk", "dst_ak" : "dst_ak", "dst_sk" : "dst_sk", "dst_region" : "cn-north-4", "dst_bucket" : "oms-sonar-north", "description" : "XXXX", "enable_kms" : false, "enable_restore" : false, "enable_metadata_migration" : false }
  • 请求示例 对子任务31e9b7e6-6ffb-452f-9842-6ce354d99d75创建同步事件,对 [ "test%2F001.txt", "test%2F002.txt" ] 进行同步 /v2/f697f813-554a-4f05-bac8-82a183b20878/sync-tasks/31e9b7e6-6ffb-452f-9842-6ce354d99d75/events { "object_keys" : [ "test%2F001.txt", "test%2F002.txt" ] } 对子任务31e9b7e6-6ffb-452f-9842-6ce354d99d75创建同步事件,对 [ "test%2B001.txt"] 进行同步 /v2/f697f813-554a-4f05-bac8-82a183b20878/sync-tasks/31e9b7e6-6ffb-452f-9842-6ce354d99d75/events { "object_keys" : [ "test%2B001.txt" ] } 对子任务31e9b7e6-6ffb-452f-9842-6ce354d99d75创建同步事件,对 [ "test+001.txt" ] 进行同步 /v2/f697f813-554a-4f05-bac8-82a183b20878/sync-tasks/31e9b7e6-6ffb-452f-9842-6ce354d99d75/events { "object_keys" : [ "test+001.txt" ] }
  • 响应参数 状态码: 400 表4 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 error_code String 错误码。 状态码: 404 表5 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 error_code String 错误码。 状态码: 503 表6 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 error_code String 错误码。
  • 请求参数 表2 请求Header参数 参数 是否必选 参数类型 描述 X-Auth-Token 是 String API认证鉴权的Token认证方式。推荐使用Authorization签名认证方式,具体请参考API认证鉴权 最小长度:1 最大长度:16384 表3 请求Body参数 参数 是否必选 参数类型 描述 object_keys 是 Array of strings 待同步对象的列表,其中待同步对象最大数量为10,列表中object_key为URL编码处理后的结果 最小长度:1 最大长度:16384 数组长度:1 - 100
  • 请求示例 查询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:请求对象数 SUCCESS:成功对象数 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