Download OpenAPI specification:
| kn_id required | string 业务知识网络ID |
| ot_id required | string 对象类ID |
| branch | string Default: "main" 分支,默认 main |
| include_type_info | boolean 是否包含对象类信息, 默认false,不包含 |
| include_logic_params | boolean 包含逻辑属性的计算参数,默认false,返回结果不包含逻辑属性的字段和值 |
| exclude_system_properties | Array of strings Items Enum: "_instance_id" "_instance_identity" "_display" 需要排除的系统字段列表。可选值:_instance_id(实例ID)、_instance_identity(实例唯一标识)、_display(显示值)。如果指定了某个字段,则在返回的对象数据中不包含该字段。可以传递多个值,例如:?exclude_system_properties=_instance_id&exclude_system_properties=_display |
| ignoring_store_cache | boolean 是否忽略索引查询,默认false,不忽略,即走索引查询 |
| X-HTTP-Method-Override required | string Value: "GET" 重载 post,实际上是 get 方法 |
condition_and (object) or condition_or (object) or condition_eq (object) or condition_not_eq (object) or condition_gt (object) or condition_gte (object) or condition_lt (object) or condition_lte (object) or condition_in (object) or condition_not_in (object) or condition_like (object) or condition_not_like (object) or condition_range (object) or condition_out_range (object) or condition_exist (object) or condition_not_exist (object) or condition_regex (object) or condition_match (object) or condition_match_phrase (object) or condition_knn (object) or condition_multi_match (object) (Condition) | |
Array of objects (Sort) 排序字段,默认使用 _score 倒序,主键字段正序 | |
| limit required | integer 返回的数量,默认值 10。范围 1-10000 |
| need_total | boolean 是否需要总数,默认false |
| properties | Array of strings 指定需要输出的属性集。默认为全部数据属性 |
{- "condition": {
- "operation": "and",
- "sub_conditions": [
- {
- "field": "pod_namespace",
- "operation": "==",
- "value": "anyshare",
- "value_from": "const"
}, - {
- "field": "pod_status",
- "operation": "==",
- "value": "Running",
- "value_from": "const"
}
]
}, - "need_total": true,
- "limit": 10
}{- "object_type": {
- "id": "pod_has_metric_and_tool",
- "name": "pod_has_metric_and_tool",
- "tags": [ ],
- "comment": "",
- "icon": "icon-dip-suanziguanli",
- "color": "#0e5fc5",
- "branch": "main",
- "detail": "",
- "kn_id": "topologytest",
- "data_source": {
- "type": "resource",
- "id": "d3riul5r3eoemkcu9sn0"
}, - "data_properties": [
- {
- "name": "component",
- "display_name": "component",
- "type": "varchar",
- "comment": "",
- "mapped_field": {
- "name": "component",
- "type": "varchar",
- "display_name": "component"
}, - "fulltext_config": {
- "analyzer": "",
- "field_keyword": false
}, - "vector_config": {
- "dimension": 0
}
}, - {
- "name": "id",
- "display_name": "id",
- "type": "int",
- "comment": "",
- "mapped_field": {
- "name": "id",
- "type": "int",
- "display_name": "id"
}, - "fulltext_config": {
- "analyzer": "",
- "field_keyword": false
}, - "vector_config": {
- "dimension": 0
}
}, - {
- "name": "node_id",
- "display_name": "node_id",
- "type": "varchar",
- "comment": "",
- "mapped_field": {
- "name": "node_id",
- "type": "varchar",
- "display_name": "node_id"
}, - "fulltext_config": {
- "analyzer": "",
- "field_keyword": false
}, - "vector_config": {
- "dimension": 0
}
}, - {
- "name": "pod_cluster_id",
- "display_name": "pod_cluster_id",
- "type": "varchar",
- "comment": "",
- "mapped_field": {
- "name": "pod_cluster_id",
- "type": "varchar",
- "display_name": "pod_cluster_id"
}, - "fulltext_config": {
- "analyzer": "",
- "field_keyword": false
}, - "vector_config": {
- "dimension": 0
}
}, - {
- "name": "pod_create_time",
- "display_name": "pod_create_time",
- "type": "varchar",
- "comment": "",
- "mapped_field": {
- "name": "pod_create_time",
- "type": "varchar",
- "display_name": "pod_create_time"
}, - "fulltext_config": {
- "analyzer": "",
- "field_keyword": false
}, - "vector_config": {
- "dimension": 0
}
}, - {
- "name": "pod_delete_time",
- "display_name": "pod_delete_time",
- "type": "varchar",
- "comment": "",
- "mapped_field": {
- "name": "pod_delete_time",
- "type": "varchar",
- "display_name": "pod_delete_time"
}, - "fulltext_config": {
- "analyzer": "",
- "field_keyword": false
}, - "vector_config": {
- "dimension": 0
}
}, - {
- "name": "pod_ip",
- "display_name": "pod_ip",
- "type": "varchar",
- "comment": "",
- "mapped_field": {
- "name": "pod_ip",
- "type": "varchar",
- "display_name": "pod_ip"
}, - "fulltext_config": {
- "analyzer": "",
- "field_keyword": false
}, - "vector_config": {
- "dimension": 0
}
}, - {
- "name": "pod_name",
- "display_name": "pod_name",
- "type": "varchar",
- "comment": "",
- "mapped_field": {
- "name": "pod_name",
- "type": "varchar",
- "display_name": "pod_name"
}, - "fulltext_config": {
- "analyzer": "",
- "field_keyword": false
}, - "vector_config": {
- "dimension": 0
}
}, - {
- "name": "pod_namespace",
- "display_name": "pod_namespace",
- "type": "varchar",
- "comment": "",
- "mapped_field": {
- "name": "pod_namespace",
- "type": "varchar",
- "display_name": "pod_namespace"
}, - "fulltext_config": {
- "analyzer": "",
- "field_keyword": false
}, - "vector_config": {
- "dimension": 0
}
}, - {
- "name": "pod_node_name",
- "display_name": "pod_node_name",
- "type": "varchar",
- "comment": "",
- "mapped_field": {
- "name": "pod_node_name",
- "type": "varchar",
- "display_name": "pod_node_name"
}, - "fulltext_config": {
- "analyzer": "",
- "field_keyword": false
}, - "vector_config": {
- "dimension": 0
}
}, - {
- "name": "pod_port",
- "display_name": "pod_port",
- "type": "varchar",
- "comment": "",
- "mapped_field": {
- "name": "pod_port",
- "type": "varchar",
- "display_name": "pod_port"
}, - "fulltext_config": {
- "analyzer": "",
- "field_keyword": false
}, - "vector_config": {
- "dimension": 0
}
}, - {
- "name": "pod_status",
- "display_name": "pod_status",
- "type": "varchar",
- "comment": "",
- "mapped_field": {
- "name": "pod_status",
- "type": "varchar",
- "display_name": "pod_status"
}, - "fulltext_config": {
- "analyzer": "",
- "field_keyword": false
}, - "vector_config": {
- "dimension": 0
}
}, - {
- "name": "s_create_time",
- "display_name": "s_create_time",
- "type": "timestamp",
- "comment": "",
- "mapped_field": {
- "name": "s_create_time",
- "type": "timestamp",
- "display_name": "s_create_time"
}, - "fulltext_config": {
- "analyzer": "",
- "field_keyword": false
}, - "vector_config": {
- "dimension": 0
}
}, - {
- "name": "s_update_time",
- "display_name": "s_update_time",
- "type": "timestamp",
- "comment": "",
- "mapped_field": {
- "name": "s_update_time",
- "type": "timestamp",
- "display_name": "s_update_time"
}, - "fulltext_config": {
- "analyzer": "",
- "field_keyword": false
}, - "vector_config": {
- "dimension": 0
}
}, - {
- "name": "service_ip",
- "display_name": "service_ip",
- "type": "varchar",
- "comment": "",
- "mapped_field": {
- "name": "service_ip",
- "type": "varchar",
- "display_name": "service_ip"
}, - "fulltext_config": {
- "analyzer": "",
- "field_keyword": false
}, - "vector_config": {
- "dimension": 0
}
}, - {
- "name": "service_name",
- "display_name": "service_name",
- "type": "varchar",
- "comment": "",
- "mapped_field": {
- "name": "service_name",
- "type": "varchar",
- "display_name": "service_name"
}, - "fulltext_config": {
- "analyzer": "",
- "field_keyword": false
}, - "vector_config": {
- "dimension": 0
}
}, - {
- "name": "timestamp",
- "display_name": "timestamp",
- "type": "timestamp",
- "comment": "",
- "mapped_field": {
- "name": "timestamp",
- "type": "timestamp",
- "display_name": "timestamp"
}, - "fulltext_config": {
- "analyzer": "",
- "field_keyword": false
}, - "vector_config": {
- "dimension": 0
}
}
], - "logic_properties": [
- {
- "name": "tool_test",
- "display_name": "tool_test",
- "type": "tool",
- "comment": "pod的算子",
- "index": false,
- "data_source": {
- "type": "tool",
- "id": "657a114e-2061-4314-8853-f84afecc5113"
}, - "parameters": [
- {
- "name": "Authorization",
- "value_from": "input"
}, - {
- "name": "string",
- "value_from": "property",
- "value": "pod_ip"
}
]
}, - {
- "name": "metric_test",
- "display_name": "metric_test",
- "type": "metric",
- "comment": "pod的指标",
- "index": false,
- "data_source": {
- "type": "metric",
- "id": "pod_metric"
}, - "parameters": [
- {
- "name": "pod_ip",
- "value_from": "property",
- "value": "pod_ip"
}, - {
- "name": "pod_name",
- "value_from": "property",
- "value": "pod_name"
}, - {
- "name": "instant",
- "value_from": "input"
}, - {
- "name": "start",
- "value_from": "input"
}, - {
- "name": "end",
- "value_from": "input"
}, - {
- "name": "step",
- "value_from": "input"
}
]
}, - {
- "name": "a_action",
- "display_name": "_action",
- "type": "varchar",
- "comment": "",
- "index": false,
- "data_source": {
- "type": "",
- "id": ""
}
}
], - "primary_keys": [ ],
- "display_key": "",
- "creator": "d5cf219c-a7fd-11f0-9094-f63c61a25eef",
- "create_time": 1761717480956,
- "updater": "e584a6d8-b550-11f0-a6f7-f63c61a25eef",
- "update_time": 1761882424382,
- "IfNameModify": false,
- "module_type": "object_type"
}, - "datas": [
- {
- "pod_cluster_id": "",
- "timestamp": "2025-06-20 11:15:53.000",
- "pod_port": "9998",
- "s_update_time": "2025-08-26 11:21:01.000",
- "service_ip": "",
- "service_name": "aladdin-tika-deploy",
- "s_create_time": "2025-06-20 11:15:53.000",
- "pod_node_name": "node-111-175",
- "pod_create_time": "1750389421667",
- "tool_test": {
- "property_type": "tool",
- "mapping_source_id": "657a114e-2061-4314-8853-f84afecc5113",
- "has_any_unfilled_params": false,
- "parameters": {
- "string": "192.169.37.17"
}, - "dynamic_params": { }
}, - "metric_test": {
- "property_type": "metric",
- "mapping_source_id": "pod_metric",
- "has_any_unfilled_params": false,
- "parameters": {
- "filters": [
- {
- "name": "pod_ip",
- "operation": "",
- "value": "192.169.37.17"
}, - {
- "name": "pod_name",
- "operation": "",
- "value": "aladdin-tika-deploy-6564c49fbb-2nb9k"
}
]
}, - "dynamic_params": { }
}, - "id": 1471,
- "pod_delete_time": "",
- "pod_name": "aladdin-tika-deploy-6564c49fbb-2nb9k",
- "pod_namespace": "anyshare",
- "pod_ip": "192.169.37.17",
- "pod_status": "Running",
- "component": "aladdin-tika-2.7.0"
}
], - "total_count": 1,
- "search_after": [
- "20251103_070016_00004_5pjz5",
- "x6f100cb5d44b4bb19facd4036759b509",
- "1"
]
}| kn_id required | string 业务知识网络id |
| at_id required | string 行动类id |
| branch | string Default: "main" 分支名称,默认 main |
| include_type_info | boolean Default: false 是否包含行动类信息( |
| exclude_system_properties | Array of strings Items Enum: "_instance_id" "_instance_identity" "_display" 需要排除的系统字段列表。可选值:_instance_id(实例ID)、_instance_identity(实例唯一标识)、_display(显示值)。如果指定了某个字段,则在返回的对象数据中不包含该字段。可以传递多个值,例如:?exclude_system_properties=_instance_id&exclude_system_properties=_display |
| x-http-method-override required | string Value: "GET" 必须为 |
Array of objects (InstanceIdentity) 目标对象主键列表。每项为主键字段名到值的映射。可为空数组或省略,表示由服务端依据行动类绑定与条件拉取候选实例。 | |
object 行动类「动态输入」参数取值(与行动类 parameters 中 value_from=input 的 name 对应,支持点分路径表示嵌套键)。 当行动类定义了此类参数且要求客户端提供时须传入对应非 null 取值,否则可能在业务层返回 400(例如 OntologyQuery.ActionType.InvalidParameter.DynamicParams)。 |
{- "_instance_identities": [
- {
- "c_commentid": "32485"
}, - {
- "c_commentid": "32696"
}
], - "dynamic_params": {
- "Authorization": "Bearer xxx"
}
}{- "action_type": {
- "id": "comment_update",
- "name": "comment_update",
- "action_type": "modify",
- "object_type_id": "comment",
- "condition": {
- "object_type_id": "comment",
- "field": "c_browserused",
- "operation": "==",
- "value_from": "const",
- "value": "Firefox"
}, - "action_source": {
- "type": "tool",
- "box_id": "939bb1db-9239-43f5-8100-ba03eed683db",
- "tool_id": "13d6a740-2d04-4834-8b09-ed047cd2391f"
}, - "parameters": [
- {
- "name": "props.data_source",
- "type": "object",
- "source": "Body",
- "value_from": "property",
- "value": "c_commentid"
}, - {
- "name": "props.headers",
- "type": "object",
- "source": "Body",
- "value_from": "input"
}, - {
- "name": "query",
- "type": "string",
- "source": "Body",
- "value_from": "const",
- "value": "asasddd"
}
], - "schedule": {
- "type": "",
- "expression": ""
}
}, - "action_source": {
- "type": "tool",
- "box_id": "939bb1db-9239-43f5-8100-ba03eed683db",
- "tool_id": "13d6a740-2d04-4834-8b09-ed047cd2391f"
}, - "actions": [
- {
- "parameters": {
- "props": {
- "data_source": 32485
}, - "query": "asasddd"
}, - "dynamic_params": {
- "props": { }
}
}
], - "total_count": 1,
- "overall_ms": 1163
}子图查询,可以是基于起点、方向和路径长度获取对象子图,有可以是基于路径获取对象子图,查询请求方式和返回体不同
| kn_id required | string 业务知识网络ID |
| branch | string 分支名称,默认 main(与实现 DefaultQuery branch 一致) |
| include_logic_params | boolean 包含逻辑属性的计算参数,默认false,返回结果不包含逻辑属性的字段和值 |
| exclude_system_properties | Array of strings Items Enum: "_instance_id" "_instance_identity" "_display" 需要排除的系统字段列表。可选值:_instance_id(实例ID)、_instance_identity(实例唯一标识)、_display(显示值)。如果指定了某个字段,则在返回的对象数据中不包含该字段。可以传递多个值,例如:?exclude_system_properties=_instance_id&exclude_system_properties=_display |
| query_type | string Enum: "" "relation_path" 查询类型,默认是子图探索,即基于起点、方向和路径长度获取对象子图;若是relation_path,则表示基于路径获取对象子图 |
| ignoring_store_cache | boolean 是否忽略索引查询,默认false,不忽略,即走索引查询 |
| x-http-method-override required | string Value: "GET" 重载 POST,须为 GET(与对象实例查询等接口一致,实现中强制校验) |
子图查询请求体
| concept_groups | Array of strings 概念分组id数组 |
| source_object_type_id required | string 起点对象类id |
condition_and (object) or condition_or (object) or condition_eq (object) or condition_not_eq (object) or condition_gt (object) or condition_gte (object) or condition_lt (object) or condition_lte (object) or condition_in (object) or condition_not_in (object) or condition_like (object) or condition_not_like (object) or condition_range (object) or condition_out_range (object) or condition_exist (object) or condition_not_exist (object) or condition_regex (object) or condition_match (object) or condition_match_phrase (object) or condition_knn (object) or condition_multi_match (object) (Condition) | |
| direction required | string Enum: "forward" "backward" "bidirectional" 探索子图的路径方向 |
| path_length required | integer 探索子图的路径的最大长度 |
| include_incomplete_path | boolean Default: false 是否包含不完整的路径。默认是false,不包含,只返回完整的路径 |
Array of objects (Sort) 对起点类的排序字段 | |
| limit | integer 对起点类的对象数量的限制。默认是10 |
| need_total | boolean 是否需要(起点类)总数,默认false。 |
| search_after | Array of any 上次查询返回的最后一个起点类对象的排序值。只对起点类生效。第一次查询不传此字段 |
{- "source_object_type_id": "comment",
- "direction": "forward",
- "path_length": 2,
- "need_total": true,
- "limit": 2
}{- "objects": {
- "person-870": {
- "id": "person-870",
- "_instance_identities": {
- "p_personid": 870
}, - "object_type_id": "person",
- "object_type_name": "person",
- "display": "male",
- "properties": {
- "p_creationdate": "2010-02-22 00:14:54.000",
- "p_locationip": "91.216.206.97",
- "p_browserused": "Firefox",
- "p_personid": 870,
- "p_firstname": "Dionysis",
- "p_lastname": "Karvelas",
- "p_gender": "male",
- "p_birthday": "1987-05-23"
}
}, - "place-78": {
- "id": "place-78",
- "_instance_identities": {
- "p_placeid": 78
}, - "object_type_id": "place",
- "object_type_name": "place",
- "display": "Greece",
- "properties": {
- "p_placeid": 78,
- "p_name": "Greece",
- "p_type": "country"
}
}, - "post-4.81036361318e+11": {
- "id": "post-4.81036361318e+11",
- "_instance_identities": {
- "ps_postid": 481036361318
}, - "object_type_id": "post",
- "object_type_name": "post",
- "display": "",
- "properties": {
- "ps_creationdate": "2011-04-27 04:12:24.000",
- "ps_locationip": "31.216.154.26",
- "ps_browserused": "Chrome",
- "ps_language": "",
- "ps_content": "",
- "ps_length": 0,
- "ps_postid": 481036361318,
- "ps_imagefile": "photo481036361318.jpg"
}
}, - "post-4.12316884425e+11": {
- "id": "post-4.12316884425e+11",
- "_instance_identities": {
- "ps_postid": 412316884425
}, - "object_type_id": "post",
- "object_type_name": "post",
- "display": "",
- "properties": {
- "ps_content": "",
- "ps_length": 0,
- "ps_postid": 412316884425,
- "ps_imagefile": "photo412316884425.jpg",
- "ps_creationdate": "2011-03-05 14:51:46.000",
- "ps_locationip": "31.216.154.26",
- "ps_browserused": "Chrome",
- "ps_language": ""
}
}, - "comment-2.06158448803e+11": {
- "id": "comment-2.06158448803e+11",
- "_instance_identities": {
- "c_commentid": 206158448803
}, - "object_type_id": "comment",
- "object_type_name": "comment",
- "display": "About Titian, stic manner cAbout Leona Lewis, tively. A mulAbout Walt Disney, fornia, constAbout Sarah Palin, i",
- "properties": {
- "c_commentid": 206158448803,
- "c_creationdate": "2010-07-24 00:04:01.000",
- "c_locationip": "186.169.83.109",
- "c_browserused": "Firefox",
- "c_content": "About Titian, stic manner cAbout Leona Lewis, tively. A mulAbout Walt Disney, fornia, constAbout Sarah Palin, i",
- "c_length": 111
}
}, - "comment-7.55914262659e+11": {
- "id": "comment-7.55914262659e+11",
- "_instance_identities": {
- "c_commentid": 755914262659
}, - "object_type_id": "comment",
- "object_type_name": "comment",
- "display": "Original of the Species is a song by rock band U2 and the tenth track from their 2004 album, How to Dismantle an Atomic Bomb.About Original of the Spec",
- "properties": {
- "c_length": 151,
- "c_commentid": 755914262659,
- "c_creationdate": "2011-12-12 12:04:24.000",
- "c_locationip": "186.169.83.109",
- "c_browserused": "Firefox",
- "c_content": "Original of the Species is a song by rock band U2 and the tenth track from their 2004 album, How to Dismantle an Atomic Bomb.About Original of the Spec"
}
}, - "comment-1.030792168521e+12": {
- "id": "comment-1.030792168521e+12",
- "_instance_identities": {
- "c_commentid": 1030792168521
}, - "object_type_id": "comment",
- "object_type_name": "comment",
- "display": "About Polish–Lithuanian Commonwealth, 1573; however, the degree of religious freedom var",
- "properties": {
- "c_commentid": 1030792168521,
- "c_creationdate": "2012-08-02 04:19:17.000",
- "c_locationip": "213.55.122.73",
- "c_browserused": "Firefox",
- "c_content": "About Polish–Lithuanian Commonwealth, 1573; however, the degree of religious freedom var",
- "c_length": 88
}
}, - "comment-32485": {
- "id": "comment-32485",
- "_instance_identities": {
- "c_commentid": 32485
}, - "object_type_id": "comment",
- "object_type_name": "comment",
- "display": "great",
- "properties": {
- "c_locationip": "62.217.119.183",
- "c_browserused": "Firefox",
- "c_content": "great",
- "c_length": 5,
- "c_commentid": 32485,
- "c_creationdate": "2010-01-23 06:20:25.000"
}
}, - "post-32484": {
- "id": "post-32484",
- "_instance_identities": {
- "ps_postid": 32484
}, - "object_type_id": "post",
- "object_type_name": "post",
- "display": "About Augustine of Hippo, also considered a saint, his feast day being celebrated on 15 June.. He carries the additional",
- "properties": {
- "ps_imagefile": "",
- "ps_creationdate": "2010-01-23 06:20:15.000",
- "ps_locationip": "1.4.5.106",
- "ps_browserused": "Firefox",
- "ps_language": "uz",
- "ps_content": "About Augustine of Hippo, also considered a saint, his feast day being celebrated on 15 June.. He carries the additional",
- "ps_length": 121,
- "ps_postid": 32484
}
}, - "person-555": {
- "id": "person-555",
- "_instance_identities": {
- "p_personid": 555
}, - "object_type_id": "person",
- "object_type_name": "person",
- "display": "female",
- "properties": {
- "p_birthday": "1981-11-08",
- "p_creationdate": "2010-01-08 06:41:35.000",
- "p_locationip": "1.4.5.106",
- "p_browserused": "Firefox",
- "p_personid": 555,
- "p_firstname": "Chen",
- "p_lastname": "Yang",
- "p_gender": "female"
}
}, - "place-1456": {
- "id": "place-1456",
- "_instance_identities": {
- "p_placeid": 1456
}, - "object_type_id": "place",
- "object_type_name": "place",
- "display": "Europe",
- "properties": {
- "p_name": "Europe",
- "p_type": "continent",
- "p_placeid": 1456
}
}, - "tag-1672": {
- "id": "tag-1672",
- "_instance_identities": {
- "t_tagid": 1672
}, - "object_type_id": "tag",
- "object_type_name": "tag",
- "display": "Nicholas_II_of_Russia",
- "properties": {
- "t_tagid": 1672,
- "t_name": "Nicholas_II_of_Russia",
}
}, - "post-3.43597402501e+11": {
- "id": "post-3.43597402501e+11",
- "_instance_identities": {
- "ps_postid": 343597402501
}, - "object_type_id": "post",
- "object_type_name": "post",
- "display": "",
- "properties": {
- "ps_creationdate": "2011-01-02 19:20:12.000",
- "ps_locationip": "31.177.57.251",
- "ps_browserused": "Firefox",
- "ps_language": "",
- "ps_content": "",
- "ps_length": 0,
- "ps_postid": 343597402501,
- "ps_imagefile": "photo343597402501.jpg"
}
}, - "comment-32486": {
- "id": "comment-32486",
- "_instance_identities": {
- "c_commentid": 32486
}, - "object_type_id": "comment",
- "object_type_name": "comment",
- "display": "ok",
- "properties": {
- "c_length": 2,
- "c_commentid": 32486,
- "c_creationdate": "2010-01-23 08:14:18.000",
- "c_locationip": "62.217.119.183",
- "c_browserused": "Firefox",
- "c_content": "ok"
}
}, - "tag-6": {
- "id": "tag-6",
- "_instance_identities": {
- "t_tagid": 6
}, - "object_type_id": "tag",
- "object_type_name": "tag",
- "display": "Augustine_of_Hippo",
- "properties": {
- "t_name": "Augustine_of_Hippo",
- "t_tagid": 6
}
}, - "person-143": {
- "id": "person-143",
- "_instance_identities": {
- "p_personid": 143
}, - "object_type_id": "person",
- "object_type_name": "person",
- "display": "female",
- "properties": {
- "p_locationip": "62.217.119.183",
- "p_browserused": "Firefox",
- "p_personid": 143,
- "p_firstname": "Maria",
- "p_lastname": "Alkaios",
- "p_gender": "female",
- "p_birthday": "1983-01-06",
- "p_creationdate": "2010-01-06 07:19:10.000"
}
}, - "person-345": {
- "id": "person-345",
- "_instance_identities": {
- "p_personid": 345
}, - "object_type_id": "person",
- "object_type_name": "person",
- "display": "male",
- "properties": {
- "p_lastname": "Herzigová",
- "p_gender": "male",
- "p_birthday": "1985-03-17",
- "p_creationdate": "2010-02-27 10:35:06.000",
- "p_locationip": "31.222.0.232",
- "p_browserused": "Internet Explorer",
- "p_personid": 345,
- "p_firstname": "David"
}
}, - "tag-273": {
- "id": "tag-273",
- "_instance_identities": {
- "t_tagid": 273
}, - "object_type_id": "tag",
- "object_type_name": "tag",
- "display": "Aung_San_Suu_Kyi",
- "properties": {
- "t_name": "Aung_San_Suu_Kyi",
- "t_tagid": 273
}
}, - "tag-779": {
- "id": "tag-779",
- "_instance_identities": {
- "t_tagid": 779
}, - "object_type_id": "tag",
- "object_type_name": "tag",
- "display": "George_Frideric_Handel",
- "properties": {
- "t_tagid": 779,
- "t_name": "George_Frideric_Handel"
}
}, - "tag-1024": {
- "id": "tag-1024",
- "_instance_identities": {
- "t_tagid": 1024
}, - "object_type_id": "tag",
- "object_type_name": "tag",
- "display": "George_Orwell",
- "properties": {
- "t_tagid": 1024,
- "t_name": "George_Orwell",
}
}, - "post-6.87194784952e+11": {
- "id": "post-6.87194784952e+11",
- "_instance_identities": {
- "ps_postid": 687194784952
}, - "object_type_id": "post",
- "object_type_name": "post",
- "display": "",
- "properties": {
- "ps_content": "",
- "ps_length": 0,
- "ps_postid": 687194784952,
- "ps_imagefile": "photo687194784952.jpg",
- "ps_creationdate": "2011-10-08 07:00:36.000",
- "ps_locationip": "196.32.227.213",
- "ps_browserused": "Firefox",
- "ps_language": ""
}
}, - "comment-3.43597407147e+11": {
- "id": "comment-3.43597407147e+11",
- "_instance_identities": {
- "c_commentid": 343597407147
}, - "object_type_id": "comment",
- "object_type_name": "comment",
- "display": "About Stevie Wonder, also include Talking Book, Innervisions and Songs in the Key of Life",
- "properties": {
- "c_browserused": "Firefox",
- "c_content": "About Stevie Wonder, also include Talking Book, Innervisions and Songs in the Key of Life",
- "c_length": 90,
- "c_commentid": 343597407147,
- "c_creationdate": "2010-12-19 21:58:28.000",
- "c_locationip": "41.138.42.48"
}
}, - "person-318": {
- "id": "person-318",
- "_instance_identities": {
- "p_personid": 318
}, - "object_type_id": "person",
- "object_type_name": "person",
- "display": "female",
- "properties": {
- "p_browserused": "Internet Explorer",
- "p_personid": 318,
- "p_firstname": "Claude",
- "p_lastname": "Radafison",
- "p_gender": "female",
- "p_birthday": "1989-04-17",
- "p_creationdate": "2010-01-30 23:52:35.000",
- "p_locationip": "41.188.54.178"
}
}, - "organisation-2941": {
- "id": "organisation-2941",
- "_instance_identities": {
- "o_organisationid": 2941
}, - "object_type_id": "organisation",
- "object_type_name": "organisation",
- "display": "National_and_Kapodistrian_University_of_Athens",
- "properties": {
- "o_organisationid": 2941,
- "o_type": "university",
- "o_name": "National_and_Kapodistrian_University_of_Athens",
}
}, - "place-1142": {
- "id": "place-1142",
- "_instance_identities": {
- "p_placeid": 1142
}, - "object_type_id": "place",
- "object_type_name": "place",
- "display": "Athens",
- "properties": {
- "p_type": "city",
- "p_placeid": 1142,
- "p_name": "Athens"
}
}, - "place-1": {
- "id": "place-1",
- "_instance_identities": {
- "p_placeid": 1
}, - "object_type_id": "place",
- "object_type_name": "place",
- "display": "China",
- "properties": {
- "p_type": "country",
- "p_placeid": 1,
- "p_name": "China",
}
}
}, - "relation_paths": [
- {
- "relations": [
- {
- "relation_type_id": "comment_replyof_post",
- "relation_type_name": "comment_replyof_post",
- "source_object_id": "comment-32485",
- "target_object_id": "post-32484"
}, - {
- "relation_type_id": "post_hastag_tag",
- "relation_type_name": "post_hastag_tag",
- "source_object_id": "post-32484",
- "target_object_id": "tag-6"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_replyof_post",
- "relation_type_name": "comment_replyof_post",
- "source_object_id": "comment-32486",
- "target_object_id": "post-32484"
}, - {
- "relation_type_id": "post_hastag_tag",
- "relation_type_name": "post_hastag_tag",
- "source_object_id": "post-32484",
- "target_object_id": "tag-6"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32485",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_knows_person",
- "relation_type_name": "person_knows_person",
- "source_object_id": "person-143",
- "target_object_id": "person-318"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32485",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_knows_person",
- "relation_type_name": "person_knows_person",
- "source_object_id": "person-143",
- "target_object_id": "person-345"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32485",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_knows_person",
- "relation_type_name": "person_knows_person",
- "source_object_id": "person-143",
- "target_object_id": "person-555"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32485",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_knows_person",
- "relation_type_name": "person_knows_person",
- "source_object_id": "person-143",
- "target_object_id": "person-870"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32486",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_knows_person",
- "relation_type_name": "person_knows_person",
- "source_object_id": "person-143",
- "target_object_id": "person-318"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32486",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_knows_person",
- "relation_type_name": "person_knows_person",
- "source_object_id": "person-143",
- "target_object_id": "person-345"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32486",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_knows_person",
- "relation_type_name": "person_knows_person",
- "source_object_id": "person-143",
- "target_object_id": "person-555"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32486",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_knows_person",
- "relation_type_name": "person_knows_person",
- "source_object_id": "person-143",
- "target_object_id": "person-870"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_islocatedin_place",
- "relation_type_name": "comment_islocatedin_place",
- "source_object_id": "comment-32485",
- "target_object_id": "place-78"
}, - {
- "relation_type_id": "place_ispartof_place",
- "relation_type_name": "place_ispartof_place",
- "source_object_id": "place-78",
- "target_object_id": "place-1456"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_islocatedin_place",
- "relation_type_name": "comment_islocatedin_place",
- "source_object_id": "comment-32486",
- "target_object_id": "place-78"
}, - {
- "relation_type_id": "place_ispartof_place",
- "relation_type_name": "place_ispartof_place",
- "source_object_id": "place-78",
- "target_object_id": "place-1456"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32485",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_hasinterest_tag",
- "relation_type_name": "person_hasinterest_tag",
- "source_object_id": "person-143",
- "target_object_id": "tag-273"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32485",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_hasinterest_tag",
- "relation_type_name": "person_hasinterest_tag",
- "source_object_id": "person-143",
- "target_object_id": "tag-779"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32485",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_hasinterest_tag",
- "relation_type_name": "person_hasinterest_tag",
- "source_object_id": "person-143",
- "target_object_id": "tag-1024"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32485",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_hasinterest_tag",
- "relation_type_name": "person_hasinterest_tag",
- "source_object_id": "person-143",
- "target_object_id": "tag-1672"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32486",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_hasinterest_tag",
- "relation_type_name": "person_hasinterest_tag",
- "source_object_id": "person-143",
- "target_object_id": "tag-273"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32486",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_hasinterest_tag",
- "relation_type_name": "person_hasinterest_tag",
- "source_object_id": "person-143",
- "target_object_id": "tag-779"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32486",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_hasinterest_tag",
- "relation_type_name": "person_hasinterest_tag",
- "source_object_id": "person-143",
- "target_object_id": "tag-1024"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32486",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_hasinterest_tag",
- "relation_type_name": "person_hasinterest_tag",
- "source_object_id": "person-143",
- "target_object_id": "tag-1672"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32485",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_studyat_organisation",
- "relation_type_name": "person_studyat_organisation",
- "source_object_id": "person-143",
- "target_object_id": "organisation-2941"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32486",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_studyat_organisation",
- "relation_type_name": "person_studyat_organisation",
- "source_object_id": "person-143",
- "target_object_id": "organisation-2941"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32485",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_islocatedin_place",
- "relation_type_name": "person_islocatedin_place",
- "source_object_id": "person-143",
- "target_object_id": "place-1142"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32486",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_islocatedin_place",
- "relation_type_name": "person_islocatedin_place",
- "source_object_id": "person-143",
- "target_object_id": "place-1142"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_replyof_post",
- "relation_type_name": "comment_replyof_post",
- "source_object_id": "comment-32485",
- "target_object_id": "post-32484"
}, - {
- "relation_type_id": "post_islocatedin_place",
- "relation_type_name": "post_islocatedin_place",
- "source_object_id": "post-32484",
- "target_object_id": "place-1"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_replyof_post",
- "relation_type_name": "comment_replyof_post",
- "source_object_id": "comment-32486",
- "target_object_id": "post-32484"
}, - {
- "relation_type_id": "post_islocatedin_place",
- "relation_type_name": "post_islocatedin_place",
- "source_object_id": "post-32484",
- "target_object_id": "place-1"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32485",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_likes_post",
- "relation_type_name": "person_likes_post",
- "source_object_id": "person-143",
- "target_object_id": "post-3.43597402501e+11"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32485",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_likes_post",
- "relation_type_name": "person_likes_post",
- "source_object_id": "person-143",
- "target_object_id": "post-4.12316884425e+11"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32485",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_likes_post",
- "relation_type_name": "person_likes_post",
- "source_object_id": "person-143",
- "target_object_id": "post-4.81036361318e+11"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32485",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_likes_post",
- "relation_type_name": "person_likes_post",
- "source_object_id": "person-143",
- "target_object_id": "post-6.87194784952e+11"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32486",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_likes_post",
- "relation_type_name": "person_likes_post",
- "source_object_id": "person-143",
- "target_object_id": "post-3.43597402501e+11"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32486",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_likes_post",
- "relation_type_name": "person_likes_post",
- "source_object_id": "person-143",
- "target_object_id": "post-4.12316884425e+11"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32486",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_likes_post",
- "relation_type_name": "person_likes_post",
- "source_object_id": "person-143",
- "target_object_id": "post-4.81036361318e+11"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32486",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_likes_post",
- "relation_type_name": "person_likes_post",
- "source_object_id": "person-143",
- "target_object_id": "post-6.87194784952e+11"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_replyof_post",
- "relation_type_name": "comment_replyof_post",
- "source_object_id": "comment-32485",
- "target_object_id": "post-32484"
}, - {
- "relation_type_id": "post_hascreator_person",
- "relation_type_name": "post_hascreator_person",
- "source_object_id": "post-32484",
- "target_object_id": "person-555"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_replyof_post",
- "relation_type_name": "comment_replyof_post",
- "source_object_id": "comment-32486",
- "target_object_id": "post-32484"
}, - {
- "relation_type_id": "post_hascreator_person",
- "relation_type_name": "post_hascreator_person",
- "source_object_id": "post-32484",
- "target_object_id": "person-555"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32485",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_likes_comment",
- "relation_type_name": "person_likes_comment",
- "source_object_id": "person-143",
- "target_object_id": "comment-2.06158448803e+11"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32485",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_likes_comment",
- "relation_type_name": "person_likes_comment",
- "source_object_id": "person-143",
- "target_object_id": "comment-3.43597407147e+11"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32485",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_likes_comment",
- "relation_type_name": "person_likes_comment",
- "source_object_id": "person-143",
- "target_object_id": "comment-7.55914262659e+11"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32485",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_likes_comment",
- "relation_type_name": "person_likes_comment",
- "source_object_id": "person-143",
- "target_object_id": "comment-1.030792168521e+12"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32486",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_likes_comment",
- "relation_type_name": "person_likes_comment",
- "source_object_id": "person-143",
- "target_object_id": "comment-2.06158448803e+11"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32486",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_likes_comment",
- "relation_type_name": "person_likes_comment",
- "source_object_id": "person-143",
- "target_object_id": "comment-3.43597407147e+11"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32486",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_likes_comment",
- "relation_type_name": "person_likes_comment",
- "source_object_id": "person-143",
- "target_object_id": "comment-7.55914262659e+11"
}
], - "length": 2
}, - {
- "relations": [
- {
- "relation_type_id": "comment_hascreator_person",
- "relation_type_name": "comment_hascreator_person",
- "source_object_id": "comment-32486",
- "target_object_id": "person-143"
}, - {
- "relation_type_id": "person_likes_comment",
- "relation_type_name": "person_likes_comment",
- "source_object_id": "person-143",
- "target_object_id": "comment-1.030792168521e+12"
}
], - "length": 2
}
], - "total_count": 151043,
- "search_after": [
- "20251111_011029_00002_5pjz5",
- "xf97a0a1dcbab4f26b1944122eed84b98",
- "2"
], - "current_path_number": 44,
- "overall_ms": 4204
}给定一组对象实例,按概念定义的关系,组织这些对象实例的关系子图。
| kn_id required | string 业务知识网络ID |
| branch | string 分支名称 |
| include_type_info | boolean 是否包含对象类信息,默认false,不包含 |
| include_logic_params | boolean 包含逻辑属性的计算参数,默认false,返回结果不包含逻辑属性的字段和值 |
| ignoring_store_cache | boolean 是否忽略索引查询,默认是false,不忽略,即走索引查询 |
| exclude_system_properties | Array of strings Items Enum: "_instance_id" "_instance_identity" "_display" 需要排除的系统字段列表。可选值:_instance_id(实例ID)、_instance_identity(实例唯一标识)、_display(显示值)。如果指定了某个字段,则在返回的对象数据中不包含该字段。可以传递多个值,例如:?exclude_system_properties=_instance_id&exclude_system_properties=_display |
基于一组对象实例探索关系子图的请求体
required | Array of objects (InputObjectInstance) 对象实例数组 |
{- "entries": [
- {
- "object_type_id": "comment",
- "_instance_identity": {
- "c_commentid": 206158448803
}
}, - {
- "object_type_id": "comment",
- "_instance_identity": {
- "c_commentid": 755914262659
}
}, - {
- "object_type_id": "post",
- "_instance_identity": {
- "ps_postid": 481036361318
}
}
]
}{- "objects": {
- "comment-2.06158448803e+11": {
- "_instance_id": "comment-2.06158448803e+11",
- "_instance_identity": {
- "c_commentid": 206158448803
}, - "object_type_id": "comment",
- "object_type_name": "comment",
- "_display": "About Titian, stic manner cAbout Leona Lewis...",
- "properties": {
- "c_commentid": 206158448803,
- "c_creationdate": "2010-07-24 00:04:01.000",
- "c_locationip": "186.169.83.109",
- "c_browserused": "Firefox",
- "c_content": "About Titian, stic manner cAbout Leona Lewis...",
- "c_length": 111
}
}, - "comment-7.55914262659e+11": {
- "_instance_id": "comment-7.55914262659e+11",
- "_instance_identity": {
- "c_commentid": 755914262659
}, - "object_type_id": "comment",
- "object_type_name": "comment",
- "_display": "Original of the Species is a song by rock band U2...",
- "properties": {
- "c_commentid": 755914262659,
- "c_creationdate": "2011-12-12 12:04:24.000",
- "c_locationip": "186.169.83.109",
- "c_browserused": "Firefox",
- "c_content": "Original of the Species is a song by rock band U2...",
- "c_length": 151
}
}
}, - "isolated_objects": {
- "post-4.81036361318e+11": {
- "_instance_id": "post-4.81036361318e+11",
- "_instance_identity": {
- "ps_postid": 481036361318
}, - "object_type_id": "post",
- "object_type_name": "post",
- "_display": "",
- "properties": {
- "ps_postid": 481036361318,
- "ps_creationdate": "2011-04-27 04:12:24.000",
- "ps_locationip": "31.216.154.26",
- "ps_browserused": "Chrome",
- "ps_language": "",
- "ps_content": "",
- "ps_length": 0
}
}
}, - "relation_paths": [
- {
- "relations": [
- {
- "relation_type_id": "comment_replyof_comment",
- "relation_type_name": "comment_replyof_comment",
- "source_object_id": "comment-2.06158448803e+11",
- "target_object_id": "comment-7.55914262659e+11"
}
], - "length": 1
}
], - "overall_ms": 150
}| kn_id required | string 业务知识网络ID |
| ot_id required | string 对象类ID |
| branch | string 分支名称,默认 main |
| include_type_info | boolean 是否包含对象类信息,默认 false |
| exclude_system_properties | Array of strings Items Enum: "_instance_id" "_instance_identity" "_display" 需要排除的系统字段列表。可选值:_instance_id(实例ID)、_instance_identity(实例唯一标识)、_display(显示值)。如果指定了某个字段,则在返回的对象数据中不包含该字段。可以传递多个值,例如:?exclude_system_properties=_instance_id&exclude_system_properties=_display |
| x-http-method-override required | string Value: "GET" 重载 post,实际上是 get 方法 |
属性查询请求体
required | Array of objects (InstanceIdentity) 对象主键的数组,代表多个对象。每项为 map,key 为主键属性名,value 为对应的属性值 |
| properties required | Array of strings 属性列表 |
object 各逻辑属性所需的动态参数:外层 key 为逻辑属性名,内层为参数名到取值的 map。 当属性是指标属性时,内层结构可遵循 MetricPropertyDynamicParams(时间、分析维度等); 算子属性则为参数名到标量或嵌套对象的映射。未传或某属性无动态需求时可省略该 key。 |
{- "_instance_identities": [
- {
- "id": 1479,
- "pod_ip": "192.169.37.60"
}, - {
- "id": 1480,
- "pod_ip": "192.169.37.72"
}
], - "properties": [
- "pod_name",
- "pod_status",
- "metric_test",
- "a_action"
], - "dynamic_params": {
- "metric_test": {
- "start": 1731460342241,
- "end": 1762996342241,
- "instant": false,
- "step": "month",
- "analysis_dimensions": [
- "pod_name",
- "pod_node_name"
], - "order_by_fields": [
- {
- "name": "__value",
- "type": "number",
- "direction": "desc"
}
], - "having_condition": {
- "field": "__value",
- "operation": ">",
- "value": 100
}, - "metrics": {
- "type": "sameperiod",
- "sameperiod_config": {
- "method": [
- "growth_rate"
], - "offset": 1,
- "time_granularity": "day"
}
}
}, - "a_action": {
- "Authorization": "aasssdffgg"
}
}
}{- "datas": [
- {
- "id": 1479,
- "pod_status": "Succeeded",
- "pod_name": "communication-config-679xd",
- "pod_ip": "192.169.37.60",
- "metric_test": {
- "model": {
- "unit_type": "numUnit",
- "unit": "none"
}, - "datas": [
- {
- "labels": {
- "pod_name": "ar-k8s-event-executor-6ffcc7884c-9wgsb",
- "pod_node_name": "node-111-175",
- "pod_ip": "192.169.37.60"
}, - "times": [
- 1730390400000,
- 1732982400000,
- 1735660800000,
- 1738339200000,
- 1740758400000,
- 1743436800000,
- 1746028800000,
- 1748707200000,
- 1751299200000,
- 1753977600000,
- 1756656000000,
- 1759248000000,
- 1761926400000
], - "values": [
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- 1,
- null,
- null,
- null,
- null,
- null
]
}, - {
- "labels": {
- "pod_name": "communication-config-679xd",
- "pod_node_name": "node-111-175",
- "pod_ip": "192.169.37.60"
}, - "times": [
- 1730390400000,
- 1732982400000,
- 1735660800000,
- 1738339200000,
- 1740758400000,
- 1743436800000,
- 1746028800000,
- 1748707200000,
- 1751299200000,
- 1753977600000,
- 1756656000000,
- 1759248000000,
- 1761926400000
], - "values": [
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- 1,
- null,
- null,
- null,
- null,
- null
]
}
], - "step": "month",
- "is_variable": false,
- "is_calendar": false
}, - "a_action": { }
}, - {
- "id": 1480,
- "metric_test": {
- "model": {
- "unit_type": "numUnit",
- "unit": "none"
}, - "datas": [
- {
- "labels": {
- "pod_ip": "192.169.37.72",
- "pod_name": "content-data-lake-dm-pre-verify-gr2gj",
- "pod_node_name": "node-111-175"
}, - "times": [
- 1730390400000,
- 1732982400000,
- 1735660800000,
- 1738339200000,
- 1740758400000,
- 1743436800000,
- 1746028800000,
- 1748707200000,
- 1751299200000,
- 1753977600000,
- 1756656000000,
- 1759248000000,
- 1761926400000
], - "values": [
- null,
- null,
- null,
- null,
- null,
- null,
- null,
- 1,
- null,
- null,
- null,
- null,
- null
]
}
], - "step": "month",
- "is_variable": false,
- "is_calendar": false
}, - "pod_name": "content-data-lake-dm-pre-verify-gr2gj",
- "pod_ip": "192.169.37.72",
- "pod_status": "Succeeded",
- "a_action": { }
}
], - "overall_ms": 2588
}异步提交行动执行,立即返回 execution_id。
默认启用防重复:同一知识网络、行动类、目标实例与 dynamic_params 指纹在配置窗口内
若已有进行中(pending/running)且 start_time 落在窗口内的执行,则返回 409。
| kn_id required | string 业务知识网络ID |
| at_id required | string 行动类ID |
| branch | string 分支名称,默认 main |
Array of objects (InstanceIdentity) 目标对象唯一标识列表;扫描模式下可传空数组,由服务端按行动条件拉取实例 | |
object 与行动类 input 参数名对应的取值(支持点分路径)。有 input 参数时必填且不能为 null。 |
{- "_instance_identities": [
- {
- "pod_ip": "192.168.1.1",
- "id": 1
}, - {
- "pod_ip": "192.168.1.2",
- "id": 2
}
], - "dynamic_params": {
- "Authorization": "Bearer xxx"
}
}{- "execution_id": "cqq2g8h4d2fg00fvm8dg",
- "status": "pending",
- "message": "Action execution started",
- "created_at": 1704067200000
}{- "id": "cqq2g8h4d2fg00fvm8dg",
- "kn_id": "kn_xxx",
- "action_type_id": "at_xxx",
- "action_type_name": "restart_pod",
- "action_source_type": "tool",
- "object_type_id": "ot_xxx",
- "trigger_type": "manual",
- "status": "completed",
- "total_count": 2,
- "success_count": 1,
- "failed_count": 1,
- "results": [
- {
- "instance_identity": {
- "pod_ip": "192.168.1.1",
- "id": 1
}, - "status": "success",
- "parameters": {
- "pod_ip": "192.168.1.1"
}, - "result": {
- "message": "Pod restarted successfully"
}, - "duration_ms": 1200
}, - {
- "instance_identity": {
- "pod_ip": "192.168.1.2",
- "id": 2
}, - "status": "failed",
- "parameters": {
- "pod_ip": "192.168.1.2"
}, - "error_message": "Connection timeout",
- "duration_ms": 5000
}
], - "executor_id": "user_xxx",
- "executor": {
- "id": "user_xxx",
- "type": "user",
- "name": "张三"
}, - "start_time": 1704067200000,
- "end_time": 1704067206200,
- "duration_ms": 6200
}| kn_id required | string 业务知识网络ID |
| action_type_id | string 行动类ID(可选) |
| status | string Enum: "pending" "running" "completed" "failed" "cancelled" 执行状态(可选) |
| trigger_type | string Enum: "manual" "scheduled" 触发类型(可选) |
| start_time_from | integer <int64> 开始时间范围-起始(毫秒时间戳,可选) |
| start_time_to | integer <int64> 开始时间范围-结束(毫秒时间戳,可选) |
| limit | integer Default: 20 返回数量限制,默认20,最大1000 |
| offset | integer Default: 0 偏移量,默认 0;与 search_after 互斥,传了 search_after 后本参数失效 |
| need_total | boolean Default: false 是否需要返回总数 |
| search_after | string 分页游标(逗号分隔字符串,如 "1704067200000,cqq2g8h4d2fg00fvm8dg") |
{- "entries": [
- {
- "id": "cqq2g8h4d2fg00fvm8dg",
- "action_type_id": "at_xxx",
- "action_type_name": "restart_pod",
- "status": "completed",
- "trigger_type": "manual",
- "total_count": 2,
- "success_count": 2,
- "failed_count": 0,
- "start_time": 1704067200000,
- "duration_ms": 6200
}
], - "total_count": 100,
- "search_after": [
- 1704067200000,
- "cqq2g8h4d2fg00fvm8dg"
]
}| kn_id required | string 业务知识网络ID |
| log_id required | string 日志ID (即执行ID) |
| results_limit | integer Default: 100 results 分页大小,默认100,最大1000 |
| results_offset | integer Default: 0 results 偏移量,默认0 |
| results_status | string Enum: "success" "failed" 按 results 中的状态过滤(可选) |
{- "id": "string",
- "kn_id": "string",
- "action_type_id": "string",
- "action_type_name": "string",
- "action_source_type": "tool",
- "object_type_id": "string",
- "trigger_type": "manual",
- "status": "pending",
- "execution_mode": "once",
- "target_count": 0,
- "total_count": 0,
- "success_count": 0,
- "failed_count": 0,
- "results": [
- {
- "instance_identity": { },
- "targets": [
- { }
], - "status": "pending",
- "parameters": { },
- "result": { },
- "error_message": "string",
- "duration_ms": 0,
- "_instance_id": "string",
- "_instance_identity": {
- "key_id": "string"
}, - "_display": "string",
- "start_time": 0,
- "end_time": 0
}
], - "results_total": 0,
- "results_offset": 0,
- "results_limit": 0,
- "dynamic_params": { },
- "executor_id": "string",
- "executor": {
- "id": "string",
- "type": "string",
- "name": "string"
}, - "start_time": 0,
- "end_time": 0,
- "duration_ms": 0,
- "instance_identity_hash": "string",
- "action_type_snapshot": { },
- "action_source": {
- "type": "tool",
- "box_id": "string",
- "tool_id": "string"
}
}| kn_id required | string 业务知识网络ID |
| log_id required | string 日志ID (即执行ID) |
| reason | string 取消原因(可选) |
{- "reason": "string"
}{- "execution_id": "cqq2g8h4d2fg00fvm8dg",
- "status": "cancelled",
- "message": "任务已取消",
- "cancelled_count": 5,
- "completed_count": 10
}查询已落库的 object_type 作用域 atomic 指标(定义见 bkn-backend MetricDefinition)。
执行时将以下条件 按 AND 合并(不是覆盖)后下推到 Vega/resource:
MetricDefinition.calculation_formula.condition(定义内口径,稳定 KPI)condition(查询时下钻 / 临时收窄)time 或 time_dimension.default_range_policy 推导的时间范围条件(instant / 趋势查询时)合并规则:语义上等价于 AND(definition.condition, request.condition, timeCondition),任一侧为空则省略。
实现上为两层嵌套(先合并 definition 与 request,再与时间条件 AND),下推 filter 可能出现 sub_conditions 嵌套,而非扁平三元组。
calculation_formula.group_by:定义内的固定分组基线,每次查询都会参与 group_by。analysis_dimensions(请求体):在指标 analysis_dimensions 白名单内的追加下钻维度,按请求顺序接在 group_by 之后;未知维度名忽略。time.instant 为 false 或省略,且提供 time.step)会额外追加时间分桶维度。建模 CRUD 与能力矩阵见 bkn-metrics.yaml;对象类级总量指标应使用本接口,而非对象实例页的 logic-property 执行入口。
| kn_id required | string 业务知识网络ID |
| metric_id required | string 指标 ID(BKN MetricDefinition.id) |
| branch | string 分支,默认 main |
| fill_null | boolean Default: false 趋势(区间)查询时,将各序列值对齐到 [time.start, time.end] 的完整分桶时间轴,缺失分桶以 null 填充;与 mdl-uniquery 指标数据查询的 fill_null 一致,为 URL 查询参数(非 body)。仅当 instant 为 false 或省略时有效。 |
object | |
condition_and (object) or condition_or (object) or condition_eq (object) or condition_not_eq (object) or condition_gt (object) or condition_gte (object) or condition_lt (object) or condition_lte (object) or condition_in (object) or condition_not_in (object) or condition_like (object) or condition_not_like (object) or condition_range (object) or condition_out_range (object) or condition_exist (object) or condition_not_exist (object) or condition_regex (object) or condition_match (object) or condition_match_phrase (object) or condition_knn (object) or condition_multi_match (object) (Condition) | |
| analysis_dimensions | Array of strings |
Array of objects (MetricQueryOrderBy) | |
object (HavingCondition) having值数据过滤 | |
object (Metrics) 同环比、占比分析 | |
| limit | integer >= 1 仅返回前 limit 条 Data 序列(MetricData.datas) |
{ }{- "model": {
- "unit_type": "numUnit",
- "unit": "none"
}, - "datas": [
- {
- "labels": { },
- "times": [
- 0
], - "values": [
- 431
]
}
], - "step": "",
- "is_variable": false,
- "is_calendar": false
}运行时字段(time / condition / analysis_dimensions 等)与
POST .../metrics/{metric_id}/data 的 MetricQueryRequestBody 合并语义完全一致;
区别仅在于 definition 侧取自请求体 metric_config(含 calculation_formula.condition),而非落库定义。
| kn_id required | string |
| branch | string |
| fill_null | boolean Default: false 与「查询指标数据」接口相同;URL 查询参数,非 body。 |
required | object (MetricDryRunConfig) 试算请求体中的 |
object | |
condition_and (object) or condition_or (object) or condition_eq (object) or condition_not_eq (object) or condition_gt (object) or condition_gte (object) or condition_lt (object) or condition_lte (object) or condition_in (object) or condition_not_in (object) or condition_like (object) or condition_not_like (object) or condition_range (object) or condition_out_range (object) or condition_exist (object) or condition_not_exist (object) or condition_regex (object) or condition_match (object) or condition_match_phrase (object) or condition_knn (object) or condition_multi_match (object) (Condition) | |
| analysis_dimensions | Array of strings |
Array of objects (MetricQueryOrderBy) | |
object (HavingCondition) having值数据过滤 | |
object (Metrics) 同环比、占比分析 | |
| limit | integer >= 1 |
{- "metric_config": {
- "id": "string",
- "kn_id": "string",
- "branch": "string",
- "name": "string",
- "comment": "string",
- "tags": [
- "string"
], - "unit_type": "numUnit",
- "unit": "none",
- "metric_type": "string",
- "scope_type": "string",
- "scope_ref": "string",
- "time_dimension": { },
- "calculation_formula": { },
- "analysis_dimensions": [
- { }
]
}, - "time": { },
- "condition": {
- "operation": "and",
- "sub_conditions": [
- null
]
}, - "analysis_dimensions": [
- "string"
], - "order_by": [
- {
- "property": "string",
- "direction": "asc"
}
], - "having": {
- "field": "__value",
- "operation": "==",
- "value": null
}, - "metrics": {
- "type": "sameperiod",
- "sameperiod_config": {
- "method": [
- "growth_value",
- "growth_rate"
], - "offset": 0,
- "time_granularity": "day"
}
}, - "limit": 1
}{- "model": {
- "unit_type": "numUnit",
- "unit": "none"
}, - "datas": [
- {
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "times": [
- null
], - "values": [
- null
], - "growth_values": [
- null
], - "growth_rates": [
- null
], - "proportions": [
- null
]
}
], - "step": "string",
- "is_variable": true,
- "is_calendar": true
}