From 7347bac4ab7e136157fc94777e6cf87ef9e08599 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Fri, 13 Feb 2026 10:54:11 +0800 Subject: first commit --- data/en_us/paifeaturestore/2023-06-21/api-docs.php | 9974 ++++++++++++++++++++ 1 file changed, 9974 insertions(+) create mode 100644 data/en_us/paifeaturestore/2023-06-21/api-docs.php (limited to 'data/en_us/paifeaturestore/2023-06-21') diff --git a/data/en_us/paifeaturestore/2023-06-21/api-docs.php b/data/en_us/paifeaturestore/2023-06-21/api-docs.php new file mode 100644 index 0000000..0601a1b --- /dev/null +++ b/data/en_us/paifeaturestore/2023-06-21/api-docs.php @@ -0,0 +1,9974 @@ + '1.0', + 'info' => [ + 'style' => 'ROA', + 'product' => 'PaiFeatureStore', + 'version' => '2023-06-21', + ], + 'directories' => [ + [ + 'id' => 185367, + 'title' => 'Instance management', + 'type' => 'directory', + 'children' => [ + 'CreateInstance', + 'ListInstances', + 'GetInstance', + 'CheckInstanceDatasource', + ], + ], + [ + 'id' => 185387, + 'title' => 'Data source management', + 'type' => 'directory', + 'children' => [ + 'CreateDatasource', + 'ListDatasources', + 'GetDatasource', + 'UpdateDatasource', + 'DeleteDatasource', + 'ListDatasourceFeatureViews', + 'ListDatasourceTables', + 'GetDatasourceTable', + ], + ], + [ + 'id' => 221141, + 'title' => 'Large model configuration information management', + 'type' => 'directory', + 'children' => [ + 'CreateLLMConfig', + 'ListLLMConfigs', + 'GetLLMConfig', + 'UpdateLLMConfig', + 'DeleteLLMConfig', + ], + ], + [ + 'id' => 185372, + 'title' => 'Project Management', + 'type' => 'directory', + 'children' => [ + 'CreateProject', + 'ListProjects', + 'GetProject', + 'UpdateProject', + 'DeleteProject', + 'ListProjectFeatures', + 'ListProjectFeatureViews', + 'GetProjectFeatureEntity', + ], + ], + [ + 'id' => 185395, + 'title' => 'Feature entity', + 'type' => 'directory', + 'children' => [ + 'CreateFeatureEntity', + 'ListFeatureEntities', + 'GetFeatureEntity', + 'DeleteFeatureEntity', + ], + ], + [ + 'id' => 185400, + 'title' => 'Feature View', + 'type' => 'directory', + 'children' => [ + 'CreateFeatureView', + 'ListFeatureViews', + 'GetFeatureView', + 'DeleteFeatureView', + 'PublishFeatureViewTable', + 'WriteFeatureViewTable', + 'ListFeatureViewOnlineFeatures', + 'ListFeatureViewRelationships', + 'ListFeatureViewFieldRelationships', + ], + ], + [ + 'id' => 185409, + 'title' => 'Label table', + 'type' => 'directory', + 'children' => [ + 'CreateLabelTable', + 'ListLabelTables', + 'GetLabelTable', + 'UpdateLabelTable', + 'DeleteLabelTable', + ], + ], + [ + 'id' => 185415, + 'title' => 'Model Features', + 'type' => 'directory', + 'children' => [ + 'CreateModelFeature', + 'ListModelFeatures', + 'GetModelFeature', + 'UpdateModelFeature', + 'DeleteModelFeature', + 'ExportModelFeatureTrainingSetTable', + 'ListModelFeatureAvailableFeatures', + 'UpdateModelFeatureFGFeature', + 'GetModelFeatureFGFeature', + 'GetModelFeatureFGInfo', + 'CheckModelFeatureFGFeature', + ], + ], + [ + 'id' => 185422, + 'title' => 'Task Management', + 'type' => 'directory', + 'children' => [ + 'ListTasks', + 'GetTask', + 'StopTask', + 'ListTaskLogs', + ], + ], + [ + 'id' => 185364, + 'title' => 'Service Account Role', + 'type' => 'directory', + 'children' => [ + 'CreateServiceIdentityRole', + 'GetServiceIdentityRole', + ], + ], + ], + 'components' => [ + 'schemas' => [], + ], + 'apis' => [ + 'CreateInstance' => [ + 'summary' => '创建Feature Store实例。', + 'path' => '/api/v1/instances', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '188081', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Type' => [ + 'title' => '实例类型。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Basic', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'C33E160C-BFCA-5719-B958-942850E949F6', + ], + 'InstanceId' => [ + 'title' => '实例ID。', + 'description' => '', + 'type' => 'string', + 'example' => 'featureStore-cn-7mz2xfu****', + ], + 'Code' => [ + 'title' => '错误码', + 'description' => '', + 'type' => 'string', + 'example' => 'InstanceAlreadyExistsErrorProblem', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C33E160C-BFCA-5719-B958-942850E949F6\\",\\n \\"InstanceId\\": \\"featureStore-cn-7mz2xfu****\\",\\n \\"Code\\": \\"InstanceAlreadyExistsErrorProblem\\"\\n}","type":"json"}]', + ], + 'ListInstances' => [ + 'summary' => '获取Feature Store实例列表。', + 'path' => '/api/v1/instances', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '188082', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'title' => '页码。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'title' => '页大小。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'Status', + 'in' => 'query', + 'schema' => [ + 'title' => '状态过滤。'."\n" + .'● Initializing-初始化中。'."\n" + .'● Running-运行中。'."\n" + .'● Failure-创建失败。', + 'type' => 'string', + 'example' => 'Running', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'title' => '排序依据。'."\n" + .'● GmtCreateTime-创建时间。'."\n" + .'● GmtModifiedTime-更新时间。', + 'type' => 'string', + 'example' => 'GmtCreateTime', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'title' => '排序方式。'."\n" + .'● ASC-升序。'."\n" + .'● DESC-降序。', + 'type' => 'string', + 'example' => 'DESC', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '2CA11923-2A3D-5E5A-8314-E699D2DD15DE', + ], + 'TotalCount' => [ + 'title' => '列表内元素总个数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'Instances' => [ + 'title' => '实例列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'InstanceId' => [ + 'title' => '实例ID。', + 'description' => '', + 'type' => 'string', + 'example' => 'featureStore-cn-7mz2xfu****', + ], + 'Type' => [ + 'title' => '实例类型。'."\n" + .'● Basic-基础版', + 'description' => '', + 'type' => 'string', + 'example' => 'Basic', + ], + 'Status' => [ + 'title' => '状态。'."\n" + .'● Initializing-初始化中。'."\n" + .'● Running-运行中。'."\n" + .'● Stopped-停止服务。', + 'description' => '', + 'type' => 'string', + 'example' => 'Initializing', + ], + 'RegionId' => [ + 'title' => '所属区域。'."\n" + .'● cn-hangzhou'."\n" + .'● cn-beijing'."\n" + .'● cn-shanghai'."\n" + .'● cn-shenzhen', + 'description' => '', + 'type' => 'string', + 'example' => 'cn-hangzhou', + ], + 'GmtCreateTime' => [ + 'title' => '创建时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2023-07-04T11:26:09.036+08:00', + ], + 'GmtModifiedTime' => [ + 'title' => '更新时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2023-07-04T11:26:09.036+08:00', + ], + 'FeatureDBInstanceInfo' => [ + 'title' => '已废弃。请通过 FeatureDBInfo 获取FeatureDB实例信息。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'title' => '状态。', + 'type' => 'string', + ], + ], + 'deprecated' => true, + ], + 'FeatureDBInfo' => [ + 'title' => 'FeatureDB实例信息。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'title' => '状态。', + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2CA11923-2A3D-5E5A-8314-E699D2DD15DE\\",\\n \\"TotalCount\\": 10,\\n \\"Instances\\": [\\n {\\n \\"InstanceId\\": \\"featureStore-cn-7mz2xfu****\\",\\n \\"Type\\": \\"Basic\\",\\n \\"Status\\": \\"Initializing\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"GmtCreateTime\\": \\"2023-07-04T11:26:09.036+08:00\\",\\n \\"GmtModifiedTime\\": \\"2023-07-04T11:26:09.036+08:00\\",\\n \\"FeatureDBInstanceInfo\\": {\\n \\"Status\\": \\"\\"\\n },\\n \\"FeatureDBInfo\\": {\\n \\"Status\\": \\"\\"\\n }\\n }\\n ]\\n}","type":"json"}]', + ], + 'GetInstance' => [ + 'summary' => '获取实例详细信息', + 'path' => '/api/v1/instances/{InstanceId}', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '190265', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '1C5B1511-8A5B-59C3-90AF-513F9210E882', + ], + 'Status' => [ + 'title' => '状态。'."\n" + .'● Initializing-初始化中。'."\n" + .'● Running-运行中。'."\n" + .'● Failure-创建失败。'."\n" + .'● Stopped-停止服务。', + 'description' => '', + 'type' => 'string', + 'example' => 'Running', + ], + 'RegionId' => [ + 'title' => '所属区域。', + 'description' => '', + 'type' => 'string', + 'example' => 'cn-hangzhou', + ], + 'GmtCreateTime' => [ + 'title' => '创建时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2023-07-04T11:26:09.036+08:00', + ], + 'GmtModifiedTime' => [ + 'title' => '更新时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2023-07-04T11:26:09.036+08:00', + ], + 'Progress' => [ + 'title' => '实例生产进度。', + 'description' => '', + 'type' => 'number', + 'format' => 'double', + 'example' => '0.8', + ], + 'Message' => [ + 'title' => '实例生产日志信息。', + 'description' => '', + 'type' => 'string', + 'example' => 'Success', + ], + 'Type' => [ + 'title' => '实例类型。', + 'description' => '', + 'type' => 'string', + 'example' => 'Basic', + ], + 'FeatureDBInstanceInfo' => [ + 'title' => '已废弃。请通过 FeatureDBInfo 获取FeatureDB实例信息。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'title' => '状态。', + 'type' => 'string', + ], + ], + 'deprecated' => true, + ], + 'FeatureDBInfo' => [ + 'title' => 'FeatureDB实例信息。', + 'type' => 'object', + 'properties' => [ + 'Status' => [ + 'title' => '状态。', + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1C5B1511-8A5B-59C3-90AF-513F9210E882\\",\\n \\"Status\\": \\"Running\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"GmtCreateTime\\": \\"2023-07-04T11:26:09.036+08:00\\",\\n \\"GmtModifiedTime\\": \\"2023-07-04T11:26:09.036+08:00\\",\\n \\"Progress\\": 0.8,\\n \\"Message\\": \\"Success\\",\\n \\"Type\\": \\"Basic\\",\\n \\"FeatureDBInstanceInfo\\": {\\n \\"Status\\": \\"\\"\\n },\\n \\"FeatureDBInfo\\": {\\n \\"Status\\": \\"\\"\\n }\\n}","type":"json"}]', + ], + 'CheckInstanceDatasource' => [ + 'summary' => '检测资源连接状态。', + 'path' => '/api/v1/instances/{InstanceId}/action/checkdatasource', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '190554', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Type' => [ + 'title' => '数据源类型。'."\n" + .'● Hologres'."\n" + .'● GraphCompute'."\n" + .'● Redis'."\n" + .'● MaxCompute', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'Hologres', + ], + 'Uri' => [ + 'title' => '资源地址。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'igraph1', + ], + 'Config' => [ + 'title' => '资源配置。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '{"address": ""}', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'C03B2680-AC9C-59CD-93C5-8142B92537FA', + ], + 'Status' => [ + 'title' => '资源检测状态。'."\n" + .'● Success-成功。'."\n" + .'● Failure-失败。', + 'description' => '', + 'type' => 'string', + 'example' => 'Success', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C03B2680-AC9C-59CD-93C5-8142B92537FA\\",\\n \\"Status\\": \\"Success\\"\\n}","type":"json"}]', + ], + 'CreateDatasource' => [ + 'summary' => '创建数据源。', + 'path' => '/api/v1/instances/{InstanceId}/datasources', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可通过接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'featureStore-cn-test1', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => '数据源名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'datasource1', + ], + 'WorkspaceId' => [ + 'title' => '工作空间ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '234', + ], + 'Type' => [ + 'title' => '数据源类型。'."\n" + .'● FeatureDB'."\n" + .'● Hologres'."\n" + .'● MaxCompute'."\n" + .'● TableStore', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'Hologres', + ], + 'Uri' => [ + 'title' => '资源地址。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'igraph_instance1', + ], + 'Config' => [ + 'title' => '资源配置。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '{"address": ""}', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '1C5B1511-8A5B-59C3-90AF-513F9210E882', + ], + 'DatasourceId' => [ + 'title' => '数据源ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"1C5B1511-8A5B-59C3-90AF-513F9210E882\\",\\n \\"DatasourceId\\": \\"3\\"\\n}","type":"json"}]', + ], + 'ListDatasources' => [ + 'summary' => '获取数据源列表。', + 'path' => '/api/v1/instances/{InstanceId}/datasources', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'featureStore-cn-XXXXXXX', + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'title' => '工作空间ID。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '234', + ], + ], + [ + 'name' => 'Type', + 'in' => 'query', + 'schema' => [ + 'title' => '数据源类型。'."\n" + .'● FeatureDB'."\n" + .'● Hologres'."\n" + .'● MaxCompute'."\n" + .'● TableStore', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'MaxCompute', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'title' => '数据源名称模糊过滤。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'datasource1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'title' => '页大小。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'title' => '页码。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'title' => '排序方式。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Asc', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'title' => '排序依据。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'GmtModifiedTime', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '44933189-493B-5C43-A5C6-11EEC2A43520', + ], + 'TotalCount' => [ + 'title' => '总个数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'Datasources' => [ + 'title' => '数据源列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'DatasourceId' => [ + 'title' => '数据源ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + 'Name' => [ + 'title' => '数据源名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'datasource1', + ], + 'Type' => [ + 'title' => '数据源类型。'."\n" + .'● FeatureDB'."\n" + .'● Hologres'."\n" + .'● MaxCompute'."\n" + .'● TableStore', + 'description' => '', + 'type' => 'string', + 'example' => 'Hologres', + ], + 'Uri' => [ + 'title' => '资源地址。', + 'description' => '', + 'type' => 'string', + 'example' => 'igraph_instance1', + ], + 'Config' => [ + 'title' => '资源配置。', + 'description' => '', + 'type' => 'string', + 'example' => '{"address": ""}', + ], + 'GmtCreateTime' => [ + 'title' => '创建时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2021-12-15T23:24:33.132+08:00', + ], + 'GmtModifiedTime' => [ + 'title' => '更新时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2021-12-15T23:24:33.132+08:00', + ], + 'WorkspaceId' => [ + 'title' => '工作空间ID。', + 'description' => '', + 'type' => 'string', + 'example' => '32324', + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"44933189-493B-5C43-A5C6-11EEC2A43520\\",\\n \\"TotalCount\\": 10,\\n \\"Datasources\\": [\\n {\\n \\"DatasourceId\\": \\"3\\",\\n \\"Name\\": \\"datasource1\\",\\n \\"Type\\": \\"Hologres\\",\\n \\"Uri\\": \\"igraph_instance1\\",\\n \\"Config\\": \\"{\\\\\\"address\\\\\\": \\\\\\"\\\\\\"}\\",\\n \\"GmtCreateTime\\": \\"2021-12-15T23:24:33.132+08:00\\",\\n \\"GmtModifiedTime\\": \\"2021-12-15T23:24:33.132+08:00\\",\\n \\"WorkspaceId\\": \\"32324\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'GetDatasource' => [ + 'summary' => '获取数据源详细信息。', + 'path' => '/api/v1/instances/{InstanceId}/datasources/{DatasourceId}', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可通过接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-********', + ], + ], + [ + 'name' => 'DatasourceId', + 'in' => 'path', + 'schema' => [ + 'title' => '数据源ID,可通过接口ListDatasources获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'datasource1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'AD7D9E95-BD31-53F2-B710-6C01866FCB05', + ], + 'DatasourceId' => [ + 'title' => '数据源ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + 'Name' => [ + 'title' => '数据源名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'datasource1', + ], + 'Type' => [ + 'title' => '数据源类型。'."\n" + .'● FeatureDB'."\n" + .'● Hologres'."\n" + .'● MaxCompute'."\n" + .'● TableStore', + 'description' => '', + 'type' => 'string', + 'example' => 'Hologres', + ], + 'Uri' => [ + 'title' => '资源地址。', + 'description' => '', + 'type' => 'string', + 'example' => 'igraph_instance1', + ], + 'Config' => [ + 'title' => '资源配置。', + 'description' => '', + 'type' => 'string', + 'example' => '{"address": ""}', + ], + 'WorkspaceId' => [ + 'title' => '工作空间ID。', + 'description' => '', + 'type' => 'string', + 'example' => '32244', + ], + 'GmtCreateTime' => [ + 'title' => '创建时间。', + 'type' => 'string', + 'example' => '2023-07-04T11:26:09.036+08:00', + ], + 'GmtModifiedTime' => [ + 'title' => '更新时间。', + 'type' => 'string', + 'example' => '2023-07-04T11:26:09.036+08:00', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AD7D9E95-BD31-53F2-B710-6C01866FCB05\\",\\n \\"DatasourceId\\": \\"3\\",\\n \\"Name\\": \\"datasource1\\",\\n \\"Type\\": \\"Hologres\\",\\n \\"Uri\\": \\"igraph_instance1\\",\\n \\"Config\\": \\"{\\\\\\"address\\\\\\": \\\\\\"\\\\\\"}\\",\\n \\"WorkspaceId\\": \\"32244\\",\\n \\"GmtCreateTime\\": \\"2023-07-04T11:26:09.036+08:00\\",\\n \\"GmtModifiedTime\\": \\"2023-07-04T11:26:09.036+08:00\\"\\n}","type":"json"}]', + ], + 'UpdateDatasource' => [ + 'summary' => '更新数据源信息。', + 'path' => '/api/v1/instances/{InstanceId}/datasources/{DatasourceId}', + 'methods' => [ + 'put', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可通过接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'DatasourceId', + 'in' => 'path', + 'schema' => [ + 'title' => '数据源ID,可通过接口ListDatasources获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => '数据源名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'datasource1', + ], + 'Uri' => [ + 'title' => '资源地址。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'igraph_instance1', + ], + 'Config' => [ + 'title' => '资源配置。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '{"address": ""}', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'C33E160C-BFCA-5719-B958-942850E949F6', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C33E160C-BFCA-5719-B958-942850E949F6\\"\\n}","type":"json"}]', + ], + 'DeleteDatasource' => [ + 'summary' => '删除指定数据源。', + 'path' => '/api/v1/instances/{InstanceId}/datasources/{DatasourceId}', + 'methods' => [ + 'delete', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可通过接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'DatasourceId', + 'in' => 'path', + 'schema' => [ + 'title' => '数据源ID,可通过接口ListDatasources获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'E2E1575F-29D1-5579-B649-B7883A793562', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E2E1575F-29D1-5579-B649-B7883A793562\\"\\n}","type":"json"}]', + ], + 'ListDatasourceFeatureViews' => [ + 'summary' => '获取数据源下所有特征视图信息。', + 'path' => '/api/v1/instances/{InstanceId}/datasources/{DatasourceId}/featureviews', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '259270', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可通过接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'DatasourceId', + 'in' => 'path', + 'schema' => [ + 'title' => '数据源ID,可通过接口ListDatasources获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'title' => '页大小。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'title' => '页码。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'title' => '排序依据。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'GmtCreateTime', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'title' => '排序方式。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Desc', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'title' => '项目ID,可通过接口ListProjects获取。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '3', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'title' => '特征视图名称模糊过滤。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'fv', + ], + ], + [ + 'name' => 'Type', + 'in' => 'query', + 'schema' => [ + 'title' => '特征视图类型。'."\n" + .'● Batch-离线特征'."\n" + .'● Stream-实时特征'."\n" + .'● Sequence-序列特征', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Stream', + ], + ], + [ + 'name' => 'All', + 'in' => 'query', + 'schema' => [ + 'title' => '是否返回所有数据(不分页)。', + 'description' => '', + 'type' => 'boolean', + 'required' => false, + 'default' => 'false', + ], + ], + [ + 'name' => 'ProjectName', + 'in' => 'query', + 'schema' => [ + 'title' => '项目名称过滤。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'fs_project', + ], + ], + [ + 'name' => 'StartDate', + 'in' => 'query', + 'schema' => [ + 'title' => '查询读写量的起始时间,格式为yyyy-mm-dd。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '2025-03-14', + ], + ], + [ + 'name' => 'EndDate', + 'in' => 'query', + 'schema' => [ + 'title' => '查询读写量的截止时间,格式为yyyy-mm-dd。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '2025-03-19', + ], + ], + [ + 'name' => 'Verbose', + 'in' => 'query', + 'schema' => [ + 'title' => '是否展示详细信息。如果设置为false,则不展示每个视图的UsageStatistics,只展示总量。默认为true。', + 'description' => '', + 'type' => 'boolean', + 'required' => false, + 'default' => 'true', + ], + ], + [ + 'name' => 'ShowStorageUsage', + 'in' => 'query', + 'schema' => [ + 'title' => '是否展示存储用量,默认为true。', + 'description' => '', + 'type' => 'boolean', + 'required' => false, + 'default' => 'true', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => [ + 'title' => '总个数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'requestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => '514F82AF-3C04-5C3D-8F38-A11261BF37B0', + ], + 'TotalUsageStatistics' => [ + 'title' => '用量统计综合。仅使用FeatureDB的特征视图展示。', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'TotalDiskUsage' => [ + 'title' => '磁盘存储用量总和。', + 'description' => '', + 'type' => 'number', + 'format' => 'double', + 'example' => '12.3', + ], + 'TotalMemoryUsage' => [ + 'title' => '内存存储用量总和。', + 'description' => '', + 'type' => 'number', + 'format' => 'double', + 'example' => '1.23', + ], + 'TotalReadWriteCount' => [ + 'title' => '读写次数总量统计。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Date' => [ + 'title' => '日期。', + 'description' => '', + 'type' => 'string', + 'example' => '2025-03-18T00:00:00+08:00', + ], + 'TotalWriteCount' => [ + 'title' => '写入次数总量。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '123', + ], + 'TotalReadCount' => [ + 'title' => '读取次数总量。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '456', + ], + ], + ], + ], + ], + ], + 'FeatureViews' => [ + 'title' => '特征视图列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'FeatureViewId' => [ + 'title' => '特征视图ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + 'Name' => [ + 'title' => '特征视图名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'fv1', + ], + 'ProjectName' => [ + 'title' => '项目名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'p1', + ], + 'Type' => [ + 'title' => '特征视图类型。'."\n" + .'● Batch-离线特征'."\n" + .'● Stream-实时特征'."\n" + .'● Sequence-序列特征', + 'description' => '', + 'type' => 'string', + 'example' => 'Batch', + ], + 'FeatureEntityName' => [ + 'title' => '特征实体名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'user', + ], + 'TTL' => [ + 'title' => '生命周期。单位:秒。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '86400', + ], + 'Config' => [ + 'title' => '特征视图配置。仅使用FeatureDB的特征视图有值,展示分片数和副本数信息。', + 'description' => '', + 'type' => 'string', + 'example' => '{"shard_count":5,"replication_count":1}', + ], + 'UsageStatistics' => [ + 'title' => '用量统计。仅使用FeatureDB的特征视图展示。', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'RowCount' => [ + 'title' => '行数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10000', + ], + 'DiskUsage' => [ + 'title' => '磁盘存储用量。', + 'description' => '', + 'type' => 'number', + 'format' => 'double', + 'example' => '1.23', + ], + 'MemoryUsage' => [ + 'title' => '内存存储用量。', + 'description' => '', + 'type' => 'number', + 'format' => 'double', + 'example' => '0.12', + ], + 'ReadWriteCount' => [ + 'title' => '读写次数统计。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Date' => [ + 'title' => '日期。', + 'description' => '', + 'type' => 'string', + 'example' => '2025-03-18T00:00:00+08:00', + ], + 'WriteCount' => [ + 'title' => '写入次数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '100', + ], + 'ReadCount' => [ + 'title' => '读取次数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '200', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TotalCount\\": 10,\\n \\"requestId\\": \\"514F82AF-3C04-5C3D-8F38-A11261BF37B0\\",\\n \\"TotalUsageStatistics\\": {\\n \\"TotalDiskUsage\\": 12.3,\\n \\"TotalMemoryUsage\\": 1.23,\\n \\"TotalReadWriteCount\\": [\\n {\\n \\"Date\\": \\"2025-03-18T00:00:00+08:00\\",\\n \\"TotalWriteCount\\": 123,\\n \\"TotalReadCount\\": 456\\n }\\n ]\\n },\\n \\"FeatureViews\\": [\\n {\\n \\"FeatureViewId\\": \\"3\\",\\n \\"Name\\": \\"fv1\\",\\n \\"ProjectName\\": \\"p1\\",\\n \\"Type\\": \\"Batch\\",\\n \\"FeatureEntityName\\": \\"user\\",\\n \\"TTL\\": 86400,\\n \\"Config\\": \\"{\\\\\\"shard_count\\\\\\":5,\\\\\\"replication_count\\\\\\":1}\\",\\n \\"UsageStatistics\\": {\\n \\"RowCount\\": 10000,\\n \\"DiskUsage\\": 1.23,\\n \\"MemoryUsage\\": 0.12,\\n \\"ReadWriteCount\\": [\\n {\\n \\"Date\\": \\"2025-03-18T00:00:00+08:00\\",\\n \\"WriteCount\\": 100,\\n \\"ReadCount\\": 200\\n }\\n ]\\n }\\n }\\n ]\\n}","type":"json"}]', + ], + 'ListDatasourceTables' => [ + 'summary' => '获取数据源下所有表。', + 'path' => '/api/v1/instances/{InstanceId}/datasources/{DatasourceId}/tables', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '188514', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'DatasourceId', + 'in' => 'path', + 'schema' => [ + 'title' => '数据源ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + [ + 'name' => 'TableName', + 'in' => 'query', + 'schema' => [ + 'title' => '表名过滤。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'table1', + ], + ], + [ + 'name' => 'SchemaName', + 'in' => 'query', + 'schema' => [ + 'title' => 'Schema名称。', + 'type' => 'string', + 'example' => 'default', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'C03B2680-AC9C-59CD-93C5-8142B92537FA', + ], + 'TotalCount' => [ + 'title' => '总个数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'Tables' => [ + 'title' => '数据表列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'table1', + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C03B2680-AC9C-59CD-93C5-8142B92537FA\\",\\n \\"TotalCount\\": 10,\\n \\"Tables\\": [\\n \\"table1\\"\\n ]\\n}","type":"json"}]', + ], + 'GetDatasourceTable' => [ + 'summary' => '获取数据源下指定表的详细信息。', + 'path' => '/api/v1/instances/{InstanceId}/datasources/{DatasourceId}/tables/{TableName}', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '188515', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'DatasourceId', + 'in' => 'path', + 'schema' => [ + 'title' => '数据源ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + [ + 'name' => 'TableName', + 'in' => 'path', + 'schema' => [ + 'title' => '数据表名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'table1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'D7B2F8C4-49C7-5CFA-8075-9D715A114873', + ], + 'TableName' => [ + 'title' => '数据表名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'table1', + ], + 'Fields' => [ + 'title' => '字段列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => '字段名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'field1', + ], + 'Type' => [ + 'title' => '字段类型。'."\n" + .'● INT32'."\n" + .'● INT64'."\n" + .'● FLOAT'."\n" + .'● DOUBLE'."\n" + .'● STRING'."\n" + .'● BOOLEAN'."\n" + .'● TIMESTAMP', + 'description' => '', + 'type' => 'string', + 'example' => 'INT32', + ], + 'Attributes' => [ + 'title' => '字段属性列表,可能出现的值包括:'."\n" + .'● Partition-分区字段'."\n" + .'● EventTime-事件时间'."\n" + .'● PrimaryKey-主键', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Partition', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D7B2F8C4-49C7-5CFA-8075-9D715A114873\\",\\n \\"TableName\\": \\"table1\\",\\n \\"Fields\\": [\\n {\\n \\"Name\\": \\"field1\\",\\n \\"Type\\": \\"INT32\\",\\n \\"Attributes\\": [\\n \\"Partition\\"\\n ]\\n }\\n ]\\n}","type":"json"}]', + ], + 'CreateLLMConfig' => [ + 'summary' => '创建大模型调用信息配置', + 'path' => '/api/v1/instances/{InstanceId}/llmconfigs', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => '大模型调用信息配置名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'llm_config1', + ], + 'Model' => [ + 'title' => '模型名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'text-embedding-v1', + ], + 'ApiKey' => [ + 'title' => '大模型调用密钥。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'api-xyz', + ], + 'BaseUrl' => [ + 'title' => '大模型调用信息基础链接。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'https://dashscope.aliyuncs.com/compatible-mode/v1', + ], + 'Rps' => [ + 'title' => '每秒并发请求数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '30', + ], + 'MaxTokens' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'title' => '一行最大输入 token 数。', + 'example' => '8192', + ], + 'BatchSize' => [ + 'title' => '一次批处理大小。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '8', + ], + 'WorkspaceId' => [ + 'title' => '工作空间ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '234', + ], + 'EmbeddingDimension' => [ + 'title' => '向量维度。为空或为0则按照模型各自的默认维度处理。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1024', + ], + ], + 'required' => false, + ], + ], + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可通过接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'featureStore-cn-test1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + ], + 'LLMConfigId' => [ + 'title' => '大模型调用信息配置ID。', + 'description' => '', + 'type' => 'string', + 'example' => 'llm_config1', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DD19A0E2-0DC8-5EAA-867D-00C813F553F9\\",\\n \\"LLMConfigId\\": \\"llm_config1\\"\\n}","type":"json"}]', + ], + 'ListLLMConfigs' => [ + 'summary' => '获取大模型调用信息配置', + 'path' => '/api/v1/instances/{InstanceId}/llmconfigs', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'featureStore-cn-XXXXXXX', + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'title' => '工作空间ID。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '234', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'title' => '大模型调用信息配置名称。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'llm_config_1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'title' => '页大小。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'title' => '页码。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'title' => '排序方式。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Asc', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'title' => '排序依据。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'GmtModifiedTime', + ], + ], + [ + 'name' => 'MaxResults', + 'in' => 'query', + 'allowEmptyValue' => false, + 'schema' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '100', + ], + ], + [ + 'name' => 'NextToken', + 'in' => 'query', + 'allowEmptyValue' => false, + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'None', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => '898DB17C-09E9-5C41-909D-269BA183EB92', + ], + 'TotalCount' => [ + 'title' => '总个数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'LLMConfigs' => [ + 'title' => '大模型配置信息字段。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'LLMConfigId' => [ + 'title' => '大模型调用信息配置ID。', + 'description' => '', + 'type' => 'string', + 'example' => 'llm_config1', + ], + 'Name' => [ + 'title' => '大模型调用信息配置名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'llm_config_name1', + ], + 'ApiKey' => [ + 'title' => '大模型调用密钥。', + 'description' => '', + 'type' => 'string', + 'example' => 'apikey-abcdxy', + ], + 'Model' => [ + 'title' => '模型名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'text-embedding-v1', + ], + 'BaseUrl' => [ + 'title' => '配置基础调用链接。', + 'description' => '', + 'type' => 'string', + 'example' => 'https://dashscope.aliyuncs.com/compatible-mode/v1', + ], + 'Rps' => [ + 'title' => '每秒钟最大并发调用次数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '30', + ], + 'MaxTokens' => [ + 'title' => '单行最大处理Token数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '2048', + ], + 'GmtCreateTime' => [ + 'title' => '创建时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2023-07-04T11:26:09.036+08:00', + ], + 'GmtModifiedTime' => [ + 'title' => '修改时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2023-07-04T11:26:09.036+08:00', + ], + 'ResourceGroupId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'rg-aek2vtzqjaohzqi', + ], + 'BatchSize' => [ + 'title' => '一次批处理大小。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '8', + ], + 'WorkspaceId' => [ + 'title' => '工作空间ID。', + 'description' => '', + 'type' => 'string', + 'example' => '234', + ], + 'EmbeddingDimension' => [ + 'title' => '向量维度。为空或为0则按照模型各自的默认维度处理。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1024', + ], + ], + ], + 'required' => true, + 'minItems' => 0, + ], + 'NextToken' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'AAAAAV3MpHK1AP0pfERHZN5pu6mbU5D/SFHCHMApYkMcWlp5', + ], + 'MaxResults' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + ], + ], + ], + [], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"898DB17C-09E9-5C41-909D-269BA183EB92\\",\\n \\"TotalCount\\": 10,\\n \\"LLMConfigs\\": [\\n {\\n \\"LLMConfigId\\": \\"llm_config1\\",\\n \\"Name\\": \\"llm_config_name1\\",\\n \\"ApiKey\\": \\"apikey-abcdxy\\",\\n \\"Model\\": \\"text-embedding-v1\\",\\n \\"BaseUrl\\": \\"https://dashscope.aliyuncs.com/compatible-mode/v1\\",\\n \\"Rps\\": 30,\\n \\"MaxTokens\\": 2048,\\n \\"GmtCreateTime\\": \\"2023-07-04T11:26:09.036+08:00\\",\\n \\"GmtModifiedTime\\": \\"2023-07-04T11:26:09.036+08:00\\",\\n \\"ResourceGroupId\\": \\"rg-aek2vtzqjaohzqi\\",\\n \\"BatchSize\\": 8,\\n \\"WorkspaceId\\": \\"234\\",\\n \\"EmbeddingDimension\\": 1024\\n }\\n ],\\n \\"NextToken\\": \\"AAAAAV3MpHK1AP0pfERHZN5pu6mbU5D/SFHCHMApYkMcWlp5\\",\\n \\"MaxResults\\": 10\\n}","type":"json"}]', + ], + 'GetLLMConfig' => [ + 'summary' => '获取 LLMConfig 信息', + 'path' => '/api/v1/instances/{InstanceId}/llmconfigs/{LLMConfigId}', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可通过接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-********', + ], + ], + [ + 'name' => 'LLMConfigId', + 'in' => 'path', + 'schema' => [ + 'title' => '大模型调用信息配置ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'llm_config1', + ], + ], + [ + 'name' => 'RegionId', + 'in' => 'path', + 'schema' => [ + 'title' => '', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'cn-beijing', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => 'C03B2680-AC9C-59CD-93C5-8142B92537FA', + ], + 'LLMConfigId' => [ + 'title' => '大模型调用信息配置ID。', + 'description' => '', + 'type' => 'string', + 'example' => 'llm_config1', + ], + 'Name' => [ + 'title' => '大模型调用信息配置名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'llm_config_name1', + ], + 'ApiKey' => [ + 'title' => '大模型调用密钥。', + 'description' => '', + 'type' => 'string', + 'example' => 'api-abcdxy', + ], + 'Model' => [ + 'title' => '模型名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'text-embedding-v1', + ], + 'BaseUrl' => [ + 'title' => '配置基础调用链接。', + 'description' => '', + 'type' => 'string', + 'example' => 'https://dashscope.aliyuncs.com/compatible-mode/v1', + ], + 'Rps' => [ + 'title' => '每秒钟调用次数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '30', + ], + 'MaxTokens' => [ + 'title' => '单行最大处理Token数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '2048', + ], + 'GmtCreateTime' => [ + 'title' => '创建时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2023-07-04T11:26:09.036+08:00', + ], + 'GmtModifiedTime' => [ + 'title' => '修改时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2023-07-04T11:26:09.036+08:00', + ], + 'BatchSize' => [ + 'title' => '一次批处理大小。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '8', + ], + 'WorkspaceId' => [ + 'title' => '工作空间ID。', + 'description' => '', + 'type' => 'string', + 'example' => '234', + ], + 'EmbeddingDimension' => [ + 'title' => '向量维度。为空或为0则按照模型各自的默认维度处理。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1024', + ], + ], + ], + ], + [], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C03B2680-AC9C-59CD-93C5-8142B92537FA\\",\\n \\"LLMConfigId\\": \\"llm_config1\\",\\n \\"Name\\": \\"llm_config_name1\\",\\n \\"ApiKey\\": \\"api-abcdxy\\",\\n \\"Model\\": \\"text-embedding-v1\\",\\n \\"BaseUrl\\": \\"https://dashscope.aliyuncs.com/compatible-mode/v1\\",\\n \\"Rps\\": 30,\\n \\"MaxTokens\\": 2048,\\n \\"GmtCreateTime\\": \\"2023-07-04T11:26:09.036+08:00\\",\\n \\"GmtModifiedTime\\": \\"2023-07-04T11:26:09.036+08:00\\",\\n \\"BatchSize\\": 8,\\n \\"WorkspaceId\\": \\"234\\",\\n \\"EmbeddingDimension\\": 1024\\n}","type":"json"}]', + ], + 'UpdateLLMConfig' => [ + 'summary' => '更新大模型调用信息配置', + 'path' => '/api/v1/instances/{InstanceId}/llmconfigs/{LLMConfigId}', + 'methods' => [ + 'put', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可通过接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-***', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => '大模型调用信息名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'llm-config1', + ], + 'Model' => [ + 'title' => '模型名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'text-embedding-v1', + ], + 'ApiKey' => [ + 'title' => '大模型调用密钥。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'apikey-***', + ], + 'BaseUrl' => [ + 'title' => '大模型调用基础链接。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'https://dashscope.aliyuncs.com/compatible-mode/v1', + ], + 'Rps' => [ + 'title' => '每秒调用并发数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'example' => '30', + ], + 'MaxTokens' => [ + 'title' => '一行最大输入 token 数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'example' => '2048', + ], + 'BatchSize' => [ + 'title' => '一次批处理大小。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '8', + ], + 'EmbeddingDimension' => [ + 'title' => '向量维度。为空或为0则按照模型各自的默认维度处理。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1024', + ], + ], + 'required' => false, + ], + ], + [ + 'name' => 'LLMConfigId', + 'in' => 'path', + 'schema' => [ + 'title' => '大模型调用信息配置ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'llm_config_test1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"BF349686-C932-55B5-9B31-DAFA395C0E06\\"\\n}","type":"json"}]', + ], + 'DeleteLLMConfig' => [ + 'summary' => '删除大模型调用信息配置', + 'path' => '/api/v1/instances/{InstanceId}/llmconfigs/{LLMConfigId}', + 'methods' => [ + 'delete', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可通过接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'LLMConfigId', + 'in' => 'path', + 'schema' => [ + 'title' => '大模型调用信息配置ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'llm_config1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"96EE513F-8626-50B8-B046-D57FD3D037C2\\"\\n}","type":"json"}]', + ], + 'CreateProject' => [ + 'summary' => '创建FeatureStore项目', + 'path' => '/api/v1/instances/{InstanceId}/projects', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可通过接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => '项目名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'project1', + ], + 'WorkspaceId' => [ + 'title' => '工作空间ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '324', + ], + 'Description' => [ + 'title' => '项目描述。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'This is a test.', + ], + 'OfflineDatasourceId' => [ + 'title' => '离线数据源ID,可通过接口ListDatasources获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '4', + ], + 'OfflineLifeCycle' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '90', + 'title' => '离线数据表生命周期。', + ], + 'OnlineDatasourceId' => [ + 'title' => '在线数据源ID,可通过接口ListDatasources获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '977ADE3A-D69D-58AD-8323-96E2FB898E99', + ], + 'ProjectId' => [ + 'title' => '项目ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"977ADE3A-D69D-58AD-8323-96E2FB898E99\\",\\n \\"ProjectId\\": \\"3\\"\\n}","type":"json"}]', + ], + 'ListProjects' => [ + 'summary' => '获取Feature Store项目列表。', + 'path' => '/api/v1/instances/{InstanceId}/projects', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可通过接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => [ + 'title' => '工作空间ID,可通过工作空间接口ListWorkspaces获取。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '234', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'title' => '项目名称过滤。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'fs1', + ], + ], + [ + 'name' => 'Owner', + 'in' => 'query', + 'schema' => [ + 'title' => '项目所有者。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '134324352****', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'title' => '页码。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'title' => '页码。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'title' => '排序方式。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Asc', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'title' => '排序依据。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'GmtModifiedTime', + ], + ], + [ + 'name' => 'ProjectIds', + 'in' => 'query', + 'style' => 'simple', + 'schema' => [ + 'title' => '项目ID过滤。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '3', + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '44933189-493B-5C43-A5C6-11EEC2A43520', + ], + 'TotalCount' => [ + 'title' => '总个数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'Projects' => [ + 'title' => '项目列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => [ + 'title' => '项目ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + 'Name' => [ + 'title' => '项目名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'project1', + ], + 'Description' => [ + 'title' => '项目描述。', + 'description' => '', + 'type' => 'string', + 'example' => 'This is a test.', + ], + 'OfflineDatasourceType' => [ + 'title' => '离线数据源类型。', + 'description' => '', + 'type' => 'string', + 'example' => 'MaxCompute', + ], + 'OfflineDatasourceId' => [ + 'title' => '离线数据源ID。', + 'description' => '', + 'type' => 'string', + 'example' => '4', + ], + 'OfflineDatasourceName' => [ + 'title' => '离线数据源名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'datasource1', + ], + 'OnlineDatasourceType' => [ + 'title' => '在线数据源类型。', + 'description' => '', + 'type' => 'string', + 'example' => 'Hologres', + ], + 'OnlineDatasourceId' => [ + 'title' => '在线数据源ID。', + 'description' => '', + 'type' => 'string', + 'example' => '5', + ], + 'OnlineDatasourceName' => [ + 'title' => '在线数据源名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'datasource2', + ], + 'OfflineLifecycle' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + 'title' => '离线数据表生命周期。', + ], + 'FeatureEntityCount' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + 'title' => '特征实体数量。', + ], + 'FeatureViewCount' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + 'title' => '特征视图数量。', + ], + 'ModelCount' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '5', + 'title' => '模型特征数量。', + ], + 'Owner' => [ + 'title' => '项目所有者。', + 'description' => '', + 'type' => 'string', + 'example' => '1232132543543****', + ], + 'GmtCreateTime' => [ + 'title' => '创建时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2021-12-15T23:24:33.132+08:00', + ], + 'GmtModifiedTime' => [ + 'title' => '更新时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2021-12-15T23:24:33.132+08:00', + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"44933189-493B-5C43-A5C6-11EEC2A43520\\",\\n \\"TotalCount\\": 10,\\n \\"Projects\\": [\\n {\\n \\"ProjectId\\": \\"3\\",\\n \\"Name\\": \\"project1\\",\\n \\"Description\\": \\"This is a test.\\",\\n \\"OfflineDatasourceType\\": \\"MaxCompute\\",\\n \\"OfflineDatasourceId\\": \\"4\\",\\n \\"OfflineDatasourceName\\": \\"datasource1\\",\\n \\"OnlineDatasourceType\\": \\"Hologres\\",\\n \\"OnlineDatasourceId\\": \\"5\\",\\n \\"OnlineDatasourceName\\": \\"datasource2\\",\\n \\"OfflineLifecycle\\": 10,\\n \\"FeatureEntityCount\\": 10,\\n \\"FeatureViewCount\\": 10,\\n \\"ModelCount\\": 5,\\n \\"Owner\\": \\"1232132543543****\\",\\n \\"GmtCreateTime\\": \\"2021-12-15T23:24:33.132+08:00\\",\\n \\"GmtModifiedTime\\": \\"2021-12-15T23:24:33.132+08:00\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'GetProject' => [ + 'summary' => '获取指定Feature Store项目详细信息。', + 'path' => '/api/v1/instances/{InstanceId}/projects/{ProjectId}', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可通过接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'path', + 'schema' => [ + 'title' => '项目ID,可通过接口ListProjects获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '4', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'C33E160C-BFCA-5719-B958-942850E949F6', + ], + 'Name' => [ + 'title' => '项目名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'project1', + ], + 'Description' => [ + 'title' => '项目描述。', + 'description' => '', + 'type' => 'string', + 'example' => 'This is a test.', + ], + 'OfflineDatasourceType' => [ + 'title' => '离线数据源类型。', + 'description' => '', + 'type' => 'string', + 'example' => 'MaxCompute', + ], + 'OfflineDatasourceId' => [ + 'title' => '离线数据源ID。', + 'description' => '', + 'type' => 'string', + 'example' => '4', + ], + 'OfflineDatasourceName' => [ + 'title' => '离线数据源名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'datasource1', + ], + 'OnlineDatasourceType' => [ + 'title' => '在线数据源类型。', + 'description' => '', + 'type' => 'string', + 'example' => 'Hologres', + ], + 'OnlineDatasourceId' => [ + 'title' => '在线数据源ID。', + 'description' => '', + 'type' => 'string', + 'example' => '5', + ], + 'OnlineDatasourceName' => [ + 'title' => '在线数据源名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'datasource2', + ], + 'OfflineLifecycle' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '90', + 'title' => '离线数据表生命周期。', + ], + 'FeatureEntityCount' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + 'title' => '特征实体数量。', + ], + 'FeatureViewCount' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + 'title' => '特征视图数量。', + ], + 'ModelCount' => [ + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '5', + 'title' => '模型特征数量。', + ], + 'Owner' => [ + 'title' => '项目所有者。', + 'description' => '', + 'type' => 'string', + 'example' => '1232132543543****', + ], + 'GmtCreateTime' => [ + 'title' => '创建时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2021-12-15T23:24:33.132+08:00', + ], + 'GmtModifiedTime' => [ + 'title' => '更新时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2021-12-15T23:24:33.132+08:00', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C33E160C-BFCA-5719-B958-942850E949F6\\",\\n \\"Name\\": \\"project1\\",\\n \\"Description\\": \\"This is a test.\\",\\n \\"OfflineDatasourceType\\": \\"MaxCompute\\",\\n \\"OfflineDatasourceId\\": \\"4\\",\\n \\"OfflineDatasourceName\\": \\"datasource1\\",\\n \\"OnlineDatasourceType\\": \\"Hologres\\",\\n \\"OnlineDatasourceId\\": \\"5\\",\\n \\"OnlineDatasourceName\\": \\"datasource2\\",\\n \\"OfflineLifecycle\\": 90,\\n \\"FeatureEntityCount\\": 10,\\n \\"FeatureViewCount\\": 10,\\n \\"ModelCount\\": 5,\\n \\"Owner\\": \\"1232132543543****\\",\\n \\"GmtCreateTime\\": \\"2021-12-15T23:24:33.132+08:00\\",\\n \\"GmtModifiedTime\\": \\"2021-12-15T23:24:33.132+08:00\\"\\n}","type":"json"}]', + ], + 'UpdateProject' => [ + 'summary' => '更新指定Feature Store项目信息。', + 'path' => '/api/v1/instances/{InstanceId}/projects/{ProjectId}', + 'methods' => [ + 'put', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可通过接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'path', + 'schema' => [ + 'title' => '项目ID,可通过接口ListProjects获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => '项目名称。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'project1', + ], + 'Description' => [ + 'title' => '项目描述。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'This is a test.', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '2150233F-A1F7-54D2-B5B5-8A70567549BD', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2150233F-A1F7-54D2-B5B5-8A70567549BD\\"\\n}","type":"json"}]', + ], + 'DeleteProject' => [ + 'summary' => '删除指定Feature Store项目。', + 'path' => '/api/v1/instances/{InstanceId}/projects/{ProjectId}', + 'methods' => [ + 'delete', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可通过接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'path', + 'schema' => [ + 'title' => '项目ID,可通过接口ListProjects获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '0DA35264-0877-5852-8971-7735B547C969', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0DA35264-0877-5852-8971-7735B547C969\\"\\n}","type":"json"}]', + ], + 'ListProjectFeatures' => [ + 'summary' => '获取项目下所有特征信息', + 'path' => '/api/v1/instances/{InstanceId}/projects/{ProjectId}/features', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'path', + 'schema' => [ + 'title' => '项目ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'title' => '特征名称,支持模糊搜索。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'f1', + ], + ], + [ + 'name' => 'AliasName', + 'in' => 'query', + 'schema' => [ + 'title' => '特征别名,支持模糊搜索。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'ff1', + ], + ], + [ + 'name' => 'Filter', + 'in' => 'query', + 'schema' => [ + 'title' => '其它过滤条件,JSON格式填入,AND条件查询。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '{"feature_view_name":"fv1"}', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'title' => '页码。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'title' => '页大小。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'title' => '排序依据。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'ModelFeatureCount', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'title' => '排序方式。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Desc', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => [ + 'title' => '总个数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'requestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => '7D497816-607C-5B67-97B1-61354B6ACB2B', + ], + 'Features' => [ + 'title' => '特征列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => '特征名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'f1', + ], + 'Type' => [ + 'title' => '字段类型。', + 'description' => '', + 'type' => 'string', + 'example' => 'STRING', + ], + 'FeatureViewId' => [ + 'title' => '所属特征视图ID。', + 'description' => '', + 'type' => 'string', + 'example' => '1', + ], + 'FeatureViewName' => [ + 'title' => '所属特征视图名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'fv1', + ], + 'Owner' => [ + 'title' => '特征创建者。', + 'description' => '', + 'type' => 'string', + 'example' => '123456', + ], + 'ModelFeatureCount' => [ + 'title' => '被多少个模型特征使用。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'AliasNames' => [ + 'title' => '特征别名列表,由逗号分隔。', + 'description' => '', + 'type' => 'string', + 'example' => 'age1,age2', + ], + 'GmtCreateTime' => [ + 'title' => '创建时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2021-12-15T23:24:33.132+08:00', + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TotalCount\\": 10,\\n \\"requestId\\": \\"7D497816-607C-5B67-97B1-61354B6ACB2B\\",\\n \\"Features\\": [\\n {\\n \\"Name\\": \\"f1\\",\\n \\"Type\\": \\"STRING\\",\\n \\"FeatureViewId\\": \\"1\\",\\n \\"FeatureViewName\\": \\"fv1\\",\\n \\"Owner\\": \\"123456\\",\\n \\"ModelFeatureCount\\": 10,\\n \\"AliasNames\\": \\"age1,age2\\",\\n \\"GmtCreateTime\\": \\"2021-12-15T23:24:33.132+08:00\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'ListProjectFeatureViews' => [ + 'summary' => '获取项目下的所有特征视图、特征信息。', + 'path' => '/api/v1/instances/{InstanceId}/projects/{ProjectId}/featureviews', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'path', + 'schema' => [ + 'title' => '项目ID,可从接口ListProjects获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'AE2AF33E-0C0D-51A8-B89B-C5F1DF261D92', + ], + 'TotalCount' => [ + 'title' => '总个数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'FeatureViews' => [ + 'title' => '特征视图列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => '特征视图名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'feature_view1', + ], + 'FeatureViewId' => [ + 'title' => '特征视图ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + 'Features' => [ + 'title' => '特征列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => '特征名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'f1', + ], + 'Type' => [ + 'title' => '特征类型。'."\n" + .'● INT32'."\n" + .'● INT64'."\n" + .'● FLOAT'."\n" + .'● DOUBLE'."\n" + .'● STRING'."\n" + .'● BOOLEAN'."\n" + .'● TIMESTAMP', + 'description' => '', + 'type' => 'string', + 'example' => 'INT32', + ], + 'Attributes' => [ + 'title' => '字段属性列表,可选值包括:'."\n" + .'● Partition-分区字段'."\n" + .'● PrimaryKey-主键'."\n" + .'● EventTime-事件时间', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Partition', + ], + ], + ], + ], + ], + 'Type' => [ + 'title' => '类型。'."\n" + .'● Batch-离线特征'."\n" + .'● Stream-实时特征'."\n" + .'● Sequence-序列特征', + 'type' => 'string', + ], + 'JoinId' => [ + 'title' => '特征实体的JoinId。', + 'type' => 'string', + 'example' => 'item_id', + ], + 'ParentJoinId' => [ + 'title' => '父特征实体的JoinId。', + 'type' => 'string', + 'example' => 'item_id', + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AE2AF33E-0C0D-51A8-B89B-C5F1DF261D92\\",\\n \\"TotalCount\\": 10,\\n \\"FeatureViews\\": [\\n {\\n \\"Name\\": \\"feature_view1\\",\\n \\"FeatureViewId\\": \\"3\\",\\n \\"Features\\": [\\n {\\n \\"Name\\": \\"f1\\",\\n \\"Type\\": \\"INT32\\",\\n \\"Attributes\\": [\\n \\"Partition\\"\\n ]\\n }\\n ],\\n \\"Type\\": \\"Batch\\",\\n \\"JoinId\\": \\"item_id\\",\\n \\"ParentJoinId\\": \\"item_id\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'GetProjectFeatureEntity' => [ + 'summary' => '获取项目下特征实体详细信息', + 'path' => '/api/v1/instances/{InstanceId}/projects/{ProjectId}/featureentities/{FeatureEntityName}', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'path', + 'schema' => [ + 'title' => '项目ID,可从接口ListProjects获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + [ + 'name' => 'FeatureEntityName', + 'in' => 'path', + 'schema' => [ + 'title' => '特征实体名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'feature_entity_1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '37D19490-AB69-567D-A852-407C94E510E9', + ], + 'Name' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'feature_entity_1', + ], + 'FeatureEntityId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + 'ProjectName' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'project_1', + ], + 'WorkspaceId' => [ + 'description' => '', + 'type' => 'string', + 'example' => '34245', + ], + 'JoinId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'user_id', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"37D19490-AB69-567D-A852-407C94E510E9\\",\\n \\"Name\\": \\"feature_entity_1\\",\\n \\"FeatureEntityId\\": \\"3\\",\\n \\"ProjectName\\": \\"project_1\\",\\n \\"WorkspaceId\\": \\"34245\\",\\n \\"JoinId\\": \\"user_id\\"\\n}","type":"json"}]', + ], + 'CreateFeatureEntity' => [ + 'summary' => '创建特征实体', + 'path' => '/api/v1/instances/{InstanceId}/featureentities', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'JoinId' => [ + 'title' => '关联特征视图用的join id。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'user_id ', + ], + 'Name' => [ + 'title' => '特征实体名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'feature_entity_1', + ], + 'ProjectId' => [ + 'title' => '项目ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + 'ParentFeatureEntityId' => [ + 'title' => '父特征实体ID。', + 'type' => 'string', + 'example' => '1', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '0C89F5E1-7F24-5EEC-9F05-508A39278CC8', + ], + 'FeatureEntityId' => [ + 'title' => '特征实体ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0C89F5E1-7F24-5EEC-9F05-508A39278CC8\\",\\n \\"FeatureEntityId\\": \\"3\\"\\n}","type":"json"}]', + ], + 'ListFeatureEntities' => [ + 'summary' => '创建特征实体列表', + 'path' => '/api/v1/instances/{InstanceId}/featureentities', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '188867', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'title' => '项目ID,可从接口ListProjects获取。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '3', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'title' => '特征实体名称过滤。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'feature_entity_1', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'title' => '页码。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'title' => '页大小。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'Owner', + 'in' => 'query', + 'schema' => [ + 'title' => '创建人。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '1231432*****', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'title' => '排序依据。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'GmtModifiedTime', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'title' => '排序方式。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Desc', + ], + ], + [ + 'name' => 'FeatureEntityIds', + 'in' => 'query', + 'style' => 'simple', + 'schema' => [ + 'title' => '特征实体ID过滤。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '4', + ], + 'required' => false, + ], + ], + [ + 'name' => 'ParentFeatureEntityId', + 'in' => 'query', + 'schema' => [ + 'title' => '父特征实体ID过滤。'."\n" + .'不传,列出所有的特征实体。'."\n" + .'传0,列出所有根特征实体。'."\n" + .'传非0数值,列出指定父特征实体下所有子特征实体。', + 'type' => 'string', + 'example' => '1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '37D19490-AB69-567D-A852-407C94E510E9', + ], + 'TotalCount' => [ + 'title' => '总个数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'FeatureEntities' => [ + 'title' => '特征实体列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'FeatureEntityId' => [ + 'title' => '特征实体ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + 'GmtCreateTime' => [ + 'title' => '创建时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2021-12-15T23:24:33.132+08:00', + ], + 'JoinId' => [ + 'title' => '关联特征视图用的join id。', + 'description' => '', + 'type' => 'string', + 'example' => 'user_id', + ], + 'Name' => [ + 'title' => '特征实体名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'feature_entity_1', + ], + 'Owner' => [ + 'title' => '创建人。', + 'description' => '', + 'type' => 'string', + 'example' => '123456789****', + ], + 'ProjectId' => [ + 'title' => '项目ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + 'ProjectName' => [ + 'title' => '项目名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'project_1', + ], + 'ParentFeatureEntityId' => [ + 'title' => '父特征实体ID。为空或为0则表示为根特征实体。', + 'type' => 'string', + 'example' => '1', + ], + 'ParentFeatureEntityName' => [ + 'title' => '父特征实体名称。', + 'type' => 'string', + 'example' => 'user', + ], + 'ParentJoinId' => [ + 'title' => '父特征实体的JoinID。', + 'type' => 'string', + 'example' => 'user_id', + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"37D19490-AB69-567D-A852-407C94E510E9\\",\\n \\"TotalCount\\": 10,\\n \\"FeatureEntities\\": [\\n {\\n \\"FeatureEntityId\\": \\"3\\",\\n \\"GmtCreateTime\\": \\"2021-12-15T23:24:33.132+08:00\\",\\n \\"JoinId\\": \\"user_id\\",\\n \\"Name\\": \\"feature_entity_1\\",\\n \\"Owner\\": \\"123456789****\\",\\n \\"ProjectId\\": \\"3\\",\\n \\"ProjectName\\": \\"project_1\\",\\n \\"ParentFeatureEntityId\\": \\"1\\",\\n \\"ParentFeatureEntityName\\": \\"user\\",\\n \\"ParentJoinId\\": \\"user_id\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'GetFeatureEntity' => [ + 'summary' => '获取特征实体详细信息', + 'path' => '/api/v1/instances/{InstanceId}/featureentities/{FeatureEntityId}', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实力ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'FeatureEntityId', + 'in' => 'path', + 'schema' => [ + 'title' => '特征实体ID,可从接口ListFeatureEntities获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'E23EFF09-58AA-5420-934F-8453AE01548D', + ], + 'Name' => [ + 'title' => '特征实体名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'feature_entity_1', + ], + 'ProjectId' => [ + 'title' => '项目ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + 'ProjectName' => [ + 'title' => '项目名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'project_1', + ], + 'JoinId' => [ + 'title' => '关联特征视图用的join id。', + 'description' => '', + 'type' => 'string', + 'example' => 'user_id', + ], + 'Owner' => [ + 'title' => '创建人。', + 'description' => '', + 'type' => 'string', + 'example' => '123456789*****', + ], + 'GmtCreateTime' => [ + 'title' => '创建时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2021-12-15T23:24:33.132+08:00', + ], + 'ParentFeatureEntityId' => [ + 'title' => '父特征实体ID。为空或为0则表示为根特征实体。', + 'type' => 'string', + 'example' => '1', + ], + 'ParentFeatureEntityName' => [ + 'title' => '父特征实体名称。', + 'type' => 'string', + 'example' => 'user', + ], + 'ParentJoinId' => [ + 'title' => '父特征实体的JoinID。', + 'type' => 'string', + 'example' => 'user_id', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E23EFF09-58AA-5420-934F-8453AE01548D\\",\\n \\"Name\\": \\"feature_entity_1\\",\\n \\"ProjectId\\": \\"3\\",\\n \\"ProjectName\\": \\"project_1\\",\\n \\"JoinId\\": \\"user_id\\",\\n \\"Owner\\": \\"123456789*****\\",\\n \\"GmtCreateTime\\": \\"2021-12-15T23:24:33.132+08:00\\",\\n \\"ParentFeatureEntityId\\": \\"1\\",\\n \\"ParentFeatureEntityName\\": \\"user\\",\\n \\"ParentJoinId\\": \\"user_id\\"\\n}","type":"json"}]', + ], + 'DeleteFeatureEntity' => [ + 'summary' => '删除指定特征实体', + 'path' => '/api/v1/instances/{InstanceId}/featureentities/{FeatureEntityId}', + 'methods' => [ + 'delete', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'FeatureEntityId', + 'in' => 'path', + 'schema' => [ + 'title' => '特征实体ID,可从接口ListFeatureEntities获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'E23EFF09-58AA-5420-934F-8453AE01548D', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E23EFF09-58AA-5420-934F-8453AE01548D\\"\\n}","type":"json"}]', + ], + 'CreateFeatureView' => [ + 'summary' => '创建特征视图。', + 'path' => '/api/v1/instances/{InstanceId}/featureviews', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '188527', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'title' => '请求body。', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => [ + 'title' => '项目ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + 'FeatureEntityId' => [ + 'title' => '特征实体ID。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '4', + ], + 'Name' => [ + 'title' => '特征视图名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'FeatureView1', + ], + 'Type' => [ + 'title' => '类型。'."\n" + .'● Batch-离线特征'."\n" + .'● Stream-实时特征'."\n" + .'● Sequence-行为序列特征', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'Batch', + ], + 'WriteMethod' => [ + 'title' => '写入方式。'."\n" + .'● ByReadyMadeTable-使用现成表注册'."\n" + .'● Custom-自定义表结构', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'Custom', + ], + 'WriteToFeatureDB' => [ + 'title' => '是否写入在线托管存储。如果项目在线数据源为托管存储,会自动设置为true。'."\n" + .'默认:false', + 'type' => 'boolean', + ], + 'RegisterTable' => [ + 'title' => '注册表名称。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'table1', + ], + 'RegisterDatasourceId' => [ + 'title' => '注册表所在数据源ID。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '5', + ], + 'SyncOnlineTable' => [ + 'title' => '是否同步在线特征表。', + 'description' => '', + 'type' => 'boolean', + 'required' => true, + 'example' => 'true', + ], + 'TTL' => [ + 'title' => '生命周期。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '90', + ], + 'Tags' => [ + 'title' => '标签列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'label1', + ], + 'required' => false, + ], + 'Config' => [ + 'title' => '特征视图配置。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '{"save_original_field":true}', + ], + 'Fields' => [ + 'title' => '字段列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => '字段名称。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'age', + ], + 'Type' => [ + 'title' => '字段类型。'."\n" + .'● INT32'."\n" + .'● INT64'."\n" + .'● FLOAT'."\n" + .'● DOUBLE'."\n" + .'● STRING'."\n" + .'● BOOLEAN'."\n" + .'● TIMESTAMP'."\n" + .'● ARRAY'."\n" + .'● MAP', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'INT32', + ], + 'Attributes' => [ + 'title' => '字段属性列表,可选值包括:'."\n" + .'● Partition-分区字段'."\n" + .'● PrimaryKey-主键'."\n" + .'● EventTime-事件时间', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Partition', + ], + 'required' => false, + ], + 'Transform' => [ + 'title' => '特征生产配置。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Type' => [ + 'title' => '特征生产类型。', + 'type' => 'string', + 'example' => 'LLMEmbedding', + ], + 'LLMConfigId' => [ + 'title' => '大模型调用信息ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Input' => [ + 'title' => '特征生产输入。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => '输入字段名称。', + 'type' => 'string', + 'example' => 'f1', + ], + 'Type' => [ + 'title' => '输入字段类型。', + 'type' => 'string', + 'example' => 'STRING', + ], + ], + ], + ], + ], + ], + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '0C89F5E1-7F24-5EEC-9F05-508A39278CC8', + ], + 'FeatureViewId' => [ + 'title' => '特征视图ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0C89F5E1-7F24-5EEC-9F05-508A39278CC8\\",\\n \\"FeatureViewId\\": \\"3\\"\\n}","type":"json"}]', + ], + 'ListFeatureViews' => [ + 'summary' => '获取特征视图列表。', + 'path' => '/api/v1/instances/{InstanceId}/featureviews', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '188634', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可通过接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'title' => '页大小。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'title' => '页码。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'title' => '项目ID,可通过接口ListProjects获取。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '3', + ], + ], + [ + 'name' => 'Owner', + 'in' => 'query', + 'schema' => [ + 'title' => '创建人过滤。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '1232143243242****', + ], + ], + [ + 'name' => 'Tag', + 'in' => 'query', + 'schema' => [ + 'title' => '标签过滤。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'tag1', + ], + ], + [ + 'name' => 'FeatureName', + 'in' => 'query', + 'schema' => [ + 'title' => '特征名称。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'feature1', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'title' => '排序依据。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'GmtCreateTime', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'title' => '排序方式。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Desc', + ], + ], + [ + 'name' => 'FeatureViewIds', + 'in' => 'query', + 'style' => 'simple', + 'schema' => [ + 'title' => '特征视图ID过滤。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '3', + ], + 'required' => false, + ], + ], + [ + 'name' => 'Type', + 'in' => 'query', + 'schema' => [ + 'title' => '类型。'."\n" + .'● Batch-离线特征'."\n" + .'● Stream-实时特征', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Batch', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'title' => '特征视图名称过滤。', + 'type' => 'string', + 'example' => 'fv1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'C03B2680-AC9C-59CD-93C5-8142B92537FA', + ], + 'TotalCount' => [ + 'title' => '总个数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'FeatureViews' => [ + 'title' => '特征视图列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'FeatureViewId' => [ + 'title' => '特征视图ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + 'ProjectId' => [ + 'title' => '项目ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + 'ProjectName' => [ + 'title' => '项目名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'project1', + ], + 'FeatureEntityName' => [ + 'title' => '特征实体名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'featureEntity1', + ], + 'Name' => [ + 'title' => '特征视图名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'featureView1', + ], + 'Owner' => [ + 'title' => '创建人。', + 'description' => '', + 'type' => 'string', + 'example' => '12321421412****', + ], + 'Type' => [ + 'title' => '类型。'."\n" + .'● Batch-离线特征'."\n" + .'● Stream-实时特征', + 'description' => '', + 'type' => 'string', + 'example' => 'Batch', + ], + 'WriteToFeatureDB' => [ + 'title' => '是否写入在线托管存储。', + 'type' => 'boolean', + ], + 'GmtCreateTime' => [ + 'title' => '创建时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2021-12-15T23:24:33.132+08:00', + ], + 'GmtModifiedTime' => [ + 'title' => '更新时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2021-12-15T23:24:33.132+08:00', + ], + 'RegisterTable' => [ + 'title' => '注册表名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'table1', + ], + 'RegisterDatasourceName' => [ + 'title' => '注册表所在数据源。', + 'description' => '', + 'type' => 'string', + 'example' => 'datasource1', + ], + 'TTL' => [ + 'title' => '特征生命周期(秒)。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '90', + ], + 'RegisterDatasourceId' => [ + 'title' => '注册表所在数据源ID。', + 'description' => '', + 'type' => 'string', + 'example' => '4', + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C03B2680-AC9C-59CD-93C5-8142B92537FA\\",\\n \\"TotalCount\\": 10,\\n \\"FeatureViews\\": [\\n {\\n \\"FeatureViewId\\": \\"3\\",\\n \\"ProjectId\\": \\"3\\",\\n \\"ProjectName\\": \\"project1\\",\\n \\"FeatureEntityName\\": \\"featureEntity1\\",\\n \\"Name\\": \\"featureView1\\",\\n \\"Owner\\": \\"12321421412****\\",\\n \\"Type\\": \\"Batch\\",\\n \\"WriteToFeatureDB\\": false,\\n \\"GmtCreateTime\\": \\"2021-12-15T23:24:33.132+08:00\\",\\n \\"GmtModifiedTime\\": \\"2021-12-15T23:24:33.132+08:00\\",\\n \\"RegisterTable\\": \\"table1\\",\\n \\"RegisterDatasourceName\\": \\"datasource1\\",\\n \\"TTL\\": 90,\\n \\"RegisterDatasourceId\\": \\"4\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'GetFeatureView' => [ + 'summary' => '获取特征视图详细信息。', + 'path' => '/api/v1/instances/{InstanceId}/featureviews/{FeatureViewId}', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '188637', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可通过接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'FeatureViewId', + 'in' => 'path', + 'schema' => [ + 'title' => '特征视图ID,可通过接口ListFeatureViews获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '72F15A8A-5A28-5B18-A0DE-0EABD7D3245A', + ], + 'ProjectId' => [ + 'title' => '项目ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + 'ProjectName' => [ + 'title' => '项目名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'project1', + ], + 'FeatureEntityName' => [ + 'title' => '特征实体名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'featureEntity1', + ], + 'Name' => [ + 'title' => '特征视图名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'featureView1', + ], + 'Owner' => [ + 'title' => '创建人。', + 'description' => '', + 'type' => 'string', + 'example' => '12321421412****', + ], + 'Type' => [ + 'title' => '类型。'."\n" + .'● Batch-离线特征'."\n" + .'● Stream-实时特征', + 'description' => '', + 'type' => 'string', + 'example' => 'Batch', + ], + 'GmtCreateTime' => [ + 'title' => '创建时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2021-12-15T23:24:33.132+08:00', + ], + 'GmtModifiedTime' => [ + 'title' => '更新时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2021-12-15T23:24:33.132+08:00', + ], + 'FeatureEntityId' => [ + 'title' => '特征实体ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + 'JoinId' => [ + 'title' => '特征实体的joinid。', + 'description' => '', + 'type' => 'string', + 'example' => 'user_id', + ], + 'WriteMethod' => [ + 'title' => '写入方式。'."\n" + .'● ByReadyMadeTable-使用现成表注册'."\n" + .'● Custom-自定义表结构', + 'description' => '', + 'type' => 'string', + 'example' => 'custom', + ], + 'RegisterTable' => [ + 'title' => '注册表名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'table1', + ], + 'RegisterDatasourceId' => [ + 'title' => '注册表所在数据源ID。', + 'description' => '', + 'type' => 'string', + 'example' => '4', + ], + 'RegisterDatasourceName' => [ + 'title' => '注册表所在数据源名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'datasource1', + ], + 'WriteToFeatureDB' => [ + 'title' => '是否写入在线托管存储。', + 'type' => 'boolean', + ], + 'SyncOnlineTable' => [ + 'title' => '是否同步在线特征表。', + 'description' => '', + 'type' => 'boolean', + 'example' => 'true', + ], + 'TTL' => [ + 'title' => '生命周期。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '90', + ], + 'Tags' => [ + 'title' => '标签列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'tag1', + ], + ], + 'Config' => [ + 'title' => '配置。', + 'description' => '', + 'type' => 'string', + 'example' => '{"save_original_field":true}', + ], + 'GmtSyncTime' => [ + 'title' => '同步时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2021-12-15T23:24:33.132+08:00', + ], + 'LastSyncConfig' => [ + 'title' => '最近一次的同步配置。', + 'description' => '', + 'type' => 'string', + 'example' => '{'."\n" + .' "mode": "overwrite",'."\n" + .' "partitions": {'."\n" + .' "ds": {'."\n" + .' "value": "20230820"'."\n" + .' }'."\n" + .' },'."\n" + .' "event_time": "",'."\n" + .' "config": {},'."\n" + .' "offline_to_online": true'."\n" + .'}', + ], + 'Fields' => [ + 'title' => '字段列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => '字段名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'user', + ], + 'Type' => [ + 'title' => '字段类型。'."\n" + .'● int'."\n" + .'● string'."\n" + .'● float', + 'description' => '', + 'type' => 'string', + 'example' => 'int', + ], + 'Attributes' => [ + 'title' => '字段属性列表,可选值包括:'."\n" + .'● Partition-分区字段'."\n" + .'● PrimaryKey-主键'."\n" + .'● EventTime-事件时间', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Partition', + ], + ], + 'Transform' => [ + 'title' => '特征生产配置。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Type' => [ + 'title' => '特征生产类型。', + 'type' => 'string', + 'example' => 'LLMEmbedding', + ], + 'LLMConfigId' => [ + 'title' => '大模型调用配置信息ID。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'Input' => [ + 'title' => '特征生产输入。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => '输入字段名称。', + 'type' => 'string', + 'example' => 'f1', + ], + 'Type' => [ + 'title' => '输入字段类型。', + 'type' => 'string', + 'example' => 'STRING', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'PublishTableScript' => [ + 'title' => '同步数据脚本', + 'type' => 'string', + 'example' => 'from feature_store_py.fs_client import FeatureStoreClient\\nimport datetime\\nfrom feature_store_py.fs_datasource import MaxComputeDataSource\\nimport sys\\n\\ncur_day = args[\'dt\']\\nprint(\'cur_day = \', cur_day)\\n\\naccess_key_id = o.account.access_id\\naccess_key_secret = o.account.secret_access_key\\nfs = FeatureStoreClient(access_key_id=access_key_id, access_key_secret=access_key_secret, region=\'cn-beijing\')\\ncur_project_name = \'p1\'\\nproject = fs.get_project(cur_project_name)\\n\\nfeature_view_name = \'user_fea\'\\nbatch_feature_view = project.get_feature_view(feature_view_name)\\ntask = batch_feature_view.publish_table(partitions={\'ds\':cur_day}, mode=\'Overwrite\')\\ntask.wait()\\ntask.print_summary()\\n', + ], + 'MockTableName' => [ + 'title' => '实时特征视图模拟数据表名称', + 'type' => 'string', + 'example' => 'item_table_mock_1', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"72F15A8A-5A28-5B18-A0DE-0EABD7D3245A\\",\\n \\"ProjectId\\": \\"3\\",\\n \\"ProjectName\\": \\"project1\\",\\n \\"FeatureEntityName\\": \\"featureEntity1\\",\\n \\"Name\\": \\"featureView1\\",\\n \\"Owner\\": \\"12321421412****\\",\\n \\"Type\\": \\"Batch\\",\\n \\"GmtCreateTime\\": \\"2021-12-15T23:24:33.132+08:00\\",\\n \\"GmtModifiedTime\\": \\"2021-12-15T23:24:33.132+08:00\\",\\n \\"FeatureEntityId\\": \\"3\\",\\n \\"JoinId\\": \\"user_id\\",\\n \\"WriteMethod\\": \\"custom\\",\\n \\"RegisterTable\\": \\"table1\\",\\n \\"RegisterDatasourceId\\": \\"4\\",\\n \\"RegisterDatasourceName\\": \\"datasource1\\",\\n \\"WriteToFeatureDB\\": false,\\n \\"SyncOnlineTable\\": true,\\n \\"TTL\\": 90,\\n \\"Tags\\": [\\n \\"tag1\\"\\n ],\\n \\"Config\\": \\"{\\\\\\"save_original_field\\\\\\":true}\\",\\n \\"GmtSyncTime\\": \\"2021-12-15T23:24:33.132+08:00\\",\\n \\"LastSyncConfig\\": \\"{\\\\n\\\\t\\\\\\"mode\\\\\\": \\\\\\"overwrite\\\\\\",\\\\n\\\\t\\\\\\"partitions\\\\\\": {\\\\n\\\\t\\\\t\\\\\\"ds\\\\\\": {\\\\n\\\\t\\\\t\\\\t\\\\\\"value\\\\\\": \\\\\\"20230820\\\\\\"\\\\n\\\\t\\\\t}\\\\n\\\\t},\\\\n\\\\t\\\\\\"event_time\\\\\\": \\\\\\"\\\\\\",\\\\n\\\\t\\\\\\"config\\\\\\": {},\\\\n\\\\t\\\\\\"offline_to_online\\\\\\": true\\\\n}\\",\\n \\"Fields\\": [\\n {\\n \\"Name\\": \\"user\\",\\n \\"Type\\": \\"int\\",\\n \\"Attributes\\": [\\n \\"Partition\\"\\n ],\\n \\"Transform\\": [\\n {\\n \\"Type\\": \\"LLMEmbedding\\",\\n \\"LLMConfigId\\": 1,\\n \\"Input\\": [\\n {\\n \\"Name\\": \\"feature1\\",\\n \\"Type\\": \\"STRING\\"\\n }\\n ]\\n }\\n ]\\n }\\n ],\\n \\"PublishTableScript\\": \\"from feature_store_py.fs_client import FeatureStoreClient\\\\\\\\nimport datetime\\\\\\\\nfrom feature_store_py.fs_datasource import MaxComputeDataSource\\\\\\\\nimport sys\\\\\\\\n\\\\\\\\ncur_day = args[\'dt\']\\\\\\\\nprint(\'cur_day = \', cur_day)\\\\\\\\n\\\\\\\\naccess_key_id = o.account.access_id\\\\\\\\naccess_key_secret = o.account.secret_access_key\\\\\\\\nfs = FeatureStoreClient(access_key_id=access_key_id, access_key_secret=access_key_secret, region=\'cn-beijing\')\\\\\\\\ncur_project_name = \'p1\'\\\\\\\\nproject = fs.get_project(cur_project_name)\\\\\\\\n\\\\\\\\nfeature_view_name = \'user_fea\'\\\\\\\\nbatch_feature_view = project.get_feature_view(feature_view_name)\\\\\\\\ntask = batch_feature_view.publish_table(partitions={\'ds\':cur_day}, mode=\'Overwrite\')\\\\\\\\ntask.wait()\\\\\\\\ntask.print_summary()\\\\\\\\n\\",\\n \\"MockTableName\\": \\"item_table_mock_1\\"\\n}","type":"json"}]', + ], + 'DeleteFeatureView' => [ + 'summary' => '删除指定特征视图。', + 'path' => '/api/v1/instances/{InstanceId}/featureviews/{FeatureViewId}', + 'methods' => [ + 'delete', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可通过接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'FeatureViewId', + 'in' => 'path', + 'schema' => [ + 'title' => '特征视图ID,可通过接口ListFeatureViews获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'BF349686-C932-55B5-9B31-DAFA395C0E06', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"BF349686-C932-55B5-9B31-DAFA395C0E06\\"\\n}","type":"json"}]', + ], + 'PublishFeatureViewTable' => [ + 'summary' => '将特征视图的离线数据发布/同步到线上。', + 'path' => '/api/v1/instances/{InstanceId}/featureviews/{FeatureViewId}/action/publishtable', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'FeatureViewId', + 'in' => 'path', + 'schema' => [ + 'title' => '特征视图ID,可从接口ListFeatureViews获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Partitions' => [ + 'title' => '分区表。', + 'description' => '', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => [ + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'string', + 'example' => '20220718', + 'description' => '', + ], + 'description' => '', + ], + ], + 'Mode' => [ + 'title' => '模式'."\n" + .'● Overwrite-覆盖写'."\n" + .'● Merge-合并', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'Overwrite', + ], + 'EventTime' => [ + 'title' => '事件时间。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '2021-12-15T23:24:33.132+08:00', + ], + 'Config' => [ + 'title' => '配置。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '{}', + ], + 'OfflineToOnline' => [ + 'title' => '是否同步在线特征。', + 'description' => '', + 'type' => 'boolean', + 'required' => true, + 'example' => 'true', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '627B5776-4D06-5A49-8A04-508AA39653F4', + ], + 'TaskId' => [ + 'title' => '任务ID。', + 'type' => 'string', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"627B5776-4D06-5A49-8A04-508AA39653F4\\",\\n \\"TaskId\\": \\"\\"\\n}","type":"json"}]', + ], + 'WriteFeatureViewTable' => [ + 'summary' => '获取特征视图血缘关系。', + 'path' => '/api/v1/instances/{InstanceId}/featureviews/{FeatureViewId}/action/writetable', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'FeatureViewId', + 'in' => 'path', + 'schema' => [ + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Partitions' => [ + 'title' => '分区表。', + 'description' => '', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => [ + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'string', + 'example' => '20220909', + 'description' => '', + ], + 'description' => '', + ], + ], + 'UrlDatasource' => [ + 'title' => '文件数据源。', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Path' => [ + 'title' => '数据源路径。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'xxx.xxx.com/file.csv', + ], + 'Delimiter' => [ + 'title' => '文件分隔符。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => ',', + ], + 'OmitHeader' => [ + 'title' => '文件中是否省略header。', + 'description' => '', + 'type' => 'boolean', + 'required' => false, + 'example' => 'true', + ], + ], + 'required' => false, + ], + 'Mode' => [ + 'title' => '模式'."\n" + .'● Overwrite-覆盖写'."\n" + .'● Merge-合并', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'Merge', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '0C89F5E1-7F24-5EEC-9F05-508A39278CC8', + ], + 'TaskId' => [ + 'title' => '任务ID。', + 'type' => 'string', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0C89F5E1-7F24-5EEC-9F05-508A39278CC8\\",\\n \\"TaskId\\": \\"\\"\\n}","type":"json"}]', + ], + 'ListFeatureViewOnlineFeatures' => [ + 'summary' => '获取特征视图下的在线特征数据。', + 'path' => '/api/v1/instances/{InstanceId}/featureviews/{FeatureViewId}/onlinefeatures', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '225290', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'FeatureViewId', + 'in' => 'path', + 'schema' => [ + 'title' => '特征视图ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '1', + ], + ], + [ + 'name' => 'JoinIds', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'title' => 'JoinId值列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'title' => 'JoinId的值。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'user1', + ], + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'BF349686-C932-55B5-9B31-DAFA395C0E06', + ], + 'OnlineFeatures' => [ + 'title' => '在线特征数据。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'example' => '{"f1":123,"f2":"456"}', + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"BF349686-C932-55B5-9B31-DAFA395C0E06\\",\\n \\"OnlineFeatures\\": [\\n \\"{\\\\\\"f1\\\\\\":123,\\\\\\"f2\\\\\\":\\\\\\"456\\\\\\"}\\"\\n ]\\n}","type":"json"}]', + ], + 'ListFeatureViewRelationships' => [ + 'summary' => '获取特征视图血缘关系。', + 'path' => '/api/v1/instances/{InstanceId}/featureviews/{FeatureViewId}/relationships', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'FeatureViewId', + 'in' => 'path', + 'schema' => [ + 'title' => '特征视图ID,可从接口ListFeatureViews获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '0FBBE454-9BD1-5D8F-9129-D14DB7FAFE0B', + ], + 'Relationships' => [ + 'title' => '血缘关系列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'FeatureViewName' => [ + 'title' => '特征视图名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'fv1', + ], + 'ProjectName' => [ + 'title' => '项目名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'project1', + ], + 'Models' => [ + 'title' => '模型特征列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ModelId' => [ + 'title' => '模型特征ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + 'ModelName' => [ + 'title' => '模型特征名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'dbmtl', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FBBE454-9BD1-5D8F-9129-D14DB7FAFE0B\\",\\n \\"Relationships\\": [\\n {\\n \\"FeatureViewName\\": \\"fv1\\",\\n \\"ProjectName\\": \\"project1\\",\\n \\"Models\\": [\\n {\\n \\"ModelId\\": \\"3\\",\\n \\"ModelName\\": \\"dbmtl\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]', + ], + 'ListFeatureViewFieldRelationships' => [ + 'summary' => '获取特征字段血缘关系。', + 'path' => '/api/v1/instances/{InstanceId}/featureviews/{FeatureViewId}/fields/{FieldName}/relationships', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'FeatureViewId', + 'in' => 'path', + 'schema' => [ + 'title' => '特征视图ID,可从接口ListFeatureViews获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '4', + ], + ], + [ + 'name' => 'FieldName', + 'in' => 'path', + 'schema' => [ + 'title' => '特征字段名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'user_id', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'BF349686-C932-55B5-9B31-DAFA395C0E06', + ], + 'Relationships' => [ + 'title' => '血缘关系列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'FeatureName' => [ + 'title' => '特征视图名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'featureView1', + ], + 'OnlineTableName' => [ + 'title' => '在线表名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'table1', + ], + 'OfflineTableName' => [ + 'title' => '离线表名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'table2', + ], + 'Models' => [ + 'title' => '模型列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ModelId' => [ + 'title' => '模型ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + 'ModelName' => [ + 'title' => '模型名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'dbmtl', + ], + 'FeatureAliasName' => [ + 'title' => '特征别名。', + 'type' => 'string', + 'example' => 'f1', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"BF349686-C932-55B5-9B31-DAFA395C0E06\\",\\n \\"Relationships\\": [\\n {\\n \\"FeatureName\\": \\"featureView1\\",\\n \\"OnlineTableName\\": \\"table1\\",\\n \\"OfflineTableName\\": \\"table2\\",\\n \\"Models\\": [\\n {\\n \\"ModelId\\": \\"3\\",\\n \\"ModelName\\": \\"dbmtl\\",\\n \\"FeatureAliasName\\": \\"f1\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]', + ], + 'CreateLabelTable' => [ + 'summary' => '创建label表', + 'path' => '/api/v1/instances/{InstanceId}/labeltables', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'featurestore-test1', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => [ + 'title' => '项目ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + 'Name' => [ + 'title' => 'label表名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'rec_test', + ], + 'DatasourceId' => [ + 'title' => 'label表所在数据源ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + 'Fields' => [ + 'title' => '字段列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => '字段名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'lat', + ], + 'Type' => [ + 'title' => '字段类型。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'INT32', + 'enum' => [ + 'INT32', + 'INT64', + 'FLOAT', + 'DOUBLE', + 'STRING', + 'BOOLEAN', + 'TIMESTAMP', + ], + ], + 'Attributes' => [ + 'title' => '字段属性列表,可选值包括:'."\n" + .'● Partition-分区字段'."\n" + .'● FeatureField-特征字段。'."\n" + .'● FeatureGenerationReserveField-FG保留字段'."\n" + .'● EventTime-事件时间'."\n" + .'● LabelField-Label字段。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Partition', + 'enum' => [ + 'Partition', + 'FeatureField', + 'FeatureGenerationReserveField', + 'EventTime', + 'LabelField', + ], + ], + 'required' => true, + ], + ], + 'required' => true, + ], + 'required' => true, + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '0FA90B3B-F30A-5C9D-A9FD-8114F8868062', + ], + 'LabelTableId' => [ + 'title' => 'label表ID。', + 'description' => '', + 'type' => 'string', + 'example' => '1', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FA90B3B-F30A-5C9D-A9FD-8114F8868062\\",\\n \\"LabelTableId\\": \\"1\\"\\n}","type":"json"}]', + ], + 'ListLabelTables' => [ + 'summary' => '获取Label表列表。', + 'path' => '/api/v1/instances/{InstanceId}/labeltables', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '188213', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'featurestore-test*', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'title' => '项目ID。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'project1', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'title' => '页大小。'."\n", + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '10', + 'default' => '10', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'title' => '页码。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'required' => false, + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'title' => 'label表名称。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'label_table1', + ], + ], + [ + 'name' => 'Owner', + 'in' => 'query', + 'schema' => [ + 'title' => '创建人。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '1231432432****', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'title' => '排序依据。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'GmtModifiedTime', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'title' => '排序方式。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Asc', + ], + ], + [ + 'name' => 'LabelTableIds', + 'in' => 'query', + 'style' => 'simple', + 'schema' => [ + 'title' => 'label表ID过滤。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '3', + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求id。', + 'description' => '', + 'type' => 'string', + 'example' => '728C5E01-ABF6-5AA8-B9FC-B3BA05DECC77', + ], + 'TotalCount' => [ + 'title' => '总个数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '21', + 'default' => '10', + ], + 'LabelTables' => [ + 'title' => 'Label表列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'LabelTableId' => [ + 'title' => 'Label表ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + 'ProjectId' => [ + 'title' => '项目ID。', + 'description' => '', + 'type' => 'string', + 'example' => '1', + ], + 'ProjectName' => [ + 'title' => '项目名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'project1', + ], + 'DatasourceId' => [ + 'title' => '数据源ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + 'Name' => [ + 'title' => 'label表名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'label_table1', + ], + 'DatasourceName' => [ + 'title' => '数据源名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'datasource1', + ], + 'Owner' => [ + 'title' => '创建人。', + 'description' => '', + 'type' => 'string', + 'example' => '123214213214', + ], + 'GmtCreateTime' => [ + 'title' => '创建时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2021-12-15T23:24:33.132+08:00', + ], + 'GmtModifiedTime' => [ + 'title' => '更新时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2021-12-15T23:24:33.132+08:00', + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"728C5E01-ABF6-5AA8-B9FC-B3BA05DECC77\\",\\n \\"TotalCount\\": 21,\\n \\"LabelTables\\": [\\n {\\n \\"LabelTableId\\": \\"3\\",\\n \\"ProjectId\\": \\"1\\",\\n \\"ProjectName\\": \\"project1\\",\\n \\"DatasourceId\\": \\"3\\",\\n \\"Name\\": \\"label_table1\\",\\n \\"DatasourceName\\": \\"datasource1\\",\\n \\"Owner\\": \\"123214213214\\",\\n \\"GmtCreateTime\\": \\"2021-12-15T23:24:33.132+08:00\\",\\n \\"GmtModifiedTime\\": \\"2021-12-15T23:24:33.132+08:00\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'GetLabelTable' => [ + 'summary' => '获取Label表详细信息。', + 'path' => '/api/v1/instances/{InstanceId}/labeltables/{LabelTableId}', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'LabelTableId', + 'in' => 'path', + 'schema' => [ + 'title' => 'Label表ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求id。', + 'description' => '', + 'type' => 'string', + 'example' => '728C5E01-ABF6-5AA8-B9FC-B3BA05DECC77', + ], + 'ProjectId' => [ + 'title' => '项目ID。', + 'description' => '', + 'type' => 'string', + 'example' => '1', + ], + 'ProjectName' => [ + 'title' => '项目名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'project1', + ], + 'DatasourceId' => [ + 'title' => '数据源ID。', + 'description' => '', + 'type' => 'string', + 'example' => '1', + ], + 'Name' => [ + 'title' => 'label表名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'label_table1', + ], + 'DatasourceName' => [ + 'title' => '数据源名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'datasource1', + ], + 'Owner' => [ + 'title' => '创建人。', + 'description' => '', + 'type' => 'string', + 'example' => '12321312*****', + ], + 'RelatedModelFeatures' => [ + 'title' => '使用此Label表的模型特征名称。', + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + 'GmtCreateTime' => [ + 'title' => '创建时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2021-12-15T23:24:33.132+08:00', + ], + 'GmtModifiedTime' => [ + 'title' => '更新时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2021-12-15T23:24:33.132+08:00', + ], + 'Fields' => [ + 'title' => '字段列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => '字段名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'field1', + ], + 'Type' => [ + 'title' => '字段类型。', + 'description' => '', + 'type' => 'string', + 'example' => 'INT32', + 'enum' => [ + 'INT32', + 'INT64', + 'FLOAT', + 'DOUBLE', + 'STRING', + 'BOOLEAN', + 'TIMESTAMP', + ], + ], + 'Attributes' => [ + 'title' => '字段属性列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'Partition', + 'enum' => [ + 'Partition', + 'FeatureField', + 'FeatureGenerationReserveField', + 'EventTime', + 'LabelField', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"728C5E01-ABF6-5AA8-B9FC-B3BA05DECC77\\",\\n \\"ProjectId\\": \\"1\\",\\n \\"ProjectName\\": \\"project1\\",\\n \\"DatasourceId\\": \\"1\\",\\n \\"Name\\": \\"label_table1\\",\\n \\"DatasourceName\\": \\"datasource1\\",\\n \\"Owner\\": \\"12321312*****\\",\\n \\"RelatedModelFeatures\\": [\\n \\"rank_v1\\"\\n ],\\n \\"GmtCreateTime\\": \\"2021-12-15T23:24:33.132+08:00\\",\\n \\"GmtModifiedTime\\": \\"2021-12-15T23:24:33.132+08:00\\",\\n \\"Fields\\": [\\n {\\n \\"Name\\": \\"field1\\",\\n \\"Type\\": \\"INT32\\",\\n \\"Attributes\\": [\\n \\"Partition\\"\\n ]\\n }\\n ]\\n}","type":"json"}]', + ], + 'UpdateLabelTable' => [ + 'summary' => '更新label表。', + 'path' => '/api/v1/instances/{InstanceId}/labeltables/{LabelTableId}', + 'methods' => [ + 'put', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'featurestore-test1', + ], + ], + [ + 'name' => 'LabelTableId', + 'in' => 'path', + 'schema' => [ + 'title' => 'Label表ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => 'label表名称。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'rec_test', + ], + 'DatasourceId' => [ + 'title' => 'label表所在数据源ID。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '3', + ], + 'Fields' => [ + 'title' => '字段列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => '字段名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'lat', + ], + 'Type' => [ + 'title' => '字段类型。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'DOUBLE', + 'enum' => [ + 'DOUBLE', + 'INT32', + 'INT64', + 'FLOAT', + 'STRING', + 'BOOLEAN', + 'TIMESTAMP', + ], + ], + 'Attributes' => [ + 'title' => '字段属性列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Partition', + 'enum' => [ + 'Partition', + 'FeatureField', + 'FeatureGenerationReserveField', + 'EventTime', + 'LabelField', + ], + ], + 'required' => true, + ], + ], + 'required' => false, + ], + 'required' => true, + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => '请求id。', + 'description' => '', + 'type' => 'string', + 'example' => '728C5E01-ABF6-5AA8-B9FC-B3BA05DECC77', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"728C5E01-ABF6-5AA8-B9FC-B3BA05DECC77\\"\\n}","type":"json"}]', + ], + 'DeleteLabelTable' => [ + 'summary' => '删除label表', + 'path' => '/api/v1/instances/{InstanceId}/labeltables/{LabelTableId}', + 'methods' => [ + 'delete', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'LabelTableId', + 'in' => 'path', + 'schema' => [ + 'title' => 'Label表ID,可从接口ListLabelTables获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'FFD39C0F-DD8D-51B2-864E-2842206DB0E8', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"FFD39C0F-DD8D-51B2-864E-2842206DB0E8\\"\\n}","type":"json"}]', + ], + 'CreateModelFeature' => [ + 'summary' => '创建模型特征。', + 'path' => '/api/v1/instances/{InstanceId}/modelfeatures', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '189325', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => [ + 'title' => '项目ID,可从接口ListProjects获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + 'Name' => [ + 'title' => '模型特征名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'model_feature_1', + ], + 'LabelTableId' => [ + 'title' => 'Label表ID,可从接口ListLabelTables获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '4', + ], + 'Features' => [ + 'title' => '特征列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'FeatureViewId' => [ + 'title' => '特征视图ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '5', + ], + 'Name' => [ + 'title' => '特征名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'user_id', + ], + 'AliasName' => [ + 'title' => '特征别名。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'userid', + ], + 'Type' => [ + 'title' => '特征类型。'."\n" + .'● INT32'."\n" + .'● INT64'."\n" + .'● FLOAT'."\n" + .'● DOUBLE'."\n" + .'● STRING'."\n" + .'● BOOLEAN'."\n" + .'● TIMESTAMP', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'STRING', + ], + ], + 'required' => false, + ], + 'required' => true, + ], + 'SequenceFeatureViewIds' => [ + 'title' => '序列特征IDs。', + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + 'LabelPriorityLevel' => [ + 'title' => 'label 表优先级,默认为0,表示不允许 label 表特征与特征视图特征有冲突。1 表示有冲突时 label 表优先。2表示特征视图优先。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '0', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '37D19490-AB69-567D-A852-407C94E510E9', + ], + 'ModelFeatureId' => [ + 'title' => '模型特征ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"37D19490-AB69-567D-A852-407C94E510E9\\",\\n \\"ModelFeatureId\\": \\"3\\"\\n}","type":"json"}]', + ], + 'ListModelFeatures' => [ + 'summary' => '获取模型特征列表。', + 'path' => '/api/v1/instances/{InstanceId}/modelfeatures', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '189326', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'title' => '项目ID,可从接口ListProjects获取。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '4', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'title' => '页大小。', + 'description' => '', + 'type' => 'integer', + 'required' => false, + 'example' => '10', + 'format' => 'int32', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'title' => '页码。', + 'description' => '', + 'type' => 'integer', + 'required' => false, + 'example' => '1', + 'format' => 'int32', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => [ + 'title' => '排序依据。'."\n" + .'● GmtCreateTime-创建时间。'."\n" + .'● GmtModifiedTime-更新时间。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'DESC', + ], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => [ + 'title' => '排序方式。'."\n" + .'● ASC-升序。'."\n" + .'● DESC-降序。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'ASC', + ], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => [ + 'title' => '模型特征名称过滤。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'model_feature1', + ], + ], + [ + 'name' => 'Owner', + 'in' => 'query', + 'schema' => [ + 'title' => '创建人。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '12323143****', + ], + ], + [ + 'name' => 'ModelFeatureIds', + 'in' => 'query', + 'style' => 'simple', + 'schema' => [ + 'title' => '模型特征ID过滤。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '3', + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '2CA11923-2A3D-5E5A-8314-E699D2DD15DE', + ], + 'TotalCount' => [ + 'title' => '总个数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '4', + ], + 'ModelFeatures' => [ + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ModelFeatureId' => [ + 'title' => '模型特征ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + 'ProjectId' => [ + 'title' => '项目ID。', + 'description' => '', + 'type' => 'string', + 'example' => '5', + ], + 'ProjectName' => [ + 'title' => '项目名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'project1', + ], + 'Name' => [ + 'title' => '模型特征名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'model_feature1', + ], + 'Owner' => [ + 'title' => '创建人。', + 'description' => '', + 'type' => 'string', + 'example' => '1231243253****', + ], + 'GmtCreateTime' => [ + 'title' => '创建时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2023-07-04T14:46:22.227+08:00', + ], + 'GmtModifiedTime' => [ + 'title' => '更新时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2023-07-04T14:46:22.227+08:00', + ], + 'LabelTableName' => [ + 'title' => 'label表名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'label_table_1', + ], + ], + ], + 'title' => '模型特征列表。', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2CA11923-2A3D-5E5A-8314-E699D2DD15DE\\",\\n \\"TotalCount\\": 4,\\n \\"ModelFeatures\\": [\\n {\\n \\"ModelFeatureId\\": \\"3\\",\\n \\"ProjectId\\": \\"5\\",\\n \\"ProjectName\\": \\"project1\\",\\n \\"Name\\": \\"model_feature1\\",\\n \\"Owner\\": \\"1231243253****\\",\\n \\"GmtCreateTime\\": \\"2023-07-04T14:46:22.227+08:00\\",\\n \\"GmtModifiedTime\\": \\"2023-07-04T14:46:22.227+08:00\\",\\n \\"LabelTableName\\": \\"label_table_1\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'GetModelFeature' => [ + 'summary' => '获取模型特征详情。', + 'path' => '/api/v1/instances/{InstanceId}/modelfeatures/{ModelFeatureId}', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '189332', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'ModelFeatureId', + 'in' => 'path', + 'schema' => [ + 'title' => '模型特征ID,可从接口ListModelFeatures获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '0C89F5E1-7F24-5EEC-9F05-508A39278CC8', + ], + 'ProjectId' => [ + 'title' => '项目ID。', + 'description' => '', + 'type' => 'string', + 'example' => '5', + ], + 'ProjectName' => [ + 'title' => '项目名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'project1', + ], + 'Name' => [ + 'title' => '模型特征名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'model_feature1', + ], + 'Owner' => [ + 'title' => '创建人。', + 'description' => '', + 'type' => 'string', + 'example' => '1231243253****', + ], + 'GmtCreateTime' => [ + 'title' => '创建时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2023-07-04T14:46:22.227+08:00', + ], + 'GmtModifiedTime' => [ + 'title' => '更新时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2023-07-04T14:46:22.227+08:00', + ], + 'LabelTableId' => [ + 'title' => 'Label表ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + 'LabelTableName' => [ + 'title' => 'Label表名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'label_table1', + ], + 'TrainingSetTable' => [ + 'title' => '导出训练集表的名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'table1', + ], + 'TrainingSetFGTable' => [ + 'title' => '导出训练集FG表的名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'table2', + ], + 'Features' => [ + 'title' => '特征列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'FeatureViewId' => [ + 'title' => '特征视图ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + 'FeatureViewName' => [ + 'title' => '特征视图名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'feature_view_1', + ], + 'Name' => [ + 'title' => '特征名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'feature1', + ], + 'Type' => [ + 'title' => '特征类型。'."\n" + .'● INT32'."\n" + .'● INT64'."\n" + .'● FLOAT'."\n" + .'● DOUBLE'."\n" + .'● STRING'."\n" + .'● BOOLEAN'."\n" + .'● TIMESTAMP', + 'description' => '', + 'type' => 'string', + 'example' => 'INT32', + ], + 'AliasName' => [ + 'title' => '特征别名。', + 'description' => '', + 'type' => 'string', + 'example' => 'feature2', + ], + ], + ], + ], + 'Relations' => [ + 'title' => '特征关系。', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Domains' => [ + 'title' => 'Domain列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Id' => [ + 'title' => 'Domain ID。', + 'description' => 'Domain ID。', + 'type' => 'string', + 'example' => '3', + ], + 'Name' => [ + 'title' => 'Domain名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'feature_entity_1', + ], + 'DomainType' => [ + 'title' => 'Domain类型。'."\n" + .'● FeatureEntity-特征实体'."\n" + .'● FeatureView-特征视图'."\n" + .'● ModelFeature-模型特征', + 'description' => '', + 'type' => 'string', + 'example' => 'FeatureEntity', + ], + ], + ], + ], + 'Links' => [ + 'title' => '特征关系连接信息列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'From' => [ + 'title' => '连接头ID。', + 'description' => '', + 'type' => 'string', + 'example' => 'model_feature_2', + ], + 'To' => [ + 'title' => '连接尾ID。', + 'description' => '', + 'type' => 'string', + 'example' => 'feature_entity_3', + ], + 'Link' => [ + 'title' => '连接依赖字段。', + 'description' => '', + 'type' => 'string', + 'example' => 'user_id', + ], + ], + ], + ], + ], + ], + 'ExportTrainingSetTableScript' => [ + 'title' => '导出training set表脚本', + 'type' => 'string', + 'example' => 'from feature_store_py.fs_client import FeatureStoreClient\\nfrom feature_store_py.fs_project import FeatureStoreProject\\nfrom feature_store_py.fs_datasource import LabelInput, MaxComputeDataSource, TrainingSetOutput\\nfrom feature_store_py.fs_features import FeatureSelector\\nfrom feature_store_py.fs_config import LabelInputConfig, PartitionConfig, FeatureViewConfig\\nfrom feature_store_py.fs_config import TrainSetOutputConfig, EASDeployConfig\\nimport datetime\\nimport sys\\n\\ncur_day = args[\'dt\']\\nprint(\'cur_day = \', cur_day)\\noffset = datetime.timedelta(days=-1)\\npre_day = (datetime.datetime.strptime(cur_day, \'%Y%m%d\') + offset).strftime(\'%Y%m%d\')\\nprint(\'pre_day = \', pre_day)\\n\\n\\naccess_key_id = o.account.access_id\\naccess_key_secret = o.account.secret_access_key\\nfs = FeatureStoreClient(access_key_id=access_key_id, access_key_secret=access_key_secret, region=\'cn-beijing\')\\ncur_project_name = \'p1\'\\nproject = fs.get_project(cur_project_name)\\n\\nlabel_partitions = PartitionConfig(name = \'ds\', value = cur_day)\\nlabel_input_config = LabelInputConfig(partition_config=label_partitions)\\n\\nfeature_view_1_partitions = PartitionConfig(name = \'ds\', value = pre_day)\\nfeature_view_1_config = FeatureViewConfig(name = \'user_fea\',\\npartition_config=feature_view_1_partitions)\\n\\nfeature_view_2_partitions = PartitionConfig(name = \'ds\', value = pre_day)\\nfeature_view_2_config = FeatureViewConfig(name = \'seq_fea\',\\npartition_config=feature_view_2_partitions)\\n\\nfeature_view_3_partitions = PartitionConfig(name = \'ds\', value = pre_day)\\nfeature_view_3_config = FeatureViewConfig(name = \'item_fea\',\\npartition_config=feature_view_3_partitions)\\n\\nfeature_view_config_list = [feature_view_1_config,feature_view_2_config,feature_view_3_config]\\ntrain_set_partitions = PartitionConfig(name = \'ds\', value = cur_day)\\ntrain_set_output_config = TrainSetOutputConfig(partition_config=train_set_partitions)\\n\\n\\nmodel_name = \'rank_v1\'\\ncur_model = project.get_model(model_name)\\ntask = cur_model.export_train_set(label_input_config, feature_view_config_list, train_set_output_config)\\ntask.wait()\\nprint(\'task_summary = \', task.task_summary)\\n', + ], + 'LabelPriorityLevel' => [ + 'title' => 'label 表优先级,默认为0,表示不允许 label 表特征与特征视图特征有冲突。1 表示有冲突时 label 表优先。2表示特征视图优先。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '0', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0C89F5E1-7F24-5EEC-9F05-508A39278CC8\\",\\n \\"ProjectId\\": \\"5\\",\\n \\"ProjectName\\": \\"project1\\",\\n \\"Name\\": \\"model_feature1\\",\\n \\"Owner\\": \\"1231243253****\\",\\n \\"GmtCreateTime\\": \\"2023-07-04T14:46:22.227+08:00\\",\\n \\"GmtModifiedTime\\": \\"2023-07-04T14:46:22.227+08:00\\",\\n \\"LabelTableId\\": \\"3\\",\\n \\"LabelTableName\\": \\"label_table1\\",\\n \\"TrainingSetTable\\": \\"table1\\",\\n \\"TrainingSetFGTable\\": \\"table2\\",\\n \\"Features\\": [\\n {\\n \\"FeatureViewId\\": \\"3\\",\\n \\"FeatureViewName\\": \\"feature_view_1\\",\\n \\"Name\\": \\"feature1\\",\\n \\"Type\\": \\"INT32\\",\\n \\"AliasName\\": \\"feature2\\"\\n }\\n ],\\n \\"Relations\\": {\\n \\"Domains\\": [\\n {\\n \\"Id\\": \\"3\\",\\n \\"Name\\": \\"feature_entity_1\\",\\n \\"DomainType\\": \\"FeatureEntity\\"\\n }\\n ],\\n \\"Links\\": [\\n {\\n \\"From\\": \\"model_feature_2\\",\\n \\"To\\": \\"feature_entity_3\\",\\n \\"Link\\": \\"user_id\\"\\n }\\n ]\\n },\\n \\"ExportTrainingSetTableScript\\": \\"from feature_store_py.fs_client import FeatureStoreClient\\\\\\\\nfrom feature_store_py.fs_project import FeatureStoreProject\\\\\\\\nfrom feature_store_py.fs_datasource import LabelInput, MaxComputeDataSource, TrainingSetOutput\\\\\\\\nfrom feature_store_py.fs_features import FeatureSelector\\\\\\\\nfrom feature_store_py.fs_config import LabelInputConfig, PartitionConfig, FeatureViewConfig\\\\\\\\nfrom feature_store_py.fs_config import TrainSetOutputConfig, EASDeployConfig\\\\\\\\nimport datetime\\\\\\\\nimport sys\\\\\\\\n\\\\\\\\ncur_day = args[\'dt\']\\\\\\\\nprint(\'cur_day = \', cur_day)\\\\\\\\noffset = datetime.timedelta(days=-1)\\\\\\\\npre_day = (datetime.datetime.strptime(cur_day, \'%Y%m%d\') + offset).strftime(\'%Y%m%d\')\\\\\\\\nprint(\'pre_day = \', pre_day)\\\\\\\\n\\\\\\\\n\\\\\\\\naccess_key_id = o.account.access_id\\\\\\\\naccess_key_secret = o.account.secret_access_key\\\\\\\\nfs = FeatureStoreClient(access_key_id=access_key_id, access_key_secret=access_key_secret, region=\'cn-beijing\')\\\\\\\\ncur_project_name = \'p1\'\\\\\\\\nproject = fs.get_project(cur_project_name)\\\\\\\\n\\\\\\\\nlabel_partitions = PartitionConfig(name = \'ds\', value = cur_day)\\\\\\\\nlabel_input_config = LabelInputConfig(partition_config=label_partitions)\\\\\\\\n\\\\\\\\nfeature_view_1_partitions = PartitionConfig(name = \'ds\', value = pre_day)\\\\\\\\nfeature_view_1_config = FeatureViewConfig(name = \'user_fea\',\\\\\\\\npartition_config=feature_view_1_partitions)\\\\\\\\n\\\\\\\\nfeature_view_2_partitions = PartitionConfig(name = \'ds\', value = pre_day)\\\\\\\\nfeature_view_2_config = FeatureViewConfig(name = \'seq_fea\',\\\\\\\\npartition_config=feature_view_2_partitions)\\\\\\\\n\\\\\\\\nfeature_view_3_partitions = PartitionConfig(name = \'ds\', value = pre_day)\\\\\\\\nfeature_view_3_config = FeatureViewConfig(name = \'item_fea\',\\\\\\\\npartition_config=feature_view_3_partitions)\\\\\\\\n\\\\\\\\nfeature_view_config_list = [feature_view_1_config,feature_view_2_config,feature_view_3_config]\\\\\\\\ntrain_set_partitions = PartitionConfig(name = \'ds\', value = cur_day)\\\\\\\\ntrain_set_output_config = TrainSetOutputConfig(partition_config=train_set_partitions)\\\\\\\\n\\\\\\\\n\\\\\\\\nmodel_name = \'rank_v1\'\\\\\\\\ncur_model = project.get_model(model_name)\\\\\\\\ntask = cur_model.export_train_set(label_input_config, feature_view_config_list, train_set_output_config)\\\\\\\\ntask.wait()\\\\\\\\nprint(\'task_summary = \', task.task_summary)\\\\\\\\n\\",\\n \\"LabelPriorityLevel\\": 0\\n}","type":"json"}]', + ], + 'UpdateModelFeature' => [ + 'summary' => '更新模型特征。', + 'path' => '/api/v1/instances/{InstanceId}/modelfeatures/{ModelFeatureId}', + 'methods' => [ + 'put', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '189379', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'ModelFeatureId', + 'in' => 'path', + 'schema' => [ + 'title' => '模型特征ID,可从接口ListModelFeatures获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '4', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'LabelTableId' => [ + 'title' => 'Label表ID,可从接口ListLabelTables获取。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '4', + ], + 'Features' => [ + 'title' => '特征列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'FeatureViewId' => [ + 'title' => '特征视图ID,可从接口ListFeatureViews获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '5', + ], + 'Name' => [ + 'title' => '特征名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'gender', + ], + 'AliasName' => [ + 'title' => '特征别名。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'sex', + ], + 'Type' => [ + 'title' => '特征类型。'."\n" + .'● INT32'."\n" + .'● INT64'."\n" + .'● FLOAT'."\n" + .'● DOUBLE'."\n" + .'● STRING'."\n" + .'● BOOLEAN'."\n" + .'● TIMESTAMP', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'STRING', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + 'SequenceFeatureViewIds' => [ + 'title' => '序列特征IDs。', + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + 'LabelPriorityLevel' => [ + 'title' => 'label 表优先级,默认为0,表示不允许 label 表特征与特征视图特征有冲突。1 表示有冲突时 label 表优先。2表示特征视图优先。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '0', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'C33E160C-BFCA-5719-B958-942850E949F6', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C33E160C-BFCA-5719-B958-942850E949F6\\"\\n}","type":"json"}]', + ], + 'DeleteModelFeature' => [ + 'summary' => '删除指定模型特征。', + 'path' => '/api/v1/instances/{InstanceId}/modelfeatures/{ModelFeatureId}', + 'methods' => [ + 'delete', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'ModelFeatureId', + 'in' => 'path', + 'schema' => [ + 'title' => '模型特征ID,可从接口ListModelFeatures获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '4', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '6B662A64-E4BF-56F8-BF5F-4C63F34EC0A8', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6B662A64-E4BF-56F8-BF5F-4C63F34EC0A8\\"\\n}","type":"json"}]', + ], + 'ExportModelFeatureTrainingSetTable' => [ + 'summary' => '导出训练集表。', + 'path' => '/api/v1/instances/{InstanceId}/modelfeatures/{ModelFeatureId}/action/exporttrainingsettable', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '189386', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'ModelFeatureId', + 'in' => 'path', + 'schema' => [ + 'title' => '模型特征ID,可从接口ListModelFeatures获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'LabelInputConfig' => [ + 'title' => 'Label输入配置。', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Partitions' => [ + 'title' => '分区列表。', + 'description' => '', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => [ + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'string', + 'example' => '20230101', + 'description' => '', + ], + 'description' => '', + ], + ], + 'EventTime' => [ + 'title' => '事件时间。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '2022-07-02 00:00:00', + ], + ], + 'required' => false, + ], + 'FeatureViewConfig' => [ + 'description' => '', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => [ + 'type' => 'object', + 'properties' => [ + 'Partitions' => [ + 'type' => 'object', + 'required' => false, + 'additionalProperties' => [ + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'string', + 'description' => '', + 'example' => '20230101', + ], + 'description' => '', + 'properties' => [ + 'Value' => [ + 'title' => '分区值。', + 'type' => 'string', + 'example' => '20250101', + ], + 'Values' => [ + 'title' => '分区列表。', + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + 'StartValue' => [ + 'title' => '开始时间分区。', + 'type' => 'string', + 'example' => '20250101', + ], + 'EndValue' => [ + 'title' => '结束时间分区。', + 'type' => 'string', + 'example' => '20250201', + ], + ], + ], + 'description' => '', + 'title' => '分区列表。', + ], + 'EventTime' => [ + 'title' => '事件时间。', + 'type' => 'string', + 'example' => '1721186536', + ], + 'Equal' => [ + 'title' => '是否与事件时间相等。', + 'type' => 'boolean', + ], + 'UseMock' => [ + 'title' => '是否使用模拟数据表。', + 'type' => 'boolean', + ], + 'Snapshot' => [ + 'type' => 'object', + 'properties' => [ + 'Partitions' => [ + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'object', + 'properties' => [ + 'Value' => [ + 'type' => 'string', + 'example' => '20260101', + ], + 'Values' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'string', + ], + ], + 'StartValue' => [ + 'type' => 'string', + ], + 'EndValue' => [ + 'type' => 'string', + ], + ], + ], + ], + 'Table' => [ + 'type' => 'string', + 'example' => 'table_name', + ], + ], + ], + ], + 'description' => '', + ], + 'title' => '特征视图配置。', + ], + 'TrainingSetConfig' => [ + 'title' => '训练集配置。', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Partitions' => [ + 'title' => '分区列表。', + 'description' => '', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => [ + 'type' => 'object', + 'additionalProperties' => [ + 'type' => 'string', + 'example' => '20230101', + 'description' => '', + ], + 'description' => '', + ], + ], + ], + 'required' => false, + ], + 'RealTimeIterateInterval' => [ + 'title' => '实时特征轮询拉取间隔。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1', + ], + 'RealTimePartitionCountValue' => [ + 'title' => '实时特征视图分区统计天数。', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '5', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '0FBBE454-9BD1-5D8F-9129-D14DB7FAFE0B', + ], + 'TaskId' => [ + 'title' => '任务ID。', + 'type' => 'string', + 'example' => '1', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FBBE454-9BD1-5D8F-9129-D14DB7FAFE0B\\",\\n \\"TaskId\\": \\"51\\"\\n}","type":"json"}]', + ], + 'ListModelFeatureAvailableFeatures' => [ + 'summary' => '获取注册FG特征时模型特征下可选的所有特征。', + 'path' => '/api/v1/instances/{InstanceId}/modelfeatures/{ModelFeatureId}/availablefeatures', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '205398', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'ModelFeatureId', + 'in' => 'path', + 'schema' => [ + 'title' => '模型特征ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + [ + 'name' => 'FeatureName', + 'in' => 'query', + 'schema' => [ + 'title' => '特征名称(模糊过滤)。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'f1', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'requestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'ED4DEA2F-F216-57F0-AE28-08D791233280', + ], + 'TotalCount' => [ + 'title' => '总个数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10', + ], + 'AvaliableFeatures' => [ + 'title' => '可选的特征列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => [ + 'title' => '特征名。', + 'description' => '', + 'type' => 'string', + 'example' => 'age', + ], + 'Type' => [ + 'title' => '特征值类型。'."\n" + .'● INTEGER'."\n" + .'● DOUBLE'."\n" + .'● STRING', + 'description' => '', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'STRING', + ], + 'SourceType' => [ + 'title' => '特征来源'."\n" + .'● FeatureView'."\n" + .'● LabelTable', + 'description' => '', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'FeatureView', + ], + 'SourceName' => [ + 'title' => '特征来源名称', + 'description' => '', + 'type' => 'string', + 'example' => 'user_fea', + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ED4DEA2F-F216-57F0-AE28-08D791233280\\",\\n \\"TotalCount\\": 10,\\n \\"AvaliableFeatures\\": [\\n {\\n \\"Name\\": \\"age\\",\\n \\"Type\\": \\"STRING\\",\\n \\"SourceType\\": \\"FeatureView\\",\\n \\"SourceName\\": \\"user_fea\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'UpdateModelFeatureFGFeature' => [ + 'summary' => '更新模型特征的FG特征配置信息。', + 'path' => '/api/v1/instances/{InstanceId}/modelfeatures/{ModelFeatureId}/fgfeature', + 'methods' => [ + 'put', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '205443', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'ModelFeatureId', + 'in' => 'path', + 'schema' => [ + 'title' => '模型特征ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'RawFeatures' => [ + 'title' => '基础特征信息。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'InputFeatureName' => [ + 'title' => '原始特征名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'item_id', + ], + 'FeatureDomain' => [ + 'title' => '原始特征域。'."\n" + .'● User'."\n" + .'● Item'."\n" + .'● Context', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => [], + 'example' => 'User', + ], + 'FeatureName' => [ + 'title' => '生成特征的名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'item_id', + ], + 'FeatureType' => [ + 'title' => 'FG基础特征类型。'."\n" + .'● IdFeature-主键'."\n" + .'● RawFeature-基础特征', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => [], + 'example' => 'IdFeature', + ], + 'ValueType' => [ + 'title' => '特征值类型。'."\n" + .'● INTEGER'."\n" + .'● DOUBLE'."\n" + .'● STRING', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => [], + 'example' => 'STRING', + ], + 'DefaultValue' => [ + 'title' => '默认值。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '-1024', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + 'LookupFeatures' => [ + 'title' => '查询特征信息。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'MapFeatureName' => [ + 'title' => 'map特征名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'item_id', + ], + 'MapFeatureDomain' => [ + 'title' => 'map特征域。'."\n" + .'● User'."\n" + .'● Item'."\n" + .'● Context', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => [], + 'example' => 'User', + ], + 'FeatureName' => [ + 'title' => '生成特征的名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'item_id', + ], + 'ValueType' => [ + 'title' => '特征值类型。'."\n" + .'● INTEGER'."\n" + .'● DOUBLE'."\n" + .'● STRING', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => [], + 'example' => 'STRING', + ], + 'DefaultValue' => [ + 'title' => '默认值。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '-1024', + ], + 'KeyFeatureName' => [ + 'title' => 'key特征特征。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '1', + ], + 'KeyFeatureDomain' => [ + 'title' => 'key特征域。'."\n" + .'● User'."\n" + .'● Item'."\n" + .'● Context', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => [], + 'example' => 'Item', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + 'SequenceFeatures' => [ + 'title' => '序列特征信息。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'FeatureName' => [ + 'title' => '序列特征名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'item_id', + ], + 'SequenceLength' => [ + 'title' => '序列特征最大长度。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '50', + ], + 'SequenceDelim' => [ + 'title' => '序列特征分隔符。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => ';', + ], + 'AttributeDelim' => [ + 'title' => '特征属性分隔符。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '#', + ], + 'SubFeatures' => [ + 'title' => '序列特征子特征列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'InputFeatureName' => [ + 'title' => '原始特征名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'item_id', + ], + 'FeatureDomain' => [ + 'title' => '原始特征域。'."\n" + .'● User'."\n" + .'● Item'."\n" + .'● Context', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => [], + 'example' => 'User', + ], + 'FeatureName' => [ + 'title' => '生成子特征的名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'item_id', + ], + 'FeatureType' => [ + 'title' => 'FG序列特征子特征类型。'."\n" + .'● IdFeature-主键'."\n" + .'● RawFeature-基础特征', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => [], + 'example' => 'RawFeature', + ], + 'ValueType' => [ + 'title' => '特征值类型。'."\n" + .'● INTEGER'."\n" + .'● DOUBLE'."\n" + .'● STRING', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => [], + 'example' => 'STRING', + ], + 'DefaultValue' => [ + 'title' => '默认值。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '-1024', + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + 'required' => false, + ], + 'required' => false, + ], + 'Reserves' => [ + 'title' => '保留字段。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'f1', + ], + 'required' => false, + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'requestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '7D497816-607C-5B67-97B1-61354B6ACB2B', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"7D497816-607C-5B67-97B1-61354B6ACB2B\\"\\n}","type":"json"}]', + ], + 'GetModelFeatureFGFeature' => [ + 'summary' => '获取模型特征的FG特征配置信息。', + 'path' => '/api/v1/instances/{InstanceId}/modelfeatures/{ModelFeatureId}/fgfeature', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '205386', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'ModelFeatureId', + 'in' => 'path', + 'schema' => [ + 'title' => '模型特征ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'E23EFF09-58AA-5420-934F-8453AE01548D', + ], + 'RawFeatures' => [ + 'title' => '基础特征信息。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'InputFeatureName' => [ + 'title' => '原始特征名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'item_id', + ], + 'FeatureDomain' => [ + 'title' => '原始特征域。'."\n" + .'● User'."\n" + .'● Item'."\n" + .'● Context', + 'description' => '', + 'type' => 'string', + 'example' => 'User', + ], + 'FeatureName' => [ + 'title' => '生成特征的名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'item_id', + ], + 'FeatureType' => [ + 'title' => 'FG基础特征类型。'."\n" + .'● IdFeature-主键'."\n" + .'● RawFeature-基础特征', + 'description' => '', + 'type' => 'string', + 'example' => 'IdFeature', + ], + 'ValueType' => [ + 'title' => '特征值类型。'."\n" + .'● INTEGER'."\n" + .'● DOUBLE'."\n" + .'● STRING', + 'description' => '', + 'type' => 'string', + 'example' => 'STRING', + ], + 'DefaultValue' => [ + 'title' => '默认值。', + 'description' => '', + 'type' => 'string', + 'example' => '-1024', + ], + ], + ], + ], + 'LookupFeatures' => [ + 'title' => '查询特征信息。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'MapFeatureName' => [ + 'title' => 'map特征名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'item_id', + ], + 'MapFeatureDomain' => [ + 'title' => 'map特征域。'."\n" + .'● User'."\n" + .'● Item'."\n" + .'● Context', + 'description' => '', + 'type' => 'string', + 'example' => 'User', + ], + 'FeatureName' => [ + 'title' => '生成特征的名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'item_id', + ], + 'ValueType' => [ + 'title' => '特征值类型。'."\n" + .'● INTEGER'."\n" + .'● DOUBLE'."\n" + .'● STRING', + 'description' => '', + 'type' => 'string', + 'example' => 'STRING', + ], + 'DefaultValue' => [ + 'title' => '默认值。', + 'description' => '', + 'type' => 'string', + 'example' => '-1024', + ], + 'KeyFeatureName' => [ + 'title' => 'key特征名称。', + 'description' => '', + 'type' => 'string', + 'example' => '1', + ], + 'KeyFeatureDomain' => [ + 'title' => 'key特征域。'."\n" + .'● User'."\n" + .'● Item'."\n" + .'● Context', + 'description' => '', + 'type' => 'string', + 'example' => 'Item', + ], + ], + ], + ], + 'SequenceFeatures' => [ + 'title' => '序列特征信息。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'FeatureName' => [ + 'title' => '序列特征名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'item_id', + ], + 'SequenceLength' => [ + 'title' => '序列特征最大长度。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '50', + ], + 'SequenceDelim' => [ + 'title' => '序列特征分隔符。', + 'description' => '', + 'type' => 'string', + 'example' => ';', + ], + 'AttributeDelim' => [ + 'title' => '特征属性分隔符。', + 'description' => '', + 'type' => 'string', + 'example' => '#', + ], + 'SubFeatures' => [ + 'title' => '序列特征子特征列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'InputFeatureName' => [ + 'title' => '原始特征名称', + 'description' => '', + 'type' => 'string', + 'example' => 'item_id', + ], + 'FeatureDomain' => [ + 'title' => '原始特征域。'."\n" + .'● User'."\n" + .'● Item'."\n" + .'● Context', + 'description' => '', + 'type' => 'string', + 'example' => 'User', + ], + 'FeatureName' => [ + 'title' => '生成特征的名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'item_id', + ], + 'FeatureType' => [ + 'title' => 'FG特征类型。'."\n" + .'● IdFeature-主键'."\n" + .'● RawFeature-基础特征', + 'description' => '', + 'type' => 'string', + 'example' => 'IdFeature', + ], + 'ValueType' => [ + 'title' => '特征值类型。'."\n" + .'● INTEGER'."\n" + .'● DOUBLE'."\n" + .'● STRING', + 'description' => '', + 'type' => 'string', + 'example' => 'STRING', + ], + 'DefaultValue' => [ + 'title' => '默认值。', + 'description' => '', + 'type' => 'string', + 'example' => '-1024', + ], + ], + ], + ], + ], + ], + ], + 'Reserves' => [ + 'title' => '保留字段。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'f1', + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E23EFF09-58AA-5420-934F-8453AE01548D\\",\\n \\"RawFeatures\\": [\\n {\\n \\"InputFeatureName\\": \\"item_id\\",\\n \\"FeatureDomain\\": \\"User\\",\\n \\"FeatureName\\": \\"item_id\\",\\n \\"FeatureType\\": \\"IdFeature\\",\\n \\"ValueType\\": \\"STRING\\",\\n \\"DefaultValue\\": \\"-1024\\"\\n }\\n ],\\n \\"LookupFeatures\\": [\\n {\\n \\"MapFeatureName\\": \\"item_id\\",\\n \\"MapFeatureDomain\\": \\"User\\",\\n \\"FeatureName\\": \\"item_id\\",\\n \\"ValueType\\": \\"STRING\\",\\n \\"DefaultValue\\": \\"-1024\\",\\n \\"KeyFeatureName\\": \\"1\\",\\n \\"KeyFeatureDomain\\": \\"Item\\"\\n }\\n ],\\n \\"SequenceFeatures\\": [\\n {\\n \\"FeatureName\\": \\"item_id\\",\\n \\"SequenceLength\\": 50,\\n \\"SequenceDelim\\": \\";\\",\\n \\"AttributeDelim\\": \\"#\\",\\n \\"SubFeatures\\": [\\n {\\n \\"InputFeatureName\\": \\"item_id\\",\\n \\"FeatureDomain\\": \\"User\\",\\n \\"FeatureName\\": \\"item_id\\",\\n \\"FeatureType\\": \\"IdFeature\\",\\n \\"ValueType\\": \\"STRING\\",\\n \\"DefaultValue\\": \\"-1024\\"\\n }\\n ]\\n }\\n ],\\n \\"Reserves\\": [\\n \\"f1\\"\\n ]\\n}","type":"json"}]', + ], + 'GetModelFeatureFGInfo' => [ + 'summary' => '获取模型特征的fg.json文件配置信息。', + 'path' => '/api/v1/instances/{InstanceId}/modelfeatures/{ModelFeatureId}/fginfo', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '205348', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'ModelFeatureId', + 'in' => 'path', + 'schema' => [ + 'title' => '模型特征ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '6B662A64-E4BF-56F8-BF5F-4C63F34EC0A8', + ], + 'Content' => [ + 'title' => 'fg.json文件配置内容。', + 'description' => '', + 'type' => 'string', + 'example' => '{"features": [{"feature_name": "item_id","feature_type": "id_feature","value_type": "String","expression": "item:item_id","default_value": "-1024","combiner": "mean","need_prefix": false},{"feature_name": "f1","feature_type": "lookup_feature","value_type": "Integer","map": "item:f1","key": "user:1","default_value": "0","combiner": "mean","need_prefix": false,"needDiscrete": false,"needWeighting": false,"needKey": false}],"reserves": ["f1"]}', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6B662A64-E4BF-56F8-BF5F-4C63F34EC0A8\\",\\n \\"Content\\": \\"{\\\\\\"features\\\\\\": [{\\\\\\"feature_name\\\\\\": \\\\\\"item_id\\\\\\",\\\\\\"feature_type\\\\\\": \\\\\\"id_feature\\\\\\",\\\\\\"value_type\\\\\\": \\\\\\"String\\\\\\",\\\\\\"expression\\\\\\": \\\\\\"item:item_id\\\\\\",\\\\\\"default_value\\\\\\": \\\\\\"-1024\\\\\\",\\\\\\"combiner\\\\\\": \\\\\\"mean\\\\\\",\\\\\\"need_prefix\\\\\\": false},{\\\\\\"feature_name\\\\\\": \\\\\\"f1\\\\\\",\\\\\\"feature_type\\\\\\": \\\\\\"lookup_feature\\\\\\",\\\\\\"value_type\\\\\\": \\\\\\"Integer\\\\\\",\\\\\\"map\\\\\\": \\\\\\"item:f1\\\\\\",\\\\\\"key\\\\\\": \\\\\\"user:1\\\\\\",\\\\\\"default_value\\\\\\": \\\\\\"0\\\\\\",\\\\\\"combiner\\\\\\": \\\\\\"mean\\\\\\",\\\\\\"need_prefix\\\\\\": false,\\\\\\"needDiscrete\\\\\\": false,\\\\\\"needWeighting\\\\\\": false,\\\\\\"needKey\\\\\\": false}],\\\\\\"reserves\\\\\\": [\\\\\\"f1\\\\\\"]}\\"\\n}","type":"json"}]', + ], + 'CheckModelFeatureFGFeature' => [ + 'summary' => '检查FG配置内容是否正确,是否满足所有规则。', + 'path' => '/api/v1/instances/{InstanceId}/modelfeatures/{ModelFeatureId}/action/checkfgfeature', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '205450', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'ModelFeatureId', + 'in' => 'path', + 'schema' => [ + 'title' => '模型特征ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'requestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'ED4DEA2F-F216-57F0-AE28-08D791233280', + ], + 'FGCheckResults' => [ + 'title' => 'FG配置检查结果。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'RuleCode' => [ + 'title' => '检查规则代码。'."\n" + .'● SeqSubEx: FG序列特征的子特征是否存在于 ModelFeature 的特征中?'."\n" + .'● LookupKeyEx: FG查询特征的检查键值特征是否存在 ModelFeature 特征中?'."\n" + .'● FGSetEx: 所有FG特征,是否存在于 ModelFeature 特征中?'."\n" + .'● ModelSetEx: 所有 ModelFeature 特征,是否存在于 FG 特征中?', + 'description' => '', + 'type' => 'string', + 'enumValueTitles' => [], + 'example' => 'SeqSubEx', + ], + 'Status' => [ + 'title' => '检查规则是否符合。', + 'description' => '', + 'type' => 'boolean', + 'example' => 'True', + ], + 'Message' => [ + 'title' => '错误信息。', + 'description' => '', + 'type' => 'string', + 'example' => 'f1[1]: these lookup_features\'s LookupValueFeature(key) not exist in model features', + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ED4DEA2F-F216-57F0-AE28-08D791233280\\",\\n \\"FGCheckResults\\": [\\n {\\n \\"RuleCode\\": \\"SeqSubEx\\",\\n \\"Status\\": true,\\n \\"Message\\": \\"f1[1]: these lookup_features\'s LookupValueFeature(key) not exist in model features\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'ListTasks' => [ + 'summary' => '获取任务列表', + 'path' => '/api/v1/instances/{InstanceId}/tasks', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '188874', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => [ + 'title' => '项目ID,可从接口ListProjects获取。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '4', + ], + ], + [ + 'name' => 'ObjectType', + 'in' => 'query', + 'schema' => [ + 'title' => '任务对象类型。'."\n" + .'● ModelFeature-模型特征。'."\n" + .'● FeatureView-特征视图。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'ModelFeature', + ], + ], + [ + 'name' => 'ObjectId', + 'in' => 'query', + 'schema' => [ + 'title' => '任务对象ID。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '4', + ], + ], + [ + 'name' => 'Status', + 'in' => 'query', + 'schema' => [ + 'title' => '状态。'."\n" + .'● Initializing-初始化中。'."\n" + .'● Running-运行中。'."\n" + .'● Success-成功。'."\n" + .'● Failure-失败。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'Running', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'title' => '页大小。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'title' => '页码。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'Type', + 'in' => 'query', + 'schema' => [ + 'title' => '任务类型过滤。'."\n" + .'● OfflineToOnline-离在线数据同步。'."\n" + .'● ExportTrainingSet-导出训练样本表。', + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => 'OfflineToOnline', + ], + ], + [ + 'name' => 'TaskIds', + 'in' => 'query', + 'style' => 'simple', + 'schema' => [ + 'title' => '任务ID过滤。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'required' => false, + 'example' => '3', + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'C33E160C-BFCA-5719-B958-942850E949F6', + ], + 'TotalCount' => [ + 'title' => '总个数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10', + ], + 'Tasks' => [ + 'title' => '任务列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'GmtCreateTime' => [ + 'title' => '创建时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2023-07-04T11:26:09.036+08:00', + ], + 'GmtExecutedTime' => [ + 'title' => '执行时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2023-07-04T11:26:09.036+08:00', + ], + 'GmtFinishedTime' => [ + 'title' => '完成时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2023-07-04T11:26:09.036+08:00', + ], + 'ObjectId' => [ + 'title' => '任务对象ID。', + 'description' => '', + 'type' => 'string', + 'example' => '5', + ], + 'ObjectType' => [ + 'title' => '任务对象类型。'."\n" + .'● ModelFeature-模型特征'."\n" + .'● FeatureView-特征视图', + 'description' => '', + 'type' => 'string', + 'example' => 'ModelFeature', + ], + 'ProjectId' => [ + 'title' => '项目ID。', + 'description' => '', + 'type' => 'string', + 'example' => '4', + ], + 'ProjectName' => [ + 'title' => '项目名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'project_1', + ], + 'Status' => [ + 'title' => '状态。'."\n" + .'● Initializing-初始化中。'."\n" + .'● Running-运行中。'."\n" + .'● Success-成功。'."\n" + .'● Failure-失败。', + 'description' => '', + 'type' => 'string', + 'example' => 'Running', + ], + 'TaskId' => [ + 'title' => '任务ID。', + 'description' => '', + 'type' => 'string', + 'example' => '4', + ], + 'Type' => [ + 'title' => '任务类型。'."\n" + .'● OfflineToOnline-离在线数据同步。'."\n" + .'● ExportTrainingSet-导出训练样本表。', + 'description' => '', + 'type' => 'string', + 'example' => 'OfflineToOnline', + ], + ], + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C33E160C-BFCA-5719-B958-942850E949F6\\",\\n \\"TotalCount\\": 10,\\n \\"Tasks\\": [\\n {\\n \\"GmtCreateTime\\": \\"2023-07-04T11:26:09.036+08:00\\",\\n \\"GmtExecutedTime\\": \\"2023-07-04T11:26:09.036+08:00\\",\\n \\"GmtFinishedTime\\": \\"2023-07-04T11:26:09.036+08:00\\",\\n \\"ObjectId\\": \\"5\\",\\n \\"ObjectType\\": \\"ModelFeature\\",\\n \\"ProjectId\\": \\"4\\",\\n \\"ProjectName\\": \\"project_1\\",\\n \\"Status\\": \\"Running\\",\\n \\"TaskId\\": \\"4\\",\\n \\"Type\\": \\"OfflineToOnline\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'GetTask' => [ + 'summary' => '获取任务详情', + 'path' => '/api/v1/instances/{InstanceId}/tasks/{TaskId}', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'TaskId', + 'in' => 'path', + 'schema' => [ + 'title' => '任务ID,可从接口ListTasks获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '37D19490-AB69-567D-A852-407C94E510E9', + ], + 'ProjectId' => [ + 'title' => '项目ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + 'ProjectName' => [ + 'title' => '项目名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'project_1', + ], + 'Type' => [ + 'title' => '任务类型。'."\n" + .'● OfflineToOnline-离在线数据同步。'."\n" + .'● ExportTrainingSet-导出训练样本表。', + 'description' => '', + 'type' => 'string', + 'example' => 'OfflineToOnline', + ], + 'ObjectType' => [ + 'title' => '任务目标类型。'."\n" + .'● ModelFeature-模型特征'."\n" + .'● FeatureView-特征视图', + 'description' => '', + 'type' => 'string', + 'example' => 'ModelFeature', + ], + 'ObjectId' => [ + 'title' => '任务目标ID。', + 'description' => '', + 'type' => 'string', + 'example' => '3', + ], + 'Status' => [ + 'title' => '状态。'."\n" + .'● Initializing-初始化中。'."\n" + .'● Running-运行中。'."\n" + .'● Success-成功。'."\n" + .'● Failure-失败。', + 'description' => '', + 'type' => 'string', + 'example' => 'Running', + ], + 'Config' => [ + 'title' => '任务配置。', + 'description' => '', + 'type' => 'string', + 'example' => '{'."\n" + .' "mode": "overwrite",'."\n" + .' "partitions": {'."\n" + .' "dt": "20230820"'."\n" + .' },'."\n" + .' "event_time": "",'."\n" + .' "config": {},'."\n" + .' "offline_to_online": true'."\n" + .'}', + ], + 'RunningConfig' => [ + 'title' => '任务运行配置。', + 'description' => '', + 'type' => 'string', + 'example' => 'DROP TABLE IF EXISTS public.fsxxx', + ], + 'GmtCreateTime' => [ + 'title' => '创建时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2023-07-04T11:26:09.036+08:00', + ], + 'GmtModifiedTime' => [ + 'title' => '更新时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2023-07-04T11:26:09.036+08:00', + ], + 'GmtExecutedTime' => [ + 'title' => '执行时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2023-07-04T11:26:09.036+08:00', + ], + 'GmtFinishedTime' => [ + 'title' => '完成时间。', + 'description' => '', + 'type' => 'string', + 'example' => '2023-07-04T11:26:09.036+08:00', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"37D19490-AB69-567D-A852-407C94E510E9\\",\\n \\"ProjectId\\": \\"3\\",\\n \\"ProjectName\\": \\"project_1\\",\\n \\"Type\\": \\"OfflineToOnline\\",\\n \\"ObjectType\\": \\"ModelFeature\\",\\n \\"ObjectId\\": \\"3\\",\\n \\"Status\\": \\"Running\\",\\n \\"Config\\": \\"{\\\\n\\\\t\\\\\\"mode\\\\\\": \\\\\\"overwrite\\\\\\",\\\\n\\\\t\\\\\\"partitions\\\\\\": {\\\\n\\\\t\\\\t\\\\\\"dt\\\\\\": \\\\\\"20230820\\\\\\"\\\\n\\\\t},\\\\n\\\\t\\\\\\"event_time\\\\\\": \\\\\\"\\\\\\",\\\\n\\\\t\\\\\\"config\\\\\\": {},\\\\n\\\\t\\\\\\"offline_to_online\\\\\\": true\\\\n}\\",\\n \\"RunningConfig\\": \\"DROP TABLE IF EXISTS public.fsxxx\\",\\n \\"GmtCreateTime\\": \\"2023-07-04T11:26:09.036+08:00\\",\\n \\"GmtModifiedTime\\": \\"2023-07-04T11:26:09.036+08:00\\",\\n \\"GmtExecutedTime\\": \\"2023-07-04T11:26:09.036+08:00\\",\\n \\"GmtFinishedTime\\": \\"2023-07-04T11:26:09.036+08:00\\"\\n}","type":"json"}]', + ], + 'StopTask' => [ + 'summary' => '停止任务。', + 'path' => '/api/v1/instances/{InstanceId}/tasks/{TaskId}/action/stop', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'TaskId', + 'in' => 'path', + 'schema' => [ + 'title' => '任务ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '3', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'requestId' => [ + 'title' => 'Id of the request', + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => '514F82AF-3C04-5C3D-8F38-A11261BF37B0', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"514F82AF-3C04-5C3D-8F38-A11261BF37B0\\"\\n}","type":"json"}]', + ], + 'ListTaskLogs' => [ + 'summary' => '获取任务日志列表', + 'path' => '/api/v1/instances/{InstanceId}/tasks/{TaskId}/logs', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'InstanceId', + 'in' => 'path', + 'schema' => [ + 'title' => '实例ID,可从接口ListInstances获取。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'fs-cn-********', + ], + ], + [ + 'name' => 'TaskId', + 'in' => 'path', + 'schema' => [ + 'title' => '任务ID。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => '4', + ], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => [ + 'title' => '页码。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => [ + 'title' => '页大小。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '72F15A8A-5A28-5B18-A0DE-0EABD7D3245A', + ], + 'TotalCount' => [ + 'title' => '日志总行数。', + 'description' => '', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '100', + ], + 'Logs' => [ + 'title' => '日志列表。', + 'description' => '', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'string', + 'example' => 'success!', + ], + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"72F15A8A-5A28-5B18-A0DE-0EABD7D3245A\\",\\n \\"TotalCount\\": 100,\\n \\"Logs\\": [\\n \\"success!\\"\\n ]\\n}","type":"json"}]', + ], + 'CreateServiceIdentityRole' => [ + 'summary' => '创建feature store服务账户角色', + 'path' => '/api/v1/serviceidentityroles', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'RoleName' => [ + 'title' => '服务账户角色名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'AliyunServiceRoleForFeatureStore', + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => 'C03B2680-AC9C-59CD-93C5-8142B92537FA', + ], + 'RoleName' => [ + 'title' => '服务账户角色名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'AliyunServiceRoleForFeatureStore', + ], + 'Code' => [ + 'title' => '错误码。', + 'description' => '', + 'type' => 'string', + 'example' => 'ServiceLinkedRoleAlreadyExistsErrorProblem', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C03B2680-AC9C-59CD-93C5-8142B92537FA\\",\\n \\"RoleName\\": \\"AliyunServiceRoleForFeatureStore\\",\\n \\"Code\\": \\"ServiceLinkedRoleAlreadyExistsErrorProblem\\"\\n}","type":"json"}]', + ], + 'GetServiceIdentityRole' => [ + 'summary' => '获取feature store服务账户角色。', + 'path' => '/api/v1/serviceidentityroles/{RoleName}', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'http', + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATURElearnC62G6X', + ], + ], + 'parameters' => [ + [ + 'name' => 'RoleName', + 'in' => 'path', + 'schema' => [ + 'title' => '服务账户角色名称。', + 'description' => '', + 'type' => 'string', + 'required' => true, + 'example' => 'AliyunServiceRoleForFeatureStore', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => [ + 'title' => 'Id of the request', + 'description' => '', + 'type' => 'string', + 'example' => '6F629E92-F64D-502D-85AA-A9C54894CA3D', + ], + 'RoleName' => [ + 'title' => '服务账户角色名称。', + 'description' => '', + 'type' => 'string', + 'example' => 'AliyunServiceRoleForPaiFeatureStore', + ], + 'Policy' => [ + 'title' => '关联策略。', + 'description' => '', + 'type' => 'string', + 'example' => '{'."\n" + .'"Version": "1",'."\n" + .'"Statement":[]'."\n" + .'}', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6F629E92-F64D-502D-85AA-A9C54894CA3D\\",\\n \\"RoleName\\": \\"AliyunServiceRoleForPaiFeatureStore\\",\\n \\"Policy\\": \\"{\\\\n\\\\\\"Version\\\\\\": \\\\\\"1\\\\\\",\\\\n\\\\\\"Statement\\\\\\":[]\\\\n}\\"\\n}","type":"json"}]', + ], + ], + 'endpoints' => [ + [ + 'regionId' => 'cn-beijing', + 'endpoint' => 'paifeaturestore.cn-beijing.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hangzhou', + 'endpoint' => 'paifeaturestore.cn-hangzhou.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shanghai', + 'endpoint' => 'paifeaturestore.cn-shanghai.aliyuncs.com', + ], + [ + 'regionId' => 'cn-shenzhen', + 'endpoint' => 'paifeaturestore.cn-shenzhen.aliyuncs.com', + ], + [ + 'regionId' => 'cn-hongkong', + 'endpoint' => 'paifeaturestore.cn-hongkong.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-1', + 'endpoint' => 'paifeaturestore.ap-southeast-1.aliyuncs.com', + ], + [ + 'regionId' => 'ap-southeast-5', + 'endpoint' => 'paifeaturestore.ap-southeast-5.aliyuncs.com', + ], + [ + 'regionId' => 'us-east-1', + 'endpoint' => 'paifeaturestore.us-east-1.aliyuncs.com', + ], + [ + 'regionId' => 'us-west-1', + 'endpoint' => 'paifeaturestore.us-west-1.aliyuncs.com', + ], + [ + 'regionId' => 'eu-central-1', + 'endpoint' => 'paifeaturestore.eu-central-1.aliyuncs.com', + ], + ], +]; -- cgit v1.2.3