云服务器内容精选

  • 响应参数 表6 响应参数说明 参数 类型 说明 errorMessage String 系统提示信息,执行成功时,字段可能为空。执行失败时,用于显示错误信息。 errorCode String 系统提示信息,执行成功时,字段可能为空。执行失败时,用于显示错误码。 jobId String 查询边任务ID。 说明: 可以查询jobId查看任务执行状态、获取返回结果,详情参考Job管理API。 jobType String 执行该异步任务的jobType。
  • 请求样例 观察某些节点群体结构的动态演化过程,算法名称为temporal_graph,动态分析的开始时间为${startTime},结束时间为${endTime}。 POST http://{SERVER_URL}/ges/v1.0/{project_id}/graphs/{graph_name}/dynamicgraphs/action?action_id=execute-analysis { "algorithmName":"temporal_graph", "dynamicRange":{ "start":"${startTime}", "end":"${endTime}", "time_props":{"stime":"${property(start_time)}","etime":"${property(start_time)}"} }, "parameters":{ "sources":[], "temporal_vertex":false } }
  • 响应参数 表6 响应参数说明 参数 是否必选 类型 说明 errorMessage 否 String 系统提示信息,执行成功时,字段可能为空。执行失败时,用于显示错误信息。 errorCode 否 String 系统提示信息,执行成功时,字段可能为空。执行失败时,用于显示错误码。 jobId 否 String 执行算法任务ID。请求失败时,字段为空。 说明: 可以查询jobId查看任务执行状态、获取返回结果,详情参考Job管理API。 jobType 否 Integer 任务类型。请求失败时,字段为空。
  • 请求示例 指定起始节点id搜索周围与之相关联的点,算法名称为temporal_paths,动态分析的开始时间为1646092800,结束时间为1646170716,起点id为Person00014。 POST http://{SERVER_URL}/ges/v1.0/{project_id}/graphs/{graph_name}/dynamicgraphs/action?action_id=execute-analysis { "algorithmName":"temporal_paths", "dynamicRange":{ "start":1646092800, "end":1646170716, "time_props": {"stime":"startTime","etime":"endtime"} }, "parameters":{ "source":" Person00014", "targets":"Person00055,Person00058,Person00052,Person00061,Person00060,Place00032,Place00016,Place00026,Place00015,Place00043", "strategy":"shortest", "directed":true } }
  • 请求参数 表2 Body参数说明 参数 是否必选 类型 说明 algorithmName 是 String 算法名字。 parameters 是 parameters Object 算法参数。详情请参考各算法参数描述。 dynamicRange 是 dynamicRange Object 动态分析时间参数。 表3 parameters 参数 是否必选 类型 说明 source 是 String 起点id。 targets 是 String 终点id集合。csv格式,ID之间以英文逗号分隔,例如:“Alice,Nana”。个数不大于100000,默认值为1000。 directed 否 Boolean 是否考虑边的方向,取值为true 或false,默认值为false。 k 否 Integer 最大深度,取值范围在1-100,包括1和100,默认值为3。 strategy 否 String 运行的算法策略。取值为:shortest,foremost,fastest。 (注:fastest暂不支持) 默认值为shortest。 shortest:运行shortest temporal paths算法,返回距离最短的时序路径 foremost:运行foremost temporal paths算法,返回尽可能早的到达目标节点的时序路径 fastest:运行fastest temporal paths算法,返回耗费时间最短的时序路径 表4 dynamicRange 参数 是否必选 类型 说明 start 是 Date/ Integer 动态分析起始时间。 end 是 Date/ Integer 动态分析终止时间 。 time_props 是 time_props Object 动态分析的时间属性定义。 表5 time_props 参数 是否必选 类型 说明 stime 是 String 开始时间属性名称。 etime 是 String 结束时间属性名称 。