diff options
Diffstat (limited to 'data/zh_cn/airec')
| -rw-r--r-- | data/zh_cn/airec/2018-10-12/api-docs.php | 4640 | ||||
| -rw-r--r-- | data/zh_cn/airec/2020-11-26/api-docs.php | 26267 |
2 files changed, 12143 insertions, 18764 deletions
diff --git a/data/zh_cn/airec/2018-10-12/api-docs.php b/data/zh_cn/airec/2018-10-12/api-docs.php index e97058e..eb435f1 100644 --- a/data/zh_cn/airec/2018-10-12/api-docs.php +++ b/data/zh_cn/airec/2018-10-12/api-docs.php @@ -1,142 +1,60 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'ROA', - 'product' => 'Airec', - 'version' => '2018-10-12', - ], + 'info' => ['style' => 'ROA', 'product' => 'Airec', 'version' => '2018-10-12'], 'directories' => [ [ 'id' => 99338, 'title' => '服务', 'type' => 'directory', - 'children' => [ - 'DeleteDiversify', - 'DeleteMix', - 'ListSceneItems', - 'PushDocument', - 'Recommend', - ], + 'children' => ['DeleteDiversify', 'DeleteMix', 'ListSceneItems', 'PushDocument', 'Recommend'], ], [ 'id' => 99344, 'title' => '区域', 'type' => 'directory', - 'children' => [ - 'DescribeRegions', - ], + 'children' => ['DescribeRegions'], ], [ 'id' => 99346, 'title' => '实例', 'type' => 'directory', - 'children' => [ - 'CreateInstance', - 'ModifyInstance', - 'ModifyDataSource', - 'DescribeInstance', - 'ListDashboardUid', - 'DescribeExposureSettings', - 'ListDashboardDetails', - 'ListDashboardDetailsFlows', - 'ListDashboardMetrics', - 'ListDashboardMetricsFlows', - 'DowngradeInstance', - ], + 'children' => ['CreateInstance', 'ModifyInstance', 'ModifyDataSource', 'DescribeInstance', 'ListDashboardUid', 'DescribeExposureSettings', 'ListDashboardDetails', 'ListDashboardDetailsFlows', 'ListDashboardMetrics', 'ListDashboardMetricsFlows', 'DowngradeInstance'], ], [ 'id' => 99358, 'title' => '数据集', 'type' => 'directory', - 'children' => [ - 'DeleteDataSet', - 'DescribeDataSetMessage', - 'DescribeDataSetReport', - 'ListDataSet', - ], + 'children' => ['DeleteDataSet', 'DescribeDataSetMessage', 'DescribeDataSetReport', 'ListDataSet'], ], [ 'id' => 99363, 'title' => '训练', 'type' => 'directory', - 'children' => [ - 'AttachDataset', - ], + 'children' => ['AttachDataset'], ], [ 'id' => 99365, 'title' => '场景', 'type' => 'directory', - 'children' => [ - 'CreateScene', - 'DeleteScene', - 'ModifyScene', - 'DescribeScene', - 'DescribeSceneThroughput', - 'ListDashboardParameters', - 'ListScenes', - ], + 'children' => ['CreateScene', 'DeleteScene', 'ModifyScene', 'DescribeScene', 'DescribeSceneThroughput', 'ListDashboardParameters', 'ListScenes'], ], [ 'id' => 99373, 'title' => '规则', 'type' => 'directory', - 'children' => [ - 'CreateRule', - 'ModifyRule', - 'ListDataSource', - 'ListInstance', - 'ListInstanceTask', - 'DescribeRule', - 'ListRuleConditions', - 'ListRules', - 'ListRuleTasks', - 'UpgradeInstance', - 'ValidateInstance', - 'PublishRule', - ], + 'children' => ['CreateRule', 'ModifyRule', 'ListDataSource', 'ListInstance', 'ListInstanceTask', 'DescribeRule', 'ListRuleConditions', 'ListRules', 'ListRuleTasks', 'UpgradeInstance', 'ValidateInstance', 'PublishRule'], ], [ 'id' => 99386, 'title' => '数据', 'type' => 'directory', - 'children' => [ - 'ModifyExposureSettings', - 'DescribeSyncReportDetail', - 'DescribeSyncReportOutliers', - 'DescribeUserMetrics', - 'ListDashboard', - 'ListLogs', - 'QueryDataMessage', - 'QueryDataMessageStatistics', - 'QueryExceptionHistory', - 'QuerySingleAggregationReport', - 'QuerySyncReportAggregation', - ], + 'children' => ['ModifyExposureSettings', 'DescribeSyncReportDetail', 'DescribeSyncReportOutliers', 'DescribeUserMetrics', 'ListDashboard', 'ListLogs', 'QueryDataMessage', 'QueryDataMessageStatistics', 'QueryExceptionHistory', 'QuerySingleAggregationReport', 'QuerySyncReportAggregation'], ], [ 'id' => 195641, 'title' => '其他', 'type' => 'directory', - 'children' => [ - 'CreateDiversify', - 'CreateMix', - 'DescribeDiversify', - 'DescribeMix', - 'DescribeQuota', - 'ListDiversify', - 'ListItems', - 'ListMix', - 'ListUmengAppkeys', - 'ModifyDiversify', - 'ModifyItems', - 'ModifyMix', - 'PushIntervention', - 'QueryRawData', - 'QuerySingleReport', - 'RunInstance', - 'StopDataSet', - ], + 'children' => ['CreateDiversify', 'CreateMix', 'DescribeDiversify', 'DescribeMix', 'DescribeQuota', 'ListDiversify', 'ListItems', 'ListMix', 'ListUmengAppkeys', 'ModifyDiversify', 'ModifyItems', 'ModifyMix', 'PushIntervention', 'QueryRawData', 'QuerySingleReport', 'RunInstance', 'StopDataSet'], ], ], 'components' => [ @@ -145,13 +63,8 @@ 'apis' => [ 'DeleteDiversify' => [ 'path' => '/openapi/instances/{InstanceId}/diversifies/{Name}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -161,28 +74,18 @@ 'systemTags' => [ 'operationType' => 'delete', 'abilityTreeCode' => '58944', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'Name', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -190,38 +93,20 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'GmtCreate' => [ - 'type' => 'string', - ], - 'Name' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'string', - ], + 'GmtCreate' => ['type' => 'string'], + 'Name' => ['type' => 'string'], + 'GmtModified' => ['type' => 'string'], 'Parameter' => [ 'type' => 'object', 'properties' => [ - 'CategoryIndex' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Window' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'CategoryIndex' => ['type' => 'integer', 'format' => 'int32'], + 'Window' => ['type' => 'integer', 'format' => 'int32'], ], ], ], @@ -234,13 +119,8 @@ ], 'DeleteMix' => [ 'path' => '/openapi/instances/{InstanceId}/mixes/{Name}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -250,28 +130,18 @@ 'systemTags' => [ 'operationType' => 'delete', 'abilityTreeCode' => '58945', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'Name', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -279,27 +149,15 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'GmtCreate' => [ - 'type' => 'string', - ], - 'Name' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'string', - ], + 'GmtCreate' => ['type' => 'string'], + 'Name' => ['type' => 'string'], + 'GmtModified' => ['type' => 'string'], 'Parameter' => [ 'type' => 'object', 'properties' => [ @@ -308,12 +166,8 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Name' => [ - 'type' => 'string', - ], - 'Value' => [ - 'type' => 'string', - ], + 'Name' => ['type' => 'string'], + 'Value' => ['type' => 'string'], ], ], ], @@ -329,13 +183,8 @@ ], 'ListSceneItems' => [ 'path' => '/openapi/instances/{InstanceId}/scenes/{SceneId}/items', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -346,79 +195,48 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58980', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'SceneId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'OperationRuleId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'SelectionRuleId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Page', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'Size', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'PreviewType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'QueryCount', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], ], 'responses' => [ @@ -426,9 +244,7 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ @@ -437,68 +253,29 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'type' => 'string', - ], - 'PubTime' => [ - 'type' => 'string', - ], - 'ExpireTime' => [ - 'type' => 'string', - ], - 'ItemType' => [ - 'type' => 'string', - ], - 'Author' => [ - 'type' => 'string', - ], - 'ItemId' => [ - 'type' => 'string', - ], - 'CategoryPath' => [ - 'type' => 'string', - ], - 'ShopId' => [ - 'type' => 'string', - ], - 'BrandId' => [ - 'type' => 'string', - ], - 'Duration' => [ - 'type' => 'string', - ], - 'Channel' => [ - 'type' => 'string', - ], - 'Title' => [ - 'type' => 'string', - ], + 'Status' => ['type' => 'string'], + 'PubTime' => ['type' => 'string'], + 'ExpireTime' => ['type' => 'string'], + 'ItemType' => ['type' => 'string'], + 'Author' => ['type' => 'string'], + 'ItemId' => ['type' => 'string'], + 'CategoryPath' => ['type' => 'string'], + 'ShopId' => ['type' => 'string'], + 'BrandId' => ['type' => 'string'], + 'Duration' => ['type' => 'string'], + 'Channel' => ['type' => 'string'], + 'Title' => ['type' => 'string'], ], ], ], 'Total' => [ 'type' => 'object', 'properties' => [ - 'WeightItem' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'InstanceRecommendItem' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'TotalCount' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'SceneRecommendItem' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'SceneWeightItem' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'WeightItem' => ['type' => 'integer', 'format' => 'int64'], + 'InstanceRecommendItem' => ['type' => 'integer', 'format' => 'int64'], + 'TotalCount' => ['type' => 'integer', 'format' => 'int64'], + 'SceneRecommendItem' => ['type' => 'integer', 'format' => 'int64'], + 'SceneWeightItem' => ['type' => 'integer', 'format' => 'int64'], ], ], ], @@ -510,15 +287,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -527,13 +298,8 @@ ], 'PushDocument' => [ 'path' => '/openapi/instances/{InstanceId}/tables/{TableName}/actions/bulk', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -543,28 +309,18 @@ 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '58992', - 'abilityTreeNodes' => [ - 'FEATUREairecY1ADIM', - ], + 'abilityTreeNodes' => ['FEATUREairecY1ADIM'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'TableName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -572,18 +328,10 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], - 'Result' => [ - 'type' => 'boolean', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], + 'Result' => ['type' => 'boolean'], ], ], ], @@ -592,13 +340,8 @@ ], 'Recommend' => [ 'path' => '/openapi/instances/{InstanceId}/actions/recommend', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -608,78 +351,48 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '59001', - 'abilityTreeNodes' => [ - 'FEATUREairecY1ADIM', - ], + 'abilityTreeNodes' => ['FEATUREairecY1ADIM'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'SceneId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'UserId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => false, 'docRequired' => true], ], [ 'name' => 'Ip', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Imei', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ReturnCount', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true], ], [ 'name' => 'RegionId', 'in' => 'header', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Items', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], 'responses' => [ @@ -687,43 +400,21 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'TraceInfo' => [ - 'type' => 'string', - ], - 'Weight' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'MatchInfo' => [ - 'type' => 'string', - ], - 'ItemType' => [ - 'type' => 'string', - ], - 'Position' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'ItemId' => [ - 'type' => 'string', - ], - 'TraceId' => [ - 'type' => 'string', - ], + 'TraceInfo' => ['type' => 'string'], + 'Weight' => ['type' => 'number', 'format' => 'float'], + 'MatchInfo' => ['type' => 'string'], + 'ItemType' => ['type' => 'string'], + 'Position' => ['type' => 'integer', 'format' => 'int32'], + 'ItemId' => ['type' => 'string'], + 'TraceId' => ['type' => 'string'], ], ], ], @@ -735,13 +426,8 @@ ], 'DescribeRegions' => [ 'path' => '/openapi/configurations/regions', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -751,19 +437,13 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58954', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - 'FEATUREairec5G3YBA', - ], + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'AcceptLanguage', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], 'responses' => [ @@ -771,35 +451,19 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'type' => 'string', - ], - 'ConsoleUrl' => [ - 'type' => 'string', - ], - 'LocalName' => [ - 'type' => 'string', - ], - 'Endpoint' => [ - 'type' => 'string', - ], - 'RegionId' => [ - 'type' => 'string', - ], + 'Status' => ['type' => 'string'], + 'ConsoleUrl' => ['type' => 'string'], + 'LocalName' => ['type' => 'string'], + 'Endpoint' => ['type' => 'string'], + 'RegionId' => ['type' => 'string'], ], ], ], @@ -811,13 +475,8 @@ ], 'CreateInstance' => [ 'path' => '/openapi/instances', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -827,12 +486,7 @@ 'systemTags' => [ 'operationType' => 'create', 'abilityTreeCode' => '58939', - 'abilityTreeNodes' => [ - 'FEATUREairecDM7OX0', - 'FEATUREairecEDD4RN', - 'FEATUREairecIDS0JZ', - 'FEATUREairecDTVO6V', - ], + 'abilityTreeNodes' => ['FEATUREairecDM7OX0', 'FEATUREairecEDD4RN', 'FEATUREairecIDS0JZ', 'FEATUREairecDTVO6V'], ], 'parameters' => [], 'responses' => [ @@ -840,21 +494,13 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'InstanceId' => [ - 'type' => 'string', - ], + 'InstanceId' => ['type' => 'string'], ], ], ], @@ -865,13 +511,8 @@ ], 'ModifyInstance' => [ 'path' => '/openapi/instances/{InstanceId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -881,22 +522,13 @@ 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '58986', - 'abilityTreeNodes' => [ - 'FEATUREairecDM7OX0', - 'FEATUREairecEDD4RN', - 'FEATUREairecDTVO6V', - 'FEATUREairecIDS0JZ', - ], + 'abilityTreeNodes' => ['FEATUREairecDM7OX0', 'FEATUREairecEDD4RN', 'FEATUREairecDTVO6V', 'FEATUREairecIDS0JZ'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -905,60 +537,26 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'Type' => [ - 'type' => 'string', - ], - 'Status' => [ - 'type' => 'string', - ], - 'CommodityCode' => [ - 'type' => 'string', - ], - 'ChargeType' => [ - 'type' => 'string', - ], - 'InstanceId' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'string', - ], - 'LockMode' => [ - 'type' => 'string', - ], - 'RegionId' => [ - 'type' => 'string', - ], - 'DataSetVersion' => [ - 'type' => 'string', - ], - 'Industry' => [ - 'type' => 'string', - ], - 'ExpiredTime' => [ - 'type' => 'string', - ], - 'GmtCreate' => [ - 'type' => 'string', - ], - 'Name' => [ - 'type' => 'string', - ], - 'Scene' => [ - 'type' => 'string', - ], + 'Type' => ['type' => 'string'], + 'Status' => ['type' => 'string'], + 'CommodityCode' => ['type' => 'string'], + 'ChargeType' => ['type' => 'string'], + 'InstanceId' => ['type' => 'string'], + 'GmtModified' => ['type' => 'string'], + 'LockMode' => ['type' => 'string'], + 'RegionId' => ['type' => 'string'], + 'DataSetVersion' => ['type' => 'string'], + 'Industry' => ['type' => 'string'], + 'ExpiredTime' => ['type' => 'string'], + 'GmtCreate' => ['type' => 'string'], + 'Name' => ['type' => 'string'], + 'Scene' => ['type' => 'string'], ], ], ], @@ -969,39 +567,25 @@ ], 'ModifyDataSource' => [ 'path' => '/openapi/instances/{InstanceId}/dataSources/{TableName}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'write', - 'systemTags' => [ - 'operationType' => 'update', - ], + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'TableName', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], 'responses' => [ @@ -1009,55 +593,26 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'GmtCreate' => [ - 'type' => 'string', - ], - 'TableName' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'string', - ], + 'GmtCreate' => ['type' => 'string'], + 'TableName' => ['type' => 'string'], + 'GmtModified' => ['type' => 'string'], 'Meta' => [ 'type' => 'object', 'properties' => [ - 'Type' => [ - 'type' => 'string', - ], - 'TableName' => [ - 'type' => 'string', - ], - 'ProjectName' => [ - 'type' => 'string', - ], - 'BucketName' => [ - 'type' => 'string', - ], - 'Path' => [ - 'type' => 'string', - ], - 'Partition' => [ - 'type' => 'string', - ], - 'Timestamp' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'AccessKeyId' => [ - 'type' => 'string', - ], + 'Type' => ['type' => 'string'], + 'TableName' => ['type' => 'string'], + 'ProjectName' => ['type' => 'string'], + 'BucketName' => ['type' => 'string'], + 'Path' => ['type' => 'string'], + 'Partition' => ['type' => 'string'], + 'Timestamp' => ['type' => 'integer', 'format' => 'int64'], + 'AccessKeyId' => ['type' => 'string'], ], ], ], @@ -1070,13 +625,8 @@ ], 'DescribeInstance' => [ 'path' => '/openapi/instances/{InstanceId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1086,22 +636,13 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58951', - 'abilityTreeNodes' => [ - 'FEATUREairecDM7OX0', - 'FEATUREairecEDD4RN', - 'FEATUREairecIDS0JZ', - 'FEATUREairecDTVO6V', - ], + 'abilityTreeNodes' => ['FEATUREairecDM7OX0', 'FEATUREairecEDD4RN', 'FEATUREairecIDS0JZ', 'FEATUREairecDTVO6V'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -1109,60 +650,26 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'Type' => [ - 'type' => 'string', - ], - 'Status' => [ - 'type' => 'string', - ], - 'CommodityCode' => [ - 'type' => 'string', - ], - 'ChargeType' => [ - 'type' => 'string', - ], - 'InstanceId' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'string', - ], - 'LockMode' => [ - 'type' => 'string', - ], - 'RegionId' => [ - 'type' => 'string', - ], - 'DataSetVersion' => [ - 'type' => 'string', - ], - 'Industry' => [ - 'type' => 'string', - ], - 'ExpiredTime' => [ - 'type' => 'string', - ], - 'GmtCreate' => [ - 'type' => 'string', - ], - 'Name' => [ - 'type' => 'string', - ], - 'Scene' => [ - 'type' => 'string', - ], + 'Type' => ['type' => 'string'], + 'Status' => ['type' => 'string'], + 'CommodityCode' => ['type' => 'string'], + 'ChargeType' => ['type' => 'string'], + 'InstanceId' => ['type' => 'string'], + 'GmtModified' => ['type' => 'string'], + 'LockMode' => ['type' => 'string'], + 'RegionId' => ['type' => 'string'], + 'DataSetVersion' => ['type' => 'string'], + 'Industry' => ['type' => 'string'], + 'ExpiredTime' => ['type' => 'string'], + 'GmtCreate' => ['type' => 'string'], + 'Name' => ['type' => 'string'], + 'Scene' => ['type' => 'string'], ], ], ], @@ -1173,13 +680,8 @@ ], 'ListDashboardUid' => [ 'path' => '/openapi/instances/{InstanceId}/dashboard/uid', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1190,19 +692,13 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58968', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -1210,27 +706,16 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'Num' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'Num' => ['type' => 'integer', 'format' => 'int32'], 'Uid' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], ], ], @@ -1242,13 +727,8 @@ ], 'DescribeExposureSettings' => [ 'path' => '/openapi/instances/{InstanceId}/exposure-settings', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1259,19 +739,13 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58950', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -1279,25 +753,14 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'DurationSeconds' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'ScenarioBased' => [ - 'type' => 'boolean', - ], + 'DurationSeconds' => ['type' => 'integer', 'format' => 'int32'], + 'ScenarioBased' => ['type' => 'boolean'], ], ], ], @@ -1308,13 +771,8 @@ ], 'ListDashboardDetails' => [ 'path' => '/openapi/instances/{InstanceId}/dashboard/details', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1325,66 +783,38 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58963', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], [ 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], [ 'name' => 'TraceIds', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'SceneIds', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'MetricType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -1392,29 +822,19 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'TraceId' => [ - 'type' => 'string', - ], - 'SceneId' => [ - 'type' => 'string', - ], + 'TraceId' => ['type' => 'string'], + 'SceneId' => ['type' => 'string'], 'MetricRes' => [ 'type' => 'object', 'properties' => [ - 'Total' => [ - 'type' => 'object', - ], - 'Detail' => [ - 'type' => 'object', - ], + 'Total' => ['type' => 'object'], + 'Detail' => ['type' => 'object'], ], ], ], @@ -1427,15 +847,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -1444,13 +858,8 @@ ], 'ListDashboardDetailsFlows' => [ 'path' => '/openapi/instances/{InstanceId}/dashboard/details/flows', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1461,66 +870,38 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58964', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], [ 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], [ 'name' => 'TraceIds', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'SceneIds', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'MetricType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -1528,29 +909,19 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'MetricType' => [ - 'type' => 'string', - ], + 'MetricType' => ['type' => 'string'], 'MetricData' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'SceneId' => [ - 'type' => 'string', - ], - 'TraceId' => [ - 'type' => 'string', - ], - 'MetricRes' => [ - 'type' => 'object', - ], + 'SceneId' => ['type' => 'string'], + 'TraceId' => ['type' => 'string'], + 'MetricRes' => ['type' => 'object'], ], ], ], @@ -1563,15 +934,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -1580,13 +945,8 @@ ], 'ListDashboardMetrics' => [ 'path' => '/openapi/instances/{InstanceId}/dashboard/metrics', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1597,48 +957,28 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58965', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], [ 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], [ 'name' => 'MetricType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -1646,31 +986,21 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Total' => [ - 'type' => 'object', - ], + 'Total' => ['type' => 'object'], 'Detail' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'EndTime' => [ - 'type' => 'string', - ], - 'StartTime' => [ - 'type' => 'string', - ], - 'Val' => [ - 'type' => 'string', - ], + 'EndTime' => ['type' => 'string'], + 'StartTime' => ['type' => 'string'], + 'Val' => ['type' => 'string'], ], ], ], @@ -1684,15 +1014,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -1701,13 +1025,8 @@ ], 'ListDashboardMetricsFlows' => [ 'path' => '/openapi/instances/{InstanceId}/dashboard/metrics/flows', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1718,48 +1037,28 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58966', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], [ 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], [ 'name' => 'MetricType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -1767,20 +1066,14 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'MetricData' => [ - 'type' => 'object', - ], - 'MetricType' => [ - 'type' => 'string', - ], + 'MetricData' => ['type' => 'object'], + 'MetricType' => ['type' => 'string'], ], ], ], @@ -1791,15 +1084,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -1808,13 +1095,8 @@ ], 'DowngradeInstance' => [ 'path' => '/openapi/instances/{InstanceId}/actions/downgrade', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1824,22 +1106,13 @@ 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '58961', - 'abilityTreeNodes' => [ - 'FEATUREairecDM7OX0', - 'FEATUREairecEDD4RN', - 'FEATUREairecIDS0JZ', - 'FEATUREairecDTVO6V', - ], + 'abilityTreeNodes' => ['FEATUREairecDM7OX0', 'FEATUREairecEDD4RN', 'FEATUREairecIDS0JZ', 'FEATUREairecDTVO6V'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -1847,21 +1120,13 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'InstanceId' => [ - 'type' => 'string', - ], + 'InstanceId' => ['type' => 'string'], ], ], ], @@ -1872,13 +1137,8 @@ ], 'DeleteDataSet' => [ 'path' => '/openapi/instances/{InstanceId}/dataSets/{VersionId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1888,28 +1148,18 @@ 'systemTags' => [ 'operationType' => 'delete', 'abilityTreeCode' => '58943', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'VersionId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -1917,35 +1167,17 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'GmtCreate' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'VersionId' => [ - 'type' => 'string', - ], - 'InstanceId' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'State' => [ - 'type' => 'string', - ], + 'GmtCreate' => ['type' => 'integer', 'format' => 'int64'], + 'VersionId' => ['type' => 'string'], + 'InstanceId' => ['type' => 'string'], + 'GmtModified' => ['type' => 'integer', 'format' => 'int64'], + 'State' => ['type' => 'string'], ], ], ], @@ -1956,13 +1188,8 @@ ], 'DescribeDataSetMessage' => [ 'path' => '/openapi/instances/{InstanceId}/dataSets/{VersionId}/messages', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1972,28 +1199,18 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58947', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'VersionId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -2001,32 +1218,18 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Message' => [ - 'type' => 'string', - ], - 'Timestamp' => [ - 'type' => 'string', - ], - 'ErrorType' => [ - 'type' => 'string', - ], - 'ErrorLevel' => [ - 'type' => 'string', - ], + 'Message' => ['type' => 'string'], + 'Timestamp' => ['type' => 'string'], + 'ErrorType' => ['type' => 'string'], + 'ErrorLevel' => ['type' => 'string'], ], ], ], @@ -2038,13 +1241,8 @@ ], 'DescribeDataSetReport' => [ 'path' => '/openapi/instances/{InstanceId}/dataSets/{VersionId}/report', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2054,28 +1252,18 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58948', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'VersionId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -2083,15 +1271,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ @@ -2100,100 +1282,34 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'UvCtr' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'BizDate' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'PerUvClick' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'Pv' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'ActiveItem' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'Ctr' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'PerUvBhv' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'Click' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'Uv' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'ClickUser' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'UvCtr' => ['type' => 'number', 'format' => 'float'], + 'BizDate' => ['type' => 'integer', 'format' => 'int64'], + 'PerUvClick' => ['type' => 'number', 'format' => 'float'], + 'Pv' => ['type' => 'integer', 'format' => 'int64'], + 'ActiveItem' => ['type' => 'integer', 'format' => 'int64'], + 'Ctr' => ['type' => 'number', 'format' => 'float'], + 'PerUvBhv' => ['type' => 'number', 'format' => 'float'], + 'Click' => ['type' => 'integer', 'format' => 'int64'], + 'Uv' => ['type' => 'integer', 'format' => 'int64'], + 'ClickUser' => ['type' => 'integer', 'format' => 'int64'], ], ], ], 'Overall' => [ 'type' => 'object', 'properties' => [ - 'UserRepetitiveRate' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'UserUserCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'BhvCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'BhvLegalRate' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'UserCompleteRate' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'ItemCompleteRate' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'UserLoginRate' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'ItemItemCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'ItemRepetitiveRate' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'UserLegalRate' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'ItemLegalRate' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'ItemLoginRate' => [ - 'type' => 'number', - 'format' => 'float', - ], + 'UserRepetitiveRate' => ['type' => 'number', 'format' => 'float'], + 'UserUserCount' => ['type' => 'integer', 'format' => 'int32'], + 'BhvCount' => ['type' => 'integer', 'format' => 'int32'], + 'BhvLegalRate' => ['type' => 'number', 'format' => 'float'], + 'UserCompleteRate' => ['type' => 'number', 'format' => 'float'], + 'ItemCompleteRate' => ['type' => 'number', 'format' => 'float'], + 'UserLoginRate' => ['type' => 'number', 'format' => 'float'], + 'ItemItemCount' => ['type' => 'integer', 'format' => 'int32'], + 'ItemRepetitiveRate' => ['type' => 'number', 'format' => 'float'], + 'UserLegalRate' => ['type' => 'number', 'format' => 'float'], + 'ItemLegalRate' => ['type' => 'number', 'format' => 'float'], + 'ItemLoginRate' => ['type' => 'number', 'format' => 'float'], ], ], ], @@ -2206,13 +1322,8 @@ ], 'ListDataSet' => [ 'path' => '/openapi/instances/{InstanceId}/dataSets', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2222,19 +1333,13 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58969', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -2242,37 +1347,19 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'GmtCreate' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'VersionId' => [ - 'type' => 'string', - ], - 'InstanceId' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'State' => [ - 'type' => 'string', - ], + 'GmtCreate' => ['type' => 'integer', 'format' => 'int64'], + 'VersionId' => ['type' => 'string'], + 'InstanceId' => ['type' => 'string'], + 'GmtModified' => ['type' => 'integer', 'format' => 'int64'], + 'State' => ['type' => 'string'], ], ], ], @@ -2284,13 +1371,8 @@ ], 'AttachDataset' => [ 'path' => '/openapi/instances/{InstanceId}/dataSets/{VersionId}/actions/current', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2300,28 +1382,18 @@ 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '58937', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'VersionId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -2329,35 +1401,17 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'GmtCreate' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'VersionId' => [ - 'type' => 'string', - ], - 'InstanceId' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'State' => [ - 'type' => 'string', - ], + 'GmtCreate' => ['type' => 'integer', 'format' => 'int64'], + 'VersionId' => ['type' => 'string'], + 'InstanceId' => ['type' => 'string'], + 'GmtModified' => ['type' => 'integer', 'format' => 'int64'], + 'State' => ['type' => 'string'], ], ], ], @@ -2368,13 +1422,8 @@ ], 'CreateScene' => [ 'path' => '/openapi/instances/{InstanceId}/scenes', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2385,29 +1434,18 @@ 'systemTags' => [ 'operationType' => 'create', 'abilityTreeCode' => '58942', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - 'FEATUREairec5G3YBA', - ], + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'DryRun', 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - 'docRequired' => true, - ], + 'schema' => ['type' => 'boolean', 'required' => false, 'docRequired' => true], ], ], 'responses' => [ @@ -2415,24 +1453,14 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'type' => 'string', - ], - 'GmtCreate' => [ - 'type' => 'string', - ], - 'SceneId' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'string', - ], + 'Status' => ['type' => 'string'], + 'GmtCreate' => ['type' => 'string'], + 'SceneId' => ['type' => 'string'], + 'GmtModified' => ['type' => 'string'], ], ], ], @@ -2442,15 +1470,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -2459,13 +1481,8 @@ ], 'DeleteScene' => [ 'path' => '/openapi/instances/{InstanceId}/scenes/{SceneId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2476,29 +1493,18 @@ 'systemTags' => [ 'operationType' => 'delete', 'abilityTreeCode' => '58946', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - 'FEATUREairec5G3YBA', - ], + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'SceneId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -2506,15 +1512,11 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'SceneId' => [ - 'type' => 'string', - ], + 'SceneId' => ['type' => 'string'], ], ], ], @@ -2524,15 +1526,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -2541,13 +1537,8 @@ ], 'ModifyScene' => [ 'path' => '/openapi/instances/{InstanceId}/scenes/{SceneId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2558,28 +1549,18 @@ 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '58990', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'SceneId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -2587,24 +1568,14 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'type' => 'string', - ], - 'GmtCreate' => [ - 'type' => 'string', - ], - 'SceneId' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'string', - ], + 'Status' => ['type' => 'string'], + 'GmtCreate' => ['type' => 'string'], + 'SceneId' => ['type' => 'string'], + 'GmtModified' => ['type' => 'string'], ], ], ], @@ -2614,15 +1585,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -2631,13 +1596,8 @@ ], 'DescribeScene' => [ 'path' => '/openapi/instances/{InstanceId}/scenes/{SceneId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2648,28 +1608,18 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58956', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'SceneId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -2677,24 +1627,14 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'type' => 'string', - ], - 'GmtCreate' => [ - 'type' => 'string', - ], - 'SceneId' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'string', - ], + 'Status' => ['type' => 'string'], + 'GmtCreate' => ['type' => 'string'], + 'SceneId' => ['type' => 'string'], + 'GmtModified' => ['type' => 'string'], ], ], ], @@ -2704,15 +1644,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -2721,13 +1655,8 @@ ], 'DescribeSceneThroughput' => [ 'path' => '/openapi/instances/{InstanceId}/scenes/{SceneId}/throughput', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2738,28 +1667,18 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58957', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'SceneId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -2767,16 +1686,11 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'PvCount' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'PvCount' => ['type' => 'integer', 'format' => 'int64'], ], ], ], @@ -2786,15 +1700,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -2803,13 +1711,8 @@ ], 'ListDashboardParameters' => [ 'path' => '/openapi/instances/{InstanceId}/dashboard/parameters', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2820,19 +1723,13 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58967', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -2840,29 +1737,19 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ 'TraceId' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], 'SceneId' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], ], ], @@ -2874,13 +1761,8 @@ ], 'ListScenes' => [ 'path' => '/openapi/instances/{InstanceId}/scenes', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2891,27 +1773,18 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58981', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'Status', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], 'responses' => [ @@ -2919,26 +1792,16 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'type' => 'string', - ], - 'GmtCreate' => [ - 'type' => 'string', - ], - 'SceneId' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'string', - ], + 'Status' => ['type' => 'string'], + 'GmtCreate' => ['type' => 'string'], + 'SceneId' => ['type' => 'string'], + 'GmtModified' => ['type' => 'string'], ], ], ], @@ -2949,15 +1812,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -2966,13 +1823,8 @@ ], 'CreateRule' => [ 'path' => '/openapi/instances/{InstanceId}/rules', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2983,19 +1835,13 @@ 'systemTags' => [ 'operationType' => 'create', 'abilityTreeCode' => '58941', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -3003,24 +1849,14 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'type' => 'string', - ], - 'GmtCreate' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'string', - ], - 'RuleId' => [ - 'type' => 'string', - ], + 'Status' => ['type' => 'string'], + 'GmtCreate' => ['type' => 'string'], + 'GmtModified' => ['type' => 'string'], + 'RuleId' => ['type' => 'string'], ], ], ], @@ -3030,15 +1866,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -3047,13 +1877,8 @@ ], 'ModifyRule' => [ 'path' => '/openapi/instances/{InstanceId}/rules/{RuleId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3064,28 +1889,18 @@ 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '58989', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'RuleId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -3093,27 +1908,15 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'type' => 'string', - ], - 'GmtCreate' => [ - 'type' => 'string', - ], - 'RuleMeta' => [ - 'type' => 'object', - ], - 'GmtModified' => [ - 'type' => 'string', - ], - 'RuleId' => [ - 'type' => 'string', - ], + 'Status' => ['type' => 'string'], + 'GmtCreate' => ['type' => 'string'], + 'RuleMeta' => ['type' => 'object'], + 'GmtModified' => ['type' => 'string'], + 'RuleId' => ['type' => 'string'], ], ], ], @@ -3123,15 +1926,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -3140,13 +1937,8 @@ ], 'ListDataSource' => [ 'path' => '/openapi/instances/{InstanceId}/dataSources', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3156,19 +1948,13 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58970', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -3176,57 +1962,28 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'GmtCreate' => [ - 'type' => 'string', - ], - 'TableName' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'string', - ], + 'GmtCreate' => ['type' => 'string'], + 'TableName' => ['type' => 'string'], + 'GmtModified' => ['type' => 'string'], 'Meta' => [ 'type' => 'object', 'properties' => [ - 'Type' => [ - 'type' => 'string', - ], - 'TableName' => [ - 'type' => 'string', - ], - 'ProjectName' => [ - 'type' => 'string', - ], - 'BucketName' => [ - 'type' => 'string', - ], - 'Path' => [ - 'type' => 'string', - ], - 'Partition' => [ - 'type' => 'string', - ], - 'Timestamp' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'AccessKeyId' => [ - 'type' => 'string', - ], + 'Type' => ['type' => 'string'], + 'TableName' => ['type' => 'string'], + 'ProjectName' => ['type' => 'string'], + 'BucketName' => ['type' => 'string'], + 'Path' => ['type' => 'string'], + 'Partition' => ['type' => 'string'], + 'Timestamp' => ['type' => 'integer', 'format' => 'int64'], + 'AccessKeyId' => ['type' => 'string'], ], ], ], @@ -3240,13 +1997,8 @@ ], 'ListInstance' => [ 'path' => '/openapi/instances', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3257,63 +2009,33 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58972', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - 'FEATUREairec5G3YBA', - ], + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'page', 'in' => 'query', - 'schema' => [ - 'description' => '指定页码,默认为:1'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '指定页码,默认为:1'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], ], [ 'name' => 'size', 'in' => 'query', - 'schema' => [ - 'description' => '指定每页展示条数,默认为10,限制:[1-50]'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => '指定每页展示条数,默认为10,限制:[1-50]'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], ], [ 'name' => 'Status', 'in' => 'query', - 'schema' => [ - 'description' => '通过实例状态进行过滤。Running, Ready, Initializing,Starting', - 'type' => 'string', - 'required' => false, - 'example' => 'Running', - ], + 'schema' => ['description' => '通过实例状态进行过滤。Running, Ready, Initializing,Starting', 'type' => 'string', 'required' => false, 'example' => 'Running'], ], [ 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'description' => '通过实例名称进行过滤,支持模糊匹配。', - 'type' => 'string', - 'required' => false, - 'example' => '测试实例', - ], + 'schema' => ['description' => '通过实例名称进行过滤,支持模糊匹配。', 'type' => 'string', 'required' => false, 'example' => '测试实例'], ], [ 'name' => 'ExpiredTime', 'in' => 'query', - 'schema' => [ - 'description' => '秒级时间戳,通过过期时间过滤,大于当前时间会过滤出即将过期的实例(不包含已经过期的实例)', - 'type' => 'string', - 'required' => false, - 'example' => '1608533404', - ], + 'schema' => ['description' => '秒级时间戳,通过过期时间过滤,大于当前时间会过滤出即将过期的实例(不包含已经过期的实例)', 'type' => 'string', 'required' => false, 'example' => '1608533404'], ], ], 'responses' => [ @@ -3322,95 +2044,29 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'description' => '错误码', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'Message' => [ - 'description' => '错误详情', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], - 'RequestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], + 'Code' => ['description' => '错误码', 'type' => 'string', 'example' => 'InternalServerError'], + 'Message' => ['description' => '错误详情', 'type' => 'string', 'example' => 'An internal server error occurred'], + 'RequestId' => ['description' => '请求id', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], 'Result' => [ 'description' => '返回参数', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Type' => [ - 'description' => '实例类型,当前只有 标准版(Standard)。', - 'type' => 'string', - 'example' => 'Standard', - ], - 'Status' => [ - 'description' => '实例状态,初始化中(Initializing)、待数据导入(Ready)、运行中(Running)。', - 'type' => 'string', - 'example' => 'Running', - ], - 'CommodityCode' => [ - 'description' => '商品代码。', - 'type' => 'string', - 'example' => 'airecpre', - ], - 'ChargeType' => [ - 'description' => '付费类型,包含 包年包月( PrePaid)和 按量付费 ( PostPaid ),当前产品只支持包年包月付费类型。', - 'type' => 'string', - 'example' => 'PrePaid', - ], - 'InstanceId' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'example' => 'airec-cn-o400whm78004', - ], - 'GmtModified' => [ - 'description' => '实例最后更新时间,单位为UTC时间。', - 'type' => 'string', - 'example' => '2018-12-06T11:17:49.000Z', - ], - 'DataSetVersion' => [ - 'description' => '当前在线服务的数据集版本。', - 'type' => 'string', - 'example' => '20181206170353', - ], - 'LockMode' => [ - 'description' => '锁定状态,包含 未锁定( Unlock )、手动锁定( ManualLock )、欠费锁定 ( LockByExpiration)。', - 'type' => 'string', - 'example' => 'Unlock', - ], - 'RegionId' => [ - 'description' => '实例所在的区域。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'Industry' => [ - 'description' => '行业名称,行业名称分为:内容型( content )、商品型( item )、新闻型( news)、视频型( video )、社交型( sns )。', - 'type' => 'string', - 'example' => 'news', - ], - 'ExpiredTime' => [ - 'description' => '实例过期时间,单位为UTC时间。', - 'type' => 'string', - 'example' => '2019-01-06T16:00:00.000Z', - ], - 'GmtCreate' => [ - 'description' => '实例创建时间,单位为UTC时间。', - 'type' => 'string', - 'example' => '2018-12-06T06:14:01.000Z', - ], - 'Name' => [ - 'description' => '实例名称。', - 'type' => 'string', - 'example' => 'airec-cn-o400whm78004', - ], - 'Scene' => [ - 'type' => 'string', - ], + 'Type' => ['description' => '实例类型,当前只有 标准版(Standard)。', 'type' => 'string', 'example' => 'Standard'], + 'Status' => ['description' => '实例状态,初始化中(Initializing)、待数据导入(Ready)、运行中(Running)。', 'type' => 'string', 'example' => 'Running'], + 'CommodityCode' => ['description' => '商品代码。', 'type' => 'string', 'example' => 'airecpre'], + 'ChargeType' => ['description' => '付费类型,包含 包年包月( PrePaid)和 按量付费 ( PostPaid ),当前产品只支持包年包月付费类型。', 'type' => 'string', 'example' => 'PrePaid'], + 'InstanceId' => ['description' => '实例ID。', 'type' => 'string', 'example' => 'airec-cn-o400whm78004'], + 'GmtModified' => ['description' => '实例最后更新时间,单位为UTC时间。', 'type' => 'string', 'example' => '2018-12-06T11:17:49.000Z'], + 'DataSetVersion' => ['description' => '当前在线服务的数据集版本。', 'type' => 'string', 'example' => '20181206170353'], + 'LockMode' => ['description' => '锁定状态,包含 未锁定( Unlock )、手动锁定( ManualLock )、欠费锁定 ( LockByExpiration)。', 'type' => 'string', 'example' => 'Unlock'], + 'RegionId' => ['description' => '实例所在的区域。', 'type' => 'string', 'example' => 'cn-beijing'], + 'Industry' => ['description' => '行业名称,行业名称分为:内容型( content )、商品型( item )、新闻型( news)、视频型( video )、社交型( sns )。', 'type' => 'string', 'example' => 'news'], + 'ExpiredTime' => ['description' => '实例过期时间,单位为UTC时间。', 'type' => 'string', 'example' => '2019-01-06T16:00:00.000Z'], + 'GmtCreate' => ['description' => '实例创建时间,单位为UTC时间。', 'type' => 'string', 'example' => '2018-12-06T06:14:01.000Z'], + 'Name' => ['description' => '实例名称。', 'type' => 'string', 'example' => 'airec-cn-o400whm78004'], + 'Scene' => ['type' => 'string'], ], ], ], @@ -3421,9 +2077,7 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -3436,13 +2090,8 @@ ], 'ListInstanceTask' => [ 'path' => '/openapi/instances/{InstanceId}/tasks', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3452,22 +2101,13 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58973', - 'abilityTreeNodes' => [ - 'FEATUREairecDM7OX0', - 'FEATUREairecEDD4RN', - 'FEATUREairecIDS0JZ', - 'FEATUREairecDTVO6V', - ], + 'abilityTreeNodes' => ['FEATUREairecDM7OX0', 'FEATUREairecEDD4RN', 'FEATUREairecIDS0JZ', 'FEATUREairecDTVO6V'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -3475,50 +2115,26 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Name' => [ - 'type' => 'string', - ], - 'TotalProgress' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'Name' => ['type' => 'string'], + 'TotalProgress' => ['type' => 'integer', 'format' => 'int32'], 'SubProgressInfos' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Type' => [ - 'type' => 'string', - ], - 'FinishedNum' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Progress' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'TotalNum' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Detail' => [ - 'type' => 'string', - ], + 'Type' => ['type' => 'string'], + 'FinishedNum' => ['type' => 'integer', 'format' => 'int32'], + 'Progress' => ['type' => 'integer', 'format' => 'int32'], + 'TotalNum' => ['type' => 'integer', 'format' => 'int32'], + 'Detail' => ['type' => 'string'], ], ], ], @@ -3533,13 +2149,8 @@ ], 'DescribeRule' => [ 'path' => '/openapi/instances/{InstanceId}/rules/{RuleId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3550,46 +2161,28 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58955', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'RuleId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'SceneId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'RuleType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -3597,24 +2190,14 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'type' => 'string', - ], - 'GmtCreate' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'string', - ], - 'RuleId' => [ - 'type' => 'string', - ], + 'Status' => ['type' => 'string'], + 'GmtCreate' => ['type' => 'string'], + 'GmtModified' => ['type' => 'string'], + 'RuleId' => ['type' => 'string'], ], ], ], @@ -3624,15 +2207,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -3641,13 +2218,8 @@ ], 'ListRuleConditions' => [ 'path' => '/openapi/instances/{InstanceId}/rule-conditions', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3658,19 +2230,13 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58977', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -3678,23 +2244,15 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'SelectType' => [ - 'type' => 'string', - ], - 'SelectionOperation' => [ - 'type' => 'string', - ], - 'SelectValue' => [ - 'type' => 'string', - ], + 'SelectType' => ['type' => 'string'], + 'SelectionOperation' => ['type' => 'string'], + 'SelectValue' => ['type' => 'string'], ], ], ], @@ -3705,15 +2263,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -3722,13 +2274,8 @@ ], 'ListRules' => [ 'path' => '/openapi/instances/{InstanceId}/rules', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3739,82 +2286,48 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58978', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'SceneId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'RuleType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'Status', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'page', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'docRequired' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false], ], [ 'name' => 'size', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], ], [ 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], ], ], 'responses' => [ @@ -3822,26 +2335,16 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'type' => 'string', - ], - 'GmtCreate' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'string', - ], - 'RuleId' => [ - 'type' => 'string', - ], + 'Status' => ['type' => 'string'], + 'GmtCreate' => ['type' => 'string'], + 'GmtModified' => ['type' => 'string'], + 'RuleId' => ['type' => 'string'], ], ], ], @@ -3852,15 +2355,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -3869,13 +2366,8 @@ ], 'ListRuleTasks' => [ 'path' => '/openapi/instances/{InstanceId}/rule-tasks', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3886,28 +2378,18 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58979', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'SceneId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -3915,20 +2397,12 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'FinishTime' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'FinishRate' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'FinishTime' => ['type' => 'integer', 'format' => 'int32'], + 'FinishRate' => ['type' => 'integer', 'format' => 'int32'], ], ], ], @@ -3938,15 +2412,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -3955,13 +2423,8 @@ ], 'UpgradeInstance' => [ 'path' => '/openapi/instances/{InstanceId}/actions/upgrade', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3971,22 +2434,13 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '59004', - 'abilityTreeNodes' => [ - 'FEATUREairecDM7OX0', - 'FEATUREairecEDD4RN', - 'FEATUREairecIDS0JZ', - 'FEATUREairecDTVO6V', - ], + 'abilityTreeNodes' => ['FEATUREairecDM7OX0', 'FEATUREairecEDD4RN', 'FEATUREairecIDS0JZ', 'FEATUREairecDTVO6V'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -3994,21 +2448,13 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'InstanceId' => [ - 'type' => 'string', - ], + 'InstanceId' => ['type' => 'string'], ], ], ], @@ -4019,13 +2465,8 @@ ], 'ValidateInstance' => [ 'path' => '/openapi/instances/{InstanceId}/actions/validate', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4035,22 +2476,13 @@ 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '59005', - 'abilityTreeNodes' => [ - 'FEATUREairecDM7OX0', - 'FEATUREairecEDD4RN', - 'FEATUREairecIDS0JZ', - 'FEATUREairecDTVO6V', - ], + 'abilityTreeNodes' => ['FEATUREairecDM7OX0', 'FEATUREairecEDD4RN', 'FEATUREairecIDS0JZ', 'FEATUREairecDTVO6V'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -4058,18 +2490,10 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], - 'Result' => [ - 'type' => 'boolean', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], + 'Result' => ['type' => 'boolean'], ], ], ], @@ -4078,13 +2502,8 @@ ], 'PublishRule' => [ 'path' => '/openapi/instances/{InstanceId}/rules/{RuleId}/actions/publish', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4095,46 +2514,28 @@ 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '58991', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'RuleId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'RuleType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'SceneId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -4142,15 +2543,11 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'RuleId' => [ - 'type' => 'string', - ], + 'RuleId' => ['type' => 'string'], ], ], ], @@ -4160,15 +2557,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -4177,13 +2568,8 @@ ], 'ModifyExposureSettings' => [ 'path' => '/openapi/instances/{InstanceId}/exposure-settings', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4194,19 +2580,13 @@ 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '58985', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -4214,25 +2594,14 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'DurationSeconds' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'ScenarioBased' => [ - 'type' => 'boolean', - ], + 'DurationSeconds' => ['type' => 'integer', 'format' => 'int32'], + 'ScenarioBased' => ['type' => 'boolean'], ], ], ], @@ -4243,13 +2612,8 @@ ], 'DescribeSyncReportDetail' => [ 'path' => '/openapi/instances/{InstanceId}/sync-reports/detail', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4260,57 +2624,33 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58958', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], [ 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], [ 'name' => 'Type', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'LevelType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -4318,54 +2658,27 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Type' => [ - 'type' => 'string', - ], - 'ErrorCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'SampleDisplay' => [ - 'type' => 'boolean', - ], - 'DefaultDisplay' => [ - 'type' => 'boolean', - ], - 'ErrorPercent' => [ - 'type' => 'number', - 'format' => 'float', - ], + 'Type' => ['type' => 'string'], + 'ErrorCount' => ['type' => 'integer', 'format' => 'int32'], + 'SampleDisplay' => ['type' => 'boolean'], + 'DefaultDisplay' => ['type' => 'boolean'], + 'ErrorPercent' => ['type' => 'number', 'format' => 'float'], 'HistoryData' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'EndTime' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'StartTime' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'ErrorPercent' => [ - 'type' => 'number', - 'format' => 'float', - ], + 'EndTime' => ['type' => 'integer', 'format' => 'int64'], + 'StartTime' => ['type' => 'integer', 'format' => 'int64'], + 'ErrorPercent' => ['type' => 'number', 'format' => 'float'], ], ], ], @@ -4379,9 +2692,7 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -4390,13 +2701,8 @@ ], 'DescribeSyncReportOutliers' => [ 'path' => '/openapi/instances/{InstanceId}/sync-reports/outliers', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4406,66 +2712,38 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58959', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], [ 'name' => 'Key', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'Type', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], [ 'name' => 'LevelType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -4473,18 +2751,10 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], - 'Result' => [ - 'type' => 'object', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], + 'Result' => ['type' => 'object'], ], ], ], @@ -4492,9 +2762,7 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -4503,13 +2771,8 @@ ], 'DescribeUserMetrics' => [ 'path' => '/openapi/instances/{InstanceId}/metrics', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4520,48 +2783,28 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58960', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], [ 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], [ 'name' => 'MetricType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -4569,40 +2812,23 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'SceneId' => [ - 'type' => 'string', - ], + 'SceneId' => ['type' => 'string'], 'DataPoints' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'EndTime' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'StartTime' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'Val' => [ - 'type' => 'number', - 'format' => 'float', - ], + 'EndTime' => ['type' => 'integer', 'format' => 'int64'], + 'StartTime' => ['type' => 'integer', 'format' => 'int64'], + 'Val' => ['type' => 'number', 'format' => 'float'], ], ], ], @@ -4616,9 +2842,7 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -4627,13 +2851,8 @@ ], 'ListDashboard' => [ 'path' => '/openapi/instances/{InstanceId}/dashboard/statistics', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4644,75 +2863,43 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58962', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'StartDate', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], [ 'name' => 'EndDate', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], [ 'name' => 'TraceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'SceneId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'Page', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'Size', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], ], 'responses' => [ @@ -4720,73 +2907,30 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'Num' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'Num' => ['type' => 'integer', 'format' => 'int32'], 'List' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'BizDate' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'UvCtr' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'ActiveItem' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'PerUvBhv' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'Uv' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'Pv' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'PerUvClick' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'Ctr' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'SceneId' => [ - 'type' => 'string', - ], - 'TraceId' => [ - 'type' => 'string', - ], - 'Click' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'ClickUser' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'BizDate' => ['type' => 'integer', 'format' => 'int64'], + 'UvCtr' => ['type' => 'number', 'format' => 'float'], + 'ActiveItem' => ['type' => 'integer', 'format' => 'int64'], + 'PerUvBhv' => ['type' => 'number', 'format' => 'float'], + 'Uv' => ['type' => 'integer', 'format' => 'int64'], + 'Pv' => ['type' => 'integer', 'format' => 'int64'], + 'PerUvClick' => ['type' => 'number', 'format' => 'float'], + 'Ctr' => ['type' => 'number', 'format' => 'float'], + 'SceneId' => ['type' => 'string'], + 'TraceId' => ['type' => 'string'], + 'Click' => ['type' => 'integer', 'format' => 'int64'], + 'ClickUser' => ['type' => 'integer', 'format' => 'int64'], ], ], ], @@ -4800,13 +2944,8 @@ ], 'ListLogs' => [ 'path' => '/openapi/instances/{InstanceId}/logs', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4817,73 +2956,38 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58975', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'QueryParams', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'docRequired' => true, - 'maximum' => '2147483647', - 'minimum' => '1565193600', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '2147483647', 'minimum' => '1565193600'], ], [ 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'docRequired' => true, - 'maximum' => '2147483647', - 'minimum' => '1565193600', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '2147483647', 'minimum' => '1565193600'], ], [ 'name' => 'Page', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1'], ], [ 'name' => 'Size', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '1000', - 'minimum' => '1', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '1000', 'minimum' => '1'], ], ], 'responses' => [ @@ -4891,22 +2995,15 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'array', - 'items' => [ - 'type' => 'object', - ], + 'items' => ['type' => 'object'], ], 'Headers' => [ 'type' => 'object', 'properties' => [ - 'X-Total-Count' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'X-Total-Count' => ['type' => 'integer', 'format' => 'int32'], ], ], ], @@ -4916,15 +3013,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -4933,13 +3024,8 @@ ], 'QueryDataMessage' => [ 'path' => '/openapi/instances/{InstanceId}/tables/{Table}/data-message', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4953,139 +3039,83 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58994', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], [ 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], [ 'name' => 'Table', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'CmdType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => false, 'docRequired' => true], ], [ 'name' => 'ItemId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ItemType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'UserId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'UserType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Page', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'Size', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'TraceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'SceneId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'BhvType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'MessageSource', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], 'responses' => [ @@ -5093,18 +3123,10 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], - 'Result' => [ - 'type' => 'object', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], + 'Result' => ['type' => 'object'], ], ], ], @@ -5112,9 +3134,7 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -5123,13 +3143,8 @@ ], 'QueryDataMessageStatistics' => [ 'path' => '/openapi/instances/{InstanceId}/tables/{Table}/data-message-statistics', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -5140,125 +3155,73 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58995', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '946656000', - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '946656000'], ], [ 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '946656000', - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '946656000'], ], [ 'name' => 'Table', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'CmdType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => false, 'docRequired' => true], ], [ 'name' => 'ItemId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ItemType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'UserId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'UserType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'TraceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'SceneId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'BhvType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'MessageSource', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], 'responses' => [ @@ -5266,18 +3229,10 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], - 'Result' => [ - 'type' => 'object', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], + 'Result' => ['type' => 'object'], ], ], ], @@ -5285,9 +3240,7 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -5296,13 +3249,8 @@ ], 'QueryExceptionHistory' => [ 'path' => '/openapi/instances/{InstanceId}/sync-reports/exception-history', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -5312,48 +3260,28 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58996', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], [ 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], [ 'name' => 'Type', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -5361,18 +3289,10 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], - 'Result' => [ - 'type' => 'object', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], + 'Result' => ['type' => 'object'], ], ], ], @@ -5381,13 +3301,8 @@ ], 'QuerySingleAggregationReport' => [ 'path' => '/openapi/instances/{InstanceId}/sync-reports/single-aggregation-report', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -5397,19 +3312,13 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58998', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -5417,18 +3326,10 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], - 'Result' => [ - 'type' => 'object', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], + 'Result' => ['type' => 'object'], ], ], ], @@ -5437,13 +3338,8 @@ ], 'QuerySyncReportAggregation' => [ 'path' => '/openapi/instances/{InstanceId}/sync-reports/aggregation', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -5453,39 +3349,23 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '59000', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], [ 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -5493,18 +3373,10 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], - 'Result' => [ - 'type' => 'object', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], + 'Result' => ['type' => 'object'], ], ], ], @@ -5513,13 +3385,8 @@ ], 'CreateDiversify' => [ 'path' => '/openapi/instances/{InstanceId}/diversifies', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -5529,19 +3396,13 @@ 'systemTags' => [ 'operationType' => 'create', 'abilityTreeCode' => '58938', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -5549,38 +3410,20 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'GmtCreate' => [ - 'type' => 'string', - ], - 'Name' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'string', - ], + 'GmtCreate' => ['type' => 'string'], + 'Name' => ['type' => 'string'], + 'GmtModified' => ['type' => 'string'], 'Parameter' => [ 'type' => 'object', 'properties' => [ - 'CategoryIndex' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Window' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'CategoryIndex' => ['type' => 'integer', 'format' => 'int32'], + 'Window' => ['type' => 'integer', 'format' => 'int32'], ], ], ], @@ -5593,13 +3436,8 @@ ], 'CreateMix' => [ 'path' => '/openapi/instances/{InstanceId}/mixes', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -5609,19 +3447,13 @@ 'systemTags' => [ 'operationType' => 'create', 'abilityTreeCode' => '58940', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -5629,27 +3461,15 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'GmtCreate' => [ - 'type' => 'string', - ], - 'Name' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'string', - ], + 'GmtCreate' => ['type' => 'string'], + 'Name' => ['type' => 'string'], + 'GmtModified' => ['type' => 'string'], 'Parameter' => [ 'type' => 'object', 'properties' => [ @@ -5658,13 +3478,8 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Name' => [ - 'type' => 'string', - ], - 'Value' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'Name' => ['type' => 'string'], + 'Value' => ['type' => 'integer', 'format' => 'int32'], ], ], ], @@ -5680,13 +3495,8 @@ ], 'DescribeDiversify' => [ 'path' => '/openapi/instances/{InstanceId}/diversifies/{Name}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -5696,28 +3506,18 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58949', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'Name', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -5725,38 +3525,20 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'GmtCreate' => [ - 'type' => 'string', - ], - 'Name' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'string', - ], + 'GmtCreate' => ['type' => 'string'], + 'Name' => ['type' => 'string'], + 'GmtModified' => ['type' => 'string'], 'Parameter' => [ 'type' => 'object', 'properties' => [ - 'CategoryIndex' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Window' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'CategoryIndex' => ['type' => 'integer', 'format' => 'int32'], + 'Window' => ['type' => 'integer', 'format' => 'int32'], ], ], ], @@ -5769,13 +3551,8 @@ ], 'DescribeMix' => [ 'path' => '/openapi/instances/{InstanceId}/mixes/{Name}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -5785,28 +3562,18 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58952', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'Name', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -5814,27 +3581,15 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'GmtCreate' => [ - 'type' => 'string', - ], - 'Name' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'string', - ], + 'GmtCreate' => ['type' => 'string'], + 'Name' => ['type' => 'string'], + 'GmtModified' => ['type' => 'string'], 'Parameter' => [ 'type' => 'object', 'properties' => [ @@ -5843,13 +3598,8 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Name' => [ - 'type' => 'string', - ], - 'Value' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'Name' => ['type' => 'string'], + 'Value' => ['type' => 'integer', 'format' => 'int32'], ], ], ], @@ -5865,13 +3615,8 @@ ], 'DescribeQuota' => [ 'path' => '/openapi/instances/{InstanceId}/quota', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -5881,22 +3626,13 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58953', - 'abilityTreeNodes' => [ - 'FEATUREairecDM7OX0', - 'FEATUREairecEDD4RN', - 'FEATUREairecIDS0JZ', - 'FEATUREairecDTVO6V', - ], + 'abilityTreeNodes' => ['FEATUREairecDM7OX0', 'FEATUREairecEDD4RN', 'FEATUREairecIDS0JZ', 'FEATUREairecDTVO6V'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -5904,42 +3640,18 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'Qps' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'ItemCount' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'CurrentQps' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'UserCount' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'UserCountUsed' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'ItemCountUsed' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'Qps' => ['type' => 'integer', 'format' => 'int32'], + 'ItemCount' => ['type' => 'integer', 'format' => 'int64'], + 'CurrentQps' => ['type' => 'integer', 'format' => 'int32'], + 'UserCount' => ['type' => 'integer', 'format' => 'int64'], + 'UserCountUsed' => ['type' => 'integer', 'format' => 'int64'], + 'ItemCountUsed' => ['type' => 'integer', 'format' => 'int64'], ], ], ], @@ -5950,13 +3662,8 @@ ], 'ListDiversify' => [ 'path' => '/openapi/instances/{InstanceId}/diversifies', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -5966,19 +3673,13 @@ 'systemTags' => [ 'operationType' => 'list', 'abilityTreeCode' => '58971', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -5986,40 +3687,22 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'GmtCreate' => [ - 'type' => 'string', - ], - 'Name' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'string', - ], + 'GmtCreate' => ['type' => 'string'], + 'Name' => ['type' => 'string'], + 'GmtModified' => ['type' => 'string'], 'Parameter' => [ 'type' => 'object', 'properties' => [ - 'CategoryIndex' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Window' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'CategoryIndex' => ['type' => 'integer', 'format' => 'int32'], + 'Window' => ['type' => 'integer', 'format' => 'int32'], ], ], ], @@ -6033,13 +3716,8 @@ ], 'ListItems' => [ 'path' => '/openapi/instances/{InstanceId}/items/actions/list', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -6050,41 +3728,23 @@ 'systemTags' => [ 'operationType' => 'list', 'abilityTreeCode' => '58974', - 'abilityTreeNodes' => [ - 'FEATUREairecY1ADIM', - ], + 'abilityTreeNodes' => ['FEATUREairecY1ADIM'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'Page', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1'], ], [ 'name' => 'Size', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '1000', - 'minimum' => '1', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '1000', 'minimum' => '1'], ], ], 'responses' => [ @@ -6092,9 +3752,7 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ @@ -6103,72 +3761,30 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'type' => 'string', - ], - 'PubTime' => [ - 'type' => 'string', - ], - 'ExpireTime' => [ - 'type' => 'string', - ], - 'ItemType' => [ - 'type' => 'string', - ], - 'Author' => [ - 'type' => 'string', - ], - 'ItemId' => [ - 'type' => 'string', - ], - 'CategoryPath' => [ - 'type' => 'string', - ], - 'ShopId' => [ - 'type' => 'string', - ], - 'BrandId' => [ - 'type' => 'string', - ], - 'Duration' => [ - 'type' => 'string', - ], - 'Channel' => [ - 'type' => 'string', - ], - 'Title' => [ - 'type' => 'string', - ], + 'Status' => ['type' => 'string'], + 'PubTime' => ['type' => 'string'], + 'ExpireTime' => ['type' => 'string'], + 'ItemType' => ['type' => 'string'], + 'Author' => ['type' => 'string'], + 'ItemId' => ['type' => 'string'], + 'CategoryPath' => ['type' => 'string'], + 'ShopId' => ['type' => 'string'], + 'BrandId' => ['type' => 'string'], + 'Duration' => ['type' => 'string'], + 'Channel' => ['type' => 'string'], + 'Title' => ['type' => 'string'], ], ], ], 'Total' => [ 'type' => 'object', 'properties' => [ - 'WeightItem' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'InstanceRecommendItem' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'QueryCount' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'TotalCount' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'SceneRecommendItem' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'SceneWeightItem' => [ - 'type' => 'integer', - 'format' => 'int64', - ], + 'WeightItem' => ['type' => 'integer', 'format' => 'int64'], + 'InstanceRecommendItem' => ['type' => 'integer', 'format' => 'int64'], + 'QueryCount' => ['type' => 'integer', 'format' => 'int64'], + 'TotalCount' => ['type' => 'integer', 'format' => 'int64'], + 'SceneRecommendItem' => ['type' => 'integer', 'format' => 'int64'], + 'SceneWeightItem' => ['type' => 'integer', 'format' => 'int64'], ], ], ], @@ -6180,15 +3796,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -6197,13 +3807,8 @@ ], 'ListMix' => [ 'path' => '/openapi/instances/{InstanceId}/mixes', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -6213,19 +3818,13 @@ 'systemTags' => [ 'operationType' => 'list', 'abilityTreeCode' => '58976', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -6233,29 +3832,17 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'GmtCreate' => [ - 'type' => 'string', - ], - 'Name' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'string', - ], + 'GmtCreate' => ['type' => 'string'], + 'Name' => ['type' => 'string'], + 'GmtModified' => ['type' => 'string'], 'Parameter' => [ 'type' => 'object', 'properties' => [ @@ -6264,13 +3851,8 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Name' => [ - 'type' => 'string', - ], - 'Value' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'Name' => ['type' => 'string'], + 'Value' => ['type' => 'integer', 'format' => 'int32'], ], ], ], @@ -6287,13 +3869,8 @@ ], 'ListUmengAppkeys' => [ 'path' => '/openapi/umeng/appkeys', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -6304,9 +3881,7 @@ 'systemTags' => [ 'operationType' => 'list', 'abilityTreeCode' => '58982', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [], 'responses' => [ @@ -6314,29 +3889,17 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Platform' => [ - 'type' => 'string', - ], - 'Name' => [ - 'type' => 'string', - ], - 'Appkey' => [ - 'type' => 'string', - ], + 'Platform' => ['type' => 'string'], + 'Name' => ['type' => 'string'], + 'Appkey' => ['type' => 'string'], ], ], ], @@ -6347,9 +3910,7 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -6358,13 +3919,8 @@ ], 'ModifyDiversify' => [ 'path' => '/openapi/instances/{InstanceId}/diversifies/{Name}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -6374,28 +3930,18 @@ 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '58984', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'Name', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -6403,38 +3949,20 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'GmtCreate' => [ - 'type' => 'string', - ], - 'Name' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'string', - ], + 'GmtCreate' => ['type' => 'string'], + 'Name' => ['type' => 'string'], + 'GmtModified' => ['type' => 'string'], 'Parameter' => [ 'type' => 'object', 'properties' => [ - 'CategoryIndex' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Window' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'CategoryIndex' => ['type' => 'integer', 'format' => 'int32'], + 'Window' => ['type' => 'integer', 'format' => 'int32'], ], ], ], @@ -6447,13 +3975,8 @@ ], 'ModifyItems' => [ 'path' => '/openapi/instances/{InstanceId}/items', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -6464,19 +3987,13 @@ 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '58987', - 'abilityTreeNodes' => [ - 'FEATUREairecY1ADIM', - ], + 'abilityTreeNodes' => ['FEATUREairecY1ADIM'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -6484,12 +4001,8 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Result' => [ - 'type' => 'boolean', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Result' => ['type' => 'boolean'], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -6497,15 +4010,9 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], ], ], ], @@ -6514,13 +4021,8 @@ ], 'ModifyMix' => [ 'path' => '/openapi/instances/{InstanceId}/mixes/{Name}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -6530,28 +4032,18 @@ 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '58988', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'Name', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -6559,27 +4051,15 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'GmtCreate' => [ - 'type' => 'string', - ], - 'Name' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'string', - ], + 'GmtCreate' => ['type' => 'string'], + 'Name' => ['type' => 'string'], + 'GmtModified' => ['type' => 'string'], 'Parameter' => [ 'type' => 'object', 'properties' => [ @@ -6588,13 +4068,8 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Name' => [ - 'type' => 'string', - ], - 'Value' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'Name' => ['type' => 'string'], + 'Value' => ['type' => 'integer', 'format' => 'int32'], ], ], ], @@ -6610,13 +4085,8 @@ ], 'PushIntervention' => [ 'path' => '/openapi/instances/{InstanceId}/actions/intervene', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -6626,19 +4096,13 @@ 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '58993', - 'abilityTreeNodes' => [ - 'FEATUREairecY1ADIM', - ], + 'abilityTreeNodes' => ['FEATUREairecY1ADIM'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -6646,18 +4110,10 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], - 'Result' => [ - 'type' => 'boolean', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], + 'Result' => ['type' => 'boolean'], ], ], ], @@ -6666,13 +4122,8 @@ ], 'QueryRawData' => [ 'path' => '/openapi/instances/{InstanceId}/tables/{Table}/raw-data', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -6682,61 +4133,38 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58997', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'Table', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'ItemId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => false, 'docRequired' => true], ], [ 'name' => 'ItemType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'UserId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'UserType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], 'responses' => [ @@ -6744,18 +4172,10 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], - 'Result' => [ - 'type' => 'object', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], + 'Result' => ['type' => 'object'], ], ], ], @@ -6764,13 +4184,8 @@ ], 'QuerySingleReport' => [ 'path' => '/openapi/instances/{InstanceId}/sync-reports/single-report', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -6780,27 +4195,18 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '58999', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'ReportType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], 'responses' => [ @@ -6808,18 +4214,10 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], - 'Result' => [ - 'type' => 'object', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], + 'Result' => ['type' => 'object'], ], ], ], @@ -6828,13 +4226,8 @@ ], 'RunInstance' => [ 'path' => '/openapi/instances/{InstanceId}/actions/import', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -6844,19 +4237,13 @@ 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '59002', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - 'FEATUREairec5G3YBA', - ], + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], 'responses' => [ @@ -6864,18 +4251,10 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], - 'Result' => [ - 'type' => 'boolean', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], + 'Result' => ['type' => 'boolean'], ], ], ], @@ -6884,13 +4263,8 @@ ], 'StopDataSet' => [ 'path' => '/openapi/instances/{InstanceId}/dataSets/{VersionId}/actions/stop', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -6900,28 +4274,18 @@ 'systemTags' => [ 'operationType' => 'update', 'abilityTreeCode' => '59003', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'InstanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], [ 'name' => 'VersionId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - ], + 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true], ], ], 'responses' => [ @@ -6929,35 +4293,17 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string'], + 'Message' => ['type' => 'string'], + 'RequestId' => ['type' => 'string'], 'Result' => [ 'type' => 'object', 'properties' => [ - 'GmtCreate' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'VersionId' => [ - 'type' => 'string', - ], - 'InstanceId' => [ - 'type' => 'string', - ], - 'GmtModified' => [ - 'type' => 'integer', - 'format' => 'int64', - ], - 'State' => [ - 'type' => 'string', - ], + 'GmtCreate' => ['type' => 'integer', 'format' => 'int64'], + 'VersionId' => ['type' => 'string'], + 'InstanceId' => ['type' => 'string'], + 'GmtModified' => ['type' => 'integer', 'format' => 'int64'], + 'State' => ['type' => 'string'], ], ], ], @@ -6968,29 +4314,11 @@ ], ], 'endpoints' => [ - [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'airec.cn-beijing.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'airec.cn-hangzhou.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'airec.cn-shanghai.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen', - 'endpoint' => 'airec.cn-shenzhen.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'airec.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'us-east-1', - 'endpoint' => 'airec.us-east-1.aliyuncs.com', - ], + ['regionId' => 'cn-beijing', 'endpoint' => 'airec.cn-beijing.aliyuncs.com'], + ['regionId' => 'cn-hangzhou', 'endpoint' => 'airec.cn-hangzhou.aliyuncs.com'], + ['regionId' => 'cn-shanghai', 'endpoint' => 'airec.cn-shanghai.aliyuncs.com'], + ['regionId' => 'cn-shenzhen', 'endpoint' => 'airec.cn-shenzhen.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'endpoint' => 'airec.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'us-east-1', 'endpoint' => 'airec.us-east-1.aliyuncs.com'], ], ]; diff --git a/data/zh_cn/airec/2020-11-26/api-docs.php b/data/zh_cn/airec/2020-11-26/api-docs.php index 7c9e754..36b00e3 100644 --- a/data/zh_cn/airec/2020-11-26/api-docs.php +++ b/data/zh_cn/airec/2020-11-26/api-docs.php @@ -1,245 +1,89 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'ROA', - 'product' => 'Airec', - 'version' => '2020-11-26', - ], + 'info' => ['style' => 'ROA', 'product' => 'Airec', 'version' => '2020-11-26'], 'directories' => [ [ - 'id' => 156261, - 'title' => '实例', + 'children' => ['ModifyInstance', 'DescribeInstance', 'RunInstance', 'UpgradeInstance', 'ValidateInstance', 'DowngradeInstance'], 'type' => 'directory', - 'children' => [ - 'CreateInstance', - 'ModifyInstance', - 'DescribeInstance', - 'ListInstance', - 'RunInstance', - 'UpgradeInstance', - 'ValidateInstance', - 'DowngradeInstance', - ], + 'title' => '实例', + 'id' => 158989, ], [ - 'id' => 156270, - 'title' => '外部数据源', + 'children' => ['CreateExtraDataSource', 'DeleteExtraDataSource', 'ListExtraDataSources'], 'type' => 'directory', - 'children' => [ - 'CreateExtraDataSource', - 'DeleteExtraDataSource', - 'ListExtraDataSources', - ], + 'title' => '外部数据源', + 'id' => 158998, ], [ - 'id' => 156273, - 'title' => '数据集', + 'children' => ['AttachDataset', 'DescribeDataSetMessage', 'ListDataSet'], 'type' => 'directory', - 'children' => [ - 'DeleteDataSet', - 'AttachDataset', - 'DescribeDataSetMessage', - 'ListDataSet', - ], + 'title' => '数据集', + 'id' => 159002, ], [ - 'id' => 156276, - 'title' => '实验', + 'children' => ['EnableExperiment', 'UpdateExperimentBasicInfo', 'UpdateExperimentConfig', 'UpdateExperimentStatus', 'DescribeBaseExperiment', 'DescribeExperiment', 'DescribeExperimentEnv', 'DescribeExperimentEnvProgress'], 'type' => 'directory', - 'children' => [ - 'DeleteExperiment', - 'EnableExperiment', - 'UpdateExperimentBasicInfo', - 'UpdateExperimentConfig', - 'UpdateExperimentStatus', - 'DescribeBaseExperiment', - 'DescribeExperiment', - 'DescribeExperimentEnv', - 'DescribeExperimentEnvProgress', - 'ListExperiments', - 'CloneExperiment', - ], + 'title' => '实验', + 'id' => 159007, ], [ - 'id' => 174242, - 'title' => '流量调控', + 'children' => ['ListFlowControlTaskReports', 'ListFlowControlTaskInvalidItems', 'ListFlowControlTaskItems', 'CreateFlowControlTask', 'GetFlowControlTask', 'DeleteFlowControlTask', 'ListFlowControlTask', 'ListFlowControlTaskItemReports', 'ListFlowControlTaskReference', 'ModifyFlowControlTask', 'StopFlowControlTask', 'PublishFlowControlTask'], 'type' => 'directory', - 'children' => [ - 'ListFlowControlTaskReports', - 'ListFlowControlTaskInvalidItems', - 'ListFlowControlTaskItems', - 'CreateFlowControlTask', - 'GetFlowControlTask', - 'DeleteFlowControlTask', - 'ListFlowControlTask', - 'ListFlowControlTaskItemReports', - 'ListFlowControlTaskReference', - 'ModifyFlowControlTask', - 'StopFlowControlTask', - 'PublishFlowControlTask', - ], + 'title' => '流量调控', + 'id' => 159063, ], [ - 'id' => 156282, - 'title' => '召回表', + 'children' => ['CreateFilteringAlgorithm', 'DeleteFilteringAlgorithm', 'ModifyFilteringAlgorithmMeta', 'DescribeFilteringAlgorithm', 'ListFilteringAlgorithms', 'OfflineFilteringAlgorithm'], 'type' => 'directory', - 'children' => [ - 'CreateFilteringAlgorithm', - 'DeleteFilteringAlgorithm', - 'ModifyFilteringAlgorithmMeta', - 'DescribeFilteringAlgorithm', - 'ListFilteringAlgorithms', - 'OfflineFilteringAlgorithm', - ], + 'title' => '召回表', + 'id' => 159019, ], [ - 'id' => 156289, - 'title' => '排序系统', + 'children' => ['CreateRankingSystem', 'DeleteRankingSystem', 'ModifyRankingSystem', 'GetRankingSystem', 'GetRankingSystemHistory', 'ListRankingSystems', 'ListRankingSystemHistories', 'DeployRankingSystem', 'VerifyRankingSystem', 'RollbackRankingSystem'], 'type' => 'directory', - 'children' => [ - 'CreateRankingSystem', - 'DeleteRankingSystem', - 'ModifyRankingSystem', - 'GetRankingSystem', - 'GetRankingSystemHistory', - 'ListRankingSystems', - 'ListRankingSystemHistories', - 'DeployRankingSystem', - 'VerifyRankingSystem', - 'RollbackRankingSystem', - ], + 'title' => '排序系统', + 'id' => 159026, ], [ - 'id' => 156299, - 'title' => '排序模型模版', + 'children' => ['CreateRankingModelTemplate', 'DeleteRankingModelTemplate', 'ModifyRankingModelTemplate', 'GetRankingModelTemplate', 'RunRankingModelTemplate'], 'type' => 'directory', - 'children' => [ - 'CreateRankingModelTemplate', - 'DeleteRankingModelTemplate', - 'ModifyRankingModelTemplate', - 'GetRankingModelTemplate', - 'RunRankingModelTemplate', - ], + 'title' => '排序模型模版', + 'id' => 159037, ], [ - 'id' => 156305, - 'title' => '排序模型', + 'children' => ['CreateRankingModel', 'DeleteRankingModel', 'DeleteRankingModelVersion', 'ModifyRankingModel', 'ListRankingModels', 'ListRankingModelTemplates', 'GetRankingModelVersion', 'ListRankingModelVersions', 'DecribeRankingModel', 'CheckRankingModelReachable'], 'type' => 'directory', - 'children' => [ - 'CreateRankingModel', - 'DeleteRankingModel', - 'DeleteRankingModelVersion', - 'ModifyRankingModel', - 'ListRankingModels', - 'ListRankingModelTemplates', - 'GetRankingModelVersion', - 'ListRankingModelVersions', - 'DecribeRankingModel', - 'CheckRankingModelReachable', - ], + 'title' => '排序模型', + 'id' => 159043, ], [ - 'id' => 156255, - 'title' => '规则', + 'children' => ['DescribeRule', 'PublishRule'], 'type' => 'directory', - 'children' => [ - 'CreateRule', - 'ModifyRule', - 'ListRules', - 'DescribeRule', - 'PublishRule', - ], + 'title' => '规则', + 'id' => 158977, ], [ - 'id' => 156258, - 'title' => '场景', + 'children' => ['ModifyScene', 'DescribeScene'], 'type' => 'directory', - 'children' => [ - 'CreateScene', - 'DeleteScene', - 'ModifyScene', - 'DescribeScene', - 'ListScenes', - ], + 'title' => '场景', + 'id' => 158983, ], [ - 'id' => 156320, - 'title' => '样本', + 'children' => ['CreateCustomSample', 'CreateSampleFormatConfig', 'DeleteSample', 'ModifySample', 'ListSamples', 'GetSample', 'CloneSample', 'GenerateSample'], 'type' => 'directory', - 'children' => [ - 'CreateCustomSample', - 'CreateSampleFormatConfig', - 'DeleteSample', - 'ModifySample', - 'ListSamples', - 'GetSample', - 'CloneSample', - 'GenerateSample', - ], + 'title' => '样本', + 'id' => 159054, ], [ - 'id' => 156251, - 'title' => '其他', - 'type' => 'directory', 'children' => [ - 'CreateCustomAnalysisTask', - 'AttachIndexVersion', - 'ModifyDataSource', - 'ModifyFeatureTable', - 'ModifyItems', - 'ModifyOfflineStorages', - 'StopDataSet', - 'DescribeCustomAnalysisTask', - 'DescribeDefaultAlgorithms', - 'DescribeLatestTask', - 'DescribeQuota', - 'DescribeRegions', - 'DescribeSceneBucket', - 'DescribeSceneThroughput', - 'DescribeSyncReportDetail', - 'DescribeSyncReportOutliers', - 'DescribeUserMetrics', - 'GetExtraDataSource', - 'ListDashboardDetails', - 'ListDashboardDetailsFlows', - 'ListDashboardMetrics', - 'ListDashboardMetricsFlows', - 'ListFeatureTables', - 'ListIndexVersions', - 'ListInstanceTask', - 'ListItems', - 'ListLogs', - 'ListMixCategories', - 'ListOfflineStorages', - 'ListRuleConditions', - 'ListRuleTasks', - 'ListSampleFormatConfigs', - 'ListSceneItems', - 'ListSceneParameters', - 'ListUmengAppkeys', - 'ListUserClusters', - 'QueryDataMessage', - 'QueryDataMessageStatistics', - 'QueryExceptionHistory', - 'QueryRawData', - 'QuerySingleAggregationReport', - 'QuerySingleReport', - 'QuerySyncReportAggregation', - 'ListDataSource', - 'InitComputingResource', - 'PushDocument', - 'PushIntervention', - 'RebuildIndex', - 'Recommend', - 'RefreshFeatureTable', - 'RunSampleFormatConfig', - 'UnLockIndexVersion', - 'CreateDataDiagnoseTask', - 'CreateUmengToken', - 'GetLatestDataDiagnoseTaskStatus', - 'ListDataDiagnoseReports', - 'ListDataDiagnoseSampleDetails', + 'CreateCustomAnalysisTask', 'AttachIndexVersion', 'ModifyDataSource', 'ModifyFeatureTable', 'ModifyItems', 'ModifyOfflineStorages', 'StopDataSet', 'DescribeCustomAnalysisTask', 'DescribeDefaultAlgorithms', 'DescribeLatestTask', 'DescribeSceneBucket', 'DescribeSceneThroughput', 'DescribeSyncReportDetail', 'DescribeSyncReportOutliers', 'DescribeUserMetrics', 'GetExtraDataSource', 'ListDashboardDetails', 'ListDashboardDetailsFlows', 'ListDashboardMetrics', 'ListDashboardMetricsFlows', + 'ListFeatureTables', 'ListIndexVersions', 'ListInstanceTask', 'ListItems', 'ListLogs', 'ListMixCategories', 'ListOfflineStorages', 'ListRuleConditions', 'ListRuleTasks', 'ListSampleFormatConfigs', 'ListSceneItems', 'ListSceneParameters', 'ListUmengAppkeys', 'ListUserClusters', 'QueryDataMessage', 'QueryDataMessageStatistics', 'QueryExceptionHistory', 'QueryRawData', 'QuerySingleAggregationReport', 'QuerySingleReport', + 'QuerySyncReportAggregation', 'InitComputingResource', 'PushDocument', 'PushIntervention', 'RebuildIndex', 'Recommend', 'RefreshFeatureTable', 'RunSampleFormatConfig', 'UnLockIndexVersion', 'CreateDataDiagnoseTask', 'CreateUmengToken', 'GetLatestDataDiagnoseTaskStatus', 'ListDataDiagnoseReports', 'ListDataDiagnoseSampleDetails', 'CloneExperiment', 'CreateInstance', 'CreateRule', 'CreateScene', 'DeleteDataSet', 'DeleteExperiment', + 'DeleteScene', 'DescribeQuota', 'DescribeRegions', 'ListDataSource', 'ListExperiments', 'ListInstance', 'ListRules', 'ListScenes', 'ModifyRule', ], + 'type' => 'directory', + 'title' => '其他', + 'id' => 158919, ], ], 'components' => [ @@ -249,289 +93,93 @@ 'description' => '扩展数据源', 'type' => 'object', 'properties' => [ - 'Status' => [ - 'title' => '状态', - 'description' => '状态', - 'type' => 'string', - 'example' => 'Ready 待应用;Online 已应用;Failed失败', - ], + 'Status' => ['title' => '状态', 'description' => '状态', 'type' => 'string', 'example' => 'Ready 待应用;Online 已应用;Failed失败'], 'Meta' => [ 'title' => '数据源配置参数', 'description' => '数据源配置参数', 'type' => 'object', 'properties' => [ - 'Internal' => [ - 'title' => '是否为内置数据源', - 'description' => '是否为内置数据源', - 'type' => 'boolean', - 'example' => 'true', - ], - 'MetaType' => [ - 'title' => '配置类型', - 'description' => '配置类型', - 'type' => 'string', - 'required' => false, - 'example' => 'ExtraDataSource', - ], - 'ProjectName' => [ - 'title' => 'ODPS project name。', - 'description' => 'ODPS 项目名称', - 'type' => 'string', - 'example' => 'test_project', - ], - 'TableName' => [ - 'title' => 'ODPS table name。', - 'description' => 'ODPS 表名称', - 'type' => 'string', - 'example' => 'test_table', - ], - 'Type' => [ - 'title' => '数据源类型,当前只支持ODPS。', - 'description' => '数据源类型,当前只支持ODPS。', - 'type' => 'string', - 'example' => 'ODPS', - ], - 'UpdateFrequency' => [ - 'title' => '更新频率', - 'description' => '更新频率', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '86400', - ], + 'Internal' => ['title' => '是否为内置数据源', 'description' => '是否为内置数据源', 'type' => 'boolean', 'example' => 'true'], + 'MetaType' => ['title' => '配置类型', 'description' => '配置类型', 'type' => 'string', 'required' => false, 'example' => 'ExtraDataSource'], + 'ProjectName' => ['title' => 'ODPS project name。', 'description' => 'ODPS 项目名称', 'type' => 'string', 'example' => 'test_project'], + 'TableName' => ['title' => 'ODPS table name。', 'description' => 'ODPS 表名称', 'type' => 'string', 'example' => 'test_table'], + 'Type' => ['title' => '数据源类型,当前只支持ODPS。', 'description' => '数据源类型,当前只支持ODPS。', 'type' => 'string', 'example' => 'ODPS'], + 'UpdateFrequency' => ['title' => '更新频率', 'description' => '更新频率', 'type' => 'integer', 'format' => 'int64', 'example' => '86400'], ], ], - 'Type' => [ - 'title' => '数据源类型', - 'description' => '数据源类型', - 'type' => 'string', - 'example' => 'UserCustomDataSource\\ItemCustomDataSource\\'."\n" - .'BehaviorCustomDataSource\\'."\n" - .'SampleCustomDataSource', - ], - 'GmtCreate' => [ - 'title' => '创建数据源的UTC时间。', - 'description' => '创建数据源的UTC时间。', - 'type' => 'string', - 'example' => '2021-12-07T13:26:29.000Z', - ], - 'GmtModified' => [ - 'title' => '最后修改数据源的UTC时间。', - 'description' => '最后修改数据源的UTC时间。', - 'type' => 'string', - 'example' => '2021-12-07T13:26:29.000Z', - ], - 'DataSourceId' => [ - 'title' => '数据源id', - 'description' => '数据源id', - 'type' => 'string', - 'example' => 'E01D574F-ABD0-4C55-A5E3-8D24FD8D42EA', - ], + 'Type' => ['title' => '数据源类型', 'description' => '数据源类型', 'type' => 'string', 'example' => 'UserCustomDataSource\\ItemCustomDataSource\\'."\n" + .'BehaviorCustomDataSource\\'."\n" + .'SampleCustomDataSource'], + 'GmtCreate' => ['title' => '创建数据源的UTC时间。', 'description' => '创建数据源的UTC时间。', 'type' => 'string', 'example' => '2021-12-07T13:26:29.000Z'], + 'GmtModified' => ['title' => '最后修改数据源的UTC时间。', 'description' => '最后修改数据源的UTC时间。', 'type' => 'string', 'example' => '2021-12-07T13:26:29.000Z'], + 'DataSourceId' => ['title' => '数据源id', 'description' => '数据源id', 'type' => 'string', 'example' => 'E01D574F-ABD0-4C55-A5E3-8D24FD8D42EA'], ], ], 'FeatureTable' => [ 'title' => '特征表', 'type' => 'object', 'properties' => [ - 'Status' => [ - 'title' => '状态', - 'type' => 'string', - ], + 'Status' => ['title' => '状态', 'type' => 'string'], 'Meta' => [ 'title' => '配置信息', 'type' => 'object', 'properties' => [ - 'DataSourceId' => [ - 'title' => '数据源id', - 'type' => 'string', - 'example' => '907648f5-abae-44fd-a4c4-525cc25947e9', - ], + 'DataSourceId' => ['title' => '数据源id', 'type' => 'string', 'example' => '907648f5-abae-44fd-a4c4-525cc25947e9'], 'FeatureList' => [ 'title' => '特征列表', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Comment' => [ - 'title' => '备注', - 'type' => 'string', - 'example' => 'com11', - ], - 'FeatureName' => [ - 'title' => '特征名称', - 'type' => 'string', - 'example' => 'fn11', - ], - 'FieldName' => [ - 'title' => '字段名称', - 'type' => 'string', - 'example' => 'fieldName11', - ], - 'Status' => [ - 'title' => '特征状态', - 'type' => 'string', - 'example' => 'NotApplied 未应用 Applied 已应用', - ], + 'Comment' => ['title' => '备注', 'type' => 'string', 'example' => 'com11'], + 'FeatureName' => ['title' => '特征名称', 'type' => 'string', 'example' => 'fn11'], + 'FieldName' => ['title' => '字段名称', 'type' => 'string', 'example' => 'fieldName11'], + 'Status' => ['title' => '特征状态', 'type' => 'string', 'example' => 'NotApplied 未应用 Applied 已应用'], ], ], ], - 'Internal' => [ - 'title' => '是否为内置特征表', - 'type' => 'boolean', - 'example' => 'true', - ], - 'MetaType' => [ - 'title' => '配置类型', - 'type' => 'string', - 'example' => 'FeatureTable', - ], - 'Source' => [ - 'title' => '数据源来源', - 'type' => 'string', - 'example' => 'test_project.test_table', - ], - 'UpdateFrequency' => [ - 'title' => '更新频率', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '86400', - ], + 'Internal' => ['title' => '是否为内置特征表', 'type' => 'boolean', 'example' => 'true'], + 'MetaType' => ['title' => '配置类型', 'type' => 'string', 'example' => 'FeatureTable'], + 'Source' => ['title' => '数据源来源', 'type' => 'string', 'example' => 'test_project.test_table'], + 'UpdateFrequency' => ['title' => '更新频率', 'type' => 'integer', 'format' => 'int64', 'example' => '86400'], ], ], - 'FeatureTableId' => [ - 'title' => '特征表id', - 'type' => 'string', - 'example' => '30E70118-FC7C-4438-9287-583CE47266A9', - ], - 'Type' => [ - 'title' => '特征表类型', - 'type' => 'string', - 'example' => 'ItemFeatureTable 物品特征表 UserFeatureTable 用户特征表', - ], - 'GmtCreate' => [ - 'title' => '创建时间', - 'type' => 'string', - 'example' => '2021-12-10T02:59:54.000Z', - ], - 'GmtModified' => [ - 'title' => '修改时间', - 'type' => 'string', - 'example' => '2021-12-10T02:59:54.000Z', - ], + 'FeatureTableId' => ['title' => '特征表id', 'type' => 'string', 'example' => '30E70118-FC7C-4438-9287-583CE47266A9'], + 'Type' => ['title' => '特征表类型', 'type' => 'string', 'example' => 'ItemFeatureTable 物品特征表 UserFeatureTable 用户特征表'], + 'GmtCreate' => ['title' => '创建时间', 'type' => 'string', 'example' => '2021-12-10T02:59:54.000Z'], + 'GmtModified' => ['title' => '修改时间', 'type' => 'string', 'example' => '2021-12-10T02:59:54.000Z'], ], ], 'RankingModelTemplate' => [ 'title' => '模型模板信息', 'type' => 'object', 'properties' => [ - 'Status' => [ - 'title' => '状态', - 'type' => 'string', - 'example' => 'TRAINING_SUCCESS', - ], + 'Status' => ['title' => '状态', 'type' => 'string', 'example' => 'TRAINING_SUCCESS'], 'Meta' => [ 'title' => '配置信息', 'type' => 'object', 'properties' => [ - 'Authorized' => [ - 'title' => '是否授权', - 'type' => 'boolean', - 'example' => 'true', - ], - 'AutoRun' => [ - 'title' => '是否自动训练', - 'type' => 'boolean', - 'example' => 'true', - ], - 'AutoRunTime' => [ - 'title' => '自动训练频率', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'AutoRunType' => [ - 'title' => '自动训练时间类型', - 'type' => 'string', - 'example' => 'DAY', - ], - 'Conf' => [ - 'title' => '参数配置内容', - 'type' => 'string', - 'example' => 'train_config {}', - ], - 'LastEditTime' => [ - 'title' => '最后编辑时间', - 'type' => 'string', - 'example' => '2021-12-06T03:01:41.217Z', - ], - 'OssArn' => [ - 'title' => 'OSS arn', - 'type' => 'string', - 'example' => 'acs:ram::111:role/aliyunodpspaidefaultrole', - ], - 'OssBucket' => [ - 'title' => 'OSS bucket名称', - 'type' => 'string', - 'example' => 'bucket-a', - ], - 'OssEndpoint' => [ - 'title' => 'OSS endpoint', - 'type' => 'string', - 'example' => 'oss-cn-beijing.aliyuncs.com', - ], - 'SampleId' => [ - 'title' => '格式化样本ID', - 'type' => 'string', - 'example' => '1111', - ], - 'SampleName' => [ - 'title' => '样本名称', - 'type' => 'string', - 'example' => '样本1', - ], - 'SampleTimeWindow' => [ - 'title' => '采样时间窗大小', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '3', - ], - 'SampleTimeWindowType' => [ - 'title' => '采样时间窗类型', - 'type' => 'string', - 'example' => 'DAY', - ], - 'Type' => [ - 'title' => '排序模型类型', - 'type' => 'string', - 'example' => 'MULTI_TOWER', - ], - 'Name' => [ - 'title' => '模型模板名称', - 'type' => 'string', - 'example' => '模型A', - ], - 'DeployStatus' => [ - 'title' => '部署状态', - 'type' => 'string', - 'example' => 'NOT_DEPLOYED', - ], - 'CanDeploy' => [ - 'title' => '是否可部署', - 'type' => 'boolean', - 'example' => 'true', - ], + 'Authorized' => ['title' => '是否授权', 'type' => 'boolean', 'example' => 'true'], + 'AutoRun' => ['title' => '是否自动训练', 'type' => 'boolean', 'example' => 'true'], + 'AutoRunTime' => ['title' => '自动训练频率', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'AutoRunType' => ['title' => '自动训练时间类型', 'type' => 'string', 'example' => 'DAY'], + 'Conf' => ['title' => '参数配置内容', 'type' => 'string', 'example' => 'train_config {}'], + 'LastEditTime' => ['title' => '最后编辑时间', 'type' => 'string', 'example' => '2021-12-06T03:01:41.217Z'], + 'OssArn' => ['title' => 'OSS arn', 'type' => 'string', 'example' => 'acs:ram::111:role/aliyunodpspaidefaultrole'], + 'OssBucket' => ['title' => 'OSS bucket名称', 'type' => 'string', 'example' => 'bucket-a'], + 'OssEndpoint' => ['title' => 'OSS endpoint', 'type' => 'string', 'example' => 'oss-cn-beijing.aliyuncs.com'], + 'SampleId' => ['title' => '格式化样本ID', 'type' => 'string', 'example' => '1111'], + 'SampleName' => ['title' => '样本名称', 'type' => 'string', 'example' => '样本1'], + 'SampleTimeWindow' => ['title' => '采样时间窗大小', 'type' => 'integer', 'format' => 'int64', 'example' => '3'], + 'SampleTimeWindowType' => ['title' => '采样时间窗类型', 'type' => 'string', 'example' => 'DAY'], + 'Type' => ['title' => '排序模型类型', 'type' => 'string', 'example' => 'MULTI_TOWER'], + 'Name' => ['title' => '模型模板名称', 'type' => 'string', 'example' => '模型A'], + 'DeployStatus' => ['title' => '部署状态', 'type' => 'string', 'example' => 'NOT_DEPLOYED'], + 'CanDeploy' => ['title' => '是否可部署', 'type' => 'boolean', 'example' => 'true'], ], ], - 'VersionNum' => [ - 'title' => '版本数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '3', - ], - 'TemplateId' => [ - 'title' => '模型模板ID', - 'type' => 'string', - 'example' => 'a-a-a', - ], + 'VersionNum' => ['title' => '版本数', 'type' => 'integer', 'format' => 'int64', 'example' => '3'], + 'TemplateId' => ['title' => '模型模板ID', 'type' => 'string', 'example' => 'a-a-a'], ], ], 'RankingModelVersion' => [ @@ -539,84 +187,25 @@ 'description' => '模型版本信息', 'type' => 'object', 'properties' => [ - 'Status' => [ - 'title' => '训练状态', - 'description' => '训练状态', - 'type' => 'string', - 'example' => 'TRAINING', - ], - 'RunTime' => [ - 'title' => '启动训练时间', - 'description' => '启动训练时间', - 'type' => 'string', - 'example' => '2021-12-08T20:00:00.0Z', - ], - 'RunLog' => [ - 'title' => '运行日志', - 'description' => '运行日志', - 'type' => 'string', - ], - 'TemplateName' => [ - 'title' => '模型模板名称', - 'description' => '模型模板名称', - 'type' => 'string', - 'example' => '模型A', - ], + 'Status' => ['title' => '训练状态', 'description' => '训练状态', 'type' => 'string', 'example' => 'TRAINING'], + 'RunTime' => ['title' => '启动训练时间', 'description' => '启动训练时间', 'type' => 'string', 'example' => '2021-12-08T20:00:00.0Z'], + 'RunLog' => ['title' => '运行日志', 'description' => '运行日志', 'type' => 'string'], + 'TemplateName' => ['title' => '模型模板名称', 'description' => '模型模板名称', 'type' => 'string', 'example' => '模型A'], 'RunResult' => [ 'title' => '运行结果', 'description' => '运行结果', 'type' => 'object', 'properties' => [ - 'AssessAuc' => [ - 'title' => '评估AUC', - 'description' => '评估AUC', - 'type' => 'string', - 'example' => '0.3', - ], - 'AssessGauc' => [ - 'title' => '评估Loss', - 'description' => '评估Loss', - 'type' => 'string', - 'example' => '0.3', - ], - 'AssessLoss' => [ - 'title' => '评估GAUC', - 'description' => '评估GAUC', - 'type' => 'string', - 'example' => '0.3', - ], - 'TrainAuc' => [ - 'title' => '训练AUC', - 'description' => '训练AUC', - 'type' => 'string', - 'example' => '0.3', - ], - 'TrainGauc' => [ - 'title' => '训练GAUC', - 'description' => '训练GAUC', - 'type' => 'string', - 'example' => '0.3', - ], - 'TrainLoss' => [ - 'title' => '训练Loss', - 'description' => '训练Loss', - 'type' => 'string', - 'example' => '0.3', - ], + 'AssessAuc' => ['title' => '评估AUC', 'description' => '评估AUC', 'type' => 'string', 'example' => '0.3'], + 'AssessGauc' => ['title' => '评估Loss', 'description' => '评估Loss', 'type' => 'string', 'example' => '0.3'], + 'AssessLoss' => ['title' => '评估GAUC', 'description' => '评估GAUC', 'type' => 'string', 'example' => '0.3'], + 'TrainAuc' => ['title' => '训练AUC', 'description' => '训练AUC', 'type' => 'string', 'example' => '0.3'], + 'TrainGauc' => ['title' => '训练GAUC', 'description' => '训练GAUC', 'type' => 'string', 'example' => '0.3'], + 'TrainLoss' => ['title' => '训练Loss', 'description' => '训练Loss', 'type' => 'string', 'example' => '0.3'], ], ], - 'Name' => [ - 'title' => '版本名称', - 'description' => '版本名称', - 'type' => 'string', - 'example' => '模型A_t1638964800000', - ], - 'TemplateId' => [ - 'title' => '模型模板ID', - 'description' => '模型模板ID', - 'type' => 'string', - 'example' => 'a-a-a', - ], + 'Name' => ['title' => '版本名称', 'description' => '版本名称', 'type' => 'string', 'example' => '模型A_t1638964800000'], + 'TemplateId' => ['title' => '模型模板ID', 'description' => '模型模板ID', 'type' => 'string', 'example' => 'a-a-a'], ], ], 'RankingSystem' => [ @@ -629,101 +218,34 @@ 'description' => '元信息', 'type' => 'object', 'properties' => [ - 'AutoDeploy' => [ - 'title' => '是否自动部署', - 'description' => '是否自动部署', - 'type' => 'boolean', - 'example' => 'true', - ], - 'AutoDeployAuc' => [ - 'title' => '自动部署设定的AUC阈值', - 'description' => '自动部署设定的AUC阈值', - 'type' => 'string', - 'example' => '0.3', - ], - 'Conf' => [ - 'title' => '配置文件', - 'description' => '配置文件', - 'type' => 'string', - ], + 'AutoDeploy' => ['title' => '是否自动部署', 'description' => '是否自动部署', 'type' => 'boolean', 'example' => 'true'], + 'AutoDeployAuc' => ['title' => '自动部署设定的AUC阈值', 'description' => '自动部署设定的AUC阈值', 'type' => 'string', 'example' => '0.3'], + 'Conf' => ['title' => '配置文件', 'description' => '配置文件', 'type' => 'string'], 'PredictEngine' => [ 'title' => '预测引擎配置', 'description' => '预测引擎配置', 'type' => 'object', 'properties' => [ - 'ResourceId' => [ - 'title' => '预测引擎资源id', - 'description' => '预测引擎资源id', - 'type' => 'string', - 'example' => 'eas-oljkkdrggxhx7eizjd', - ], - 'Version' => [ - 'title' => '预测引擎版本', - 'description' => '预测引擎版本', - 'type' => 'string', - 'example' => '1', - ], - 'ClusterId' => [ - 'title' => '预测引擎集群id', - 'description' => '预测引擎集群id', - 'type' => 'string', - 'example' => 'cn-shanghai', - ], + 'ResourceId' => ['title' => '预测引擎资源id', 'description' => '预测引擎资源id', 'type' => 'string', 'example' => 'eas-oljkkdrggxhx7eizjd'], + 'Version' => ['title' => '预测引擎版本', 'description' => '预测引擎版本', 'type' => 'string', 'example' => '1'], + 'ClusterId' => ['title' => '预测引擎集群id', 'description' => '预测引擎集群id', 'type' => 'string', 'example' => 'cn-shanghai'], ], ], - 'PredictEngineType' => [ - 'title' => '预测引擎类型', - 'description' => '预测引擎类型', - 'type' => 'string', - 'example' => 'EAS', - ], - 'ModelVersionName' => [ - 'title' => '模型版本名称', - 'description' => '模型版本名称', - 'type' => 'string', - 'example' => '模型A_T1638964800000', - ], - 'FailMsg' => [ - 'title' => '部署失败原因', - 'description' => '部署失败原因', - 'type' => 'string', - ], + 'PredictEngineType' => ['title' => '预测引擎类型', 'description' => '预测引擎类型', 'type' => 'string', 'example' => 'EAS'], + 'ModelVersionName' => ['title' => '模型版本名称', 'description' => '模型版本名称', 'type' => 'string', 'example' => '模型A_T1638964800000'], + 'FailMsg' => ['title' => '部署失败原因', 'description' => '部署失败原因', 'type' => 'string'], ], ], - 'ApplyStatus' => [ - 'title' => '应用状态', - 'description' => '应用状态', - 'type' => 'string', - 'example' => 'NOT_APPLIED', - ], - 'DeployStatus' => [ - 'title' => '部署状态', - 'description' => '部署状态', - 'type' => 'string', - 'example' => 'NOT_DEPLOYED', - ], + 'ApplyStatus' => ['title' => '应用状态', 'description' => '应用状态', 'type' => 'string', 'example' => 'NOT_APPLIED'], + 'DeployStatus' => ['title' => '部署状态', 'description' => '部署状态', 'type' => 'string', 'example' => 'NOT_DEPLOYED'], 'SceneIdList' => [ 'title' => '应用场景列表', 'description' => '应用场景列表', 'type' => 'array', - 'items' => [ - 'type' => 'integer', - 'format' => 'int64', - 'example' => '[1, 2, 3]', - ], - ], - 'Name' => [ - 'title' => '服务命名', - 'description' => '服务命名', - 'type' => 'string', - 'example' => 'servicea', - ], - 'ModelTemplateId' => [ - 'title' => '模型模板ID', - 'description' => '模型模板ID', - 'type' => 'string', - 'example' => 'a-a-a', + 'items' => ['type' => 'integer', 'format' => 'int64', 'example' => '[1, 2, 3]', 'description' => ''], ], + 'Name' => ['title' => '服务命名', 'description' => '服务命名', 'type' => 'string', 'example' => 'servicea'], + 'ModelTemplateId' => ['title' => '模型模板ID', 'description' => '模型模板ID', 'type' => 'string', 'example' => 'a-a-a'], ], ], 'RankingSystemHistory' => [ @@ -736,86 +258,27 @@ 'description' => '元信息', 'type' => 'object', 'properties' => [ - 'AutoDeploy' => [ - 'title' => '是否自动部署', - 'description' => '是否自动部署', - 'type' => 'boolean', - 'example' => 'true', - ], - 'AutoDeployAuc' => [ - 'title' => '自动部署的AUC阈值', - 'description' => '自动部署的AUC阈值', - 'type' => 'string', - 'example' => '0.3', - ], - 'Conf' => [ - 'title' => '配置文件', - 'description' => '配置文件', - 'type' => 'string', - ], - 'ModelTemplateName' => [ - 'title' => '模型模板名称', - 'description' => '模型模板名称', - 'type' => 'string', - 'example' => '排序模型A', - ], + 'AutoDeploy' => ['title' => '是否自动部署', 'description' => '是否自动部署', 'type' => 'boolean', 'example' => 'true'], + 'AutoDeployAuc' => ['title' => '自动部署的AUC阈值', 'description' => '自动部署的AUC阈值', 'type' => 'string', 'example' => '0.3'], + 'Conf' => ['title' => '配置文件', 'description' => '配置文件', 'type' => 'string'], + 'ModelTemplateName' => ['title' => '模型模板名称', 'description' => '模型模板名称', 'type' => 'string', 'example' => '排序模型A'], 'PredictEngine' => [ 'title' => '预测引擎信息', 'description' => '预测引擎信息', 'type' => 'object', 'properties' => [ - 'ResourceId' => [ - 'title' => '预测引擎资源id', - 'description' => '预测引擎资源id', - 'type' => 'string', - 'example' => 'eas-oljkkdrggxhx7eizjd', - ], - 'Version' => [ - 'title' => '预测引擎版本', - 'description' => '预测引擎版本', - 'type' => 'string', - 'example' => '1', - ], + 'ResourceId' => ['title' => '预测引擎资源id', 'description' => '预测引擎资源id', 'type' => 'string', 'example' => 'eas-oljkkdrggxhx7eizjd'], + 'Version' => ['title' => '预测引擎版本', 'description' => '预测引擎版本', 'type' => 'string', 'example' => '1'], ], ], - 'PredictEngineType' => [ - 'title' => '预测引擎类型', - 'description' => '预测引擎类型', - 'type' => 'string', - 'example' => 'EAS', - ], - 'PreviousOperateId' => [ - 'title' => '上一次操作记录ID', - 'description' => '上一次操作记录ID', - 'type' => 'string', - 'example' => 'aaaa', - ], + 'PredictEngineType' => ['title' => '预测引擎类型', 'description' => '预测引擎类型', 'type' => 'string', 'example' => 'EAS'], + 'PreviousOperateId' => ['title' => '上一次操作记录ID', 'description' => '上一次操作记录ID', 'type' => 'string', 'example' => 'aaaa'], ], ], - 'OperateTime' => [ - 'title' => '操作时间', - 'description' => '操作时间', - 'type' => 'string', - 'example' => '2021-12-06T03:01:41.217Z', - ], - 'OperateId' => [ - 'title' => '操作id', - 'description' => '操作id', - 'type' => 'string', - 'example' => '8AC865AF-37D6-42ED-AA9A-B60D8ECDF640', - ], - 'OperateType' => [ - 'title' => '操作类型', - 'description' => '操作类型', - 'type' => 'string', - 'example' => 'CONF_CHANGE', - ], - 'Name' => [ - 'title' => '服务名称', - 'description' => '服务名称', - 'type' => 'string', - 'example' => 'servicea', - ], + 'OperateTime' => ['title' => '操作时间', 'description' => '操作时间', 'type' => 'string', 'example' => '2021-12-06T03:01:41.217Z'], + 'OperateId' => ['title' => '操作id', 'description' => '操作id', 'type' => 'string', 'example' => '8AC865AF-37D6-42ED-AA9A-B60D8ECDF640'], + 'OperateType' => ['title' => '操作类型', 'description' => '操作类型', 'type' => 'string', 'example' => 'CONF_CHANGE'], + 'Name' => ['title' => '服务名称', 'description' => '服务名称', 'type' => 'string', 'example' => 'servicea'], ], ], 'Sample' => [ @@ -823,56 +286,35 @@ 'description' => '样本实体。', 'type' => 'object', 'properties' => [ - 'Status' => [ - 'title' => '状态', - 'description' => '样本状态枚举值。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Unready**:未完成配置。'."\n" - ."\n" - .'- **Ready**:配置完成。'."\n" - ."\n" - .'- **Generating**:样本生成中。'."\n" - ."\n" - .'- **Success**:样本生成成功。'."\n" - ."\n" - .'- **Failed**:样本生成失败。'."\n" - ."\n" - .'- **Formatting**:格式化中。'."\n" - ."\n" - .'- **Formatted**:格式化完成。'."\n" - ."\n" - .'- **FormatFailed**:格式化失败。'."\n" - ."\n" - .'- **Applied**:已应用到模型中。', - 'type' => 'string', - 'example' => 'Formatted', - ], + 'Status' => ['title' => '状态', 'description' => '样本状态枚举值。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Unready**:未完成配置。'."\n" + ."\n" + .'- **Ready**:配置完成。'."\n" + ."\n" + .'- **Generating**:样本生成中。'."\n" + ."\n" + .'- **Success**:样本生成成功。'."\n" + ."\n" + .'- **Failed**:样本生成失败。'."\n" + ."\n" + .'- **Formatting**:格式化中。'."\n" + ."\n" + .'- **Formatted**:格式化完成。'."\n" + ."\n" + .'- **FormatFailed**:格式化失败。'."\n" + ."\n" + .'- **Applied**:已应用到模型中。', 'type' => 'string', 'example' => 'Formatted'], 'Meta' => [ 'title' => '配置', 'description' => '配置。', 'type' => 'object', 'properties' => [ - 'AutoUpdate' => [ - 'title' => '是否自动更新', - 'description' => '是否自动更新样本配置。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'AutoUpdateFrequency' => [ - 'title' => '更新频率,秒级别时间戳', - 'description' => '更新频率,秒级别时间戳。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1673341140', - ], - 'ClonedId' => [ - 'title' => '克隆的id', - 'description' => '克隆的ID。', - 'type' => 'string', - 'example' => '1638877561147', - ], + 'AutoUpdate' => ['title' => '是否自动更新', 'description' => '是否自动更新样本配置。', 'type' => 'boolean', 'example' => 'true'], + 'AutoUpdateFrequency' => ['title' => '更新频率,秒级别时间戳', 'description' => '更新频率,秒级别时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1673341140'], + 'ClonedId' => ['title' => '克隆的id', 'description' => '克隆的ID。', 'type' => 'string', 'example' => '1638877561147'], 'Config' => [ 'title' => '样本配置详情', 'description' => '样本配置详情。', @@ -882,28 +324,15 @@ 'title' => '行为数据源列表', 'description' => '行为数据源列表。', 'type' => 'array', - 'items' => [ - 'description' => '行为数据源。', - 'type' => 'string', - ], + 'items' => ['description' => '行为数据源。', 'type' => 'string'], ], 'FeatureConfig' => [ 'title' => '特征', 'description' => '特征配置。', 'type' => 'object', 'properties' => [ - 'ItemFeatures' => [ - 'title' => '物品特征,支持多值,逗号分隔。', - 'description' => '物品特征,支持多值,逗号分隔。', - 'type' => 'string', - 'example' => 'deress,red', - ], - 'UserFeatures' => [ - 'title' => '用户特征,支持多值,逗号分隔。', - 'description' => '用户特征,支持多值,逗号分隔。', - 'type' => 'string', - 'example' => 'man', - ], + 'ItemFeatures' => ['title' => '物品特征,支持多值,逗号分隔。', 'description' => '物品特征,支持多值,逗号分隔。', 'type' => 'string', 'example' => 'deress,red'], + 'UserFeatures' => ['title' => '用户特征,支持多值,逗号分隔。', 'description' => '用户特征,支持多值,逗号分隔。', 'type' => 'string', 'example' => 'man'], ], ], 'LabelLogic' => [ @@ -911,25 +340,9 @@ 'description' => '样品打标逻辑。', 'type' => 'object', 'properties' => [ - 'BhvTimeWindow' => [ - 'title' => '时间窗口,秒级别时间戳。', - 'description' => '时间窗口,秒级别时间戳。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '86400', - ], - 'NegativeBhvTypes' => [ - 'title' => '负行为,支持多值,逗号分隔。', - 'description' => '负行为,支持多值,逗号分隔。', - 'type' => 'string', - 'example' => 'click,expose', - ], - 'PositiveBhvTypes' => [ - 'title' => '是 正行为,支持多值,逗号分隔。', - 'description' => '是 正行为,支持多值,逗号分隔。', - 'type' => 'string', - 'example' => 'like', - ], + 'BhvTimeWindow' => ['title' => '时间窗口,秒级别时间戳。', 'description' => '时间窗口,秒级别时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '86400'], + 'NegativeBhvTypes' => ['title' => '负行为,支持多值,逗号分隔。', 'description' => '负行为,支持多值,逗号分隔。', 'type' => 'string', 'example' => 'click,expose'], + 'PositiveBhvTypes' => ['title' => '是 正行为,支持多值,逗号分隔。', 'description' => '是 正行为,支持多值,逗号分隔。', 'type' => 'string', 'example' => 'like'], ], ], 'WeightLogicList' => [ @@ -940,18 +353,8 @@ 'description' => '权重。', 'type' => 'object', 'properties' => [ - 'Bhv' => [ - 'title' => '行为类型', - 'description' => '行为类型。', - 'type' => 'string', - 'example' => 'click', - ], - 'Weight' => [ - 'title' => '权重', - 'description' => '权重(1-100)。', - 'type' => 'string', - 'example' => '1', - ], + 'Bhv' => ['title' => '行为类型', 'description' => '行为类型。', 'type' => 'string', 'example' => 'click'], + 'Weight' => ['title' => '权重', 'description' => '权重(1-100)。', 'type' => 'string', 'example' => '1'], ], ], ], @@ -962,116 +365,67 @@ 'description' => '扩展参数。', 'type' => 'object', 'properties' => [ - 'LatestTaskStatus' => [ - 'title' => '任务状态', - 'description' => '任务状态枚举值。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **0**:没有任务。'."\n" - ."\n" - .'- **1**:正常。'."\n" - ."\n" - .'- **2**:异常。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'SampleCount' => [ - 'title' => '样本数量', - 'description' => '样本数量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], + 'LatestTaskStatus' => ['title' => '任务状态', 'description' => '任务状态枚举值。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **0**:没有任务。'."\n" + ."\n" + .'- **1**:正常。'."\n" + ."\n" + .'- **2**:异常。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'SampleCount' => ['title' => '样本数量', 'description' => '样本数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], ], ], - 'MetaType' => [ - 'title' => '修改元信息类型', - 'description' => '修改元信息类型。', - 'type' => 'string', - 'example' => 'Sample', - ], - 'Name' => [ - 'title' => '样本名称', - 'description' => '样本名称。', - 'type' => 'string', - 'example' => '12345', - ], - 'StoreConfig' => [ - 'title' => '存储位置', - 'description' => '存储位置。', - 'type' => 'string', - 'example' => 'projectName.tableName', - ], - 'Type' => [ - 'title' => '样本类型', - 'description' => '样本类型枚举值。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Cloned**:复制的。'."\n" - ."\n" - .'- **System**:系统的。'."\n" - ."\n" - .'- **Custom**:自定义的。', - 'type' => 'string', - 'example' => 'System', - ], + 'MetaType' => ['title' => '修改元信息类型', 'description' => '修改元信息类型。', 'type' => 'string', 'example' => 'Sample'], + 'Name' => ['title' => '样本名称', 'description' => '样本名称。', 'type' => 'string', 'example' => '12345'], + 'StoreConfig' => ['title' => '存储位置', 'description' => '存储位置。', 'type' => 'string', 'example' => 'projectName.tableName'], + 'Type' => ['title' => '样本类型', 'description' => '样本类型枚举值。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Cloned**:复制的。'."\n" + ."\n" + .'- **System**:系统的。'."\n" + ."\n" + .'- **Custom**:自定义的。', 'type' => 'string', 'example' => 'System'], ], ], - 'GmtCreate' => [ - 'title' => '创建时间', - 'description' => '创建时间,单位为UTC时间。', - 'type' => 'string', - 'example' => '2021-12-07T12:28:52.000Z', - ], - 'GmtModified' => [ - 'title' => '修改时间', - 'description' => '最后修改时间。', - 'type' => 'string', - 'example' => '2021-12-07T12:28:52.000Z', - ], - 'SampleId' => [ - 'title' => '样本id', - 'description' => '样本ID。', - 'type' => 'string', - 'example' => '1638880131873', - ], + 'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间,单位为UTC时间。', 'type' => 'string', 'example' => '2021-12-07T12:28:52.000Z'], + 'GmtModified' => ['title' => '修改时间', 'description' => '最后修改时间。', 'type' => 'string', 'example' => '2021-12-07T12:28:52.000Z'], + 'SampleId' => ['title' => '样本id', 'description' => '样本ID。', 'type' => 'string', 'example' => '1638880131873'], ], ], ], ], 'apis' => [ - 'CreateInstance' => [ - 'path' => '/v2/openapi/instances', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'AttachDataset' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dataSets/{versionId}/actions/current', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], 'operationType' => 'write', 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '18666', - 'abilityTreeNodes' => [ - 'FEATUREairec5G3YBA', + 'operationType' => 'update', + 'abilityTreeCode' => '18661', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], + ], + 'parameters' => [ + [ + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], + ], + [ + 'name' => 'versionId', + 'in' => 'path', + 'schema' => ['description' => '版本ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '2018102321****'], ], ], - 'parameters' => [], 'responses' => [ 200 => [ 'schema' => [ @@ -1082,28 +436,32 @@ 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'instanceId' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'example' => 'airec-cn-****', - ], + 'versionId' => ['description' => '版本号ID。', 'type' => 'string', 'example' => '2018102321****'], + 'state' => ['description' => 'State状态类型。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Importing**:数据导入中。'."\n" + ."\n" + .'- **DataSuccess**:数据导入成功。'."\n" + ."\n" + .'- **DataFailed**:数据导入失败,终态。'."\n" + ."\n" + .'- **Training**:训练中。'."\n" + ."\n" + .'- **Success**:成功,终态。'."\n" + ."\n" + .'- **Failed**:失败,终态。'."\n" + ."\n" + .'- **Stopped**:终止,终态。', 'type' => 'string', 'example' => 'Importing'], + 'gmtModified' => ['description' => '最后修改时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '2018-12-07T02:24:26.000Z'], + 'gmtCreate' => ['description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '2018-12-06T06:14:01.000Z'], + 'instanceId' => ['description' => '实例ID。', 'type' => 'string', 'example' => 'airec-cn-****'], ], ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'F60021C4-57AF-5F46-9B3E-FCEF1C7A1459'], + 'message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'An internal server error occurred'], ], ], ], @@ -1111,224 +469,116 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"instanceId\\": \\"airec-cn-****\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>8F81A922-6C81-46D6-B78C-CC35E16B1691</RequestId>\\n<Result>\\n <InstanceId>airec-cn-xxxxx</InstanceId>\\n</Result>","errorExample":""}]', - 'title' => '创建一个预付费实例', - 'summary' => '创建一个智能推荐实例。', - 'requestParamsDescription' => '| 参数 | 类型 | 是否必需 | 描述 |'."\n" - .'| :--- | :--- | :--- | :--- |'."\n" - .'| type | String |是| 指定实例的类型,分为算法配置版( Algorithm Configuration Edition )和行业运营版(Industry Operation Edition)。|'."\n" - .'| chargeType | String |是|实例的付费方式。取值范围: PREPAY:预付费,包年包月。选择该类付费方式时,您必须确认自己的账号支持余额支付/信用支付,否则将返回 InvalidPayMethod 的错误提示,并且需要指定paymentInfo参数。POSTPAY:按量付费(当前暂不支持)。|'."\n" - .'| quota| Map| 是|您要申请的配额信息|'."\n" - .'| userCountPerUnit|Integer|是|您要申请的用户表文档数的配额信息,限制请看系统限制。|'."\n" - .'| itemCountPerUnit|Integer|是|您要申请的物品表文档数的配额信息,限制请看系统限制。|'."\n" - .'| qps|Integer|是|您要申请的推荐请求的QPS配额信息,限制请看系统限制。|'."\n" - .'| paymentInfo|Map|否|付费信息。|'."\n" - .'| duration|Integer|否|付费周期,包含1,2,3,4,5,6,7,8,9,10,12|'."\n" - .'| pricingCycle|String|否|周期单位,包含:月(Month),年(Year)等|'."\n" - .'| autoRenew|Boolean|否|是否自动续费,包含:是(true)和否(false)|', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ModifyInstance' => [ - 'path' => '/v2/openapi/instances/{instanceId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '开启数据训练', + 'summary' => '指定实例的指定数据集版本提供在线服务。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:AttachDataSet', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"versionId\\": \\"2018102321****\\",\\n \\"state\\": \\"Importing\\",\\n \\"gmtModified\\": 0,\\n \\"gmtCreate\\": 0,\\n \\"instanceId\\": \\"airec-cn-****\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"F60021C4-57AF-5F46-9B3E-FCEF1C7A1459\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","type":"json"}]', + ], + 'AttachIndexVersion' => [ + 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/index-versions/{versionId}/actions/attach', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'readAndWrite', + 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', - 'abilityTreeCode' => '18721', - 'abilityTreeNodes' => [ - 'FEATUREairec5G3YBA', - 'FEATUREairecX63J28', - ], + 'abilityTreeCode' => '18662', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-test'], + ], + [ + 'name' => 'algorithmId', + 'in' => 'path', + 'schema' => ['description' => '召回配置ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '123'], + ], + [ + 'name' => 'versionId', + 'in' => 'path', + 'schema' => ['description' => '索引版本ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'v1'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '返回参数。', - 'type' => 'object', - 'properties' => [ - 'regionId' => [ - 'description' => '实例所在的区域。'."\n", - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'type' => [ - 'description' => '实例类型。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Algorithm_configuration**:算法配置版。'."\n" - ."\n" - .'- **Industry_operation**:行业运营版。'."\n" - ."\n" - .'- **Cold_start**:冷启动版。', - 'type' => 'string', - 'example' => 'Algorithm_configuration', - ], - 'lockMode' => [ - 'description' => '实例锁定状态。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Unlock**:未锁定。'."\n" - ."\n" - .'- **ManualLock**:手动锁定。'."\n" - ."\n" - .'- **LockByExpiration**:欠费锁定。', - 'type' => 'string', - 'example' => 'Unlock', - ], - 'expiredTime' => [ - 'description' => '实例过期时间,单位为UTC时间。'."\n", - 'type' => 'string', - 'example' => '2019-01-06T16:00:00.000Z', - ], - 'status' => [ - 'description' => '实例运行状态。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Initializing**:初始化中。'."\n" - ."\n" - .'- **Ready**:待数据导入。'."\n" - ."\n" - .'- **Running**:运行中。', - 'type' => 'string', - 'example' => 'Running', - ], - 'gmtCreate' => [ - 'description' => '实例创建时间,单位为UTC时间。'."\n", - 'type' => 'string', - 'example' => '2018-12-06T06:14:01.000Z', - ], - 'chargeType' => [ - 'description' => '实例付费类型。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **PREPAY**:预付费(包年包月)。'."\n" - ."\n" - .'- **POSTPAY**:后付费(按量付费)。', - 'type' => 'string', - 'example' => 'POSTPAY', - ], - 'industry' => [ - 'description' => '实例行业类型。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **content**:内容型。'."\n" - ."\n" - .'- **item**:商品型。'."\n" - ."\n" - .'- **news**:新闻型。', - 'type' => 'string', - 'example' => 'news', - ], - 'commodityCode' => [ - 'description' => 'Airec商品代码。', - 'type' => 'string', - 'example' => 'airecpre', - ], - 'gmtModified' => [ - 'description' => '实例最后修改时间。', - 'type' => 'string', - 'example' => '2020-04-23T06:08:48.000Z', - ], - 'dataSetVersion' => [ - 'description' => '当前实例在线服务的数据集版本。', - 'type' => 'string', - 'example' => '20181206170353', - ], - 'name' => [ - 'description' => '实例名称。'."\n", - 'type' => 'string', - 'example' => '实例1', - ], - 'instanceId' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'example' => 'airec-cn-****', - ], - ], - ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '9B5AA8EF-DB75-5BE9-ADFD-E645F9EA7374', - ], - 'message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'successful', - ], + 'result' => ['description' => '是否切换成功。'."\n" + .'**TRUE**:是。'."\n" + .'**FALSE**:否。', 'type' => 'boolean', 'example' => 'TRUE'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'E63A27A4-3411-4910-B7D5-12EEAC19389B'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"regionId\\": \\"cn-beijing\\",\\n \\"type\\": \\"Algorithm_configuration\\",\\n \\"lockMode\\": \\"Unlock\\",\\n \\"expiredTime\\": \\"2019-01-06T16:00:00.000Z\\",\\n \\"status\\": \\"Running\\",\\n \\"gmtCreate\\": \\"2018-12-06T06:14:01.000Z\\",\\n \\"chargeType\\": \\"POSTPAY\\",\\n \\"industry\\": \\"news\\",\\n \\"commodityCode\\": \\"airecpre\\",\\n \\"gmtModified\\": \\"2020-04-23T06:08:48.000Z\\",\\n \\"dataSetVersion\\": \\"20181206170353\\",\\n \\"name\\": \\"实例1\\",\\n \\"instanceId\\": \\"airec-cn-****\\"\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"9B5AA8EF-DB75-5BE9-ADFD-E645F9EA7374\\",\\n \\"message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '修改实例', - 'summary' => '修改指定实例配置。', - ], - 'DescribeInstance' => [ - 'path' => '/v2/openapi/instances/{instanceId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => 'AttachIndexVersion', + 'summary' => '把指定版本的索引切换到线上。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:AttachIndexVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"E63A27A4-3411-4910-B7D5-12EEAC19389B\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'CheckRankingModelReachable' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-models/{rankingModelId}/actions/check-connectivity', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1337,296 +587,108 @@ 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18683', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - 'FEATUREairec5G3YBA', - ], + 'operationType' => 'none', + 'abilityTreeCode' => '18663', + 'abilityTreeNodes' => ['FEATUREairecY1ADIM'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-7e22x6f75001'], + ], + [ + 'name' => 'rankingModelId', + 'in' => 'path', + 'schema' => ['description' => '模型id', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'rankingModelId'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '返回参数。', - 'type' => 'object', - 'properties' => [ - 'regionId' => [ - 'description' => '实例所在的区域。'."\n", - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'type' => [ - 'description' => '实例类型。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Algorithm_configuration**:算法配置版。'."\n" - ."\n" - .'- **Industry_operation**:行业运营版。'."\n" - ."\n" - .'- **Cold_start**:冷启动版。', - 'type' => 'string', - 'example' => 'Standard', - ], - 'lockMode' => [ - 'description' => '实例锁定状态。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Unlock**:未锁定。'."\n" - ."\n" - .'- **ManualLock**:手动锁定。'."\n" - ."\n" - .'- **LockByExpiration**:欠费锁定。', - 'type' => 'string', - 'example' => 'Unlock', - ], - 'expiredTime' => [ - 'description' => '实例过期时间,单位为UTC时间。'."\n", - 'type' => 'string', - 'example' => '2019-01-06T16:00:00.000Z', - ], - 'scene' => [ - 'description' => '场景名称。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **gul**:猜你喜欢。'."\n" - ."\n" - .'- **rr**:相关推荐。'."\n" - ."\n" - .'- **hot**:热门推荐。'."\n" - ."\n" - .'- **focus**:焦点图推荐。', - 'type' => 'string', - 'example' => 'gul', - ], - 'status' => [ - 'description' => '实例运行状态。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Initializing**:初始化中。'."\n" - ."\n" - .'- **Ready**:待数据导入。'."\n" - ."\n" - .'- **Running**:运行中。', - 'type' => 'string', - 'example' => 'Running', - ], - 'gmtCreate' => [ - 'description' => '实例创建时间,单位为UTC时间。'."\n", - 'type' => 'string', - 'example' => '2018-12-06T06:14:01.000Z', - ], - 'chargeType' => [ - 'description' => '实例付费类型。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **PREPAY**:预付费(包年包月)。'."\n" - ."\n" - .'- **POSTPAY**:后付费(按量付费)。', - 'type' => 'string', - 'example' => 'PrePaid', - ], - 'industry' => [ - 'description' => '实例行业类型。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **content**:内容型。'."\n" - ."\n" - .'- **item**:商品型。'."\n" - ."\n" - .'- **news**:新闻型。', - 'type' => 'string', - 'example' => 'news', - ], - 'commodityCode' => [ - 'description' => 'Airec商品代码。', - 'type' => 'string', - 'example' => 'airecpre', - ], - 'gmtModified' => [ - 'description' => '实例最后更新时间,单位为UTC时间。'."\n", - 'type' => 'string', - 'example' => '2018-12-06T11:17:49.000Z', - ], - 'dataSetVersion' => [ - 'description' => '当前在线服务的数据集版本。', - 'type' => 'string', - 'example' => '20181206170353', - ], - 'name' => [ - 'description' => '实例名称。'."\n", - 'type' => 'string', - 'example' => '实例1', - ], - 'instanceId' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'example' => 'airec-cn-****', - ], - ], - ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'result' => ['description' => '返回结果', 'type' => 'boolean', 'example' => 'true'], + 'code' => ['description' => '错误码', 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '当前请求的RequestID。'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情', 'type' => 'string', 'example' => 'An internal server error occurred'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"regionId\\": \\"cn-beijing\\",\\n \\"type\\": \\"Standard\\",\\n \\"lockMode\\": \\"Unlock\\",\\n \\"expiredTime\\": \\"2019-01-06T16:00:00.000Z\\",\\n \\"scene\\": \\"gul\\",\\n \\"status\\": \\"Running\\",\\n \\"gmtCreate\\": \\"2018-12-06T06:14:01.000Z\\",\\n \\"chargeType\\": \\"PrePaid\\",\\n \\"industry\\": \\"news\\",\\n \\"commodityCode\\": \\"airecpre\\",\\n \\"gmtModified\\": \\"2018-12-06T11:17:49.000Z\\",\\n \\"dataSetVersion\\": \\"20181206170353\\",\\n \\"name\\": \\"实例1\\",\\n \\"instanceId\\": \\"airec-cn-****\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<Result>\\n <InstanceId>airec-cn-xxxxxx</InstanceId>\\n <Name>airec-cn-xxxxxx</Name>\\n <Type>Standard</Type>\\n <Status>Running</Status>\\n <Industry>news</Industry>\\n <Scene>gul</Scene>\\n <RegionId>cn-beijing</RegionId>\\n <ChargeType>PrePaid</ChargeType>\\n <DataSetVersion>20181206170353</DataSetVersion>\\n <CommodityCode>airecpre</CommodityCode>\\n <GmtCreate>2018-12-06T06:14:01.000Z</GmtCreate>\\n <GmtModified>2018-12-06T11:17:49.000Z</GmtModified>\\n <ExpiredTime>2019-01-06T16:00:00.000Z</ExpiredTime>\\n <LockMode>Unlock</LockMode>\\n</Result>\\n<RequestId>B352FBD9-4643-441E-80ED-699D47D7B6A3</RequestId>","errorExample":""}]', - 'title' => '查询实例信息', - 'summary' => '通过指定的实例ID查看实例详情。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ListInstance' => [ - 'path' => '/v2/openapi/instances', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '测试模型网络联通性', + 'summary' => '测试模型网络联通性。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'airec:CheckRankingModelReachable', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": true,\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<CheckRankingModelReachableResponse>\\n <result>true</result>\\n <requestId>829F38F6-E2D6-4109-90A6-888160BD16C2</requestId>\\n</CheckRankingModelReachableResponse>","errorExample":""}]', + ], + 'CloneExperiment' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments/{experimentId}/actions/clone', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18705', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - 'FEATUREairec5G3YBA', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '18664', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ - 'name' => 'page', - 'in' => 'query', - 'schema' => [ - 'description' => '指定页码,默认为:1。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '1', - ], - ], - [ - 'name' => 'size', - 'in' => 'query', - 'schema' => [ - 'description' => '指定每页展示条数,默认为10,限制:[1-50]。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '10', - ], - ], - [ - 'name' => 'status', - 'in' => 'query', - 'schema' => [ - 'description' => '通过实例运行状态进行过滤。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Initializing**:初始化中。'."\n" - ."\n" - .'- **Ready**:待数据导入。'."\n" - ."\n" - .'- **Running**:运行中。', - 'type' => 'string', - 'required' => false, - 'example' => 'Running', - ], + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'name', - 'in' => 'query', - 'schema' => [ - 'description' => '通过实例名称进行过滤,支持模糊匹配。'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '实例1', - ], + 'name' => 'sceneId', + 'in' => 'path', + 'schema' => ['description' => '场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'sceneId'], ], [ - 'name' => 'expiredTime', + 'name' => 'dryRun', 'in' => 'query', - 'schema' => [ - 'description' => '秒级时间戳,通过过期时间过滤,大于当前时间会过滤出即将过期的实例(不包含已经过期的实例)。', - 'type' => 'string', - 'required' => false, - 'example' => '1608533404', - ], + 'schema' => ['description' => '是否完成克隆。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **true**:校验实验信息。'."\n" + ."\n" + .'- **false**:默认false,创建实验。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], [ - 'name' => 'instanceId', - 'in' => 'query', - 'schema' => [ - 'description' => '通过实例ID进行过滤,支持模糊匹配。', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], + 'name' => 'experimentId', + 'in' => 'path', + 'schema' => ['description' => '实验ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '123'], ], ], 'responses' => [ @@ -1637,132 +699,98 @@ 'properties' => [ 'result' => [ 'description' => '返回参数。', - 'type' => 'array', - 'items' => [ - 'description' => '返回参数。', - 'type' => 'object', - 'properties' => [ - 'regionId' => [ - 'description' => '实例所在的区域。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'type' => [ - 'description' => '实例类型。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Algorithm_configuration**:算法配置版。'."\n" - ."\n" - .'- **Industry_operation**:行业运营版。'."\n" - ."\n" - .'- **Cold_start**:冷启动版。', - 'type' => 'string', - 'example' => 'Standard', - ], - 'lockMode' => [ - 'description' => '实例锁定状态。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Unlock**:未锁定。'."\n" - ."\n" - .'- **ManualLock**:手动锁定。'."\n" - ."\n" - .'- **LockByExpiration**:欠费锁定。', - 'type' => 'string', - 'example' => 'Unlock', - ], - 'expiredTime' => [ - 'description' => '实例过期时间,单位为UTC时间。', - 'type' => 'string', - 'example' => '2019-01-06T16:00:00.000Z', - ], - 'status' => [ - 'description' => '实例运行状态。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Initializing**:初始化中。'."\n" - ."\n" - .'- **Ready**:待数据导入。'."\n" - ."\n" - .'- **Running**:运行中。', - 'type' => 'string', - 'example' => 'Running', - ], - 'gmtCreate' => [ - 'description' => '实例创建时间,单位为UTC时间。', - 'type' => 'string', - 'example' => '2018-12-06T06:14:01.000Z', - ], - 'chargeType' => [ - 'description' => '实例付费类型。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **PREPAY**:预付费(包年包月)。'."\n" - ."\n" - .'- **POSTPAY**:后付费(按量付费)。', - 'type' => 'string', - 'example' => 'PrePaid', - ], - 'industry' => [ - 'description' => '实例行业类型。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **content**:内容型。'."\n" - ."\n" - .'- **item**:商品型。'."\n" - ."\n" - .'- **news**:新闻型。', - 'type' => 'string', - 'example' => 'news', - ], - 'commodityCode' => [ - 'description' => 'Airec商品代码。', - 'type' => 'string', - 'example' => 'airecpre', - ], - 'gmtModified' => [ - 'description' => '实例最后更新时间,单位为UTC时间。', - 'type' => 'string', - 'example' => '2018-12-06T11:17:49.000Z', - ], - 'dataSetVersion' => [ - 'description' => '当前在线服务的数据集版本。', - 'type' => 'string', - 'example' => '20181206170353', - ], - 'name' => [ - 'description' => '实例名称。', - 'type' => 'string', - 'example' => '实例1', - ], - 'instanceId' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'example' => 'airec-cn-****', + 'type' => 'object', + 'properties' => [ + 'base' => ['description' => '是否为默认实验。', 'type' => 'boolean', 'example' => 'true'], + 'onlineTime' => ['description' => '实验线上时间。', 'type' => 'string', 'example' => '2020-11-11T09:47:43.000Z'], + 'offlineTime' => ['description' => '实验下线时间。', 'type' => 'string', 'example' => '2020-11-11T09:47:43.000Z'], + 'description' => ['description' => '实验备注。', 'type' => 'string', 'example' => 'xxx'], + 'status' => ['description' => '实验状态。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Init**:未上线。'."\n" + ."\n" + .'- **Online**:上线。'."\n" + ."\n" + .'- **Finish**:推全。'."\n" + ."\n" + .'- **Offline**:下线。', 'type' => 'string', 'example' => 'Init'], + 'name' => ['description' => '实验名称。', 'type' => 'string', 'example' => 'xxx'], + 'algorithms' => [ + 'description' => '实验参数列表。', + 'type' => 'array', + 'items' => [ + 'description' => '实验参数。', + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => '算法key。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **I2I**:I2I召回链路。'."\n" + ."\n" + .'- **u2X2I**:U2X2I召回链路。'."\n" + ."\n" + .'- **hot**:热门商品召回链路。'."\n" + ."\n" + .'- **new**:新品召回链路。'."\n" + ."\n" + .'- **embedding**:向量召回链路。'."\n" + ."\n" + .'- **mtorder**:召回链路优先级。'."\n" + ."\n" + .'- **rankservice**:排序服务。', 'type' => 'string', 'example' => 'I2I'], + 'config' => [ + 'description' => '子配置项列表。', + 'type' => 'array', + 'items' => [ + 'description' => '子配置项信息。', + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => '算法配置项key。', 'type' => 'string', 'example' => 'I2I-truncedquantity'], + 'defaultValue' => ['description' => '算法配置项默认值。', 'type' => 'string', 'example' => '400'], + 'experimentValue' => ['description' => '实验值。', 'type' => 'string', 'example' => 'swing;commoni2i;pcategory;scategory'], + 'name' => ['description' => '子配置名称。', 'type' => 'string', 'example' => 'I2I算法'], + ], + ], + ], + 'defaultValue' => ['description' => '默认召回数量。', 'type' => 'string', 'example' => 'i2i;u2x2i;new;hot;embedding;embedding'], + 'type' => ['description' => '算法类别。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **SYSTEM**:系统默认类型。'."\n" + ."\n" + .'- **CUSTOM**:用户自定义类型。', 'type' => 'string', 'example' => 'SYSTEM'], + 'experimentValue' => ['description' => '实验值。', 'type' => 'string', 'example' => '300'], + 'hasConfig' => ['description' => '是否有子配置项。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **true**:是。'."\n" + ."\n" + .'- **false**:否。', 'type' => 'boolean', 'example' => 'true'], + 'category' => ['description' => '算法类目。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **RECALL**:召回。'."\n" + ."\n" + .'- **RANK**:排序。', 'type' => 'string', 'example' => 'RECALL'], + 'name' => ['description' => '实验名称。', 'type' => 'string', 'example' => 'name'], + ], ], ], + 'buckets' => [ + 'description' => '分桶列表。', + 'type' => 'array', + 'items' => ['description' => '分桶。', 'type' => 'string', 'example' => '["1","2","3"]'], + ], + 'experimentId' => ['description' => '实验ID。', 'type' => 'string', 'example' => '12345'], ], ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B'], ], ], ], @@ -1770,413 +798,315 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"regionId\\": \\"cn-beijing\\",\\n \\"type\\": \\"Standard\\",\\n \\"lockMode\\": \\"Unlock\\",\\n \\"expiredTime\\": \\"2019-01-06T16:00:00.000Z\\",\\n \\"status\\": \\"Running\\",\\n \\"gmtCreate\\": \\"2018-12-06T06:14:01.000Z\\",\\n \\"chargeType\\": \\"PrePaid\\",\\n \\"industry\\": \\"news\\",\\n \\"commodityCode\\": \\"airecpre\\",\\n \\"gmtModified\\": \\"2018-12-06T11:17:49.000Z\\",\\n \\"dataSetVersion\\": \\"20181206170353\\",\\n \\"name\\": \\"实例1\\",\\n \\"instanceId\\": \\"airec-cn-****\\"\\n }\\n ],\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<result>\\n <instanceId>airec-cn-5i3mq380d9q6</instanceId>\\n <name>测试使用</name>\\n <type>Standard</type>\\n <status>Running</status>\\n <industry>item</industry>\\n <regionId>cn-hangzhou</regionId>\\n <chargeType>PrePaid</chargeType>\\n <dataSetVersion>20201220105251</dataSetVersion>\\n <commodityCode>airecpre</commodityCode>\\n <gmtCreate>2020-12-20T02:51:57.000Z</gmtCreate>\\n <gmtModified>2020-12-20T03:34:05.000Z</gmtModified>\\n <expiredTime>2021-01-20T16:00:00.000Z</expiredTime>\\n <lockMode>Unlock</lockMode>\\n</result>\\n<requestId>CD76827D-8D92-4C90-9C31-A01941834442</requestId>\\n<headers>\\n <X-Total-Count>1</X-Total-Count>\\n</headers>","errorExample":""}]', - 'title' => '查询实例列表', - 'summary' => '查询一个或多个实例的详细信息。', - 'description' => '获取实例列表,返回实例列表按GmtCreate倒序。请求参数的作用类似于一个过滤器,过滤器为逻辑与( AND )关系。如果某个参数为空,则过滤器不起作用。', + 'title' => '克隆实验', + 'summary' => '克隆实验。', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'RunInstance' => [ - 'path' => '/v2/openapi/instances/{instanceId}/actions/import', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CloneExperiment', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"base\\": true,\\n \\"onlineTime\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"offlineTime\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"description\\": \\"xxx\\",\\n \\"status\\": \\"Init\\",\\n \\"name\\": \\"xxx\\",\\n \\"algorithms\\": [\\n {\\n \\"key\\": \\"I2I\\",\\n \\"config\\": [\\n {\\n \\"key\\": \\"I2I-truncedquantity\\",\\n \\"defaultValue\\": \\"400\\",\\n \\"experimentValue\\": \\"swing;commoni2i;pcategory;scategory\\",\\n \\"name\\": \\"I2I算法\\"\\n }\\n ],\\n \\"defaultValue\\": \\"i2i;u2x2i;new;hot;embedding;embedding\\",\\n \\"type\\": \\"SYSTEM\\",\\n \\"experimentValue\\": \\"300\\",\\n \\"hasConfig\\": true,\\n \\"category\\": \\"RECALL\\",\\n \\"name\\": \\"name\\"\\n }\\n ],\\n \\"buckets\\": [\\n \\"[\\\\\\"1\\\\\\",\\\\\\"2\\\\\\",\\\\\\"3\\\\\\"]\\"\\n ],\\n \\"experimentId\\": \\"12345\\"\\n },\\n \\"requestId\\": \\"E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B</RequestId>","errorExample":""}]', + ], + 'CloneSample' => [ + 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}/actions/clone', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18739', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - 'FEATUREairec5G3YBA', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '117122', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-shdjkgkeog'], + ], + [ + 'name' => 'sampleId', + 'in' => 'path', + 'schema' => ['title' => '样本id', 'description' => '样本id', 'type' => 'string', 'required' => true, 'example' => 'abc'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回参数。', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '是否成功创建数据集。'."\n", - 'type' => 'boolean', - 'example' => 'false', - ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['description' => '样本', '$ref' => '#/components/schemas/Sample'], ], ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'title' => '复制创建样本', + 'summary' => '复制创建样本。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CloneSample'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CloneSample', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": false,\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>8F81A922-6C81-46D6-B78C-CC35E16B1691</RequestId>\\n<Result>true</Result>","errorExample":""}]', - 'title' => '运行实例', - 'summary' => '启动实例开始全量数据导入任务。', - 'description' => '启动实例全量数据导入,此时系统会创建一个数据集新版本。系统会从您的数据源中导入所有的全量数据到系统并训练。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"Status\\": \\"Formatted\\",\\n \\"Meta\\": {\\n \\"AutoUpdate\\": true,\\n \\"AutoUpdateFrequency\\": 1673341140,\\n \\"ClonedId\\": \\"1638877561147\\",\\n \\"Config\\": {\\n \\"BhvTableSourceIds\\": [\\n \\"\\"\\n ],\\n \\"FeatureConfig\\": {\\n \\"ItemFeatures\\": \\"deress,red\\",\\n \\"UserFeatures\\": \\"man\\"\\n },\\n \\"LabelLogic\\": {\\n \\"BhvTimeWindow\\": 86400,\\n \\"NegativeBhvTypes\\": \\"click,expose\\",\\n \\"PositiveBhvTypes\\": \\"like\\"\\n },\\n \\"WeightLogicList\\": [\\n {\\n \\"Bhv\\": \\"click\\",\\n \\"Weight\\": \\"1\\"\\n }\\n ]\\n },\\n \\"ExtendParams\\": {\\n \\"LatestTaskStatus\\": 1,\\n \\"SampleCount\\": 0\\n },\\n \\"MetaType\\": \\"Sample\\",\\n \\"Name\\": \\"12345\\",\\n \\"StoreConfig\\": \\"projectName.tableName\\",\\n \\"Type\\": \\"System\\"\\n },\\n \\"GmtCreate\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"GmtModified\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"SampleId\\": \\"1638880131873\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', ], - 'UpgradeInstance' => [ - 'path' => '/v2/openapi/instances/{instanceId}/actions/upgrade', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateCustomAnalysisTask' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dashboard/custom-analysis-tasks', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', + 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18745', - 'abilityTreeNodes' => [ - 'FEATUREairecIDS0JZ', - 'FEATUREairecDTVO6V', - 'FEATUREairecDM7OX0', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '36672', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ + 'name' => 'type', + 'in' => 'query', + 'schema' => ['description' => '查询类型 。'."\n" + .'如:'."\n" + .'**ITEM_CUSTOM**:物品维度自定义分析。', 'type' => 'string', 'required' => true, 'example' => 'ITEM_CUSTOM'], + ], + [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-xxx'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回参数。', + 'title' => 'Schema of Response', + 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '返回参数。', - 'type' => 'object', - 'properties' => [ - 'instanceId' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'example' => 'airec-cn-****', - ], - ], - ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '16B78383-2803-4964-9605-37B30C073B0E'], + 'code' => ['description' => '返回码。', 'type' => 'string', 'example' => '200'], + 'message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'], + 'result' => ['description' => '创建任务的ID。', 'type' => 'object', 'example' => '123'], ], ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'title' => '创建自定义分析任务', + 'summary' => '创建自定义分析任务。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateCustomAnalysisTask'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateCustomAnalysisTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"instanceId\\": \\"airec-cn-****\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>90D6B8F5-FE97-4509-9AAB-367836C51818</RequestId>\\n<Result>\\n <InstanceId>airec-cn-xxxxxx</InstanceId>\\n</Result>","errorExample":""}]', - 'title' => '更新实例配额信息', - 'summary' => '更新指定实例配额(Quota)信息。', - 'description' => '更新指定实例配额 (Quota)信息。'."\n" - ."\n" - .'用户数限制为:最小值 1,000,000、最大值 10,000,000物品数限制为:最小值 1,000,000、最大值 10,000,000推荐请求QPS限制为:最小值 10、最大值 500。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"16B78383-2803-4964-9605-37B30C073B0E\\",\\n \\"code\\": \\"200\\",\\n \\"message\\": \\"success\\",\\n \\"result\\": 123\\n}","errorExample":""},{"type":"xml","example":"<requestId>16B78383-2803-4964-9605-37B30C073B0E</requestId>\\n<result>\\n <taskId>latest</taskId>\\n</result>","errorExample":""}]', ], - 'ValidateInstance' => [ - 'path' => '/v2/openapi/instances/{instanceId}/actions/validate', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateCustomSample' => [ + 'path' => '/v2/openapi/instances/{instanceId}/samples', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '18746', - 'abilityTreeNodes' => [ - 'FEATUREairecIDS0JZ', - 'FEATUREairecEDD4RN', - 'FEATUREairecDTVO6V', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '117123', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-xxx'], ], ], 'responses' => [ 200 => [ - 'headers' => [], 'schema' => [ - 'description' => '返回参数。', + 'title' => 'Schema of Response', + 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '返回参数。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '90D6B8F5-FE97-4509-9AAB-367836C51818', - ], - 'message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['description' => '返回结果详情。', '$ref' => '#/components/schemas/Sample'], ], ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'title' => '创建自定义样本', + 'summary' => '创建自定义样本。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateCustomSample'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateCustomSample', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": true,\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"90D6B8F5-FE97-4509-9AAB-367836C51818\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', - 'title' => '校验指定实例有效性', - 'summary' => '校验指定实例信息的有效性。', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"Status\\": \\"Formatted\\",\\n \\"Meta\\": {\\n \\"AutoUpdate\\": true,\\n \\"AutoUpdateFrequency\\": 1673341140,\\n \\"ClonedId\\": \\"1638877561147\\",\\n \\"Config\\": {\\n \\"BhvTableSourceIds\\": [\\n \\"\\"\\n ],\\n \\"FeatureConfig\\": {\\n \\"ItemFeatures\\": \\"deress,red\\",\\n \\"UserFeatures\\": \\"man\\"\\n },\\n \\"LabelLogic\\": {\\n \\"BhvTimeWindow\\": 86400,\\n \\"NegativeBhvTypes\\": \\"click,expose\\",\\n \\"PositiveBhvTypes\\": \\"like\\"\\n },\\n \\"WeightLogicList\\": [\\n {\\n \\"Bhv\\": \\"click\\",\\n \\"Weight\\": \\"1\\"\\n }\\n ]\\n },\\n \\"ExtendParams\\": {\\n \\"LatestTaskStatus\\": 1,\\n \\"SampleCount\\": 0\\n },\\n \\"MetaType\\": \\"Sample\\",\\n \\"Name\\": \\"12345\\",\\n \\"StoreConfig\\": \\"projectName.tableName\\",\\n \\"Type\\": \\"System\\"\\n },\\n \\"GmtCreate\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"GmtModified\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"SampleId\\": \\"1638880131873\\"\\n }\\n}","type":"json"}]', ], - 'DowngradeInstance' => [ - 'path' => '/v2/openapi/instances/{instanceId}/actions/downgrade', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateDataDiagnoseTask' => [ + 'path' => '/v2/openapi/instances/{instanceId}/data-diagnose-task', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18694', - 'abilityTreeNodes' => [ - 'FEATUREairecIDS0JZ', - 'FEATUREairecDTVO6V', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '138221', + 'abilityTreeNodes' => ['FEATUREairecG8RBMT'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-shdjkgkeog'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回参数。', + 'title' => 'Schema of Response', + 'description' => '返回内容', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '返回参数。', - 'type' => 'object', - 'properties' => [ - 'instanceId' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'example' => 'airec-cn-****', - ], - ], - ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '当前请求的RequestID', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['description' => '创建任务是否成功', 'type' => 'boolean', 'example' => 'true'], ], ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'title' => '创建数据诊断任务', + 'summary' => '创建数据诊断任务。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '1', 'countWindow' => 30, 'regionId' => '*', 'api' => 'CreateDataDiagnoseTask'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateDataDiagnoseTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"instanceId\\": \\"airec-cn-****\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>90D6B8F5-FE97-4509-9AAB-367836C51818</RequestId>\\n<Result>\\n <InstanceId>airec-cn-xxxxxx</InstanceId>\\n</Result>","errorExample":""}]', - 'title' => '降低指定实例配额 (Quota)信息', - 'summary' => '降低指定实例配额 (Quota)信息。', - 'description' => '新的配额数据不能大于已经选择的配额并且不能小于目前已经使用的配额。'."\n" - ."\n" - .'用户数限制为:最小值 1,000,000、最大值 10,000,000;'."\n" - .'物品数限制为:最小值 1,000,000、最大值 10,000,000;'."\n" - .'推荐请求QPS限制为:最小值 10、最大值 500。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": true\\n}","type":"json"}]', ], 'CreateExtraDataSource' => [ - 'summary' => '创建一个数据源。', 'path' => '/v2/openapi/instances/{instanceId}/extra-data-sources', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', 'abilityTreeCode' => '117103', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-****'], ], ], 'responses' => [ @@ -2186,178 +1116,203 @@ 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], - 'result' => [ - 'description' => '返回参数。', - '$ref' => '#/components/schemas/ExtraDataSource', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['description' => '返回参数。', '$ref' => '#/components/schemas/ExtraDataSource'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"Status\\": \\"Ready 待应用;Online 已应用;Failed失败\\",\\n \\"Meta\\": {\\n \\"Internal\\": true,\\n \\"MetaType\\": \\"ExtraDataSource\\",\\n \\"ProjectName\\": \\"test_project\\",\\n \\"TableName\\": \\"test_table\\",\\n \\"Type\\": \\"ODPS\\",\\n \\"UpdateFrequency\\": 86400\\n },\\n \\"Type\\": \\"UserCustomDataSource、ItemCustomDataSource、BehaviorCustomDataSource、SampleCustomDataSource\\",\\n \\"GmtCreate\\": \\"2021-12-07T13:26:29.000Z\\",\\n \\"GmtModified\\": \\"2021-12-07T13:26:29.000Z\\",\\n \\"DataSourceId\\": \\"E01D574F-ABD0-4C55-A5E3-8D24FD8D42EA\\"\\n }\\n}","type":"json"}]', 'title' => '创建数据源', - ], - 'DeleteExtraDataSource' => [ - 'summary' => '删除数据源。', - 'path' => '/v2/openapi/instances/{instanceId}/extra-data-sources/{type}/{dataSourceId}', - 'methods' => [ - 'delete', + 'summary' => '创建一个数据源。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateExtraDataSource'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateExtraDataSource', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"Status\\": \\"Ready 待应用;Online 已应用;Failed失败\\",\\n \\"Meta\\": {\\n \\"Internal\\": true,\\n \\"MetaType\\": \\"ExtraDataSource\\",\\n \\"ProjectName\\": \\"test_project\\",\\n \\"TableName\\": \\"test_table\\",\\n \\"Type\\": \\"ODPS\\",\\n \\"UpdateFrequency\\": 86400\\n },\\n \\"Type\\": \\"UserCustomDataSource\\\\\\\\ItemCustomDataSource\\\\\\\\\\\\nBehaviorCustomDataSource\\\\\\\\\\\\nSampleCustomDataSource\\",\\n \\"GmtCreate\\": \\"2021-12-07T13:26:29.000Z\\",\\n \\"GmtModified\\": \\"2021-12-07T13:26:29.000Z\\",\\n \\"DataSourceId\\": \\"E01D574F-ABD0-4C55-A5E3-8D24FD8D42EA\\"\\n }\\n}","type":"json"}]', + ], + 'CreateFilteringAlgorithm' => [ + 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '117109', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '18665', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-****', - ], - ], - [ - 'name' => 'type', - 'in' => 'path', - 'schema' => [ - 'title' => '数据源类型', - 'description' => '数据源类型。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **UserCustomDataSource**:用户数据源。'."\n" - ."\n" - .'- **ItemCustomDataSource**:物品数据源。'."\n" - ."\n" - .'- **BehaviorCustomDataSource**:行为数据源。', - 'type' => 'string', - 'required' => true, - 'example' => 'UserCustomDataSource', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'dataSourceId', - 'in' => 'path', - 'schema' => [ - 'title' => '数据源id', - 'description' => '数据源ID。', - 'type' => 'string', - 'required' => true, - 'example' => '123', - ], + 'name' => 'dryRun', + 'in' => 'query', + 'schema' => ['description' => '是否预检参数。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **true**:不会真实执行。'."\n" + ."\n" + .'- **false**:会直接执行。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'true'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], 'result' => [ - 'description' => '返回参数。', - '$ref' => '#/components/schemas/ExtraDataSource', + 'description' => '召回表信息。', + 'type' => 'object', + 'properties' => [ + 'gmtModified' => ['description' => '最后更新时间,单位为UTC时间。', 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'status' => ['description' => '表示单签召回表的状态。 '."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Draft**:草稿。'."\n" + ."\n" + .'- **Running**:运行中。'."\n" + ."\n" + .'- **Offline**:已下线。'."\n" + ."\n" + .'- **Deleted**:已删除。', 'type' => 'string', 'example' => 'Running'], + 'gmtCreate' => ['description' => '创建时间的UTC时间。', 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'algorithmId' => ['description' => '召回表ID。', 'type' => 'string', 'example' => 'abc'], + 'meta' => [ + 'description' => 'Meta源数据。', + 'type' => 'object', + 'properties' => [ + 'type' => ['description' => '数据源类型,当前只支持ODPS。', 'type' => 'string', 'example' => 'ODPS'], + 'extInfo' => ['description' => '召回表类型包含内容。', 'type' => 'object', 'example' => '{}'], + 'category' => ['description' => '数据源召回类目。', 'type' => 'string', 'example' => '1_2'], + 'threshold' => [ + 'description' => 'Table的阈值信息。', + 'type' => 'object', + 'properties' => [ + 'sourceDataSizeThreshold' => ['description' => '源数据大小波动阈值(0-100)。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'sourceDataRecordThreshold' => ['description' => '源数据条目数波动阈值(0-100)。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'indexSizeThreshold' => ['description' => '索引大小波动阈值(0-100)。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'indexLossThreshold' => ['description' => '索引丢失阈值(0-100)。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + ], + ], + 'status' => ['description' => '表示单签召回表的状态。 '."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Draft**:草稿。'."\n" + ."\n" + .'- **Running**:运行中。'."\n" + ."\n" + .'- **Offline**:已下线。'."\n" + ."\n" + .'- **Deleted**:已删除。', 'type' => 'string', 'example' => 'Running'], + 'gmtCreate' => ['description' => '创建时间的UTC时间。', 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'tableName' => ['description' => 'ODPS召回表名称。', 'type' => 'string', 'example' => 'table_test'], + 'cron' => ['description' => '定时调度任务Cron。', 'type' => 'string', 'example' => '0 0/12 0 * *'], + 'description' => ['description' => '描述。', 'type' => 'string', 'example' => 'xx'], + 'gmtModified' => ['description' => '最后修改时间的UTC时间。', 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'projectName' => ['description' => 'ODPS中的ProjectName。', 'type' => 'string', 'example' => 'testname'], + 'algorithmName' => ['description' => '召回名称。', 'type' => 'string', 'example' => 'algorithmTest'], + 'cronEnabled' => ['description' => '是否开启定时任务。', 'type' => 'boolean', 'example' => 'true'], + ], + ], + ], ], + 'requestId' => ['description' => '请求的ID。', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], ], ], ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"Status\\": \\"Ready 待应用;Online 已应用;Failed失败\\",\\n \\"Meta\\": {\\n \\"Internal\\": true,\\n \\"MetaType\\": \\"ExtraDataSource\\",\\n \\"ProjectName\\": \\"test_project\\",\\n \\"TableName\\": \\"test_table\\",\\n \\"Type\\": \\"ODPS\\",\\n \\"UpdateFrequency\\": 86400\\n },\\n \\"Type\\": \\"UserCustomDataSource、ItemCustomDataSource、BehaviorCustomDataSource、SampleCustomDataSource\\",\\n \\"GmtCreate\\": \\"2021-12-07T13:26:29.000Z\\",\\n \\"GmtModified\\": \\"2021-12-07T13:26:29.000Z\\",\\n \\"DataSourceId\\": \\"E01D574F-ABD0-4C55-A5E3-8D24FD8D42EA\\"\\n }\\n}","type":"json"}]', - 'title' => '删除数据源', - ], - 'ListExtraDataSources' => [ - 'summary' => '获取特征、样本数据源列表。', - 'path' => '/v2/openapi/instances/{instanceId}/extra-data-sources', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '创建召回表', + 'summary' => '创建召回表,目前召回表由PAI训练完成导出到odps中,在AIRec中指定ODPS表信息。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateFilteringAlgorithm', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"gmtModified\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"status\\": \\"Running\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"algorithmId\\": \\"abc\\",\\n \\"meta\\": {\\n \\"type\\": \\"ODPS\\",\\n \\"extInfo\\": {},\\n \\"category\\": \\"1_2\\",\\n \\"threshold\\": {\\n \\"sourceDataSizeThreshold\\": 1,\\n \\"sourceDataRecordThreshold\\": 1,\\n \\"indexSizeThreshold\\": 1,\\n \\"indexLossThreshold\\": 1\\n },\\n \\"status\\": \\"Running\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"tableName\\": \\"table_test\\",\\n \\"cron\\": \\"0 0/12 0 * *\\",\\n \\"description\\": \\"xx\\",\\n \\"gmtModified\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"projectName\\": \\"testname\\",\\n \\"algorithmName\\": \\"algorithmTest\\",\\n \\"cronEnabled\\": true\\n }\\n },\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'CreateFlowControlTask' => [ + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '117105', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '154018', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'type', + 'name' => 'dryRun', 'in' => 'query', - 'schema' => [ - 'title' => '根据数据源类型过滤', - 'description' => '数据源类型。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **UserCustomDataSource**:用户数据源。'."\n" - ."\n" - .'- **ItemCustomDataSource**:物品数据源。'."\n" - ."\n" - .'- **BehaviorCustomDataSource**:行为数据源。', - 'type' => 'string', - 'required' => false, - 'example' => 'UserCustomDataSource', - ], + 'schema' => ['description' => '是否为空运行请求。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **true**:只检查参数正确。'."\n" + ."\n" + .'- **false**:检查参数后执行操作。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], ], ], 'responses' => [ @@ -2367,73 +1322,83 @@ 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], 'result' => [ 'description' => '返回参数。', - 'type' => 'array', - 'items' => [ - 'description' => '数据源列表。', - '$ref' => '#/components/schemas/ExtraDataSource', + 'type' => 'object', + 'properties' => [ + 'taskId' => ['description' => '流量调控任务ID。', 'type' => 'string', 'example' => '1667297014460'], + 'gmtModified' => ['description' => '实例最后更新时间,单位为UTC时间。'."\n", 'type' => 'string', 'example' => '2018-12-06T11:17:49.000Z'], + 'status' => ['description' => '任务状态。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **DRAFT**:草稿。'."\n" + ."\n" + .'- **READY**:待生效。'."\n" + ."\n" + .'- **RUNNING**:运行中。'."\n" + ."\n" + .'- **ENDED**:结束。', 'type' => 'string', 'example' => 'DRAFT'], + 'gmtCreate' => ['description' => '创建时间的UTC时间。', 'type' => 'string', 'example' => '2020-04-27T06:38:28.000Z'], ], ], + 'code' => ['description' => '状态码。', 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'EDF43C1F-99E4-431F-A7C0-8B260A5A792E'], + 'message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'An internal server error occurred'], + ], + ], + ], + 500 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": [\\n {\\n \\"Status\\": \\"Ready 待应用;Online 已应用;Failed失败\\",\\n \\"Meta\\": {\\n \\"Internal\\": true,\\n \\"MetaType\\": \\"ExtraDataSource\\",\\n \\"ProjectName\\": \\"test_project\\",\\n \\"TableName\\": \\"test_table\\",\\n \\"Type\\": \\"ODPS\\",\\n \\"UpdateFrequency\\": 86400\\n },\\n \\"Type\\": \\"UserCustomDataSource、ItemCustomDataSource、BehaviorCustomDataSource、SampleCustomDataSource\\",\\n \\"GmtCreate\\": \\"2021-12-07T13:26:29.000Z\\",\\n \\"GmtModified\\": \\"2021-12-07T13:26:29.000Z\\",\\n \\"DataSourceId\\": \\"E01D574F-ABD0-4C55-A5E3-8D24FD8D42EA\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取数据源', - ], - 'DeleteDataSet' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dataSets/{versionId}', - 'methods' => [ - 'delete', + 'title' => '创建流量调控任务', + 'summary' => '创建流控任务。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateFlowControlTask'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateFlowControlTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"taskId\\": \\"1667297014460\\",\\n \\"gmtModified\\": \\"2018-12-06T11:17:49.000Z\\",\\n \\"status\\": \\"DRAFT\\",\\n \\"gmtCreate\\": \\"2020-04-27T06:38:28.000Z\\"\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"EDF43C1F-99E4-431F-A7C0-8B260A5A792E\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateFlowControlTaskResponse>\\n <taskName>test</taskName>\\n <description>这是一个测试任务</description>\\n <startTime>1621267200</startTime>\\n <endTime>1621267200</endTime>\\n <selectionParams>\\n <selectType/>\\n <selectionOperation/>\\n <selectValue/>\\n </selectionParams>\\n <sceneIds>1,2,3</sceneIds>\\n <target>\\n <type>EXPOSE_PERCENT</type>\\n <value>50</value>\\n </target>\\n <metaType>FlowControlTask</metaType>\\n</CreateFlowControlTaskResponse>","errorExample":""}]', + ], + 'CreateInstance' => [ + 'path' => '/v2/openapi/instances', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '18671', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], - ], - 'parameters' => [ - [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], - ], - [ - 'name' => 'versionId', - 'in' => 'path', - 'schema' => [ - 'description' => '版本ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '2018102321****', - ], - ], + 'operationType' => 'create', + 'abilityTreeCode' => '18666', + 'abilityTreeNodes' => ['FEATUREairec5G3YBA'], ], + 'parameters' => [], 'responses' => [ 200 => [ 'schema' => [ @@ -2444,66 +1409,12 @@ 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'versionId' => [ - 'description' => '版本号ID。', - 'type' => 'string', - 'example' => '2018102321****', - ], - 'state' => [ - 'description' => 'State状态类型。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Importing**:数据导入中。'."\n" - ."\n" - .'- **DataSuccess**:数据导入成功。'."\n" - ."\n" - .'- **DataFailed**:数据导入失败,终态。'."\n" - ."\n" - .'- **Training**:训练中。'."\n" - ."\n" - .'- **Success**:成功,终态。'."\n" - ."\n" - .'- **Failed**:失败,终态。'."\n" - ."\n" - .'- **Stopped**:终止,终态。', - 'type' => 'string', - 'example' => 'Importing', - ], - 'gmtModified' => [ - 'description' => '最后修改数据源的时间。'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2018-12-06T11:17:49.000Z', - ], - 'gmtCreate' => [ - 'description' => '创建数据源的时间。'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'instanceId' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'example' => 'airec-cn-o400whm78004', - ], + 'instanceId' => ['description' => '实例ID。', 'type' => 'string', 'example' => 'airec-cn-****'], ], ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'success', - ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'An internal server error occurred'], ], ], ], @@ -2511,61 +1422,81 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"versionId\\": \\"2018102321****\\",\\n \\"state\\": \\"Importing\\",\\n \\"gmtModified\\": 0,\\n \\"gmtCreate\\": 0,\\n \\"instanceId\\": \\"airec-cn-o400whm78004\\"\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', - 'title' => '删除指定实例的指定数据集版本', - 'summary' => '删除指定实例的指定数据集版本。', - ], - 'AttachDataset' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dataSets/{versionId}/actions/current', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '创建一个预付费实例', + 'summary' => '创建一个智能推荐实例。', + 'requestParamsDescription' => '| 参数 | 类型 | 是否必需 | 描述 |'."\n" + .'| :--- | :--- | :--- | :--- |'."\n" + .'| type | String |是| 指定实例的类型,分为算法配置版( Algorithm Configuration Edition )和行业运营版(Industry Operation Edition)。|'."\n" + .'| chargeType | String |是|实例的付费方式。取值范围: PREPAY:预付费,包年包月。选择该类付费方式时,您必须确认自己的账号支持余额支付/信用支付,否则将返回 InvalidPayMethod 的错误提示,并且需要指定paymentInfo参数。POSTPAY:按量付费(当前暂不支持)。|'."\n" + .'| quota| Map| 是|您要申请的配额信息|'."\n" + .'| userCountPerUnit|Integer|是|您要申请的用户表文档数的配额信息,限制请看系统限制。|'."\n" + .'| itemCountPerUnit|Integer|是|您要申请的物品表文档数的配额信息,限制请看系统限制。|'."\n" + .'| qps|Integer|是|您要申请的推荐请求的QPS配额信息,限制请看系统限制。|'."\n" + .'| paymentInfo|Map|否|付费信息。|'."\n" + .'| duration|Integer|否|付费周期,包含1,2,3,4,5,6,7,8,9,10,12|'."\n" + .'| pricingCycle|String|否|周期单位,包含:月(Month),年(Year)等|'."\n" + .'| autoRenew|Boolean|否|是否自动续费,包含:是(true)和否(false)|', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"instanceId\\": \\"airec-cn-****\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>8F81A922-6C81-46D6-B78C-CC35E16B1691</RequestId>\\n<Result>\\n <InstanceId>airec-cn-xxxxx</InstanceId>\\n</Result>","errorExample":""}]', + ], + 'CreateRankingModel' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-models', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', + 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18661', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '18667', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'versionId', - 'in' => 'path', - 'schema' => [ - 'description' => '版本ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '2018102321****', - ], + 'name' => 'dryRun', + 'in' => 'query', + 'schema' => ['description' => '是否校验参数。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **true**:校验模型ID是否存在。'."\n" + ."\n" + .'- **false**:默认false,校验参数后创建模型 。', 'type' => 'boolean', 'required' => false, 'docRequired' => false, 'example' => 'true'], ], ], 'responses' => [ @@ -2578,66 +1509,15 @@ 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'versionId' => [ - 'description' => '版本号ID。', - 'type' => 'string', - 'example' => '2018102321****', - ], - 'state' => [ - 'description' => 'State状态类型。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Importing**:数据导入中。'."\n" - ."\n" - .'- **DataSuccess**:数据导入成功。'."\n" - ."\n" - .'- **DataFailed**:数据导入失败,终态。'."\n" - ."\n" - .'- **Training**:训练中。'."\n" - ."\n" - .'- **Success**:成功,终态。'."\n" - ."\n" - .'- **Failed**:失败,终态。'."\n" - ."\n" - .'- **Stopped**:终止,终态。', - 'type' => 'string', - 'example' => 'Importing', - ], - 'gmtModified' => [ - 'description' => '最后修改时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'gmtCreate' => [ - 'description' => '创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2018-12-06T06:14:01.000Z', - ], - 'instanceId' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'example' => 'airec-cn-****', - ], + 'rankingModelId' => ['description' => '排序模型ID。', 'type' => 'string', 'example' => 'testRankingId'], + 'gmtModified' => ['description' => '最后修改时间的UTC时间。', 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'gmtCreate' => ['description' => '创建时间的UTC时间。', 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'meta' => ['description' => '模型Meta原信息。', 'type' => 'object', 'example' => 'map'], ], ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'F60021C4-57AF-5F46-9B3E-FCEF1C7A1459', - ], - 'message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => '状态码。', 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'success'], ], ], ], @@ -2645,343 +1525,207 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"versionId\\": \\"2018102321****\\",\\n \\"state\\": \\"Importing\\",\\n \\"gmtModified\\": 0,\\n \\"gmtCreate\\": 0,\\n \\"instanceId\\": \\"airec-cn-****\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"F60021C4-57AF-5F46-9B3E-FCEF1C7A1459\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","type":"json"}]', - 'title' => '开启数据训练', - 'summary' => '指定实例的指定数据集版本提供在线服务。', - ], - 'DescribeDataSetMessage' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dataSets/{versionId}/messages', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '创建排名模型', + 'summary' => '创建模型。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateRankingModel', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"rankingModelId\\": \\"testRankingId\\",\\n \\"gmtModified\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"meta\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"message\\": \\"success\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'CreateRankingModelTemplate' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-templates', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18677', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '117139', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], - ], - [ - 'name' => 'versionId', - 'in' => 'path', - 'schema' => [ - 'description' => '版本号ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '2018102321****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-****'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => 'Schema of Response', 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '返回参数。', - 'type' => 'array', - 'items' => [ - 'description' => '返回参数。', - 'type' => 'object', - 'properties' => [ - 'message' => [ - 'description' => '数据诊断错误详情。', - 'type' => 'string', - 'example' => 'item商品表合法率0.36,可被采纳数据(符合规范)较少。会影响预热期推荐效果。请检查数据,补充相关字段信息,重新导入。建议优化。', - ], - 'timestamp' => [ - 'description' => '数据诊断错误时间。', - 'type' => 'string', - 'example' => '20181211 17:27:44', - ], - 'errorLevel' => [ - 'description' => '数据诊断错误级别。', - 'type' => 'string', - 'example' => 'warn', - ], - 'errorType' => [ - 'description' => '数据诊断错误类型。', - 'type' => 'string', - 'example' => '合法率', - ], - ], - ], - ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'result' => ['title' => '排序模型模板信息', 'description' => '排序模型模板信息。', '$ref' => '#/components/schemas/RankingModelTemplate'], ], ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'title' => '创建排序模型模板', + 'summary' => '创建排序模型模板。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateRankingModelTemplate'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateRankingModelTemplate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"message\\": \\"item商品表合法率0.36,可被采纳数据(符合规范)较少。会影响预热期推荐效果。请检查数据,补充相关字段信息,重新导入。建议优化。\\",\\n \\"timestamp\\": \\"20181211 17:27:44\\",\\n \\"errorLevel\\": \\"warn\\",\\n \\"errorType\\": \\"合法率\\"\\n }\\n ],\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>8F81A922-6C81-46D6-B78C-CC35E16B1691</RequestId>\\n<Result>\\n <ErrorType>合法率</ErrorType>\\n <ErrorLevel>warn</ErrorLevel>\\n <Message>item商品表合法率0.36,可被采纳数据(符合规范)较少。会影响预热期推荐效果。请检查数据,补充相关字段信息,重新导入。建议优化。</Message>\\n <Timestamp>20181211 17:27:44</Timestamp>\\n</Result>","errorExample":""}]', - 'title' => 'DescribeDataSetMessage', - 'summary' => '获取指定实例的指定数据集版本数据错误详情。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"result\\": {\\n \\"Status\\": \\"TRAINING_SUCCESS\\",\\n \\"Meta\\": {\\n \\"Authorized\\": true,\\n \\"AutoRun\\": true,\\n \\"AutoRunTime\\": 1,\\n \\"AutoRunType\\": \\"DAY\\",\\n \\"Conf\\": \\"train_config {}\\",\\n \\"LastEditTime\\": \\"2021-12-06T03:01:41.217Z\\",\\n \\"OssArn\\": \\"acs:ram::111:role/aliyunodpspaidefaultrole\\",\\n \\"OssBucket\\": \\"bucket-a\\",\\n \\"OssEndpoint\\": \\"oss-cn-beijing.aliyuncs.com\\",\\n \\"SampleId\\": \\"1111\\",\\n \\"SampleName\\": \\"样本1\\",\\n \\"SampleTimeWindow\\": 3,\\n \\"SampleTimeWindowType\\": \\"DAY\\",\\n \\"Type\\": \\"MULTI_TOWER\\",\\n \\"Name\\": \\"模型A\\",\\n \\"DeployStatus\\": \\"NOT_DEPLOYED\\",\\n \\"CanDeploy\\": true\\n },\\n \\"VersionNum\\": 3,\\n \\"TemplateId\\": \\"a-a-a\\"\\n }\\n}","type":"json"}]', ], - 'ListDataSet' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dataSets', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateRankingSystem' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18700', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '117162', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'airec-test'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回参数。', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '返回参数。', - 'type' => 'array', - 'items' => [ - 'description' => '返回参数。', - 'type' => 'object', - 'properties' => [ - 'versionId' => [ - 'description' => '数据版本ID。', - 'type' => 'string', - 'example' => '2018102321****', - ], - 'state' => [ - 'description' => 'State状态类型。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Importing**:数据导入中。'."\n" - ."\n" - .'- **DataSuccess**:数据导入成功。'."\n" - ."\n" - .'- **DataFailed**:数据导入失败,终态。'."\n" - ."\n" - .'- **Training**:训练中。'."\n" - ."\n" - .'- **Success**:成功,终态。'."\n" - ."\n" - .'- **Failed**:失败,终态。'."\n" - ."\n" - .'- **Stopped**:终止,终态。', - 'type' => 'string', - 'example' => 'Importing', - ], - 'gmtModified' => [ - 'description' => '最后修改时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'gmtCreate' => [ - 'description' => '创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'instanceId' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'example' => 'airec-cn-o400whm78004', - ], - ], - ], - ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求id', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'result' => ['description' => '返回详情结果', '$ref' => '#/components/schemas/RankingSystem'], ], ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + ], + 'title' => '创建排序服务', + 'summary' => '创建排序服务。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateRankingSystem'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateRankingSystem', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"versionId\\": \\"2018102321****\\",\\n \\"state\\": \\"Importing\\",\\n \\"gmtModified\\": 0,\\n \\"gmtCreate\\": 0,\\n \\"instanceId\\": \\"airec-cn-o400whm78004\\"\\n }\\n ],\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', - 'title' => '获取数据集列表', - 'summary' => '获取指定实例的数据集列表。', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"result\\": {\\n \\"Meta\\": {\\n \\"AutoDeploy\\": true,\\n \\"AutoDeployAuc\\": \\"0.3\\",\\n \\"Conf\\": \\"\\",\\n \\"PredictEngine\\": {\\n \\"ResourceId\\": \\"eas-oljkkdrggxhx7eizjd\\",\\n \\"Version\\": \\"1\\",\\n \\"ClusterId\\": \\"cn-shanghai\\"\\n },\\n \\"PredictEngineType\\": \\"EAS\\",\\n \\"ModelVersionName\\": \\"模型A_T1638964800000\\",\\n \\"FailMsg\\": \\"\\"\\n },\\n \\"ApplyStatus\\": \\"NOT_APPLIED\\",\\n \\"DeployStatus\\": \\"NOT_DEPLOYED\\",\\n \\"SceneIdList\\": [\\n 0\\n ],\\n \\"Name\\": \\"servicea\\",\\n \\"ModelTemplateId\\": \\"a-a-a\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<requestId>829F38F6-E2D6-4109-90A6-888160BD16C2</requestId>\\n<result>\\n <name>service-a</name>\\n <deployStatus>NOT_DEPLOYED</deployStatus>\\n <applyStatus>NOT_APPLIED</applyStatus>\\n <modelTemplateId>123465</modelTemplateId>\\n <modelTemplateName>排序模型A</modelTemplateName>\\n <sceneIdList>1</sceneIdList>\\n <sceneIdList>2</sceneIdList>\\n <sceneIdList>3</sceneIdList>\\n <meta>\\n <autoDeploy>true</autoDeploy>\\n <autoDeployAuc>0.9</autoDeployAuc>\\n <conf/>\\n <predictEngineType>EAS</predictEngineType>\\n <predictEngine>\\n <clusterId>cn-shanghai</clusterId>\\n <resourceId>eas-oljkkdrggxhx7eizjd</resourceId>\\n <version>v1</version>\\n </predictEngine>\\n </meta>\\n</result>","errorExample":""}]', ], - 'DeleteExperiment' => [ - 'summary' => '删除一个实验。', - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments/{experimentId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateRule' => [ + 'path' => '/v2/openapi/instances/{instanceId}/rules', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '18672', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '18668', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****'."\n", - ], - ], - [ - 'name' => 'sceneId', - 'in' => 'path', - 'schema' => [ - 'description' => '场景ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'sceneId', - ], - ], - [ - 'name' => 'experimentId', - 'in' => 'path', - 'schema' => [ - 'description' => '实验ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '12345', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'."\n"], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回参数。', + 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '返回参数。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', + 'description' => '返回结果详情。', + 'type' => 'object', + 'properties' => [ + 'ruleId' => ['description' => '规则ID。', 'type' => 'string', 'example' => '98493A14-D619-4E88-9F8D-108939817F9F'], + 'gmtModified' => ['description' => '最后修改时间。', 'type' => 'string', 'example' => '2020-04-27T06:38:28.000Z'], + 'status' => ['description' => '规则状态:'."\n" + ."\n" + .'- **DRAFT**:草稿状态'."\n" + ."\n\n" + .'- **EFFECTIVE**:生效状态'."\n" + ."\n" + .'- **PUBLISHING**:发布中状态'."\n" + ."\n" + .'- **INEFFECTIVE**:已失效状态'."\n" + ."\n" + .'- **FAILED**:未生效状态', 'type' => 'string', 'example' => 'EFFECTIVE'], + 'gmtCreate' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2020-04-27T06:38:28.000Z'], + ], ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情。', 'type' => 'string', 'example' => 'An internal server error occurred'], ], ], ], @@ -2989,347 +1733,304 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '删除实验', - ], - 'EnableExperiment' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/actions/enable-experiment', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '创建规则', + 'summary' => '创建推荐策略运营规则。', + 'requestParamsDescription' => '请求的body:'."\n" + .'| 参数 | 类型 | 是否必需 | 描述 |'."\n" + .'| --- | --- | --- | --- |'."\n" + .'| type | String | 是 | 规则类型<br />**SelectionRule:**选品规则<br />**OperationRule:**运营规则<br />**TopRule:** 置顶规则<br />**FixedPositionRule:**定坑规则 |'."\n" + .'| ruleMeta | Map | 是 | 规则的具体信息 |'."\n" + .'| └sceneId | String | 是 | 场景ID<br />如要修改全局运营规则,填global |'."\n" + .'| selectionParams | List | 是 | 选品规则参数 |'."\n" + .'| └selectType | Enum | 是 | **QUERY_ITEM_TYPE: **物品类型<br />**QUERY_CATEGORY:**物品类目<br />**QUERY_PUB_TIME :**发布时间<br />**QUERY_CHANNEL:** 渠道 |'."\n" + .'| └selectionOperation | Enum | 是 | **OPERATOR_HIGHER:**大于等于<br />**OPERATOR_LOWER:**小于等于<br />**_QUERY_VALUE_IN:** 包括_ |'."\n" + .'| └selectValue | String | 是 | 具体选择的选品规则(Json格式传递) |'."\n" + .'| operationParams | | | |'."\n" + .'| └modifyOperationType | List | 是 | ["DIVERSIFY","EXPOSURE"] 添加需要修改的 key |'."\n" + .'| └instanceDiversifyEnable | boolean | 是 | 是否使用实例级别的多样性规则 |'."\n" + .'| └instanceMixEnable | boolean | <br /> | 是否使用实例级别的混排规则 |'."\n" + .'| └operationType | Enum | 是 | MIX 排序<br />**DIVERSIFY:** 多样性<br />**EXPOSURE:**曝光 (只有全局规则支持曝光类型) |'."\n" + .'| └settings | MixSetting | 是 | |'."\n" + .'| └name | String | 是 | 混排类型 |'."\n" + .'| └value | int | 是 | 混排类型所占百分比 |'."\n" + .'| └diversifyType | Enum | 是 | **TYPE_SHOP:** 店铺打散<br />**TYPE_AUTHOR :**作者打散<br />**TYPE_CATEGORY:**类目打散<br />**TYPE_ITEM_TYPE:** 物品类型打散 |'."\n" + .'| └categoryIndex | int | 是 | 层级,没有填0 |'."\n" + .'| └window | int | 是 | 窗口 |'."\n" + .'| └status | boolean | 是 | 打散是否开启,**true**:开启,**false**:关闭|'."\n" + .'| └instanceExposureEnable | boolean | 是 | 是否使用实例级别的曝光配置,<br />默认true |'."\n" + .'| └exposureSettings | List | 是 | 曝光配置列表 |'."\n" + .'| └durationSeconds | Long | 是 | 曝光时间(秒级时间戳) |'."\n" + .'| └exposureType | String | 是 | 曝光类型:<br />**TYPE_EXPOSE**:曝光<br />**TYPE_CLICK**:点击<br />**TYPE_LOOP**:循环 |'."\n" + .'| └status | boolean | 是 | 曝光是否开启,**true**:开启,**false**:关闭|'."\n" + .'| └scenarioBased | boolean | 是 | 是否基于场景,**true**:是,**false**:否,基于实例|'."\n" + .'| └mtOrderSettings | MtOrderSetting | 是 | 相关度规则配置列表 |'."\n" + .'| └index | int | 是 | 该值为标识顺序以及符号,<br />例如:a=b=c:111,a=b>c:112,a>b>c:123 |'."\n" + .'| └value | String | 是 | 相关度规则,**TITLE**,**TAG**,**CHANNEL**,**AUTHOR** |'."\n" + .'| └settings | NewItemSetting | 是 | 新品定义规则配置 |'."\n" + .'| └selectType | String | 是 | QUERY_PUB_TIME,固定字符串 |'."\n" + .'| └selectionOperation | String | 是 | OPERATOR_LOWER,固定字符串 |'."\n" + .'| └selectValue | int | 是 | 新品定义的时间,秒级别时间戳|'."\n" + .'| └settings | SimilaritySetting | | 标题相似度规则 |'."\n" + .'| └windowSize | int | | 重复个数,标题相似度这个规则不需要修改 |'."\n" + .'| └repeatLimit | int | | 时间窗口 ,标题相似度这个规则不需要修改|'."\n" + .'| └type | String | | title,固定字符串 |'."\n" + .'| └status | boolean | | 标题相似度规则是否开启,**true**:是,**false**:否|'."\n" + .'| topParams | List | 是 | 置顶规则物品列表 |'."\n" + .'| └itemId | String | 是 | 物品ID|'."\n" + .'| └itemType | String | 是 | 物品类型 |'."\n" + .'| └title | String | 是 | 标题 |'."\n" + .'| └categoryPath | String | 是 | 类目 |'."\n" + .'| └channel | String | 是 | 渠道(内容/新闻) |'."\n" + .'| └author | String | 是 | 作者(内容/新闻) |'."\n" + .'| └brandId | String | 是 | 品牌(电商) |'."\n" + .'| └shopId | String | 是 | 店铺(电商) |'."\n" + .'| fixedPositionParams | List<Fixed> | 是 | 定坑规则列表 |'."\n" + .'| └positions | List<Long> | 是 | 位置列表,格式为[坑位ID1,坑位ID2] |'."\n" + .'| └selectType | String | 是 | 选品类型,固定值为QUERY_ITEM_ID_AND_TYPE |'."\n" + .'| └selectionOperation | String | 是 | 选品规则,固定值为QUERY_VALUE_IN |'."\n" + .'| └selectValue | String | 是 | 选品物品,格式为1:item;2:item |', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateRule', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"ruleId\\": \\"98493A14-D619-4E88-9F8D-108939817F9F\\",\\n \\"gmtModified\\": \\"2020-04-27T06:38:28.000Z\\",\\n \\"status\\": \\"EFFECTIVE\\",\\n \\"gmtCreate\\": \\"2020-04-27T06:38:28.000Z\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<0>\\n <Result>\\n <Status>DRAFT</Status>\\n <GmtCreate>2020-04-27T06:38:28.000Z</GmtCreate>\\n <GmtModified>2020-04-27T06:38:28.000Z</GmtModified>\\n <RuleId>98493A14-D619-4E88-9F8D-108939817F9F</RuleId>\\n <RuleMeta>\\n <RuleMetaType>SELECTION</RuleMetaType>\\n <SceneId>123</SceneId>\\n <PubState>PUBLISHING</PubState>\\n <SelectionParams>\\n <SelectType>QUERY_ITEM_TYPE</SelectType>\\n <SelectionOperation>OPERATOR_EQUAL</SelectionOperation>\\n <SelectValue>atrical,image</SelectValue>\\n </SelectionParams>\\n </RuleMeta>\\n </Result>\\n <RequestId>76E2C51D-A2D7-4775-9FD8-2AB84B2A0CEF</RequestId>\\n</0>\\n<1>\\n <Result>\\n <Status>DRAFT</Status>\\n <GmtCreate>2020-04-27T03:17:21.000Z</GmtCreate>\\n <GmtModified>2020-04-27T03:17:21.000Z</GmtModified>\\n <RuleId>123456789001122</RuleId>\\n <RuleMeta>\\n <RuleMetaType>OPERATION</RuleMetaType>\\n <SceneId>123</SceneId>\\n <PubState>PUBLISHING</PubState>\\n <OperationParams>\\n <OperationType>MIX</OperationType>\\n <Settings>\\n <Name>image</Name>\\n <Value>10</Value>\\n </Settings>\\n </OperationParams>\\n <OperationParams>\\n <OperationType>DIVERSIFY</OperationType>\\n <CategoryIndex>1</CategoryIndex>\\n <Window>2</Window>\\n <Status>true</Status>\\n <DiversifyType>TYPE_SHOP</DiversifyType>\\n </OperationParams>\\n <OperationParams>\\n <OperationType>EXPOSURE</OperationType>\\n <ExposureSettings>\\n <DurationSeconds>12340</DurationSeconds>\\n <Status>true</Status>\\n <ExposureType>TYPE_EXPOSE</ExposureType>\\n <ScenarioBased>true</ScenarioBased>\\n </ExposureSettings>\\n <ExposureSettings>\\n <DurationSeconds>12340000</DurationSeconds>\\n <Status>true</Status>\\n <ExposureType>TYPE_CLICK</ExposureType>\\n <ScenarioBased>true</ScenarioBased>\\n </ExposureSettings>\\n </OperationParams>\\n </RuleMeta>\\n </Result>\\n <RequestId>76E2C51D-A2D7-4775-9FD8-2AB84B2A0CEF</RequestId>\\n</1>","errorExample":""}]', + ], + 'CreateSampleFormatConfig' => [ + 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}/format-configs', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18695', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '117132', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'sceneId', + 'name' => 'sampleId', 'in' => 'path', - 'schema' => [ - 'description' => '场景ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'sceneId', - ], + 'schema' => ['title' => '样本id', 'description' => '样本ID。', 'type' => 'string', 'required' => true, 'example' => 'Sample1'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => ['description' => '请求Body参数。', 'type' => 'object', 'required' => false, 'example' => '{'."\n" + .' "type": "SampleFormatConfig",'."\n" + .' "meta": {'."\n" + .' "metaType": "SampleFormatConfig",'."\n" + .' "config": {'."\n" + .' "features": ['."\n" + .' {'."\n" + .' "feature_type": "id_feature",'."\n" + .' "value_type": "String",'."\n" + .' "hash_bucket_size": 100000,'."\n" + .' "expression": "user:user_id",'."\n" + .' "feature_name": "user_id",'."\n" + .' "embedding_dim": 16,'."\n" + .' "combiner": "mean",'."\n" + .' "group": "user"'."\n" + .' },'."\n" + .' {'."\n" + .' "feature_type": "id_feature",'."\n" + .' "value_type": "String",'."\n" + .' "hash_bucket_size": 100,'."\n" + .' "expression": "user:cms_segid",'."\n" + .' "feature_name": "cms_segid",'."\n" + .' "embedding_dim": 16,'."\n" + .' "combiner": "mean",'."\n" + .' "group": "user"'."\n" + .' },'."\n" + .' {'."\n" + .' "feature_type": "id_feature",'."\n" + .' "value_type": "String",'."\n" + .' "hash_bucket_size": 100,'."\n" + .' "expression": "user:cms_group_id",'."\n" + .' "feature_name": "cms_group_id",'."\n" + .' "embedding_dim": 16,'."\n" + .' "combiner": "mean",'."\n" + .' "group": "user"'."\n" + .' },'."\n" + .' {'."\n" + .' "feature_type": "combo_feature",'."\n" + .' "hash_bucket_size": 10,'."\n" + .' "expression": ['."\n" + .' "user:pvalue_level",'."\n" + .' "item:brand"'."\n" + .' ],'."\n" + .' "feature_name": "combo__pvalue_level_brand",'."\n" + .' "embedding_dim": 16,'."\n" + .' "group": "combo"'."\n" + .' }'."\n" + .' ]'."\n" + .' }'."\n" + .' }'."\n" + .'}'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回参数。', + 'title' => 'Schema of Response', + 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '返回参数。', - 'type' => 'boolean', - 'example' => 'True', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['title' => 'result', 'description' => '格式化配置详情。', 'type' => 'object', 'example' => '{'."\n" + .' "result": {'."\n" + .' "meta": {'."\n" + .' "metaType": "SampleFormatConfig",'."\n" + .' "sampleId": "Sample1",'."\n" + .' "config": {'."\n" + .' "features": ['."\n" + .' {'."\n" + .' "feature_type": "id_feature",'."\n" + .' "value_type": "String",'."\n" + .' "hash_bucket_size": 100000,'."\n" + .' "expression": "user:user_id",'."\n" + .' "feature_name": "user_id",'."\n" + .' "embedding_dim": 16,'."\n" + .' "combiner": "mean",'."\n" + .' "group": "user"'."\n" + .' }'."\n" + .' ]'."\n" + .' }'."\n" + .' },'."\n" + .' "status": "",'."\n" + .' "gmtCreate": "2021-12-07T08:58:19.000Z",'."\n" + .' "gmtModified": "2021-12-07T08:58:19.000Z",'."\n" + .' "sampleFormatConfigId": "99D369F6-0A73-4247-9E9F-F693A16CD6AC"'."\n" + .' }'."\n" + .'}'], ], ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + ], + 'title' => '创建样本格式化配置', + 'summary' => '创建样本格式化配置。', + 'responseParamsDescription' => '| 参数 | 类型 | 是否必需 | 描述 |'."\n" + .'| :--- | :--- | :--- | :--- |'."\n" + .'| meta|String|是|Meta源数据。|'."\n" + .'| metaType|String|是|SampleFormatConfig固定字符串。|'."\n" + .'| sampleId|String|是|样本ID。|'."\n" + .'| config|Object|是|配置列表。|'."\n" + .'| features|List|是|配置信息。|'."\n" + .'| feature_type|String|是|特征类型。|'."\n" + .'| value_type|String|否|返回值类型。|'."\n" + .'| hash_bucket_size|Integer|否|哈希桶大小。|'."\n" + .'| expression|String|否|特征表字段名数组。|'."\n" + .'| feature_name|String|否|特征名。|'."\n" + .'| embedding_dim|Integer|否|embedding维数。|'."\n" + .'| combiner|String|否|组合器名称。|'."\n" + .'| group|String|否|特征组名。|', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateSampleFormatConfig'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateSampleFormatConfig', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B\\"\\n}","type":"json"}]', - 'title' => '启用实验', - 'summary' => '启用实验功能。', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"result\\": {\\n \\"meta\\": {\\n \\"metaType\\": \\"SampleFormatConfig\\",\\n \\"sampleId\\": \\"Sample1\\",\\n \\"config\\": {\\n \\"features\\": [\\n {\\n \\"feature_type\\": \\"id_feature\\",\\n \\"value_type\\": \\"String\\",\\n \\"hash_bucket_size\\": 100000,\\n \\"expression\\": \\"user:user_id\\",\\n \\"feature_name\\": \\"user_id\\",\\n \\"embedding_dim\\": 16,\\n \\"combiner\\": \\"mean\\",\\n \\"group\\": \\"user\\"\\n }\\n ]\\n }\\n },\\n \\"status\\": \\"\\",\\n \\"gmtCreate\\": \\"2021-12-07T08:58:19.000Z\\",\\n \\"gmtModified\\": \\"2021-12-07T08:58:19.000Z\\",\\n \\"sampleFormatConfigId\\": \\"99D369F6-0A73-4247-9E9F-F693A16CD6AC\\"\\n }\\n }\\n}","type":"json"}]', ], - 'UpdateExperimentBasicInfo' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments/{experimentId}/basic', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateScene' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18742', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '18669', + 'abilityTreeNodes' => ['FEATUREairecX63J28'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'sceneId', - 'in' => 'path', - 'schema' => [ - 'description' => '场景ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'sceneId', - ], - ], - [ - 'name' => 'experimentId', - 'in' => 'path', - 'schema' => [ - 'description' => '实验ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '12345', - ], + 'name' => 'dryRun', + 'in' => 'query', + 'schema' => ['description' => '是否dryRun'."\n" + .'**true:**校验场景ID是否存在'."\n" + .'**false:**默认为false,创建场景。', 'type' => 'boolean', 'required' => false, 'docRequired' => true, 'example' => 'false'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回参数。', + 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '返回参数。', + 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ - 'base' => [ - 'description' => '分桶列表。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'onlineTime' => [ - 'description' => '实验上线时间。', - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'offlineTime' => [ - 'description' => '实验下线时间。', - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'description' => [ - 'description' => '实验备注。', - 'type' => 'string', - 'example' => 'demo1', - ], - 'status' => [ - 'description' => '实验状态。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Init**:未上线。'."\n" - ."\n" - .'- **Online**:上线。'."\n" - ."\n" - .'- **Finish**:推全。'."\n" - ."\n" - .'- **Offline**:下线。', - 'type' => 'string', - 'example' => '1', - ], - 'name' => [ - 'description' => '实验名称。', - 'type' => 'string', - 'example' => 'test', - ], - 'algorithms' => [ - 'description' => '实验参数列表。', - 'type' => 'array', - 'items' => [ - 'description' => '实验参数。', - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => '算法key。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **i2i**:i2i召回链路。'."\n" - ."\n" - .'- **u2x2i**:u2x2i召回链路。'."\n" - ."\n" - .'- **hot**:热门商品召回链路。'."\n" - ."\n" - .'- **new**:新品召回链路。'."\n" - ."\n" - .'- **embedding**:向量召回链路。'."\n" - ."\n" - .'- **mtorder**:召回链路优先级。'."\n" - ."\n" - .'- **rankservice**:排序服务。', - 'type' => 'string', - 'example' => 'I2I', - ], - 'config' => [ - 'description' => '子配置项列表。', - 'type' => 'array', - 'items' => [ - 'description' => '子配置项信息。', - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => '算法配置项key。', - 'type' => 'string', - 'example' => 'I2I', - ], - 'defaultValue' => [ - 'description' => '算法配置项默认值。', - 'type' => 'string', - 'example' => 'true', - ], - 'experimentValue' => [ - 'description' => '实验值。', - 'type' => 'string', - 'example' => '400', - ], - 'name' => [ - 'description' => '子配置名称。', - 'type' => 'string', - 'example' => 'i2i召回链路', - ], - ], - ], - ], - 'defaultValue' => [ - 'description' => '默认召回数量。', - 'type' => 'string', - 'example' => '400', - ], - 'type' => [ - 'description' => '算法类别。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **SYSTEM**:系统默认类型。'."\n" - ."\n" - .'- **CUSTOM**:用户自定义类型。', - 'type' => 'string', - 'example' => 'SYSTEM', - ], - 'experimentValue' => [ - 'description' => '实验定制值。', - 'type' => 'string', - 'example' => '400', - ], - 'hasConfig' => [ - 'description' => '是否有子配置项。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **true**:是。'."\n" - ."\n" - .'- **false**:否。', - 'type' => 'boolean', - 'example' => 'false', - ], - 'category' => [ - 'description' => '算法类目。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **RECALL**:召回。'."\n" - ."\n" - .'- **RANK**:排序。', - 'type' => 'string', - 'example' => '2', - ], - 'name' => [ - 'description' => '实验名称。', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - ], - 'buckets' => [ - 'description' => '分桶列表。', - 'type' => 'array', - 'items' => [ - 'description' => '分桶。', - 'type' => 'string', - 'example' => '["1","2","3"]', - ], - ], - 'experimentId' => [ - 'description' => '实验ID。', - 'type' => 'string', - 'example' => '12345', - ], + 'sceneId' => ['description' => '场景ID。', 'type' => 'string', 'example' => 'test'], + 'gmtModified' => ['description' => '最后修改时间。', 'type' => 'string', 'example' => '2020-04-23T06:08:48.000Z'], + 'status' => ['description' => '场景状态:'."\n" + .'- **DRAFT**:唤醒,重新发布'."\n" + .'- **PUBLISHING** :发布'."\n" + .'- **RUNNING**:运行中'."\n" + .'- **FAILED**:发布失败'."\n" + .'- **FROZEN** :冻结', 'type' => 'string', 'example' => 'DRAFT'], + 'gmtCreate' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2020-04-23T06:08:48.000Z'], ], ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B', - ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情。', 'type' => 'string', 'example' => 'An internal server error occurred'], ], ], ], @@ -3337,261 +2038,68 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"base\\": true,\\n \\"onlineTime\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"offlineTime\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"description\\": \\"demo1\\",\\n \\"status\\": \\"1\\",\\n \\"name\\": \\"test\\",\\n \\"algorithms\\": [\\n {\\n \\"key\\": \\"I2I\\",\\n \\"config\\": [\\n {\\n \\"key\\": \\"I2I\\",\\n \\"defaultValue\\": \\"true\\",\\n \\"experimentValue\\": \\"400\\",\\n \\"name\\": \\"i2i召回链路\\"\\n }\\n ],\\n \\"defaultValue\\": \\"400\\",\\n \\"type\\": \\"SYSTEM\\",\\n \\"experimentValue\\": \\"400\\",\\n \\"hasConfig\\": false,\\n \\"category\\": \\"2\\",\\n \\"name\\": \\"test\\"\\n }\\n ],\\n \\"buckets\\": [\\n \\"[\\\\\\"1\\\\\\",\\\\\\"2\\\\\\",\\\\\\"3\\\\\\"]\\"\\n ],\\n \\"experimentId\\": \\"12345\\"\\n },\\n \\"requestId\\": \\"E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '更新实验基本信息', - 'summary' => '更新实验基本信息。', - ], - 'UpdateExperimentConfig' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments/{experimentId}/config', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '创建场景', + 'summary' => '校验创建场景的信息。', + 'description' => '如需使用场景管理功能,不建议使用API进行操作。请使用控制台中“场景管理”功能,使用详情见官方文档<props="china">:[通过选投策略配置,快速搭建推荐场景](https://help.aliyun.com/document_detail/171790.html?spm=a2c4g.11186623.6.677.1f6a3483tNyo2M)</props>', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateScene', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"sceneId\\": \\"test\\",\\n \\"gmtModified\\": \\"2020-04-23T06:08:48.000Z\\",\\n \\"status\\": \\"DRAFT\\",\\n \\"gmtCreate\\": \\"2020-04-23T06:08:48.000Z\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<sceneId>123</sceneId>\\n<sceneMeta>\\n <sceneName>sceneTest</sceneName>\\n <description>xxx</description>\\n</sceneMeta>","errorExample":""}]', + ], + 'CreateUmengToken' => [ + 'path' => '/v2/openapi/umeng/token', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18743', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '148531', + 'abilityTreeNodes' => ['FEATUREairecY1ADIM'], ], 'parameters' => [ [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****'."\n", - ], - ], - [ - 'name' => 'sceneId', - 'in' => 'path', - 'schema' => [ - 'description' => '场景ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'sceneId', - ], - ], - [ - 'name' => 'experimentId', - 'in' => 'path', - 'schema' => [ - 'description' => '实验ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '12345', - ], + 'name' => 'code', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '返回参数。', - 'type' => 'object', - 'properties' => [ - 'base' => [ - 'description' => '是否为默认实验。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'onlineTime' => [ - 'description' => '实验上线时间。', - 'type' => 'string', - 'example' => '2020-12-07T06:47:30.000Z', - ], - 'offlineTime' => [ - 'description' => '实验下线/推全时间。', - 'type' => 'string', - 'example' => '2020-12-07T06:47:30.000Z', - ], - 'description' => [ - 'description' => '实验备注。', - 'type' => 'string', - 'example' => 'demo1', - ], - 'status' => [ - 'description' => '实验状态。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Init**:未上线。'."\n" - ."\n" - .'- **Online**:上线。'."\n" - ."\n" - .'- **Finish**:推全。'."\n" - ."\n" - .'- **Offline**:下线。', - 'type' => 'string', - 'example' => 'Online', - ], - 'name' => [ - 'description' => '实验名称。', - 'type' => 'string', - 'example' => 'I2I召回链路', - ], - 'algorithms' => [ - 'description' => '实验参数列表。', - 'type' => 'array', - 'items' => [ - 'description' => '实验参数。', - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => '算法key。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **I2I**:I2I召回链路。'."\n" - ."\n" - .'- **u2X2I**:U2X2I召回链路。'."\n" - ."\n" - .'- **hot**:热门商品召回链路。'."\n" - ."\n" - .'- **new**:新品召回链路。'."\n" - ."\n" - .'- **embedding**:向量召回链路。'."\n" - ."\n" - .'- **mtorder**:召回链路优先级。'."\n" - ."\n" - .'- **rankservice**:排序服务。', - 'type' => 'string', - 'example' => 'I2I', - ], - 'config' => [ - 'description' => '子配置项列表。', - 'type' => 'array', - 'items' => [ - 'description' => '子配置项信息。', - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => '算法配置项key。', - 'type' => 'string', - 'example' => 'I2I', - ], - 'defaultValue' => [ - 'description' => '算法配置项默认值。', - 'type' => 'string', - 'example' => 'true', - ], - 'experimentValue' => [ - 'description' => '实验值。', - 'type' => 'string', - 'example' => 'true', - ], - 'name' => [ - 'description' => '子配置名称。', - 'type' => 'string', - 'example' => 'xxx', - ], - ], - ], - ], - 'defaultValue' => [ - 'description' => '默认召回数量。', - 'type' => 'string', - 'example' => '400', - ], - 'type' => [ - 'description' => '算法类别。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **SYSTEM**:系统默认类型。'."\n" - ."\n" - .'- **CUSTOM**:用户自定义类型。', - 'type' => 'string', - 'example' => 'SYSTEM', - ], - 'experimentValue' => [ - 'description' => '实验值。', - 'type' => 'string', - 'example' => '300', - ], - 'hasConfig' => [ - 'description' => '是否有子配置项。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **true**:是'."\n" - ."\n" - .'- **false**:否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'category' => [ - 'description' => '算法类目。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **RECALL**:召回。'."\n" - ."\n" - .'- **RANK**:排序。', - 'type' => 'string', - 'example' => 'RECALL', - ], - 'name' => [ - 'description' => '实验名称。', - 'type' => 'string', - 'example' => 'xxx', - ], - ], - ], - ], - 'buckets' => [ - 'description' => '分桶列表,上线实验时该字段才生效。', - 'type' => 'array', - 'items' => [ - 'description' => '分桶信息。', - 'type' => 'string', - 'example' => 'userid', - ], - ], - 'experimentId' => [ - 'description' => '实验ID。', - 'type' => 'string', - 'example' => 'xxx', - ], - ], - ], - 'requestId' => [ - 'description' => '请求的ID。', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], + 'result' => ['type' => 'boolean'], + 'code' => ['type' => 'string'], + 'requestId' => ['type' => 'string'], + 'message' => ['type' => 'string'], ], ], ], @@ -3599,79 +2107,56 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"base\\": true,\\n \\"onlineTime\\": \\"2020-12-07T06:47:30.000Z\\",\\n \\"offlineTime\\": \\"2020-12-07T06:47:30.000Z\\",\\n \\"description\\": \\"demo1\\",\\n \\"status\\": \\"Online\\",\\n \\"name\\": \\"I2I召回链路\\",\\n \\"algorithms\\": [\\n {\\n \\"key\\": \\"I2I\\",\\n \\"config\\": [\\n {\\n \\"key\\": \\"I2I\\",\\n \\"defaultValue\\": \\"true\\",\\n \\"experimentValue\\": \\"true\\",\\n \\"name\\": \\"xxx\\"\\n }\\n ],\\n \\"defaultValue\\": \\"400\\",\\n \\"type\\": \\"SYSTEM\\",\\n \\"experimentValue\\": \\"300\\",\\n \\"hasConfig\\": true,\\n \\"category\\": \\"RECALL\\",\\n \\"name\\": \\"xxx\\"\\n }\\n ],\\n \\"buckets\\": [\\n \\"userid\\"\\n ],\\n \\"experimentId\\": \\"xxx\\"\\n },\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '更新实验配置', - 'summary' => '更新一个实验配置信息。', - ], - 'UpdateExperimentStatus' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments/{experimentId}/status', - 'methods' => [ - 'put', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateUmengToken', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": true,\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"message\\": \\"\\"\\n}","type":"json"}]', + ], + 'DecribeRankingModel' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-models/{rankingModelId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18744', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18670', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'sceneId', - 'in' => 'path', - 'schema' => [ - 'description' => '场景ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'sceneId', - ], - ], - [ - 'name' => 'experimentId', + 'name' => 'rankingModelId', 'in' => 'path', - 'schema' => [ - 'description' => '实验ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['description' => '排序模型ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'testRankingId'], ], ], 'responses' => [ @@ -3684,176 +2169,15 @@ 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'base' => [ - 'description' => '是否为默认实验。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'onlineTime' => [ - 'description' => '实验上线时间。', - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'offlineTime' => [ - 'description' => '实验下线时间。', - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'description' => [ - 'description' => '实验备注。', - 'type' => 'string', - 'example' => 'xxx', - ], - 'status' => [ - 'description' => '实验状态。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Init**:未上线。'."\n" - ."\n" - .'- **Online**:上线。'."\n" - ."\n" - .'- **Finish**:推全。'."\n" - ."\n" - .'- **Offline**:下线。', - 'type' => 'string', - 'example' => 'init', - ], - 'name' => [ - 'description' => '实验名称。', - 'type' => 'string', - 'example' => 'test', - ], - 'algorithms' => [ - 'description' => '实验参数列表。', - 'type' => 'array', - 'items' => [ - 'description' => '实验参数信息。', - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => '算法key。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **I2I**:I2I召回链路。'."\n" - ."\n" - .'- **u2X2I**:U2X2I召回链路。'."\n" - ."\n" - .'- **hot**:热门商品召回链路。'."\n" - ."\n" - .'- **new**:新品召回链路。'."\n" - ."\n" - .'- **embedding**:向量召回链路。'."\n" - ."\n" - .'- **mtorder**:召回链路优先级。'."\n" - ."\n" - .'- **rankservice**:排序服务。', - 'type' => 'string', - 'example' => 'hot', - ], - 'config' => [ - 'description' => '子配置项列表。', - 'type' => 'array', - 'items' => [ - 'description' => '子配置项信息。', - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => '算法配置项key。', - 'type' => 'string', - 'example' => 'hot', - ], - 'defaultValue' => [ - 'description' => '算法配置项默认值。', - 'type' => 'string', - 'example' => 'xxx', - ], - 'experimentValue' => [ - 'description' => '实验值。', - 'type' => 'string', - 'example' => 'xxx', - ], - 'name' => [ - 'description' => '子配置名称。', - 'type' => 'string', - 'example' => 'xxx', - ], - ], - ], - ], - 'defaultValue' => [ - 'description' => '默认召回数量。', - 'type' => 'string', - 'example' => 'swing', - ], - 'type' => [ - 'description' => '算法类别。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **SYSTEM**:系统默认类型。'."\n" - ."\n" - .'- **CUSTOM**:用户自定义类型。', - 'type' => 'string', - 'example' => 'SYSTEM', - ], - 'experimentValue' => [ - 'description' => '实验值。', - 'type' => 'string', - 'example' => 'xxx', - ], - 'hasConfig' => [ - 'description' => '是否有子配置项。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **true**:是'."\n" - ."\n" - .'- **false**:否', - 'type' => 'boolean', - 'example' => 'false', - ], - 'category' => [ - 'description' => '算法类目。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **RECALL**:召回。'."\n" - ."\n" - .'- **RANK**:排序。', - 'type' => 'string', - 'example' => 'RECALL', - ], - 'name' => [ - 'description' => '实验名称。', - 'type' => 'string', - 'example' => 'xxx', - ], - ], - ], - ], - 'buckets' => [ - 'description' => '分桶列表,上线实验时该字段才生效。', - 'type' => 'array', - 'items' => [ - 'description' => '分桶信息。', - 'type' => 'string', - 'example' => '["1"、"2"、"3"]', - ], - ], - 'experimentId' => [ - 'description' => '实验ID。', - 'type' => 'string', - 'example' => '123', - ], + 'rankingModelId' => ['description' => '排序模型ID。', 'type' => 'string', 'example' => 'testRankingId'], + 'gmtModified' => ['description' => '最后修改时间的UTC时间。', 'type' => 'string', 'example' => '2020-04-27T06:38:28.000Z'], + 'gmtCreate' => ['description' => '创建的UTC时间。', 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'meta' => ['description' => '模型Meta原信息。', 'type' => 'object'], ], ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B', - ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'successful'], ], ], ], @@ -3861,68 +2185,58 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"base\\": true,\\n \\"onlineTime\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"offlineTime\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"description\\": \\"xxx\\",\\n \\"status\\": \\"init\\",\\n \\"name\\": \\"test\\",\\n \\"algorithms\\": [\\n {\\n \\"key\\": \\"hot\\",\\n \\"config\\": [\\n {\\n \\"key\\": \\"hot\\",\\n \\"defaultValue\\": \\"xxx\\",\\n \\"experimentValue\\": \\"xxx\\",\\n \\"name\\": \\"xxx\\"\\n }\\n ],\\n \\"defaultValue\\": \\"swing\\",\\n \\"type\\": \\"SYSTEM\\",\\n \\"experimentValue\\": \\"xxx\\",\\n \\"hasConfig\\": false,\\n \\"category\\": \\"RECALL\\",\\n \\"name\\": \\"xxx\\"\\n }\\n ],\\n \\"buckets\\": [\\n \\"[\\\\\\"1\\\\\\"、\\\\\\"2\\\\\\"、\\\\\\"3\\\\\\"]\\"\\n ],\\n \\"experimentId\\": \\"123\\"\\n },\\n \\"requestId\\": \\"E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateExperimentStatusResponse>\\n <result>\\n <experimentId>12345</experimentId>\\n <name>实验1</name>\\n <description>demo1</description>\\n <buckets>1</buckets>\\n <buckets>2</buckets>\\n <buckets>3</buckets>\\n <status>init</status>\\n <base>true</base>\\n <onlineTime>2020-11-11t09:47:43.000z</onlineTime>\\n <offlineTime/>\\n <algorithms>\\n <key>i2i</key>\\n <name>i2i召回链路</name>\\n <category>recall</category>\\n <type>system</type>\\n <defaultValue>true</defaultValue>\\n <experimentValue/>\\n <hasConfig>true</hasConfig>\\n <config>\\n <key>i2i-truncedquantity</key>\\n <name>截断数量</name>\\n <defaultValue>400</defaultValue>\\n <experimentValue>300</experimentValue>\\n </config>\\n <config>\\n <key>i2i-algo</key>\\n <name>i2i算法</name>\\n <defaultValue>swing;commoni2i;pcategory;scategory</defaultValue>\\n <experimentValue/>\\n </config>\\n </algorithms>\\n <algorithms>\\n <key>mtorder</key>\\n <name>召回链路优先级</name>\\n <type>system</type>\\n <category>recall</category>\\n <defaultValue>i2i;u2x2i;new;hot;embedding;embedding</defaultValue>\\n <experimentValue/>\\n <hasConfig>false</hasConfig>\\n </algorithms>\\n </result>\\n <requestId>e3d6fe3b-b7c2-43da-9a13-5ea837aced9b</requestId>\\n</UpdateExperimentStatusResponse>","errorExample":""}]', - 'title' => '更新实验状态', - 'summary' => '更新实验状态。', - ], - 'DescribeBaseExperiment' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/base-experiment', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取排序模型', + 'summary' => '获取排序模型。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DecribeRankingModel', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"rankingModelId\\": \\"testRankingId\\",\\n \\"gmtModified\\": \\"2020-04-27T06:38:28.000Z\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"meta\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"message\\": \\"successful\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'DeleteDataSet' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dataSets/{versionId}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', - 'deprecated' => false, + 'operationType' => 'write', 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18676', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '18671', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'sceneId', + 'name' => 'versionId', 'in' => 'path', - 'schema' => [ - 'description' => '场景ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'sceneId', - ], + 'schema' => ['description' => '版本ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '2018102321****'], ], ], 'responses' => [ @@ -3935,176 +2249,32 @@ 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'base' => [ - 'description' => '是否为默认实验。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'onlineTime' => [ - 'description' => '实验上线时间。', - 'type' => 'string', - 'example' => '2020-12-07T06:47:30.000Z', - ], - 'offlineTime' => [ - 'description' => '实验下线/推全时间。', - 'type' => 'string', - 'example' => '2020-12-07T06:47:30.000Z', - ], - 'description' => [ - 'description' => '实验备注。', - 'type' => 'string', - 'example' => 'xxx', - ], - 'status' => [ - 'description' => '实验状态。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Init**:未上线。'."\n" - ."\n" - .'- **Online**:上线。'."\n" - ."\n" - .'- **Finish**:推全。'."\n" - ."\n" - .'- **Offline**:下线。', - 'type' => 'string', - 'example' => 'Init', - ], - 'name' => [ - 'description' => '实验名称。', - 'type' => 'string', - 'example' => '测试实验', - ], - 'algorithms' => [ - 'description' => '实验参数列表。', - 'type' => 'array', - 'items' => [ - 'description' => '实验参数信息。', - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => '算法key。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **I2I**:I2I召回链路。'."\n" - ."\n" - .'- **u2X2I**:U2X2I召回链路。'."\n" - ."\n" - .'- **hot**:热门商品召回链路。'."\n" - ."\n" - .'- **new**:新品召回链路。'."\n" - ."\n" - .'- **embedding**:向量召回链路。'."\n" - ."\n" - .'- **mtorder**:召回链路优先级。'."\n" - ."\n" - .'- **rankservice**:排序服务。', - 'type' => 'string', - 'example' => 'I2I', - ], - 'config' => [ - 'description' => '子配置项列表。', - 'type' => 'array', - 'items' => [ - 'description' => '子配置项信息。', - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => '算法配置项key。', - 'type' => 'string', - 'example' => 'I2I', - ], - 'defaultValue' => [ - 'description' => '算法配置项默认值。', - 'type' => 'string', - 'example' => 'true', - ], - 'experimentValue' => [ - 'description' => '实验值。', - 'type' => 'string', - 'example' => '400', - ], - 'name' => [ - 'description' => '子配置名称。', - 'type' => 'string', - 'example' => 'xxx', - ], - ], - ], - ], - 'defaultValue' => [ - 'description' => '默认召回数量。', - 'type' => 'string', - 'example' => 'true', - ], - 'type' => [ - 'description' => '算法类别。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **SYSTEM**:系统默认类型。'."\n" - ."\n" - .'- **CUSTOM**:用户自定义类型。', - 'type' => 'string', - 'example' => 'SYSTEM', - ], - 'experimentValue' => [ - 'description' => '实验值。', - 'type' => 'string', - 'example' => '400', - ], - 'hasConfig' => [ - 'description' => '是否有子配置项。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **true**:是'."\n" - ."\n" - .'- **false**:否', - 'type' => 'boolean', - 'example' => 'false', - ], - 'category' => [ - 'description' => '算法类目。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **RECALL**:召回。'."\n" - ."\n" - .'- **RANK**:排序。', - 'type' => 'string', - 'example' => 'RECALL', - ], - 'name' => [ - 'description' => '实验名称。', - 'type' => 'string', - 'example' => 'xxx', - ], - ], - ], - ], - 'buckets' => [ - 'description' => '分桶列表,上线实验时该字段才生效。', - 'type' => 'array', - 'items' => [ - 'description' => '分桶信息。', - 'type' => 'string', - 'example' => '[1,2,3]', - ], - ], - 'experimentId' => [ - 'description' => '实验ID。', - 'type' => 'string', - 'example' => 'xxx', - ], + 'versionId' => ['description' => '版本号ID。', 'type' => 'string', 'example' => '2018102321****'], + 'state' => ['description' => 'State状态类型。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Importing**:数据导入中。'."\n" + ."\n" + .'- **DataSuccess**:数据导入成功。'."\n" + ."\n" + .'- **DataFailed**:数据导入失败,终态。'."\n" + ."\n" + .'- **Training**:训练中。'."\n" + ."\n" + .'- **Success**:成功,终态。'."\n" + ."\n" + .'- **Failed**:失败,终态。'."\n" + ."\n" + .'- **Stopped**:终止,终态。', 'type' => 'string', 'example' => 'Importing'], + 'gmtModified' => ['description' => '最后修改数据源的时间。'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '2018-12-06T11:17:49.000Z'], + 'gmtCreate' => ['description' => '创建数据源的时间。'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '2018-12-07T02:24:26.000Z'], + 'instanceId' => ['description' => '实例ID。'."\n", 'type' => 'string', 'example' => 'airec-cn-o400whm78004'], ], ], - 'requestId' => [ - 'description' => '请求的ID。', - 'type' => 'string', - 'example' => 'A74E3FB7-406C-5CBB-833E-E49308B5DC05', - ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'success'], ], ], ], @@ -4112,79 +2282,64 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"base\\": true,\\n \\"onlineTime\\": \\"2020-12-07T06:47:30.000Z\\",\\n \\"offlineTime\\": \\"2020-12-07T06:47:30.000Z\\",\\n \\"description\\": \\"xxx\\",\\n \\"status\\": \\"Init\\",\\n \\"name\\": \\"测试实验\\",\\n \\"algorithms\\": [\\n {\\n \\"key\\": \\"I2I\\",\\n \\"config\\": [\\n {\\n \\"key\\": \\"I2I\\",\\n \\"defaultValue\\": \\"true\\",\\n \\"experimentValue\\": \\"400\\",\\n \\"name\\": \\"xxx\\"\\n }\\n ],\\n \\"defaultValue\\": \\"true\\",\\n \\"type\\": \\"SYSTEM\\",\\n \\"experimentValue\\": \\"400\\",\\n \\"hasConfig\\": false,\\n \\"category\\": \\"RECALL\\",\\n \\"name\\": \\"xxx\\"\\n }\\n ],\\n \\"buckets\\": [\\n \\"[1,2,3]\\"\\n ],\\n \\"experimentId\\": \\"xxx\\"\\n },\\n \\"requestId\\": \\"A74E3FB7-406C-5CBB-833E-E49308B5DC05\\"\\n}","type":"json"}]', - 'title' => '获取基础实验', - 'summary' => '获取基础实验。', + 'title' => '删除指定实例的指定数据集版本', + 'summary' => '删除指定实例的指定数据集版本。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airec:DeleteDataSet', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"versionId\\": \\"2018102321****\\",\\n \\"state\\": \\"Importing\\",\\n \\"gmtModified\\": 0,\\n \\"gmtCreate\\": 0,\\n \\"instanceId\\": \\"airec-cn-o400whm78004\\"\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', ], - 'DescribeExperiment' => [ + 'DeleteExperiment' => [ 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments/{experimentId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18679', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '18672', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'."\n"], ], [ 'name' => 'sceneId', 'in' => 'path', - 'schema' => [ - 'description' => '场景ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'sceneId', - ], + 'schema' => ['description' => '场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'sceneId'], ], [ 'name' => 'experimentId', 'in' => 'path', - 'schema' => [ - 'description' => '实验ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '23245', - ], + 'schema' => ['description' => '实验ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '12345'], ], ], 'responses' => [ @@ -4193,180 +2348,8 @@ 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '返回参数。', - 'type' => 'object', - 'properties' => [ - 'base' => [ - 'description' => '是否为默认实验。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'onlineTime' => [ - 'description' => '实验上线时间。', - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'offlineTime' => [ - 'description' => '实验下线时间。', - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'description' => [ - 'description' => '实验备注。', - 'type' => 'string', - 'example' => 'xxx', - ], - 'status' => [ - 'description' => '实验状态。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Init**:未上线。'."\n" - ."\n" - .'- **Online**:上线。'."\n" - ."\n" - .'- **Finish**:推全。'."\n" - ."\n" - .'- **Offline**:下线。', - 'type' => 'string', - 'example' => '1', - ], - 'name' => [ - 'description' => '实验名称。', - 'type' => 'string', - 'example' => 'test', - ], - 'algorithms' => [ - 'description' => '实验参数列表。', - 'type' => 'array', - 'items' => [ - 'description' => '实验参数信息。', - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => '算法key。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **I2I**:I2I召回链路。'."\n" - ."\n" - .'- **u2X2I**:U2X2I召回链路。'."\n" - ."\n" - .'- **hot**:热门商品召回链路。'."\n" - ."\n" - .'- **new**:新品召回链路。'."\n" - ."\n" - .'- **embedding**:向量召回链路。'."\n" - ."\n" - .'- **mtorder**:召回链路优先级。'."\n" - ."\n" - .'- **rankservice**:排序服务。', - 'type' => 'string', - 'example' => 'I2I', - ], - 'config' => [ - 'description' => '子配置项列表。', - 'type' => 'array', - 'items' => [ - 'description' => '子配置项信息。', - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => '算法配置项key。', - 'type' => 'string', - 'example' => 'I2I', - ], - 'defaultValue' => [ - 'description' => '算法配置项默认值。', - 'type' => 'string', - 'example' => 'true', - ], - 'experimentValue' => [ - 'description' => '实验值。', - 'type' => 'string', - 'example' => '400', - ], - 'name' => [ - 'description' => '子配置名称。', - 'type' => 'string', - 'example' => 'xxx', - ], - ], - ], - ], - 'defaultValue' => [ - 'description' => '默认召回数量。', - 'type' => 'string', - 'example' => 'true', - ], - 'type' => [ - 'description' => '算法类别。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **SYSTEM**:系统默认类型。'."\n" - ."\n" - .'- **CUSTOM**:用户自定义类型。', - 'type' => 'string', - 'example' => 'SYSTEM', - ], - 'experimentValue' => [ - 'description' => '实验值。', - 'type' => 'string', - 'example' => '空', - ], - 'hasConfig' => [ - 'description' => '是否有子配置项。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **true**:是'."\n" - ."\n" - .'- **false**:否', - 'type' => 'boolean', - 'example' => 'false', - ], - 'category' => [ - 'description' => '算法类目。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **RECALL**:召回。'."\n" - ."\n" - .'- **RANK**:排序。', - 'type' => 'string', - 'example' => '2', - ], - 'name' => [ - 'description' => '实验名称。', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - ], - 'buckets' => [ - 'description' => '分桶列表,上线实验时该字段才生效。', - 'type' => 'array', - 'items' => [ - 'description' => '分桶信息。', - 'type' => 'string', - 'example' => '["1","2","3"]', - ], - ], - 'experimentId' => [ - 'description' => '实验ID。', - 'type' => 'string', - 'example' => '12345', - ], - ], - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B', - ], + 'result' => ['description' => '返回参数。', 'type' => 'boolean', 'example' => 'true'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], ], ], ], @@ -4374,167 +2357,139 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"base\\": true,\\n \\"onlineTime\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"offlineTime\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"description\\": \\"xxx\\",\\n \\"status\\": \\"1\\",\\n \\"name\\": \\"test\\",\\n \\"algorithms\\": [\\n {\\n \\"key\\": \\"I2I\\",\\n \\"config\\": [\\n {\\n \\"key\\": \\"I2I\\",\\n \\"defaultValue\\": \\"true\\",\\n \\"experimentValue\\": \\"400\\",\\n \\"name\\": \\"xxx\\"\\n }\\n ],\\n \\"defaultValue\\": \\"true\\",\\n \\"type\\": \\"SYSTEM\\",\\n \\"experimentValue\\": \\"空\\",\\n \\"hasConfig\\": false,\\n \\"category\\": \\"2\\",\\n \\"name\\": \\"test\\"\\n }\\n ],\\n \\"buckets\\": [\\n \\"[\\\\\\"1\\\\\\",\\\\\\"2\\\\\\",\\\\\\"3\\\\\\"]\\"\\n ],\\n \\"experimentId\\": \\"12345\\"\\n },\\n \\"requestId\\": \\"E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => 'DescribeExperiment', - 'summary' => '查看一个实验详情。', - ], - 'DescribeExperimentEnv' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiment-env', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '删除实验', + 'summary' => '删除一个实验。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airec:DeleteExperiment', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'DeleteExtraDataSource' => [ + 'path' => '/v2/openapi/instances/{instanceId}/extra-data-sources/{type}/{dataSourceId}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18680', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '117109', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'sceneId', + 'name' => 'type', 'in' => 'path', - 'schema' => [ - 'description' => '场景ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'sceneId', - ], + 'schema' => ['title' => '数据源类型', 'description' => '数据源类型。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **UserCustomDataSource**:用户数据源。'."\n" + ."\n" + .'- **ItemCustomDataSource**:物品数据源。'."\n" + ."\n" + .'- **BehaviorCustomDataSource**:行为数据源。', 'type' => 'string', 'required' => true, 'example' => 'UserCustomDataSource'], + ], + [ + 'name' => 'dataSourceId', + 'in' => 'path', + 'schema' => ['title' => '数据源id', 'description' => '数据源ID。', 'type' => 'string', 'required' => true, 'example' => '123'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => 'Schema of Response', 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '返回参数。', - 'type' => 'object', - 'properties' => [ - 'bucketCount' => [ - 'description' => '分桶数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'divideType' => [ - 'description' => '分桶方式UID/IMEI。', - 'type' => 'string', - 'example' => 'UID', - ], - ], - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['description' => '返回参数。', '$ref' => '#/components/schemas/ExtraDataSource'], ], ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + ], + 'title' => '删除数据源', + 'summary' => '删除数据源。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteExtraDataSource'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airec:DeleteExtraDataSource', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"bucketCount\\": 10,\\n \\"divideType\\": \\"UID\\"\\n },\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '获取实验环境', - 'summary' => '查看实验场景信息。', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"Status\\": \\"Ready 待应用;Online 已应用;Failed失败\\",\\n \\"Meta\\": {\\n \\"Internal\\": true,\\n \\"MetaType\\": \\"ExtraDataSource\\",\\n \\"ProjectName\\": \\"test_project\\",\\n \\"TableName\\": \\"test_table\\",\\n \\"Type\\": \\"ODPS\\",\\n \\"UpdateFrequency\\": 86400\\n },\\n \\"Type\\": \\"UserCustomDataSource\\\\\\\\ItemCustomDataSource\\\\\\\\\\\\nBehaviorCustomDataSource\\\\\\\\\\\\nSampleCustomDataSource\\",\\n \\"GmtCreate\\": \\"2021-12-07T13:26:29.000Z\\",\\n \\"GmtModified\\": \\"2021-12-07T13:26:29.000Z\\",\\n \\"DataSourceId\\": \\"E01D574F-ABD0-4C55-A5E3-8D24FD8D42EA\\"\\n }\\n}","type":"json"}]', ], - 'DescribeExperimentEnvProgress' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiment-progress', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DeleteFilteringAlgorithm' => [ + 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18681', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '18673', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'sceneId', + 'name' => 'algorithmId', 'in' => 'path', - 'schema' => [ - 'description' => '场景ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'sceneId', - ], + 'schema' => ['description' => '指定的召回ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '1'], ], ], 'responses' => [ @@ -4544,35 +2499,61 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '返回参数。', + 'description' => '召回表信息。', 'type' => 'object', 'properties' => [ - 'status' => [ - 'description' => '开通状态。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **NotOpen**:未开通。'."\n" - ."\n" - .'- **Processing**:开通中。'."\n" - ."\n" - .'- **Running**:运行中。', - 'type' => 'string', - 'example' => 'Processing', - ], - 'progress' => [ - 'description' => '执行进度,范围为0-100,100为执行结束。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '80', + 'gmtModified' => ['description' => '最后更新时间,单位为UTC时间。', 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'status' => ['description' => '表示单签召回表的状态。 '."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Draft**:草稿。'."\n" + ."\n" + .'- **Running**:运行中。'."\n" + ."\n" + .'- **Offline**:已下线。'."\n" + ."\n" + .'- **Deleted**:已删除。', 'type' => 'string', 'example' => 'Running'], + 'gmtCreate' => ['description' => '创建时间的UTC时间。', 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'algorithmId' => ['description' => '指定的召回ID。', 'type' => 'string', 'example' => '123'], + 'meta' => [ + 'description' => 'Meta源数据。', + 'type' => 'object', + 'properties' => [ + 'taskId' => ['description' => '任务ID。', 'type' => 'string', 'example' => 'test01'], + 'metaType' => ['description' => '算法类型,当前只支持ODPS。', 'type' => 'string', 'example' => 'odps'], + 'type' => ['description' => '数据源类型,当前只支持ODPS。'."\n", 'type' => 'string', 'example' => 'ODPS'], + 'extInfo' => [ + 'description' => '召回表类型包含内容。', + 'type' => 'object', + 'properties' => [ + 'kvSeparator' => ['description' => 'kv分隔符。', 'type' => 'string', 'example' => ';'], + 'itemSeparator' => ['description' => 'Item分隔符。', 'type' => 'string', 'example' => ';'], + ], + ], + 'category' => ['description' => '召回类别。', 'type' => 'string', 'example' => 'i2i'], + 'threshold' => [ + 'description' => 'Table的阈值信息。', + 'type' => 'object', + 'properties' => [ + 'sourceDataSizeThreshold' => ['description' => '源数据大小波动阈值。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'sourceDataRecordThreshold' => ['description' => '源数据条目数波动阈值。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'indexSizeThreshold' => ['description' => '索引大小波动阈值。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'indexLossThreshold' => ['description' => '索引丢失阈值。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + ], + ], + 'tableName' => ['description' => 'ODPS召回表名称。', 'type' => 'string', 'example' => 'table01'], + 'clusterId' => ['description' => '集群ID。', 'type' => 'string', 'example' => '1001'], + 'cron' => ['description' => '定时调度任务Cron。', 'type' => 'string', 'example' => '0 0/12 0 * *'], + 'description' => ['description' => '描述。', 'type' => 'string', 'example' => '训练任务'], + 'projectName' => ['description' => 'ODPS中的ProjectName。', 'type' => 'string', 'example' => 'name01'], + 'algorithmName' => ['description' => '召回名称。', 'type' => 'string', 'example' => 'user'], + 'cronEnabled' => ['description' => '是否开启定时任务。', 'type' => 'boolean', 'example' => 'true'], + ], ], ], ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B', - ], + 'requestId' => ['description' => '请求的ID。', 'type' => 'string', 'example' => '936BE457-5D14-4DBD-85AE-176F7BA8D96D'], ], ], ], @@ -4580,181 +2561,118 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"status\\": \\"Processing\\",\\n \\"progress\\": 80\\n },\\n \\"requestId\\": \\"E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B\\"\\n}","type":"json"}]', - 'title' => '获取实验环境进度', - 'summary' => '查看实验场景开通状态。', - ], - 'ListExperiments' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '删除召回表', + 'summary' => '删除指定的召回配置及相关索引表信息。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airec:DeleteFilteringAlgorithm', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"gmtModified\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"status\\": \\"Running\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"algorithmId\\": \\"123\\",\\n \\"meta\\": {\\n \\"taskId\\": \\"test01\\",\\n \\"metaType\\": \\"odps\\",\\n \\"type\\": \\"ODPS\\",\\n \\"extInfo\\": {\\n \\"kvSeparator\\": \\";\\",\\n \\"itemSeparator\\": \\";\\"\\n },\\n \\"category\\": \\"i2i\\",\\n \\"threshold\\": {\\n \\"sourceDataSizeThreshold\\": 1,\\n \\"sourceDataRecordThreshold\\": 1,\\n \\"indexSizeThreshold\\": 1,\\n \\"indexLossThreshold\\": 1\\n },\\n \\"tableName\\": \\"table01\\",\\n \\"clusterId\\": \\"1001\\",\\n \\"cron\\": \\"0 0/12 0 * *\\",\\n \\"description\\": \\"训练任务\\",\\n \\"projectName\\": \\"name01\\",\\n \\"algorithmName\\": \\"user\\",\\n \\"cronEnabled\\": true\\n }\\n },\\n \\"requestId\\": \\"936BE457-5D14-4DBD-85AE-176F7BA8D96D\\"\\n}","errorExample":""},{"type":"xml","example":"<algorithmId>abc</algorithmId>\\n<gmtCreate>2018-12-07t02:24:26.000z</gmtCreate>\\n<gmtModified>2018-12-07t02:24:26.000z</gmtModified>\\n<meta>\\n <algorithmName>user</algorithmName>\\n <category>i2i</category>\\n <cron>00***</cron>\\n <extInfo>\\n <itemSeparator>,</itemSeparator>\\n <kvseparator>;</kvseparator>\\n </extInfo>\\n <fields>\\n <dest>triggeritemId</dest>\\n <source>abc</source>\\n </fields>\\n <fields>\\n <dest>targeitemId</dest>\\n <source>def</source>\\n </fields>\\n <fields>\\n <dest>weight</dest>\\n <source>ade</source>\\n </fields>\\n <partition/>\\n <projectName>openrecGray</projectName>\\n <tableName>userFakeAna</tableName>\\n <type>odps</type>\\n</meta>","errorExample":""}]', + ], + 'DeleteFlowControlTask' => [ + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18702', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '154373', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'sceneId', + 'name' => 'taskId', 'in' => 'path', - 'schema' => [ - 'description' => '场景ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'sceneId', - ], + 'schema' => ['description' => '流量调控任务ID。', 'type' => 'string', 'required' => false, 'example' => '1661506482'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => 'Schema of Response', 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '返回参数。', - 'type' => 'array', - 'items' => [ - 'description' => '返回参数。', - 'type' => 'object', - 'properties' => [ - 'base' => [ - 'description' => '是否为默认实验。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'onlineTime' => [ - 'description' => '实验上线时间。', - 'type' => 'string', - 'example' => '2020-12-07T06:47:30.000Z', - ], - 'offlineTime' => [ - 'description' => '实验下线时间。', - 'type' => 'string', - 'example' => '2020-12-07T06:47:30.000Z', - ], - 'description' => [ - 'description' => '实验备注。', - 'type' => 'string', - 'example' => 'xxx', - ], - 'status' => [ - 'description' => '实验状态。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Init**:未上线。'."\n" - ."\n" - .'- **Online**:上线。'."\n" - ."\n" - .'- **Finish**:推全。'."\n" - ."\n" - .'- **Offline**:下线。', - 'type' => 'string', - 'example' => 'init', - ], - 'name' => [ - 'description' => '实验名称。', - 'type' => 'string', - 'example' => 'test', - ], - 'buckets' => [ - 'description' => '分桶列表,上线实验时该字段才生效。', - 'type' => 'array', - 'items' => [ - 'description' => '分桶信息。', - 'type' => 'string', - 'example' => '[1,2,3]', - ], - ], - 'experimentId' => [ - 'description' => '实验ID。', - 'type' => 'string', - 'example' => '123', - ], - ], - ], - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '6E427B10-30FC-1873-922F-FC176D3398D4'], + 'result' => ['description' => '返回参数。', 'type' => 'boolean', 'example' => 'true'], ], ], ], - '5XX' => [ + 500 => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], + 'code' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"base\\": true,\\n \\"onlineTime\\": \\"2020-12-07T06:47:30.000Z\\",\\n \\"offlineTime\\": \\"2020-12-07T06:47:30.000Z\\",\\n \\"description\\": \\"xxx\\",\\n \\"status\\": \\"init\\",\\n \\"name\\": \\"test\\",\\n \\"buckets\\": [\\n \\"[1,2,3]\\"\\n ],\\n \\"experimentId\\": \\"123\\"\\n }\\n ],\\n \\"requestId\\": \\"E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B\\"\\n}","errorExample":""},{"type":"xml","example":"<result>\\n <experimentId>12345</experimentId>\\n <name>实验1</name>\\n <description>demo1</description>\\n <buckets>1</buckets>\\n <buckets>2</buckets>\\n <buckets>3</buckets>\\n <status>init</status>\\n <base>true</base>\\n <onlineTime>2020-11-11t09:47:43.000z</onlineTime>\\n <offlineTime/>\\n</result>\\n<requestId>e3d6fe3b-b7c2-43da-9a13-5ea837aced9b</requestId>","errorExample":""}]', - 'title' => 'ListExperiments', - 'summary' => '列出实验清单,说明:只展示实验基本信息,不展示算法配置,暂不提供分页功能。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'CloneExperiment' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments/{experimentId}/actions/clone', - 'methods' => [ - 'post', + 'title' => '删除流量调控任务', + 'summary' => '删除流量调控任务。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteFlowControlTask'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airec:DeleteFlowControlTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"6E427B10-30FC-1873-922F-FC176D3398D4\\",\\n \\"result\\": true\\n}","errorExample":""},{"type":"xml","example":"<DeleteFlowControlTaskResponse>\\n <requestId>8F81A922-6C81-46D6-B78C-CC35E16B1691</requestId>\\n <result>true</result>\\n</DeleteFlowControlTaskResponse>","errorExample":""}]', + ], + 'DeleteRankingModel' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-models/{rankingModelId}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -4763,61 +2681,20 @@ 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '18664', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '18674', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'sceneId', - 'in' => 'path', - 'schema' => [ - 'description' => '场景ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'sceneId', - ], - ], - [ - 'name' => 'dryRun', - 'in' => 'query', - 'schema' => [ - 'description' => '是否完成克隆。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **true**:校验实验信息。'."\n" - ."\n" - .'- **false**:默认false,创建实验。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - ], - [ - 'name' => 'experimentId', + 'name' => 'rankingModelId', 'in' => 'path', - 'schema' => [ - 'description' => '实验ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['description' => '排序模型ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'testRankingId'], ], ], 'responses' => [ @@ -4830,176 +2707,13 @@ 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'base' => [ - 'description' => '是否为默认实验。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'onlineTime' => [ - 'description' => '实验线上时间。', - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'offlineTime' => [ - 'description' => '实验下线时间。', - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'description' => [ - 'description' => '实验备注。', - 'type' => 'string', - 'example' => 'xxx', - ], - 'status' => [ - 'description' => '实验状态。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Init**:未上线。'."\n" - ."\n" - .'- **Online**:上线。'."\n" - ."\n" - .'- **Finish**:推全。'."\n" - ."\n" - .'- **Offline**:下线。', - 'type' => 'string', - 'example' => 'Init', - ], - 'name' => [ - 'description' => '实验名称。', - 'type' => 'string', - 'example' => 'xxx', - ], - 'algorithms' => [ - 'description' => '实验参数列表。', - 'type' => 'array', - 'items' => [ - 'description' => '实验参数。', - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => '算法key。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **I2I**:I2I召回链路。'."\n" - ."\n" - .'- **u2X2I**:U2X2I召回链路。'."\n" - ."\n" - .'- **hot**:热门商品召回链路。'."\n" - ."\n" - .'- **new**:新品召回链路。'."\n" - ."\n" - .'- **embedding**:向量召回链路。'."\n" - ."\n" - .'- **mtorder**:召回链路优先级。'."\n" - ."\n" - .'- **rankservice**:排序服务。', - 'type' => 'string', - 'example' => 'I2I', - ], - 'config' => [ - 'description' => '子配置项列表。', - 'type' => 'array', - 'items' => [ - 'description' => '子配置项信息。', - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => '算法配置项key。', - 'type' => 'string', - 'example' => 'I2I-truncedquantity', - ], - 'defaultValue' => [ - 'description' => '算法配置项默认值。', - 'type' => 'string', - 'example' => '400', - ], - 'experimentValue' => [ - 'description' => '实验值。', - 'type' => 'string', - 'example' => 'swing;commoni2i;pcategory;scategory', - ], - 'name' => [ - 'description' => '子配置名称。', - 'type' => 'string', - 'example' => 'I2I算法', - ], - ], - ], - ], - 'defaultValue' => [ - 'description' => '默认召回数量。', - 'type' => 'string', - 'example' => 'i2i;u2x2i;new;hot;embedding;embedding', - ], - 'type' => [ - 'description' => '算法类别。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **SYSTEM**:系统默认类型。'."\n" - ."\n" - .'- **CUSTOM**:用户自定义类型。', - 'type' => 'string', - 'example' => 'SYSTEM', - ], - 'experimentValue' => [ - 'description' => '实验值。', - 'type' => 'string', - 'example' => '300', - ], - 'hasConfig' => [ - 'description' => '是否有子配置项。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **true**:是。'."\n" - ."\n" - .'- **false**:否。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'category' => [ - 'description' => '算法类目。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **RECALL**:召回。'."\n" - ."\n" - .'- **RANK**:排序。', - 'type' => 'string', - 'example' => 'RECALL', - ], - 'name' => [ - 'description' => '实验名称。', - 'type' => 'string', - 'example' => 'name', - ], - ], - ], - ], - 'buckets' => [ - 'description' => '分桶列表。', - 'type' => 'array', - 'items' => [ - 'description' => '分桶。', - 'type' => 'string', - 'example' => '["1","2","3"]', - ], - ], - 'experimentId' => [ - 'description' => '实验ID。', - 'type' => 'string', - 'example' => '12345', - ], + 'rankingModelId' => ['description' => '排序模型ID。', 'type' => 'string', 'example' => 'testRankingId'], + 'meta' => ['description' => '模型Meta原信息。', 'type' => 'object'], ], ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B', - ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D486768B-8BF8-4D80-B491-43DC3D0AF8AB'], + 'message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'successful'], ], ], ], @@ -5007,1046 +2721,475 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"base\\": true,\\n \\"onlineTime\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"offlineTime\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"description\\": \\"xxx\\",\\n \\"status\\": \\"Init\\",\\n \\"name\\": \\"xxx\\",\\n \\"algorithms\\": [\\n {\\n \\"key\\": \\"I2I\\",\\n \\"config\\": [\\n {\\n \\"key\\": \\"I2I-truncedquantity\\",\\n \\"defaultValue\\": \\"400\\",\\n \\"experimentValue\\": \\"swing;commoni2i;pcategory;scategory\\",\\n \\"name\\": \\"I2I算法\\"\\n }\\n ],\\n \\"defaultValue\\": \\"i2i;u2x2i;new;hot;embedding;embedding\\",\\n \\"type\\": \\"SYSTEM\\",\\n \\"experimentValue\\": \\"300\\",\\n \\"hasConfig\\": true,\\n \\"category\\": \\"RECALL\\",\\n \\"name\\": \\"name\\"\\n }\\n ],\\n \\"buckets\\": [\\n \\"[\\\\\\"1\\\\\\",\\\\\\"2\\\\\\",\\\\\\"3\\\\\\"]\\"\\n ],\\n \\"experimentId\\": \\"12345\\"\\n },\\n \\"requestId\\": \\"E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B</RequestId>","errorExample":""}]', - 'title' => '克隆实验', - 'summary' => '克隆实验。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ListFlowControlTaskReports' => [ - 'summary' => '流量调控任务曝光分析。', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/flowTaskReports', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '删除排名模型', + 'summary' => '删除排序模型。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airec:DeleteRankingModel', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"rankingModelId\\": \\"testRankingId\\",\\n \\"meta\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"D486768B-8BF8-4D80-B491-43DC3D0AF8AB\\",\\n \\"message\\": \\"successful\\"\\n}","type":"json"}]', + ], + 'DeleteRankingModelTemplate' => [ + 'summary' => '删除模型。', + 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-templates/{templateId}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'list', - 'abilityTreeCode' => '155143', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '117145', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'taskId', + 'name' => 'templateId', 'in' => 'path', - 'schema' => [ - 'description' => '流量调控任务ID。', - 'type' => 'string', - 'required' => false, - 'example' => '1666697299358', - ], - ], - [ - 'name' => 'startTime', - 'in' => 'query', - 'schema' => [ - 'description' => 's时间戳(格式:yyyymmdd),如果'."\n" - .'不传,默认查询任务开始到t-1天统计数据与指标分析数据。', - 'type' => 'string', - 'required' => false, - 'example' => '1666195200', - ], - ], - [ - 'name' => 'endTime', - 'in' => 'query', - 'schema' => [ - 'description' => 's时间戳(格式:yyyymmdd),最大值为t-1。', - 'type' => 'string', - 'required' => false, - 'example' => '1668268800', - ], + 'schema' => ['title' => '排序模型模板ID', 'description' => '排序模型模板ID。', 'type' => 'string', 'required' => false, 'example' => 'testTemplateId'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => 'Schema of Response', 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '16B78383-2803-4964-9605-37B30C073B0E', - ], - 'result' => [ - 'description' => '返回参数。', - 'type' => 'object', - 'properties' => [ - 'total' => [ - 'description' => '指标统计数据。', - 'type' => 'object', - 'properties' => [ - 'accTaskCtr' => [ - 'description' => 'Ctr指标。', - 'type' => 'number', - 'format' => 'double', - 'example' => '0.1', - ], - 'accTaskPv' => [ - 'description' => 'Pv指标。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1000', - ], - 'accTotalCtr' => [ - 'description' => '场景Ctr指标。', - 'type' => 'number', - 'format' => 'double', - 'example' => '0.2', - ], - 'InvalidPercent' => [ - 'description' => '失效物品占比指标。', - 'type' => 'number', - 'format' => 'double', - 'example' => '0.3', - ], - ], - ], - 'metrics' => [ - 'description' => '指标列表。', - 'type' => 'array', - 'items' => [ - 'description' => '指标详情。', - 'type' => 'object', - 'properties' => [ - 'type' => [ - 'description' => '指标类型。', - 'type' => 'string', - 'example' => 'taskPv', - ], - 'details' => [ - 'description' => '数据列表。', - 'type' => 'array', - 'items' => [ - 'description' => '指标。', - 'type' => 'object', - 'properties' => [ - 'val' => [ - 'description' => '指标值。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'endTime' => [ - 'description' => '指标结束时间秒级时间戳。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1664035200', - ], - 'startTime' => [ - 'description' => '指标开始时间秒级时间戳。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1664000452', - ], - ], - ], - ], - ], - ], - ], - ], - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'result' => ['description' => '返回参数。', '$ref' => '#/components/schemas/RankingModelTemplate'], ], ], ], - 500 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], + ], + 'title' => '删除模型', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteRankingModelTemplate'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airec:DeleteRankingModelTemplate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"16B78383-2803-4964-9605-37B30C073B0E\\",\\n \\"result\\": {\\n \\"total\\": {\\n \\"accTaskCtr\\": 0.1,\\n \\"accTaskPv\\": 1000,\\n \\"accTotalCtr\\": 0.2,\\n \\"InvalidPercent\\": 0.3\\n },\\n \\"metrics\\": [\\n {\\n \\"type\\": \\"taskPv\\",\\n \\"details\\": [\\n {\\n \\"val\\": 0,\\n \\"endTime\\": 1664035200,\\n \\"startTime\\": 1664000452\\n }\\n ]\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<ListFlowControlTaskReportsResponse>\\n <requestId>16B78383-2803-4964-9605-37B30C073B0E</requestId>\\n <result>\\n <total>\\n <accTaskPv>1000</accTaskPv>\\n <accPvPercent>0.2</accPvPercent>\\n <accTaskCtr>0.1</accTaskCtr>\\n <accTotalCtr>0.2</accTotalCtr>\\n <invalidPercent>0.2</invalidPercent>\\n </total>\\n <metrics>\\n <type>taskPv</type>\\n <details>\\n <val>0</val>\\n <startTime>1588003200</startTime>\\n <endTime>1588006800</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n <details>\\n <val>0</val>\\n <startTime>1588089600</startTime>\\n <endTime>1588093200</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n </metrics>\\n <metrics>\\n <type>totalPv</type>\\n <details>\\n <val>0</val>\\n <startTime>1588003200</startTime>\\n <endTime>1588006800</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n <details>\\n <val>0</val>\\n <startTime>1588089600</startTime>\\n <endTime>1588093200</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n </metrics>\\n <metrics>\\n <type>pvPercent</type>\\n <details>\\n <val>0</val>\\n <startTime>1588003200</startTime>\\n <endTime>1588006800</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n <details>\\n <val>0</val>\\n <startTime>1588089600</startTime>\\n <endTime>1588093200</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n </metrics>\\n <metrics>\\n <type>taskCtr</type>\\n <details>\\n <val>0</val>\\n <startTime>1588003200</startTime>\\n <endTime>1588006800</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n <details>\\n <val>0</val>\\n <startTime>1588089600</startTime>\\n <endTime>1588093200</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n </metrics>\\n <metrics>\\n <type>totalCtr</type>\\n <details>\\n <val>0</val>\\n <startTime>1588003200</startTime>\\n <endTime>1588006800</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n <details>\\n <val>0</val>\\n <startTime>1588089600</startTime>\\n <endTime>1588093200</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n </metrics>\\n <metrics>\\n <type>totalCount</type>\\n <details>\\n <val>0</val>\\n <startTime>1588003200</startTime>\\n <endTime>1588006800</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n <details>\\n <val>0</val>\\n <startTime>1588089600</startTime>\\n <endTime>1588093200</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n </metrics>\\n <metrics>\\n <type>invalidCount</type>\\n <details>\\n <val>0</val>\\n <startTime>1588003200</startTime>\\n <endTime>1588006800</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n <details>\\n <val>0</val>\\n <startTime>1588089600</startTime>\\n <endTime>1588093200</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n </metrics>\\n </result>\\n</ListFlowControlTaskReportsResponse>","errorExample":""}]', - 'title' => '流量调控任务曝光分析', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": {\\n \\"Status\\": \\"TRAINING_SUCCESS\\",\\n \\"Meta\\": {\\n \\"Authorized\\": true,\\n \\"AutoRun\\": true,\\n \\"AutoRunTime\\": 1,\\n \\"AutoRunType\\": \\"DAY\\",\\n \\"Conf\\": \\"train_config {}\\",\\n \\"LastEditTime\\": \\"2021-12-06T03:01:41.217Z\\",\\n \\"OssArn\\": \\"acs:ram::111:role/aliyunodpspaidefaultrole\\",\\n \\"OssBucket\\": \\"bucket-a\\",\\n \\"OssEndpoint\\": \\"oss-cn-beijing.aliyuncs.com\\",\\n \\"SampleId\\": \\"1111\\",\\n \\"SampleName\\": \\"样本1\\",\\n \\"SampleTimeWindow\\": 3,\\n \\"SampleTimeWindowType\\": \\"DAY\\",\\n \\"Type\\": \\"MULTI_TOWER\\",\\n \\"Name\\": \\"模型A\\",\\n \\"DeployStatus\\": \\"NOT_DEPLOYED\\",\\n \\"CanDeploy\\": true\\n },\\n \\"VersionNum\\": 3,\\n \\"TemplateId\\": \\"a-a-a\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', ], - 'ListFlowControlTaskInvalidItems' => [ - 'summary' => '查询当前流量调控任务中失效物品清单,返回物品ID(ItemId)与物品类型(ItemType)。', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/invalidItems', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DeleteRankingModelVersion' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-versions/{versionId}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'list', - 'abilityTreeCode' => '156202', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '119230', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'airec-test'], ], [ - 'name' => 'taskId', + 'name' => 'versionId', 'in' => 'path', - 'schema' => [ - 'description' => '流量调控任务ID。', - 'type' => 'string', - 'required' => false, - 'example' => '1661506482', - ], - ], - [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'description' => '请求体参数。', - 'type' => 'array', - 'items' => [ - 'description' => 'ItemId与ItemType组合JSON。', - 'type' => 'string', - 'required' => false, - 'example' => '[ { "itemId": "10", "itemType": "itemType" }, { "itemId": "10", "itemType": "itemType" } ]', - ], - 'required' => false, - ], + 'schema' => ['description' => '版本ID', 'type' => 'string', 'required' => true, 'example' => '1'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回参数。', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'result' => [ - 'description' => '返回参数。', - 'type' => 'array', - 'items' => [ - 'description' => '返回参数。', - 'type' => 'object', - 'properties' => [ - 'invalidItems' => [ - 'description' => '失效物品ItemId与ItemType清单。', - 'type' => 'array', - 'items' => [ - 'description' => '失效物品。', - 'type' => 'object', - 'properties' => [ - 'itemId' => [ - 'description' => '物品ID。', - 'type' => 'string', - 'example' => '287723', - ], - 'itemType' => [ - 'description' => '物品Type。', - 'type' => 'string', - 'example' => 'video', - ], - ], - ], - ], - ], - ], - ], + 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"result\\": [\\n {\\n \\"invalidItems\\": [\\n {\\n \\"itemId\\": \\"287723\\",\\n \\"itemType\\": \\"video\\"\\n }\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<ListFlowControlTaskInvalidItemsResponse>\\n <requestId>16B78383-2803-4964-9605-37B30C073B0E</requestId>\\n <result>\\n <invalidItems>\\n <itemId>itemId</itemId>\\n <itemType>111111</itemType>\\n </invalidItems>\\n </result>\\n</ListFlowControlTaskInvalidItemsResponse>","errorExample":""}]', - 'title' => '查询失效物品清单', - ], - 'ListFlowControlTaskItems' => [ - 'summary' => '流量调控预览。', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/actions/items', - 'methods' => [ - 'get', + 'title' => '删除模型版本', + 'summary' => '删除某个模型版本。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteRankingModelVersion'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airec:DeleteRankingModelVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'DeleteRankingSystem' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'list', - 'abilityTreeCode' => '155140', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '117181', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'taskId', + 'name' => 'name', 'in' => 'path', - 'schema' => [ - 'description' => '流量调控任务ID。', - 'type' => 'string', - 'required' => false, - 'example' => '1667369058068', - ], - ], - [ - 'name' => 'page', - 'in' => 'query', - 'schema' => [ - 'description' => '分页,页码。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - ], - [ - 'name' => 'size', - 'in' => 'query', - 'schema' => [ - 'description' => '分页查询时,设置的每页行数。最大值为500。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['title' => '排序服务名称', 'description' => '排序服务名称。', 'type' => 'string', 'required' => true, 'example' => 'service-a'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => 'Schema of Response', 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'result' => [ - 'description' => '返回参数。', - 'type' => 'object', - 'properties' => [ - 'totalCount' => [ - 'description' => '物品总条数。', - 'type' => 'string', - 'example' => '1', - ], - 'validCount' => [ - 'description' => '有效物品个数。', - 'type' => 'string', - 'example' => '1', - ], - 'detail' => [ - 'description' => '物品列表。', - 'type' => 'array', - 'items' => [ - 'description' => '物品信息。', - 'type' => 'object', - 'properties' => [ - 'author' => [ - 'description' => '作者。', - 'type' => 'string', - 'example' => 'zhangsan', - ], - 'duration' => [ - 'description' => '持续时间。', - 'type' => 'string', - 'example' => '18', - ], - 'itemId' => [ - 'description' => '物品ID。', - 'type' => 'string', - 'example' => '123', - ], - 'itemType' => [ - 'description' => '物品Type。', - 'type' => 'string', - 'example' => 'video', - ], - 'expireTime' => [ - 'description' => '过期时间。', - 'type' => 'string', - 'example' => '1612687809', - ], - 'categoryPath' => [ - 'description' => '类目路径。', - 'type' => 'string', - 'example' => '12_34', - ], - 'pubTime' => [ - 'description' => '发布时间。', - 'type' => 'string', - 'example' => '1661931487', - ], - 'lastModifyTime' => [ - 'description' => '最后修改时间。', - 'type' => 'string', - 'example' => '1662346558', - ], - 'channel' => [ - 'description' => '频道。', - 'type' => 'string', - 'example' => 'news', - ], - 'weight' => [ - 'description' => '权重。', - 'type' => 'string', - 'example' => '10', - ], - 'title' => [ - 'description' => '标题。', - 'type' => 'string', - 'example' => 'test', - ], - 'status' => [ - 'description' => '物品状态。', - 'type' => 'string', - 'example' => '1', - ], - ], - ], - ], - ], - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'result' => ['description' => '返回结果。', '$ref' => '#/components/schemas/RankingSystem'], ], ], ], - 500 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + ], + 'title' => '删除排序服务', + 'summary' => '删除排序服务', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteRankingSystem'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airec:DeleteRankingSystem', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"result\\": {\\n \\"totalCount\\": \\"1\\",\\n \\"validCount\\": \\"1\\",\\n \\"detail\\": [\\n {\\n \\"author\\": \\"zhangsan\\",\\n \\"duration\\": \\"18\\",\\n \\"itemId\\": \\"123\\",\\n \\"itemType\\": \\"video\\",\\n \\"expireTime\\": \\"1612687809\\",\\n \\"categoryPath\\": \\"12_34\\",\\n \\"pubTime\\": \\"1661931487\\",\\n \\"lastModifyTime\\": \\"1662346558\\",\\n \\"channel\\": \\"news\\",\\n \\"weight\\": \\"10\\",\\n \\"title\\": \\"test\\",\\n \\"status\\": \\"1\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<ListFlowControlTaskItemsResponse>\\n <requestId>16B78383-2803-4964-9605-37B30C073B0E</requestId>\\n <result>\\n <detail>\\n <duration>-1</duration>\\n <itemId>item1076848</itemId>\\n <itemType>video</itemType>\\n <expireTime>4102416000</expireTime>\\n <categoryPath>none</categoryPath>\\n <author>none</author>\\n <pubTime>1661931487</pubTime>\\n <lastModifyTime>1662025185</lastModifyTime>\\n <channel>none</channel>\\n <weight>1</weight>\\n <title>none</title>\\n <status>1</status>\\n </detail>\\n <detail>\\n <duration>-1</duration>\\n <itemId>item8281501</itemId>\\n <itemType>image</itemType>\\n <expireTime>4102416000</expireTime>\\n <categoryPath>none</categoryPath>\\n <author>none</author>\\n <pubTime>1661931487</pubTime>\\n <lastModifyTime>1662346558</lastModifyTime>\\n <channel>none</channel>\\n <weight>1</weight>\\n <title>none</title>\\n <status>1</status>\\n </detail>\\n <totalCount>19835</totalCount>\\n <validCount>19835</validCount>\\n </result>\\n</ListFlowControlTaskItemsResponse>","errorExample":""}]', - 'title' => '流量调控预览', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"result\\": {\\n \\"Meta\\": {\\n \\"AutoDeploy\\": true,\\n \\"AutoDeployAuc\\": \\"0.3\\",\\n \\"Conf\\": \\"\\",\\n \\"PredictEngine\\": {\\n \\"ResourceId\\": \\"eas-oljkkdrggxhx7eizjd\\",\\n \\"Version\\": \\"1\\",\\n \\"ClusterId\\": \\"cn-shanghai\\"\\n },\\n \\"PredictEngineType\\": \\"EAS\\",\\n \\"ModelVersionName\\": \\"模型A_T1638964800000\\",\\n \\"FailMsg\\": \\"\\"\\n },\\n \\"ApplyStatus\\": \\"NOT_APPLIED\\",\\n \\"DeployStatus\\": \\"NOT_DEPLOYED\\",\\n \\"SceneIdList\\": [\\n 0\\n ],\\n \\"Name\\": \\"servicea\\",\\n \\"ModelTemplateId\\": \\"a-a-a\\"\\n }\\n}","type":"json"}]', ], - 'CreateFlowControlTask' => [ - 'summary' => '创建流控任务。', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DeleteSample' => [ + 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '154018', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '117130', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-shdjkgkeog'], ], [ - 'name' => 'dryRun', - 'in' => 'query', - 'schema' => [ - 'description' => '是否为空运行请求。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **true**:只检查参数正确。'."\n" - ."\n" - .'- **false**:检查参数后执行操作。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'name' => 'sampleId', + 'in' => 'path', + 'schema' => ['title' => '样本id', 'description' => '样本ID。', 'type' => 'string', 'required' => true, 'example' => 'Sample1'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => '返回参数。', + 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '返回参数。', - 'type' => 'object', - 'properties' => [ - 'taskId' => [ - 'description' => '流量调控任务ID。', - 'type' => 'string', - 'example' => '1667297014460', - ], - 'gmtModified' => [ - 'description' => '实例最后更新时间,单位为UTC时间。'."\n", - 'type' => 'string', - 'example' => '2018-12-06T11:17:49.000Z', - ], - 'status' => [ - 'description' => '任务状态。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **DRAFT**:草稿。'."\n" - ."\n" - .'- **READY**:待生效。'."\n" - ."\n" - .'- **RUNNING**:运行中。'."\n" - ."\n" - .'- **ENDED**:结束。', - 'type' => 'string', - 'example' => 'DRAFT', - ], - 'gmtCreate' => [ - 'description' => '创建时间的UTC时间。', - 'type' => 'string', - 'example' => '2020-04-27T06:38:28.000Z', - ], - ], - ], - 'code' => [ - 'description' => '状态码。', - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'EDF43C1F-99E4-431F-A7C0-8B260A5A792E', - ], - 'message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['description' => '返回结果详情。', '$ref' => '#/components/schemas/Sample'], ], ], ], - 500 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'title' => '删除样本', + 'summary' => '删除样本。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteSample'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airec:DeleteSample', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"taskId\\": \\"1667297014460\\",\\n \\"gmtModified\\": \\"2018-12-06T11:17:49.000Z\\",\\n \\"status\\": \\"DRAFT\\",\\n \\"gmtCreate\\": \\"2020-04-27T06:38:28.000Z\\"\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"EDF43C1F-99E4-431F-A7C0-8B260A5A792E\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateFlowControlTaskResponse>\\n <taskName>test</taskName>\\n <description>这是一个测试任务</description>\\n <startTime>1621267200</startTime>\\n <endTime>1621267200</endTime>\\n <selectionParams>\\n <selectType/>\\n <selectionOperation/>\\n <selectValue/>\\n </selectionParams>\\n <sceneIds>1,2,3</sceneIds>\\n <target>\\n <type>EXPOSE_PERCENT</type>\\n <value>50</value>\\n </target>\\n <metaType>FlowControlTask</metaType>\\n</CreateFlowControlTaskResponse>","errorExample":""}]', - 'title' => '创建流量调控任务', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"Status\\": \\"Formatted\\",\\n \\"Meta\\": {\\n \\"AutoUpdate\\": true,\\n \\"AutoUpdateFrequency\\": 1673341140,\\n \\"ClonedId\\": \\"1638877561147\\",\\n \\"Config\\": {\\n \\"BhvTableSourceIds\\": [\\n \\"\\"\\n ],\\n \\"FeatureConfig\\": {\\n \\"ItemFeatures\\": \\"deress,red\\",\\n \\"UserFeatures\\": \\"man\\"\\n },\\n \\"LabelLogic\\": {\\n \\"BhvTimeWindow\\": 86400,\\n \\"NegativeBhvTypes\\": \\"click,expose\\",\\n \\"PositiveBhvTypes\\": \\"like\\"\\n },\\n \\"WeightLogicList\\": [\\n {\\n \\"Bhv\\": \\"click\\",\\n \\"Weight\\": \\"1\\"\\n }\\n ]\\n },\\n \\"ExtendParams\\": {\\n \\"LatestTaskStatus\\": 1,\\n \\"SampleCount\\": 0\\n },\\n \\"MetaType\\": \\"Sample\\",\\n \\"Name\\": \\"12345\\",\\n \\"StoreConfig\\": \\"projectName.tableName\\",\\n \\"Type\\": \\"System\\"\\n },\\n \\"GmtCreate\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"GmtModified\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"SampleId\\": \\"1638880131873\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', ], - 'GetFlowControlTask' => [ - 'summary' => '获取流量调控任务详情。', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DeleteScene' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '155268', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '18675', + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'taskId', + 'name' => 'sceneId', 'in' => 'path', - 'schema' => [ - 'description' => '流量调控任务ID。', - 'type' => 'string', - 'required' => false, - 'example' => '1667979619806', - ], + 'schema' => ['description' => '场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'testid'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回参数。', + 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], 'result' => [ - 'description' => '返回参数。', - 'type' => 'array', - 'items' => [ - 'description' => '返回参数。', - 'type' => 'object', - 'properties' => [ - 'gmtCreate' => [ - 'description' => '创建时间的UTC时间。', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'gmtModified' => [ - 'description' => '最后修改数据源的UTC时间。', - 'type' => 'string', - 'example' => '2020-04-23T06:08:48.000Z', - ], - 'meta' => [ - 'description' => '流量调控Meta。', - 'type' => 'object', - 'properties' => [ - 'description' => [ - 'description' => '流量调控描述信息。', - 'type' => 'string', - 'example' => '用于首页推荐物品调控。', - ], - 'endTime' => [ - 'description' => '结束时间秒级时间戳。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1656518399', - ], - 'metaType' => [ - 'description' => '流量调控Meta类型,固定值FlowControlTask。', - 'type' => 'string', - 'example' => 'FlowControlTask', - ], - 'sceneIds' => [ - 'description' => '场景ID,支持多个,英文,分割即可。', - 'type' => 'string', - 'example' => '1,2,3', - ], - 'selectionParams' => [ - 'description' => '选品规则参数列表。', - 'type' => 'array', - 'items' => [ - 'description' => '选品规则参数。', - 'type' => 'object', - 'properties' => [ - 'selectType' => [ - 'description' => '选品规则过滤条件类型。', - 'type' => 'string', - 'example' => 'QUERY_PUB_TIME', - ], - 'selectValue' => [ - 'description' => '选品规则过滤条件具体数值。', - 'type' => 'string', - 'example' => '10000', - ], - 'selectionOperation' => [ - 'description' => '选品规则过滤条件操作。', - 'type' => 'string', - 'example' => 'OPERATOR_HIGHER', - ], - ], - ], - ], - 'startTime' => [ - 'description' => '开始时间(秒级时间戳)。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1640739600', - ], - 'target' => [ - 'description' => '曝光配置。', - 'type' => 'object', - 'properties' => [ - 'type' => [ - 'description' => '曝光类型。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **EXPOSE_PERCENT**:每日曝光百分比。'."\n" - ."\n" - .'- **EXPOSE_COUNT**:曝光总量。', - 'type' => 'string', - 'example' => 'EXPOSE_PERCENT', - ], - 'value' => [ - 'description' => '曝光值。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '20', - ], - ], - ], - 'taskName' => [ - 'description' => '流量调控任务名称。', - 'type' => 'string', - 'example' => '曝光任务', - ], - ], - ], - 'status' => [ - 'description' => '任务状态。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **DRAFT**:草稿。'."\n" - ."\n" - .'- **READY**:待生效。'."\n" - ."\n" - .'- **RUNNING**:运行中。'."\n" - ."\n" - .'- **ENDED**:结束。', - 'type' => 'string', - 'example' => 'DRAFT', - ], - 'taskId' => [ - 'description' => '流量调控任务ID。', - 'type' => 'string', - 'example' => '1666854602398', - ], - ], + 'description' => '返回结果详情。', + 'type' => 'object', + 'properties' => [ + 'sceneId' => ['description' => '场景ID。', 'type' => 'string', 'example' => 'test'], ], ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情。', 'type' => 'string', 'example' => 'An internal server error occurred'], ], ], ], - 500 => [ + '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": [\\n {\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"gmtModified\\": \\"2020-04-23T06:08:48.000Z\\",\\n \\"meta\\": {\\n \\"description\\": \\"用于首页推荐物品调控。\\",\\n \\"endTime\\": 1656518399,\\n \\"metaType\\": \\"FlowControlTask\\",\\n \\"sceneIds\\": \\"1,2,3\\",\\n \\"selectionParams\\": [\\n {\\n \\"selectType\\": \\"QUERY_PUB_TIME\\",\\n \\"selectValue\\": \\"10000\\",\\n \\"selectionOperation\\": \\"OPERATOR_HIGHER\\"\\n }\\n ],\\n \\"startTime\\": 1640739600,\\n \\"target\\": {\\n \\"type\\": \\"EXPOSE_PERCENT\\",\\n \\"value\\": 20\\n },\\n \\"taskName\\": \\"曝光任务\\"\\n },\\n \\"status\\": \\"DRAFT\\",\\n \\"taskId\\": \\"1666854602398\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取流量调控任务详情', - ], - 'DeleteFlowControlTask' => [ - 'summary' => '删除流量调控任务。', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '删除场景', + 'summary' => '删除场景。', + 'description' => '如需使用场景管理功能,不建议使用API进行操作。请使用控制台中“场景管理”功能,使用详情见官方文档<props="china">:[通过选投策略配置,快速搭建推荐场景](https://help.aliyun.com/document_detail/171790.html?spm=a2c4g.11186623.6.677.1f6a3483tNyo2M)</props>', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airec:DeleteScene', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"sceneId\\": \\"test\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>8F81A922-6C81-46D6-B78C-CC35E16B1691</RequestId>\\n<Result>\\n <InstanceId>airec-yunchu-test</InstanceId>\\n <SceneId>1234</SceneId>\\n <Id>901</Id>\\n <Type>Scene</Type>\\n <Status/>\\n <GmtCreate>1587435971000</GmtCreate>\\n <GmtModified>1587435971000</GmtModified>\\n <SceneMeta>\\n <Description>this is a test scene</Description>\\n <SceneName>aaa</SceneName>\\n <Metric>\\n <Weekly>123</Weekly>\\n <Daily>12334</Daily>\\n <PvCtr>123</PvCtr>\\n </Metric>\\n </SceneMeta>\\n</Result>","errorExample":""}]', + ], + 'DeployRankingSystem' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}/actions/deploy', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '154373', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '117176', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例id', 'type' => 'string', 'required' => false, 'example' => 'airec-test'], ], [ - 'name' => 'taskId', + 'name' => 'name', 'in' => 'path', - 'schema' => [ - 'description' => '流量调控任务ID。', - 'type' => 'string', - 'required' => false, - 'example' => '1661506482', - ], + 'schema' => ['title' => '排序服务名称', 'description' => '服务名称', 'type' => 'string', 'required' => false, 'example' => 'test'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => ['description' => '配置', 'type' => 'object', 'required' => false, 'example' => ' "meta": {'."\n" + .' "autoDeploy": true,'."\n" + .' "autoDeployAuc": "0.9",'."\n" + .' "conf":"",'."\n" + .' "predictEngineType": "EAS",'."\n" + .' "predictEngine":{'."\n" + .' "resourceId": "eas-oljkkdrggxhx7eizjd"'."\n" + .' }'."\n" + .' }'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => '返回参数。', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '6E427B10-30FC-1873-922F-FC176D3398D4', - ], - 'result' => [ - 'description' => '返回参数。', - 'type' => 'boolean', - 'example' => 'true', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '当前请求的RequestID', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'result' => ['title' => 'result', 'description' => '返回结果', 'type' => 'object', 'example' => 'xxx'], ], ], ], - 500 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], - 'code' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + ], + 'title' => '部署排序服务', + 'summary' => '部署/重启部署排序服务,已经部署过的服务,修改配置后必须重启部署,注:若未修改任何参数,则可以不传body。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeployRankingSystem'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:DeployRankingSystem', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"6E427B10-30FC-1873-922F-FC176D3398D4\\",\\n \\"result\\": true\\n}","errorExample":""},{"type":"xml","example":"<DeleteFlowControlTaskResponse>\\n <requestId>8F81A922-6C81-46D6-B78C-CC35E16B1691</requestId>\\n <result>true</result>\\n</DeleteFlowControlTaskResponse>","errorExample":""}]', - 'title' => '删除流量调控任务', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","errorExample":""},{"type":"xml","example":"<code>InternalServerError</code>\\n<message>An internal server error occurred.</message>\\n<requestId>829F38F6-E2D6-4109-90A6-888160BD16C2</requestId>","errorExample":""}]', ], - 'ListFlowControlTask' => [ - 'summary' => '查询流控任务列表。', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DescribeBaseExperiment' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/base-experiment', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'list', - 'abilityTreeCode' => '155267', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18676', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], - ], - [ - 'name' => 'taskId', - 'in' => 'query', - 'schema' => [ - 'description' => '流量调控任务ID。', - 'type' => 'string', - 'required' => false, - 'example' => '1661506482', - ], - ], - [ - 'name' => 'status', - 'in' => 'query', - 'schema' => [ - 'description' => '任务状态。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **DRAFT**:草稿。'."\n" - ."\n" - .'- **READY**:待生效。'."\n" - ."\n" - .'- **RUNNING**:运行中。'."\n" - ."\n" - .'- **ENDED**:结束。', - 'type' => 'string', - 'required' => false, - 'example' => 'DRAFT', - ], - ], - [ - 'name' => 'page', - 'in' => 'query', - 'schema' => [ - 'description' => '分页页数。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'size', - 'in' => 'query', - 'schema' => [ - 'description' => '指定每页展示条数,默认为10,限制:[1-50]。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + 'name' => 'sceneId', + 'in' => 'path', + 'schema' => ['description' => '场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'sceneId'], ], ], 'responses' => [ @@ -6055,249 +3198,234 @@ 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '6E427B10-30FC-1873-922F-FC176D3398D4', - ], 'result' => [ 'description' => '返回参数。', - 'type' => 'array', - 'items' => [ - 'description' => '返回参数。', - 'type' => 'object', - 'properties' => [ - 'gmtCreate' => [ - 'description' => '创建时间,单位为UTC时间。', - 'type' => 'string', - 'example' => '2022-08-06T06:14:01.000Z', - ], - 'gmtModified' => [ - 'description' => '最后修改时间,单位为UTC时间。', - 'type' => 'string', - 'example' => '2022-08-06T06:14:01.000Z', - ], - 'meta' => [ - 'description' => '流量调控Meta。', + 'type' => 'object', + 'properties' => [ + 'base' => ['description' => '是否为默认实验。', 'type' => 'boolean', 'example' => 'true'], + 'onlineTime' => ['description' => '实验上线时间。', 'type' => 'string', 'example' => '2020-12-07T06:47:30.000Z'], + 'offlineTime' => ['description' => '实验下线/推全时间。', 'type' => 'string', 'example' => '2020-12-07T06:47:30.000Z'], + 'description' => ['description' => '实验备注。', 'type' => 'string', 'example' => 'xxx'], + 'status' => ['description' => '实验状态。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Init**:未上线。'."\n" + ."\n" + .'- **Online**:上线。'."\n" + ."\n" + .'- **Finish**:推全。'."\n" + ."\n" + .'- **Offline**:下线。', 'type' => 'string', 'example' => 'Init'], + 'name' => ['description' => '实验名称。', 'type' => 'string', 'example' => '测试实验'], + 'algorithms' => [ + 'description' => '实验参数列表。', + 'type' => 'array', + 'items' => [ + 'description' => '实验参数信息。', 'type' => 'object', 'properties' => [ - 'description' => [ - 'description' => '流量调控描述信息。', - 'type' => 'string', - 'example' => '这是一个测试任务', - ], - 'endTime' => [ - 'description' => '结束时间秒级时间戳。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1621267200', - ], - 'metaType' => [ - 'description' => '流量调控Meta类型,固定值FlowControlTask。', - 'type' => 'string', - 'example' => 'metaType', - ], - 'sceneIds' => [ - 'description' => '场景ID,支持多个,英文,分割即可。', - 'type' => 'string', - 'example' => '1,2,3', - ], - 'selectionParams' => [ - 'description' => '选品规则参数列表。', + 'key' => ['description' => '算法key。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **I2I**:I2I召回链路。'."\n" + ."\n" + .'- **u2X2I**:U2X2I召回链路。'."\n" + ."\n" + .'- **hot**:热门商品召回链路。'."\n" + ."\n" + .'- **new**:新品召回链路。'."\n" + ."\n" + .'- **embedding**:向量召回链路。'."\n" + ."\n" + .'- **mtorder**:召回链路优先级。'."\n" + ."\n" + .'- **rankservice**:排序服务。', 'type' => 'string', 'example' => 'I2I'], + 'config' => [ + 'description' => '子配置项列表。', 'type' => 'array', 'items' => [ - 'description' => '选品规则参数。', + 'description' => '子配置项信息。', 'type' => 'object', 'properties' => [ - 'selectType' => [ - 'description' => '选品规则过滤条件类型。', - 'type' => 'string', - 'example' => 'selectType', - ], - 'selectValue' => [ - 'description' => '选品规则过滤条件具体数值。', - 'type' => 'string', - 'example' => 'selectValue', - ], - 'selectionOperation' => [ - 'description' => '选品规则过滤条件操作。', - 'type' => 'string', - 'example' => 'selectionOperation', - ], + 'key' => ['description' => '算法配置项key。', 'type' => 'string', 'example' => 'I2I'], + 'defaultValue' => ['description' => '算法配置项默认值。', 'type' => 'string', 'example' => 'true'], + 'experimentValue' => ['description' => '实验值。', 'type' => 'string', 'example' => '400'], + 'name' => ['description' => '子配置名称。', 'type' => 'string', 'example' => 'xxx'], ], ], ], - 'startTime' => [ - 'description' => '开始时间秒级时间戳。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1621267200', - ], - 'target' => [ - 'description' => '曝光配置。', - 'type' => 'object', - 'properties' => [ - 'type' => [ - 'description' => '曝光类型。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **EXPOSE_PERCENT**:每日曝光百分比。'."\n" - ."\n" - .'- **EXPOSE_COUNT**:曝光总量。', - 'type' => 'string', - 'example' => 'EXPOSE_PERCENT', - ], - 'value' => [ - 'description' => '曝光值。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '50', - ], - ], - ], - 'taskName' => [ - 'description' => '流量调控任务名称。', - 'type' => 'string', - 'example' => 'testtaskname', - ], + 'defaultValue' => ['description' => '默认召回数量。', 'type' => 'string', 'example' => 'true'], + 'type' => ['description' => '算法类别。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **SYSTEM**:系统默认类型。'."\n" + ."\n" + .'- **CUSTOM**:用户自定义类型。', 'type' => 'string', 'example' => 'SYSTEM'], + 'experimentValue' => ['description' => '实验值。', 'type' => 'string', 'example' => '400'], + 'hasConfig' => ['description' => '是否有子配置项。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **true**:是'."\n" + ."\n" + .'- **false**:否', 'type' => 'boolean', 'example' => 'false'], + 'category' => ['description' => '算法类目。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **RECALL**:召回。'."\n" + ."\n" + .'- **RANK**:排序。', 'type' => 'string', 'example' => 'RECALL'], + 'name' => ['description' => '实验名称。', 'type' => 'string', 'example' => 'xxx'], ], ], - 'status' => [ - 'description' => '任务状态。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **DRAFT**:草稿。'."\n" - ."\n" - .'- **READY**:待生效。'."\n" - ."\n" - .'- **RUNNING**:运行中。'."\n" - ."\n" - .'- **ENDED**:结束。', - 'type' => 'string', - 'example' => 'DRAFT', - ], - 'TaskId' => [ - 'description' => '流量调控任务ID。', - 'type' => 'string', - 'example' => '1661506482', - ], ], + 'buckets' => [ + 'description' => '分桶列表,上线实验时该字段才生效。', + 'type' => 'array', + 'items' => ['description' => '分桶信息。', 'type' => 'string', 'example' => '[1,2,3]'], + ], + 'experimentId' => ['description' => '实验ID。', 'type' => 'string', 'example' => 'xxx'], ], ], + 'requestId' => ['description' => '请求的ID。', 'type' => 'string', 'example' => 'A74E3FB7-406C-5CBB-833E-E49308B5DC05'], ], ], ], - 500 => [ + '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"6E427B10-30FC-1873-922F-FC176D3398D4\\",\\n \\"result\\": [\\n {\\n \\"gmtCreate\\": \\"2022-08-06T06:14:01.000Z\\",\\n \\"gmtModified\\": \\"2022-08-06T06:14:01.000Z\\",\\n \\"meta\\": {\\n \\"description\\": \\"这是一个测试任务\\",\\n \\"endTime\\": 1621267200,\\n \\"metaType\\": \\"metaType\\",\\n \\"sceneIds\\": \\"1,2,3\\",\\n \\"selectionParams\\": [\\n {\\n \\"selectType\\": \\"selectType\\",\\n \\"selectValue\\": \\"selectValue\\",\\n \\"selectionOperation\\": \\"selectionOperation\\"\\n }\\n ],\\n \\"startTime\\": 1621267200,\\n \\"target\\": {\\n \\"type\\": \\"EXPOSE_PERCENT\\",\\n \\"value\\": 50\\n },\\n \\"taskName\\": \\"testtaskname\\"\\n },\\n \\"status\\": \\"DRAFT\\",\\n \\"TaskId\\": \\"1661506482\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<ListFlowControlTaskResponse>\\n <requestId>8F81A922-6C81-46D6-B78C-CC35E16B1691</requestId>\\n <result>\\n <taskMeta>\\n <taskName>test</taskName>\\n <description>这是一个测试任务</description>\\n <startTime>1621267200</startTime>\\n <endTime>1621267200</endTime>\\n <selectionParams>\\n <selectType/>\\n <selectionOperation/>\\n <selectValue/>\\n </selectionParams>\\n <sceneIds>1,2,3</sceneIds>\\n <target>\\n <type>EXPOSE_PERCENT</type>\\n <value>50</value>\\n </target>\\n </taskMeta>\\n <taskId>1661506482</taskId>\\n <status>DRAFT</status>\\n <gmtCreate>2022-08-06T06:14:01.000Z</gmtCreate>\\n <gmtModified>2022-08-06T11:17:49.000Z</gmtModified>\\n </result>\\n <headers>\\n <X-Total-Count>1</X-Total-Count>\\n </headers>\\n</ListFlowControlTaskResponse>","errorExample":""}]', - 'title' => '获取流量调控任务列表,按照创建时间倒序返回', - ], - 'ListFlowControlTaskItemReports' => [ - 'summary' => '流量调控曝光排名物品/失效物品查询。', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/itemReports', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取基础实验', + 'summary' => '获取基础实验。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeBaseExperiment', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"base\\": true,\\n \\"onlineTime\\": \\"2020-12-07T06:47:30.000Z\\",\\n \\"offlineTime\\": \\"2020-12-07T06:47:30.000Z\\",\\n \\"description\\": \\"xxx\\",\\n \\"status\\": \\"Init\\",\\n \\"name\\": \\"测试实验\\",\\n \\"algorithms\\": [\\n {\\n \\"key\\": \\"I2I\\",\\n \\"config\\": [\\n {\\n \\"key\\": \\"I2I\\",\\n \\"defaultValue\\": \\"true\\",\\n \\"experimentValue\\": \\"400\\",\\n \\"name\\": \\"xxx\\"\\n }\\n ],\\n \\"defaultValue\\": \\"true\\",\\n \\"type\\": \\"SYSTEM\\",\\n \\"experimentValue\\": \\"400\\",\\n \\"hasConfig\\": false,\\n \\"category\\": \\"RECALL\\",\\n \\"name\\": \\"xxx\\"\\n }\\n ],\\n \\"buckets\\": [\\n \\"[1,2,3]\\"\\n ],\\n \\"experimentId\\": \\"xxx\\"\\n },\\n \\"requestId\\": \\"A74E3FB7-406C-5CBB-833E-E49308B5DC05\\"\\n}","type":"json"}]', + ], + 'DescribeCustomAnalysisTask' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dashboard/custom-analysis-tasks/{taskId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'list', - 'abilityTreeCode' => '155145', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '36674', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], + 'schema' => ['type' => 'string', 'required' => true, 'description' => ''], + ], + [ + 'name' => 'type', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'description' => ''], ], [ 'name' => 'taskId', 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true, 'description' => ''], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => '流量调控任务ID。', - 'type' => 'string', - 'required' => false, - 'example' => '1666854493104', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string'], + 'result' => ['type' => 'object', 'description' => ''], + 'code' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], + ], ], ], + ], + 'title' => '查询指定实例的仪表盘自定义分析任务结果', + 'summary' => '查询指定实例的仪表盘自定义分析任务结果', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeCustomAnalysisTask'], + ], + ], + 'ramActions' => [ [ - 'name' => 'selectTimeType', - 'in' => 'query', - 'schema' => [ - 'description' => '查询时间段,如果selectType=invalidItem,则只支持yesterDay。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **yesterDay**:昨天。'."\n" - ."\n" - .'- **lastSevenDays**:最近7天。'."\n" - ."\n" - .'- **lastFifteenDays**:最近15天。', - 'type' => 'string', - 'required' => false, - 'example' => 'yesterDay', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeCustomAnalysisTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"code\\": \\"\\",\\n \\"message\\": \\"\\"\\n}","type":"json"}]', + ], + 'DescribeDataSetMessage' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dataSets/{versionId}/messages', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'selectType', - 'in' => 'query', - 'schema' => [ - 'description' => '查询数据类型。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **topExposeItem**:曝光排名物品。'."\n" - ."\n" - .'- **invalidItem**:失效物品。', - 'type' => 'string', - 'required' => false, - 'example' => 'invalidItem', - ], + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '18677', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], + ], + 'parameters' => [ + [ + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'count', - 'in' => 'query', - 'schema' => [ - 'description' => '当selectType="topItem",count 代表查询TOP前xx个物品,默认10'."\n" - .'当selectType="invalidItem",count 代表查询失效物品个数,默认10个。', - 'type' => 'string', - 'required' => false, - 'example' => '5', - ], + 'name' => 'versionId', + 'in' => 'path', + 'schema' => ['description' => '版本号ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '2018102321****'], ], ], 'responses' => [ @@ -6306,442 +3434,209 @@ 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'D486768B-8BF8-4D80-B491-43DC3D0AF8AB', - ], 'result' => [ 'description' => '返回参数。', - 'type' => 'object', - 'properties' => [ - 'detail' => [ - 'description' => '数据列表。', - 'type' => 'array', - 'items' => [ - 'description' => '数据。', - 'type' => 'object', - 'properties' => [ - 'taskId' => [ - 'description' => '流量调控任务ID。', - 'type' => 'string', - 'example' => '1666669577221', - ], - 'itemId' => [ - 'description' => '物品ID。', - 'type' => 'string', - 'example' => '123', - ], - 'itemType' => [ - 'description' => '物品Type。', - 'type' => 'string', - 'example' => 'video', - ], - 'taskRank' => [ - 'description' => '当天曝光量排名。', - 'type' => 'string', - 'example' => '12', - ], - 'itemPv' => [ - 'description' => '物品当天曝光量。', - 'type' => 'string', - 'example' => '100', - ], - 'taskPv' => [ - 'description' => '任务当天曝光量。', - 'type' => 'string', - 'example' => '50', - ], - 'pvPercent' => [ - 'description' => '物品当天曝光占比。', - 'type' => 'string', - 'example' => '10.12', - ], - 'itemClick' => [ - 'description' => '物品当天点击量。', - 'type' => 'string', - 'example' => '100', - ], - 'taskClick' => [ - 'description' => '任务当天点击量。', - 'type' => 'string', - 'example' => '100', - ], - 'clickPercent' => [ - 'description' => '物品当天点击占比。', - 'type' => 'string', - 'example' => '1.23', - ], - 'itemCtr' => [ - 'description' => '物品当天点击率。', - 'type' => 'string', - 'example' => '2.34', - ], - 'taskCtr' => [ - 'description' => '任务当天点击率。', - 'type' => 'string', - 'example' => '1.23', - ], - 'accTaskRank' => [ - 'description' => '累计曝光量排名。', - 'type' => 'string', - 'example' => '10', - ], - 'accItemPv' => [ - 'description' => '物品累计曝光量。', - 'type' => 'string', - 'example' => '500', - ], - 'accTaskPv' => [ - 'description' => '任务累计曝光量。', - 'type' => 'string', - 'example' => '200', - ], - 'accPvPercent' => [ - 'description' => '物品累计曝光占比。', - 'type' => 'string', - 'example' => '20.12', - ], - 'accItemClick' => [ - 'description' => '物品累计点击量。', - 'type' => 'string', - 'example' => '1000', - ], - 'accTaskClick' => [ - 'description' => '任务累计点击量。', - 'type' => 'string', - 'example' => '600', - ], - 'accClickPercent' => [ - 'description' => '物品累计点击占比。', - 'type' => 'string', - 'example' => '3.24', - ], - 'accItemCtr' => [ - 'description' => '物品累计点击率。', - 'type' => 'string', - 'example' => '4.56', - ], - 'accTaskCtr' => [ - 'description' => '任务累计点击率。', - 'type' => 'string', - 'example' => '3.22', - ], - ], - ], + 'type' => 'array', + 'items' => [ + 'description' => '返回参数。', + 'type' => 'object', + 'properties' => [ + 'message' => ['description' => '数据诊断错误详情。', 'type' => 'string', 'example' => 'item商品表合法率0.36,可被采纳数据(符合规范)较少。会影响预热期推荐效果。请检查数据,补充相关字段信息,重新导入。建议优化。'], + 'timestamp' => ['description' => '数据诊断错误时间。', 'type' => 'string', 'example' => '20181211 17:27:44'], + 'errorLevel' => ['description' => '数据诊断错误级别。', 'type' => 'string', 'example' => 'warn'], + 'errorType' => ['description' => '数据诊断错误类型。', 'type' => 'string', 'example' => '合法率'], ], ], ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'An internal server error occurred'], ], ], ], - 500 => [ + '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], - 'code' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"D486768B-8BF8-4D80-B491-43DC3D0AF8AB\\",\\n \\"result\\": {\\n \\"detail\\": [\\n {\\n \\"taskId\\": \\"1666669577221\\",\\n \\"itemId\\": \\"123\\",\\n \\"itemType\\": \\"video\\",\\n \\"taskRank\\": \\"12\\",\\n \\"itemPv\\": \\"100\\",\\n \\"taskPv\\": \\"50\\",\\n \\"pvPercent\\": \\"10.12\\",\\n \\"itemClick\\": \\"100\\",\\n \\"taskClick\\": \\"100\\",\\n \\"clickPercent\\": \\"1.23\\",\\n \\"itemCtr\\": \\"2.34\\",\\n \\"taskCtr\\": \\"1.23\\",\\n \\"accTaskRank\\": \\"10\\",\\n \\"accItemPv\\": \\"500\\",\\n \\"accTaskPv\\": \\"200\\",\\n \\"accPvPercent\\": \\"20.12\\",\\n \\"accItemClick\\": \\"1000\\",\\n \\"accTaskClick\\": \\"600\\",\\n \\"accClickPercent\\": \\"3.24\\",\\n \\"accItemCtr\\": \\"4.56\\",\\n \\"accTaskCtr\\": \\"3.22\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<ListFlowControlTaskItemReportsResponse>\\n <requestId>16B78383-2803-4964-9605-37B30C073B0E</requestId>\\n <result>\\n <detail>\\n <taskId>111111</taskId>\\n <itemId>itemId</itemId>\\n <itemType>itemType</itemType>\\n <title>title</title>\\n <categoryPath>人文关怀</categoryPath>\\n <author>张三</author>\\n <channel>渠道</channel>\\n <brandId>121</brandId>\\n <shopId>111</shopId>\\n <taskRank>12</taskRank>\\n <itemPv>100</itemPv>\\n <taskPv>50</taskPv>\\n <pvPercent>10.12</pvPercent>\\n <itemClick>100</itemClick>\\n <taskClick>100</taskClick>\\n <clickPercent>1.23</clickPercent>\\n <itemCtr>2.34</itemCtr>\\n <taskCtr>1.56</taskCtr>\\n <accTaskRank>10</accTaskRank>\\n <accItemPv>500</accItemPv>\\n <accTaskPv>200</accTaskPv>\\n <accPvPercent>20.12</accPvPercent>\\n <accItemClick>500</accItemClick>\\n <accTaskClick>300</accTaskClick>\\n <accClickPercent>3.24</accClickPercent>\\n <accItemCtr>4.56</accItemCtr>\\n <accTaskCtr>3.22</accTaskCtr>\\n </detail>\\n <detail>\\n <taskId>111111</taskId>\\n <itemId>itemId</itemId>\\n <itemType>itemType</itemType>\\n <taskRank>12</taskRank>\\n <itemPv>100</itemPv>\\n <taskPv>50</taskPv>\\n <pvPercent>10.12</pvPercent>\\n <itemClick>100</itemClick>\\n <taskClick>100</taskClick>\\n <clickPercent>1.23</clickPercent>\\n <itemCtr>2.34</itemCtr>\\n <taskCtr>1.56</taskCtr>\\n <accTaskRank>10</accTaskRank>\\n <accItemPv>500</accItemPv>\\n <accTaskPv>200</accTaskPv>\\n <accPvPercent>20.12</accPvPercent>\\n <accItemClick>500</accItemClick>\\n <accTaskClick>300</accTaskClick>\\n <accClickPercent>3.24</accClickPercent>\\n <accItemCtr>4.56</accItemCtr>\\n <accTaskCtr>3.22</accTaskCtr>\\n </detail>\\n </result>\\n</ListFlowControlTaskItemReportsResponse>","errorExample":""}]', - 'title' => '流量调控曝光排名物品/失效物品查询', - ], - 'ListFlowControlTaskReference' => [ - 'summary' => '流量调控参考数据。', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/reference', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => 'DescribeDataSetMessage', + 'summary' => '获取指定实例的指定数据集版本数据错误详情。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeDataSetMessage', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"message\\": \\"item商品表合法率0.36,可被采纳数据(符合规范)较少。会影响预热期推荐效果。请检查数据,补充相关字段信息,重新导入。建议优化。\\",\\n \\"timestamp\\": \\"20181211 17:27:44\\",\\n \\"errorLevel\\": \\"warn\\",\\n \\"errorType\\": \\"合法率\\"\\n }\\n ],\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>8F81A922-6C81-46D6-B78C-CC35E16B1691</RequestId>\\n<Result>\\n <ErrorType>合法率</ErrorType>\\n <ErrorLevel>warn</ErrorLevel>\\n <Message>item商品表合法率0.36,可被采纳数据(符合规范)较少。会影响预热期推荐效果。请检查数据,补充相关字段信息,重新导入。建议优化。</Message>\\n <Timestamp>20181211 17:27:44</Timestamp>\\n</Result>","errorExample":""}]', + ], + 'DescribeDefaultAlgorithms' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/default-algorithms', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'list', - 'abilityTreeCode' => '155137', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18678', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-xxxxxx'], ], [ - 'name' => 'taskId', + 'name' => 'sceneId', 'in' => 'path', - 'schema' => [ - 'description' => '流量调控任务ID。', - 'type' => 'string', - 'required' => false, - 'example' => '1666670046687', - ], + 'schema' => ['description' => '场景ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回参数。', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '返回参数。', - 'type' => 'object', - 'properties' => [ - 'last7PvPercent' => [ - 'description' => '最近7天物品池平均曝光占比。', - 'type' => 'number', - 'format' => 'double', - 'example' => '0.1', - ], - 'last7ScenePv' => [ - 'description' => '最近7天场景平均曝光。', - 'type' => 'number', - 'format' => 'double', - 'example' => '10', - ], - 'last7TaskPv' => [ - 'description' => '最近7天物品池在选中场景平均曝光。', - 'type' => 'number', - 'format' => 'double', - 'example' => '10', - ], - 'lastPvPercent' => [ - 'description' => '昨天物品池曝光占比。', - 'type' => 'number', - 'format' => 'double', - 'example' => '0.1', - ], - 'lastScenePv' => [ - 'description' => '昨天场景总曝光。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], - 'lastTaskPv' => [ - 'description' => '昨天物品池在选中场景内曝光。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], - 'referenceId' => [ - 'description' => '预览ID。', - 'type' => 'string', - 'example' => '421351235918', + 'description' => '返回结果', + 'type' => 'array', + 'items' => [ + 'description' => '返回详情结果', + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => '算法key'."\n" + .'I2I I2I召回链路'."\n" + .'u2X2I U2X2I召回链路'."\n" + .'hot 热门商品召回链路'."\n" + .'new 新品召回链路'."\n" + .'embedding 向量召回链路'."\n" + .'mtorder 召回链路优先级'."\n" + .'rankservice 排序服务', 'type' => 'string', 'example' => 'I2I'], + 'config' => [ + 'description' => '实验定制值', + 'type' => 'array', + 'items' => [ + 'description' => '子配置项信息', + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => '算法配置项key', 'type' => 'string', 'example' => 'I2I-truncedquantity'], + 'defaultValue' => ['description' => '算法配置项默认值', 'type' => 'string', 'example' => 'swing;commoni2i;pcategory;scategory'], + 'experimentValue' => ['description' => '算法配置项实验值', 'type' => 'string', 'example' => '300'], + 'name' => ['description' => '算法配置项name'."\n" + .'(说明:系统默认算法,控制台需要通过美杜莎获取,用户自定义算法,后端会返回name)', 'type' => 'string', 'example' => 'I2I算法'], + ], + ], + ], + 'defaultValue' => ['description' => '算法默认值'."\n" + .'对于i2i,hot,new等召回算法为"true"/"false"'."\n" + .'对于mtorder为各路召回链路的排序', 'type' => 'string', 'example' => 'true'], + 'type' => ['description' => '算法类别'."\n" + .'SYSTEM 系统默认类型'."\n" + .'CUSTOM 用户自定义类型', 'type' => 'string', 'example' => 'SYSTEM'], + 'experimentValue' => ['description' => '实验定制值', 'type' => 'string', 'example' => '300'], + 'hasConfig' => ['description' => '是否有子配置项'."\n" + .'true 是'."\n" + .'false 否', 'type' => 'boolean', 'example' => 'true'], + 'category' => ['description' => '算法类目'."\n" + .'RECALL 召回'."\n" + .'RANK 排序', 'type' => 'string', 'example' => 'RECALL'], + 'name' => ['description' => '名称(说明:系统默认算法,控制台需要通过美杜莎获取,用户自定义算法,后端会返回name)', 'type' => 'string', 'example' => 'xxx'], ], ], ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], + 'requestId' => ['description' => '请求id'."\n", 'type' => 'string', 'example' => 'F60021C4-57AF-5F46-9B3E-FCEF1C7A1459'], ], + 'description' => '', ], ], - 500 => [ + '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"last7PvPercent\\": 0.1,\\n \\"last7ScenePv\\": 10,\\n \\"last7TaskPv\\": 10,\\n \\"lastPvPercent\\": 0.1,\\n \\"lastScenePv\\": 10,\\n \\"lastTaskPv\\": 10,\\n \\"referenceId\\": \\"421351235918\\"\\n },\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\"\\n}","errorExample":""},{"type":"xml","example":"<ListFlowControlTaskReferenceResponse>\\n <requestId>16B78383-2803-4964-9605-37B30C073B0E</requestId>\\n <result>\\n <referenceId>421351235918</referenceId>\\n <lastTaskPv>10</lastTaskPv>\\n <lastScenePv>10</lastScenePv>\\n <lastPvPercent>0.1</lastPvPercent>\\n <last7TaskPv>10</last7TaskPv>\\n <last7ScenePv>10</last7ScenePv>\\n <last7PvPercent>0.1</last7PvPercent>\\n </result>\\n</ListFlowControlTaskReferenceResponse>","errorExample":""}]', - 'title' => '流量调控参考数据', - ], - 'ModifyFlowControlTask' => [ - 'summary' => '流调任务修改接口。', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取默认算法信息', + 'summary' => '获取默认算法信息。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeDefaultAlgorithms', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"key\\": \\"I2I\\",\\n \\"config\\": [\\n {\\n \\"key\\": \\"I2I-truncedquantity\\",\\n \\"defaultValue\\": \\"swing;commoni2i;pcategory;scategory\\",\\n \\"experimentValue\\": \\"300\\",\\n \\"name\\": \\"I2I算法\\"\\n }\\n ],\\n \\"defaultValue\\": \\"true\\",\\n \\"type\\": \\"SYSTEM\\",\\n \\"experimentValue\\": \\"300\\",\\n \\"hasConfig\\": true,\\n \\"category\\": \\"RECALL\\",\\n \\"name\\": \\"xxx\\"\\n }\\n ],\\n \\"requestId\\": \\"F60021C4-57AF-5F46-9B3E-FCEF1C7A1459\\"\\n}","type":"json"}]', + ], + 'DescribeExperiment' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments/{experimentId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '154309', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18679', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'taskId', + 'name' => 'sceneId', 'in' => 'path', - 'schema' => [ - 'description' => '流量调控任务ID。', - 'type' => 'string', - 'required' => false, - 'example' => '1667297014460', - ], + 'schema' => ['description' => '场景ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'sceneId'], ], [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'description' => '请求Body参数。', - 'type' => 'object', - 'properties' => [ - 'TaskName' => [ - 'description' => '流量调控任务名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'testname', - ], - 'description' => [ - 'description' => '流量调控描述信息。', - 'type' => 'string', - 'required' => false, - 'example' => '描述', - ], - 'endTime' => [ - 'description' => '结束时间秒级时间戳。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1639519200', - ], - 'metaType' => [ - 'description' => '流量调控Meta类型,固定值FlowControlTask。', - 'type' => 'string', - 'required' => false, - 'example' => 'FlowControlTask', - ], - 'sceneIds' => [ - 'description' => '场景ID,支持多个,英文,分割即可。', - 'type' => 'string', - 'required' => false, - 'example' => 'all,sy101', - ], - 'selectionParams' => [ - 'description' => '选品规则参数列表。', - 'type' => 'array', - 'items' => [ - 'description' => '选品规则参数。', - 'type' => 'object', - 'properties' => [ - 'selectType' => [ - 'description' => '选品规则过滤条件类型。', - 'type' => 'string', - 'required' => false, - 'example' => 'invalidItem', - ], - 'selectValue' => [ - 'description' => '选品规则过滤条件具体数值。', - 'type' => 'string', - 'required' => false, - 'example' => '20', - ], - 'selectionOperation' => [ - 'description' => '选品规则过滤条件操作。', - 'type' => 'string', - 'required' => false, - 'example' => 'OPERATOR_HIGHER', - ], - ], - 'required' => false, - ], - 'required' => false, - ], - 'startTime' => [ - 'description' => '开始时间(秒级时间戳)。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1638460800', - ], - 'target' => [ - 'description' => '物品曝光配置。', - 'type' => 'object', - 'properties' => [ - 'type' => [ - 'description' => '曝光类型。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **EXPOSE_PERCENT**:每日曝光百分比。'."\n" - ."\n" - .'- **EXPOSE_COUNT**:曝光总量。', - 'type' => 'string', - 'required' => false, - 'example' => 'EXPOSE_PERCENT', - ], - 'value' => [ - 'description' => '曝光值。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '50', - ], - ], - 'required' => false, - ], - ], - 'required' => false, - ], + 'name' => 'experimentId', + 'in' => 'path', + 'schema' => ['description' => '实验ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '23245'], ], ], 'responses' => [ @@ -6750,387 +3645,328 @@ 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], 'result' => [ 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'gmtCreate' => [ - 'description' => '创建时间的UTC时间。', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'gmtModified' => [ - 'description' => '最后修改数据源的UTC时间。', - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'meta' => [ - 'description' => '流量调控Meta。', - 'type' => 'object', - 'properties' => [ - 'description' => [ - 'description' => '流量调控描述信息。', - 'type' => 'string', - 'example' => 'tst', - ], - 'endTime' => [ - 'description' => '结束时间秒级时间戳。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1656518399', - ], - 'metaType' => [ - 'description' => '流量调控Meta类型,固定值FlowControlTask。', - 'type' => 'string', - 'example' => 'FlowControlTask', - ], - 'sceneIds' => [ - 'description' => '场景ID,支持多个,英文,分割即可。', - 'type' => 'string', - 'example' => '1,2,3', - ], - 'selectionParams' => [ - 'description' => '选品规则参数列表。', - 'type' => 'array', - 'items' => [ - 'description' => '选品规则参数。', - 'type' => 'object', - 'properties' => [ - 'selectType' => [ - 'description' => '选品规则过滤条件类型。', - 'type' => 'string', - 'example' => 'QUERY_PUB_TIME', - ], - 'selectValue' => [ - 'description' => '选品规则过滤条件具体数值。', - 'type' => 'string', - 'example' => '10000', - ], - 'selectionOperation' => [ - 'description' => '选品规则过滤条件操作。', - 'type' => 'string', - 'example' => 'OPERATOR_HIGHER', + 'base' => ['description' => '是否为默认实验。', 'type' => 'boolean', 'example' => 'true'], + 'onlineTime' => ['description' => '实验上线时间。', 'type' => 'string', 'example' => '2020-11-11T09:47:43.000Z'], + 'offlineTime' => ['description' => '实验下线时间。', 'type' => 'string', 'example' => '2020-11-11T09:47:43.000Z'], + 'description' => ['description' => '实验备注。', 'type' => 'string', 'example' => 'xxx'], + 'status' => ['description' => '实验状态。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Init**:未上线。'."\n" + ."\n" + .'- **Online**:上线。'."\n" + ."\n" + .'- **Finish**:推全。'."\n" + ."\n" + .'- **Offline**:下线。', 'type' => 'string', 'example' => '1'], + 'name' => ['description' => '实验名称。', 'type' => 'string', 'example' => 'test'], + 'algorithms' => [ + 'description' => '实验参数列表。', + 'type' => 'array', + 'items' => [ + 'description' => '实验参数信息。', + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => '算法key。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **I2I**:I2I召回链路。'."\n" + ."\n" + .'- **u2X2I**:U2X2I召回链路。'."\n" + ."\n" + .'- **hot**:热门商品召回链路。'."\n" + ."\n" + .'- **new**:新品召回链路。'."\n" + ."\n" + .'- **embedding**:向量召回链路。'."\n" + ."\n" + .'- **mtorder**:召回链路优先级。'."\n" + ."\n" + .'- **rankservice**:排序服务。', 'type' => 'string', 'example' => 'I2I'], + 'config' => [ + 'description' => '子配置项列表。', + 'type' => 'array', + 'items' => [ + 'description' => '子配置项信息。', + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => '算法配置项key。', 'type' => 'string', 'example' => 'I2I'], + 'defaultValue' => ['description' => '算法配置项默认值。', 'type' => 'string', 'example' => 'true'], + 'experimentValue' => ['description' => '实验值。', 'type' => 'string', 'example' => '400'], + 'name' => ['description' => '子配置名称。', 'type' => 'string', 'example' => 'xxx'], ], ], ], - ], - 'startTime' => [ - 'description' => '开始时间(秒级时间戳)。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1640739600', - ], - 'target' => [ - 'description' => '曝光配置。', - 'type' => 'object', - 'properties' => [ - 'type' => [ - 'description' => '曝光类型。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **EXPOSE_PERCENT**:每日曝光百分比。'."\n" - ."\n" - .'- **EXPOSE_COUNT**:曝光总量。', - 'type' => 'string', - 'example' => 'EXPOSE_PERCENT', - ], - 'value' => [ - 'description' => '曝光值。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '20', - ], - ], - ], - 'taskName' => [ - 'description' => '流量调侃任务名称。', - 'type' => 'string', - 'example' => '活动用户测试', + 'defaultValue' => ['description' => '默认召回数量。', 'type' => 'string', 'example' => 'true'], + 'type' => ['description' => '算法类别。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **SYSTEM**:系统默认类型。'."\n" + ."\n" + .'- **CUSTOM**:用户自定义类型。', 'type' => 'string', 'example' => 'SYSTEM'], + 'experimentValue' => ['description' => '实验值。', 'type' => 'string', 'example' => '空'], + 'hasConfig' => ['description' => '是否有子配置项。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **true**:是'."\n" + ."\n" + .'- **false**:否', 'type' => 'boolean', 'example' => 'false'], + 'category' => ['description' => '算法类目。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **RECALL**:召回。'."\n" + ."\n" + .'- **RANK**:排序。', 'type' => 'string', 'example' => '2'], + 'name' => ['description' => '实验名称。', 'type' => 'string', 'example' => 'test'], ], ], ], - 'status' => [ - 'description' => '任务状态。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **DRAFT**:草稿。'."\n" - ."\n" - .'- **READY**:待生效。'."\n" - ."\n" - .'- **RUNNING**:运行中。'."\n" - ."\n" - .'- **ENDED**:结束。', - 'type' => 'string', - 'example' => 'DRAFT', - ], - 'TaskId' => [ - 'description' => '流量调侃任务ID。', - 'type' => 'string', - 'example' => '1661506482', + 'buckets' => [ + 'description' => '分桶列表,上线实验时该字段才生效。', + 'type' => 'array', + 'items' => ['description' => '分桶信息。', 'type' => 'string', 'example' => '["1","2","3"]'], ], + 'experimentId' => ['description' => '实验ID。', 'type' => 'string', 'example' => '12345'], ], ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B'], ], ], ], - 500 => [ + '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"result\\": {\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"gmtModified\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"meta\\": {\\n \\"description\\": \\"tst\\",\\n \\"endTime\\": 1656518399,\\n \\"metaType\\": \\"FlowControlTask\\",\\n \\"sceneIds\\": \\"1,2,3\\",\\n \\"selectionParams\\": [\\n {\\n \\"selectType\\": \\"QUERY_PUB_TIME\\",\\n \\"selectValue\\": \\"10000\\",\\n \\"selectionOperation\\": \\"OPERATOR_HIGHER\\"\\n }\\n ],\\n \\"startTime\\": 1640739600,\\n \\"target\\": {\\n \\"type\\": \\"EXPOSE_PERCENT\\",\\n \\"value\\": 20\\n },\\n \\"taskName\\": \\"活动用户测试\\"\\n },\\n \\"status\\": \\"DRAFT\\",\\n \\"TaskId\\": \\"1661506482\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<ModifyFlowControlTaskResponse>\\n <taskName>test</taskName>\\n <description>这是一个测试任务</description>\\n <startTime>1621267200</startTime>\\n <endTime>1621267200</endTime>\\n <selectionParams>\\n <selectType/>\\n <selectionOperation/>\\n <selectValue/>\\n </selectionParams>\\n <sceneIds>1,2,3</sceneIds>\\n <target>\\n <type>EXPOSE_PERCENT</type>\\n <value>50</value>\\n </target>\\n <metaType>FlowControlTask</metaType>\\n</ModifyFlowControlTaskResponse>","errorExample":""}]', - 'title' => '修改流量控制任务,目前只支持草稿态和发布失败状态的任务修改配置信息', - ], - 'StopFlowControlTask' => [ - 'summary' => '结束流量调控任务。', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/actions/stop', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => 'DescribeExperiment', + 'summary' => '查看一个实验详情。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeExperiment', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"base\\": true,\\n \\"onlineTime\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"offlineTime\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"description\\": \\"xxx\\",\\n \\"status\\": \\"1\\",\\n \\"name\\": \\"test\\",\\n \\"algorithms\\": [\\n {\\n \\"key\\": \\"I2I\\",\\n \\"config\\": [\\n {\\n \\"key\\": \\"I2I\\",\\n \\"defaultValue\\": \\"true\\",\\n \\"experimentValue\\": \\"400\\",\\n \\"name\\": \\"xxx\\"\\n }\\n ],\\n \\"defaultValue\\": \\"true\\",\\n \\"type\\": \\"SYSTEM\\",\\n \\"experimentValue\\": \\"空\\",\\n \\"hasConfig\\": false,\\n \\"category\\": \\"2\\",\\n \\"name\\": \\"test\\"\\n }\\n ],\\n \\"buckets\\": [\\n \\"[\\\\\\"1\\\\\\",\\\\\\"2\\\\\\",\\\\\\"3\\\\\\"]\\"\\n ],\\n \\"experimentId\\": \\"12345\\"\\n },\\n \\"requestId\\": \\"E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'DescribeExperimentEnv' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiment-env', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '154378', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18680', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'taskId', + 'name' => 'sceneId', 'in' => 'path', - 'schema' => [ - 'description' => '流量调控任务ID。', - 'type' => 'string', - 'required' => false, - 'example' => '1666854602398', - ], + 'schema' => ['description' => '场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'sceneId'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], 'result' => [ 'description' => '返回参数。', - 'type' => 'boolean', - 'example' => 'true', + 'type' => 'object', + 'properties' => [ + 'bucketCount' => ['description' => '分桶数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'divideType' => ['description' => '分桶方式UID/IMEI。', 'type' => 'string', 'example' => 'UID'], + ], ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], ], ], ], - 500 => [ + '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], - 'code' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": true\\n}","errorExample":""},{"type":"xml","example":"<StopFlowControlTaskResponse>\\n <requestId>8F81A922-6C81-46D6-B78C-CC35E16B1691</requestId>\\n <result>true</result>\\n</StopFlowControlTaskResponse>","errorExample":""}]', - 'title' => '结束流量调控任务', - ], - 'PublishFlowControlTask' => [ - 'summary' => '发布流量调控任务。', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/actions/publish', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取实验环境', + 'summary' => '查看实验场景信息。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeExperimentEnv', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"bucketCount\\": 10,\\n \\"divideType\\": \\"UID\\"\\n },\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'DescribeExperimentEnvProgress' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiment-progress', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '154377', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18681', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'taskId', + 'name' => 'sceneId', 'in' => 'path', - 'schema' => [ - 'description' => '流量调控任务ID。', - 'type' => 'string', - 'required' => false, - 'example' => '1666669577221', - ], + 'schema' => ['description' => '场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'sceneId'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], 'result' => [ 'description' => '返回参数。', - 'type' => 'boolean', - 'example' => 'true', + 'type' => 'object', + 'properties' => [ + 'status' => ['description' => '开通状态。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **NotOpen**:未开通。'."\n" + ."\n" + .'- **Processing**:开通中。'."\n" + ."\n" + .'- **Running**:运行中。', 'type' => 'string', 'example' => 'Processing'], + 'progress' => ['description' => '执行进度,范围为0-100,100为执行结束。', 'type' => 'integer', 'format' => 'int32', 'example' => '80'], + ], ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B'], ], ], ], - 500 => [ + '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], - 'code' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": true\\n}","errorExample":""},{"type":"xml","example":"<PublishFlowControlTaskResponse>\\n <requestId>8F81A922-6C81-46D6-B78C-CC35E16B1691</requestId>\\n <result>true</result>\\n</PublishFlowControlTaskResponse>","errorExample":""}]', - 'title' => '发布流量调控任务', - ], - 'CreateFilteringAlgorithm' => [ - 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取实验环境进度', + 'summary' => '查看实验场景开通状态。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeExperimentEnvProgress', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"status\\": \\"Processing\\",\\n \\"progress\\": 80\\n },\\n \\"requestId\\": \\"E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B\\"\\n}","type":"json"}]', + ], + 'DescribeFilteringAlgorithm' => [ + 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '18665', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18682', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'dryRun', - 'in' => 'query', - 'schema' => [ - 'description' => '是否预检参数。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **true**:不会真实执行。'."\n" - ."\n" - .'- **false**:会直接执行。', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'true', - ], + 'name' => 'algorithmId', + 'in' => 'path', + 'schema' => ['description' => '指定的召回表ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'abc'], ], ], 'responses' => [ @@ -7143,149 +3979,58 @@ 'description' => '召回表信息。', 'type' => 'object', 'properties' => [ - 'gmtModified' => [ - 'description' => '最后更新时间,单位为UTC时间。', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'status' => [ - 'description' => '表示单签召回表的状态。 '."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Draft**:草稿。'."\n" - ."\n" - .'- **Running**:运行中。'."\n" - ."\n" - .'- **Offline**:已下线。'."\n" - ."\n" - .'- **Deleted**:已删除。', - 'type' => 'string', - 'example' => 'Running', - ], - 'gmtCreate' => [ - 'description' => '创建时间的UTC时间。', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'algorithmId' => [ - 'description' => '召回表ID。', - 'type' => 'string', - 'example' => 'abc', - ], + 'gmtModified' => ['description' => '最后更新时间,单位为UTC时间。', 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'status' => ['description' => '表示单签召回表的状态。 '."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Draft**:草稿。'."\n" + ."\n" + .'- **Running**:运行中。'."\n" + ."\n" + .'- **Offline**:已下线。'."\n" + ."\n" + .'- **Deleted**:已删除。', 'type' => 'string', 'example' => 'Draft'], + 'gmtCreate' => ['description' => '创建时间的UTC时间。', 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'algorithmId' => ['description' => '指定的召回ID。', 'type' => 'string', 'example' => 'abc'], 'meta' => [ 'description' => 'Meta源数据。', 'type' => 'object', 'properties' => [ - 'type' => [ - 'description' => '数据源类型,当前只支持ODPS。', - 'type' => 'string', - 'example' => 'ODPS', - ], + 'taskId' => ['description' => '任务ID。', 'type' => 'string', 'example' => 'taskId'], + 'metaType' => ['description' => '算法类型,当前只支持ODPS。', 'type' => 'string', 'example' => 'metaType'], + 'type' => ['description' => '数据源类型,当前只支持ODPS。', 'type' => 'string', 'example' => 'ODPS'], 'extInfo' => [ 'description' => '召回表类型包含内容。', 'type' => 'object', - 'example' => '{}', - ], - 'category' => [ - 'description' => '数据源召回类目。', - 'type' => 'string', - 'example' => '1_2', + 'properties' => [ + 'kvSeparator' => ['description' => 'kv分隔符。', 'type' => 'string', 'example' => ':'], + 'itemSeparator' => ['description' => 'Item分隔符。', 'type' => 'string', 'example' => ','], + ], ], + 'category' => ['description' => '召回类别。', 'type' => 'string', 'example' => '1_2'], 'threshold' => [ 'description' => 'Table的阈值信息。', 'type' => 'object', 'properties' => [ - 'sourceDataSizeThreshold' => [ - 'description' => '源数据大小波动阈值(0-100)。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'sourceDataRecordThreshold' => [ - 'description' => '源数据条目数波动阈值(0-100)。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'indexSizeThreshold' => [ - 'description' => '索引大小波动阈值(0-100)。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'indexLossThreshold' => [ - 'description' => '索引丢失阈值(0-100)。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], + 'sourceDataSizeThreshold' => ['description' => '源数据大小波动阈值。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'sourceDataRecordThreshold' => ['description' => '源数据条目数波动阈值。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'indexSizeThreshold' => ['description' => '索引大小波动阈值。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'indexLossThreshold' => ['description' => '索引丢失阈值。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], ], ], - 'status' => [ - 'description' => '表示单签召回表的状态。 '."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Draft**:草稿。'."\n" - ."\n" - .'- **Running**:运行中。'."\n" - ."\n" - .'- **Offline**:已下线。'."\n" - ."\n" - .'- **Deleted**:已删除。', - 'type' => 'string', - 'example' => 'Running', - ], - 'gmtCreate' => [ - 'description' => '创建时间的UTC时间。', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'tableName' => [ - 'description' => 'ODPS召回表名称。', - 'type' => 'string', - 'example' => 'table_test', - ], - 'cron' => [ - 'description' => '定时调度任务Cron。', - 'type' => 'string', - 'example' => '0 0/12 0 * *', - ], - 'description' => [ - 'description' => '描述。', - 'type' => 'string', - 'example' => 'xx', - ], - 'gmtModified' => [ - 'description' => '最后修改时间的UTC时间。', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'projectName' => [ - 'description' => 'ODPS中的ProjectName。', - 'type' => 'string', - 'example' => 'testname', - ], - 'algorithmName' => [ - 'description' => '召回名称。', - 'type' => 'string', - 'example' => 'algorithmTest', - ], - 'cronEnabled' => [ - 'description' => '是否开启定时任务。', - 'type' => 'boolean', - 'example' => 'true', - ], + 'tableName' => ['description' => 'ODPS召回表名称。', 'type' => 'string', 'example' => 'test_table'], + 'clusterId' => ['description' => '集群ID。', 'type' => 'string', 'example' => '244'], + 'cron' => ['description' => '定时调度任务Cron。', 'type' => 'string', 'example' => '* * 24 7 0'], + 'description' => ['description' => '描述。', 'type' => 'string', 'example' => 'test'], + 'projectName' => ['description' => 'ODPS中的ProjectName。', 'type' => 'string', 'example' => 'test'], + 'algorithmName' => ['description' => '算法名称。', 'type' => 'string', 'example' => 'test'], + 'cronEnabled' => ['description' => '是否开启定时任务。', 'type' => 'boolean', 'example' => 'Y'], ], ], ], ], - 'requestId' => [ - 'description' => '请求的ID。', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3'], ], ], ], @@ -7293,68 +4038,56 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"gmtModified\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"status\\": \\"Running\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"algorithmId\\": \\"abc\\",\\n \\"meta\\": {\\n \\"type\\": \\"ODPS\\",\\n \\"extInfo\\": {},\\n \\"category\\": \\"1_2\\",\\n \\"threshold\\": {\\n \\"sourceDataSizeThreshold\\": 1,\\n \\"sourceDataRecordThreshold\\": 1,\\n \\"indexSizeThreshold\\": 1,\\n \\"indexLossThreshold\\": 1\\n },\\n \\"status\\": \\"Running\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"tableName\\": \\"table_test\\",\\n \\"cron\\": \\"0 0/12 0 * *\\",\\n \\"description\\": \\"xx\\",\\n \\"gmtModified\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"projectName\\": \\"testname\\",\\n \\"algorithmName\\": \\"algorithmTest\\",\\n \\"cronEnabled\\": true\\n }\\n },\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '创建召回表', - 'summary' => '创建召回表,目前召回表由PAI训练完成导出到odps中,在AIRec中指定ODPS表信息。', - ], - 'DeleteFilteringAlgorithm' => [ - 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取召回表', + 'summary' => '根据指定召回表ID 获取某个召回配置信息。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeFilteringAlgorithm', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"gmtModified\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"status\\": \\"Draft\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"algorithmId\\": \\"abc\\",\\n \\"meta\\": {\\n \\"taskId\\": \\"taskId\\",\\n \\"metaType\\": \\"metaType\\",\\n \\"type\\": \\"ODPS\\",\\n \\"extInfo\\": {\\n \\"kvSeparator\\": \\":\\",\\n \\"itemSeparator\\": \\",\\"\\n },\\n \\"category\\": \\"1_2\\",\\n \\"threshold\\": {\\n \\"sourceDataSizeThreshold\\": 1,\\n \\"sourceDataRecordThreshold\\": 1,\\n \\"indexSizeThreshold\\": 1,\\n \\"indexLossThreshold\\": 1\\n },\\n \\"tableName\\": \\"test_table\\",\\n \\"clusterId\\": \\"244\\",\\n \\"cron\\": \\"* * 24 7 0\\",\\n \\"description\\": \\"test\\",\\n \\"projectName\\": \\"test\\",\\n \\"algorithmName\\": \\"test\\",\\n \\"cronEnabled\\": true\\n }\\n },\\n \\"requestId\\": \\"7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'DescribeInstance' => [ + 'path' => '/v2/openapi/instances/{instanceId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '18673', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18683', + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], - ], - [ - 'name' => 'algorithmId', - 'in' => 'path', - 'schema' => [ - 'description' => '指定的召回ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '1', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], ], ], 'responses' => [ @@ -7364,153 +4097,76 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '召回表信息。', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'gmtModified' => [ - 'description' => '最后更新时间,单位为UTC时间。', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'status' => [ - 'description' => '表示单签召回表的状态。 '."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Draft**:草稿。'."\n" - ."\n" - .'- **Running**:运行中。'."\n" - ."\n" - .'- **Offline**:已下线。'."\n" - ."\n" - .'- **Deleted**:已删除。', - 'type' => 'string', - 'example' => 'Running', - ], - 'gmtCreate' => [ - 'description' => '创建时间的UTC时间。', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'algorithmId' => [ - 'description' => '指定的召回ID。', - 'type' => 'string', - 'example' => '123', - ], - 'meta' => [ - 'description' => 'Meta源数据。', - 'type' => 'object', - 'properties' => [ - 'taskId' => [ - 'description' => '任务ID。', - 'type' => 'string', - 'example' => 'test01', - ], - 'metaType' => [ - 'description' => '算法类型,当前只支持ODPS。', - 'type' => 'string', - 'example' => 'odps', - ], - 'type' => [ - 'description' => '数据源类型,当前只支持ODPS。'."\n", - 'type' => 'string', - 'example' => 'ODPS', - ], - 'extInfo' => [ - 'description' => '召回表类型包含内容。', - 'type' => 'object', - 'properties' => [ - 'kvSeparator' => [ - 'description' => 'kv分隔符。', - 'type' => 'string', - 'example' => ';', - ], - 'itemSeparator' => [ - 'description' => 'Item分隔符。', - 'type' => 'string', - 'example' => ';', - ], - ], - ], - 'category' => [ - 'description' => '召回类别。', - 'type' => 'string', - 'example' => 'i2i', - ], - 'threshold' => [ - 'description' => 'Table的阈值信息。', - 'type' => 'object', - 'properties' => [ - 'sourceDataSizeThreshold' => [ - 'description' => '源数据大小波动阈值。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'sourceDataRecordThreshold' => [ - 'description' => '源数据条目数波动阈值。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'indexSizeThreshold' => [ - 'description' => '索引大小波动阈值。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'indexLossThreshold' => [ - 'description' => '索引丢失阈值。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - ], - ], - 'tableName' => [ - 'description' => 'ODPS召回表名称。', - 'type' => 'string', - 'example' => 'table01', - ], - 'clusterId' => [ - 'description' => '集群ID。', - 'type' => 'string', - 'example' => '1001', - ], - 'cron' => [ - 'description' => '定时调度任务Cron。', - 'type' => 'string', - 'example' => '0 0/12 0 * *', - ], - 'description' => [ - 'description' => '描述。', - 'type' => 'string', - 'example' => '训练任务', - ], - 'projectName' => [ - 'description' => 'ODPS中的ProjectName。', - 'type' => 'string', - 'example' => 'name01', - ], - 'algorithmName' => [ - 'description' => '召回名称。', - 'type' => 'string', - 'example' => 'user', - ], - 'cronEnabled' => [ - 'description' => '是否开启定时任务。', - 'type' => 'boolean', - 'example' => 'true', - ], - ], - ], + 'regionId' => ['description' => '实例所在的区域。'."\n", 'type' => 'string', 'example' => 'cn-beijing'], + 'type' => ['description' => '实例类型。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Algorithm_configuration**:算法配置版。'."\n" + ."\n" + .'- **Industry_operation**:行业运营版。'."\n" + ."\n" + .'- **Cold_start**:冷启动版。', 'type' => 'string', 'example' => 'Standard'], + 'lockMode' => ['description' => '实例锁定状态。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Unlock**:未锁定。'."\n" + ."\n" + .'- **ManualLock**:手动锁定。'."\n" + ."\n" + .'- **LockByExpiration**:欠费锁定。', 'type' => 'string', 'example' => 'Unlock'], + 'expiredTime' => ['description' => '实例过期时间,单位为UTC时间。'."\n", 'type' => 'string', 'example' => '2019-01-06T16:00:00.000Z'], + 'scene' => ['description' => '场景名称。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **gul**:猜你喜欢。'."\n" + ."\n" + .'- **rr**:相关推荐。'."\n" + ."\n" + .'- **hot**:热门推荐。'."\n" + ."\n" + .'- **focus**:焦点图推荐。', 'type' => 'string', 'example' => 'gul'], + 'status' => ['description' => '实例运行状态。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Initializing**:初始化中。'."\n" + ."\n" + .'- **Ready**:待数据导入。'."\n" + ."\n" + .'- **Running**:运行中。', 'type' => 'string', 'example' => 'Running'], + 'gmtCreate' => ['description' => '实例创建时间,单位为UTC时间。'."\n", 'type' => 'string', 'example' => '2018-12-06T06:14:01.000Z'], + 'chargeType' => ['description' => '实例付费类型。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **PREPAY**:预付费(包年包月)。'."\n" + ."\n" + .'- **POSTPAY**:后付费(按量付费)。', 'type' => 'string', 'example' => 'PrePaid'], + 'industry' => ['description' => '实例行业类型。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **content**:内容型。'."\n" + ."\n" + .'- **item**:商品型。'."\n" + ."\n" + .'- **news**:新闻型。', 'type' => 'string', 'example' => 'news'], + 'commodityCode' => ['description' => 'Airec商品代码。', 'type' => 'string', 'example' => 'airecpre'], + 'gmtModified' => ['description' => '实例最后更新时间,单位为UTC时间。'."\n", 'type' => 'string', 'example' => '2018-12-06T11:17:49.000Z'], + 'dataSetVersion' => ['description' => '当前在线服务的数据集版本。', 'type' => 'string', 'example' => '20181206170353'], + 'name' => ['description' => '实例名称。'."\n", 'type' => 'string', 'example' => '实例1'], + 'instanceId' => ['description' => '实例ID。'."\n", 'type' => 'string', 'example' => 'airec-cn-****'], ], ], - 'requestId' => [ - 'description' => '请求的ID。', - 'type' => 'string', - 'example' => '936BE457-5D14-4DBD-85AE-176F7BA8D96D', - ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'An internal server error occurred'], ], ], ], @@ -7518,233 +4174,106 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"gmtModified\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"status\\": \\"Running\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"algorithmId\\": \\"123\\",\\n \\"meta\\": {\\n \\"taskId\\": \\"test01\\",\\n \\"metaType\\": \\"odps\\",\\n \\"type\\": \\"ODPS\\",\\n \\"extInfo\\": {\\n \\"kvSeparator\\": \\";\\",\\n \\"itemSeparator\\": \\";\\"\\n },\\n \\"category\\": \\"i2i\\",\\n \\"threshold\\": {\\n \\"sourceDataSizeThreshold\\": 1,\\n \\"sourceDataRecordThreshold\\": 1,\\n \\"indexSizeThreshold\\": 1,\\n \\"indexLossThreshold\\": 1\\n },\\n \\"tableName\\": \\"table01\\",\\n \\"clusterId\\": \\"1001\\",\\n \\"cron\\": \\"0 0/12 0 * *\\",\\n \\"description\\": \\"训练任务\\",\\n \\"projectName\\": \\"name01\\",\\n \\"algorithmName\\": \\"user\\",\\n \\"cronEnabled\\": true\\n }\\n },\\n \\"requestId\\": \\"936BE457-5D14-4DBD-85AE-176F7BA8D96D\\"\\n}","errorExample":""},{"type":"xml","example":"<algorithmId>abc</algorithmId>\\n<gmtCreate>2018-12-07t02:24:26.000z</gmtCreate>\\n<gmtModified>2018-12-07t02:24:26.000z</gmtModified>\\n<meta>\\n <algorithmName>user</algorithmName>\\n <category>i2i</category>\\n <cron>00***</cron>\\n <extInfo>\\n <itemSeparator>,</itemSeparator>\\n <kvseparator>;</kvseparator>\\n </extInfo>\\n <fields>\\n <dest>triggeritemId</dest>\\n <source>abc</source>\\n </fields>\\n <fields>\\n <dest>targeitemId</dest>\\n <source>def</source>\\n </fields>\\n <fields>\\n <dest>weight</dest>\\n <source>ade</source>\\n </fields>\\n <partition/>\\n <projectName>openrecGray</projectName>\\n <tableName>userFakeAna</tableName>\\n <type>odps</type>\\n</meta>","errorExample":""}]', - 'title' => '删除召回表', - 'summary' => '删除指定的召回配置及相关索引表信息。', + 'title' => '查询实例信息', + 'summary' => '通过指定的实例ID查看实例详情。', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ModifyFilteringAlgorithmMeta' => [ - 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/meta', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"regionId\\": \\"cn-beijing\\",\\n \\"type\\": \\"Standard\\",\\n \\"lockMode\\": \\"Unlock\\",\\n \\"expiredTime\\": \\"2019-01-06T16:00:00.000Z\\",\\n \\"scene\\": \\"gul\\",\\n \\"status\\": \\"Running\\",\\n \\"gmtCreate\\": \\"2018-12-06T06:14:01.000Z\\",\\n \\"chargeType\\": \\"PrePaid\\",\\n \\"industry\\": \\"news\\",\\n \\"commodityCode\\": \\"airecpre\\",\\n \\"gmtModified\\": \\"2018-12-06T11:17:49.000Z\\",\\n \\"dataSetVersion\\": \\"20181206170353\\",\\n \\"name\\": \\"实例1\\",\\n \\"instanceId\\": \\"airec-cn-****\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<Result>\\n <InstanceId>airec-cn-xxxxxx</InstanceId>\\n <Name>airec-cn-xxxxxx</Name>\\n <Type>Standard</Type>\\n <Status>Running</Status>\\n <Industry>news</Industry>\\n <Scene>gul</Scene>\\n <RegionId>cn-beijing</RegionId>\\n <ChargeType>PrePaid</ChargeType>\\n <DataSetVersion>20181206170353</DataSetVersion>\\n <CommodityCode>airecpre</CommodityCode>\\n <GmtCreate>2018-12-06T06:14:01.000Z</GmtCreate>\\n <GmtModified>2018-12-06T11:17:49.000Z</GmtModified>\\n <ExpiredTime>2019-01-06T16:00:00.000Z</ExpiredTime>\\n <LockMode>Unlock</LockMode>\\n</Result>\\n<RequestId>B352FBD9-4643-441E-80ED-699D47D7B6A3</RequestId>","errorExample":""}]', + ], + 'DescribeLatestTask' => [ + 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/tasks/latest', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18720', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18684', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-test'], ], [ 'name' => 'algorithmId', 'in' => 'path', - 'schema' => [ - 'description' => '指定的召回ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '1', - ], + 'schema' => ['description' => '指定的召回ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '123'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回参数。', + 'description' => '响应体', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '召回表信息。', - 'type' => 'object', - 'properties' => [ - 'gmtModified' => [ - 'description' => '最后更新时间,单位为UTC时间。', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'status' => [ - 'description' => '表示单签召回表的状态。 '."\n" - ."\n" - .'取值:'."\n" + 'description' => '召回表信息', + 'type' => 'array', + 'items' => [ + 'description' => '召回表信息', + 'type' => 'object', + 'properties' => [ + 'code' => ['description' => '错误码', 'type' => 'string', 'example' => '400'], + 'switchedTime' => ['description' => '索引切换完成时间,为UTC时间', 'type' => 'string', 'example' => '2020-11-08T02:00:00Z'], + 'rollbackEnabled' => ['description' => '是否可以回滚', 'type' => 'boolean', 'example' => 'true'], + 'message' => ['description' => '错误信息', 'type' => 'string', 'example' => 'xxx'], + 'flowType' => ['description' => '任务类型,包含 Auto Manual Rollback ', 'type' => 'string', 'example' => 'Manual'], + 'costSeconds' => ['description' => '索引构建耗时', 'type' => 'integer', 'format' => 'int32', 'example' => '50'], + 'builtTime' => ['description' => '索引开始构建时间,为UTC时间', 'type' => 'string', 'example' => '2020-11-08T02:00:00Z'], + 'versionId' => ['description' => '索引版本的版本号,后端生成', 'type' => 'string', 'example' => '20102010211'], + 'size' => ['description' => '索引构建大小', 'type' => 'integer', 'format' => 'int64', 'example' => '2938475566'], + 'status' => ['description' => '索引状态,包含索引:'."\n" ."\n" - .'- **Draft**:草稿。'."\n" + .'- 失败(failed)'."\n" + .'- 生效中(online)'."\n" + .'- 已失效(offline)'."\n" ."\n" - .'- **Running**:运行中。'."\n" + .'全量任务:'."\n" ."\n" - .'- **Offline**:已下线。'."\n" + .'- 全量中(pending )'."\n" + .'- 已完成(success)'."\n" + .'- 失败(failed) '."\n" ."\n" - .'- **Deleted**:已删除。', - 'type' => 'string', - 'example' => 'Running', - ], - 'gmtCreate' => [ - 'description' => '创建时间的UTC时间。', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'algorithmId' => [ - 'description' => '指定的召回ID。', - 'type' => 'string', - 'example' => 'abc', - ], - 'meta' => [ - 'description' => 'Meta源数据。', - 'type' => 'object', - 'properties' => [ - 'taskId' => [ - 'description' => '任务ID。', - 'type' => 'string', - 'example' => 'taskId', - ], - 'metaType' => [ - 'description' => '算法类型,当前只支持ODPS。', - 'type' => 'string', - 'example' => 'metaType', - ], - 'type' => [ - 'description' => '数据源类型,当前只支持ODPS。', - 'type' => 'string', - 'example' => 'ODPS', - ], - 'extInfo' => [ - 'description' => '召回表类型包含内容。', - 'type' => 'object', - 'properties' => [ - 'kvSeparator' => [ - 'description' => 'kv分隔符。', - 'type' => 'string', - 'example' => ':', - ], - 'itemSeparator' => [ - 'description' => 'Item分隔符。', - 'type' => 'string', - 'example' => ',', - ], - ], - ], - 'category' => [ - 'description' => '召回类别。', - 'type' => 'string', - 'example' => '1_2', - ], - 'threshold' => [ - 'description' => 'ODPS表的阈值配置信息。', - 'type' => 'object', - 'properties' => [ - 'sourceDataSizeThreshold' => [ - 'description' => '源数据大小波动阈值。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'sourceDataRecordThreshold' => [ - 'description' => '源数据条目数波动阈值。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'indexSizeThreshold' => [ - 'description' => '索引大小波动阈值。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'indexLossThreshold' => [ - 'description' => '索引丢失阈值。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - ], - ], - 'tableName' => [ - 'description' => 'ODPS召回表名称。', - 'type' => 'string', - 'example' => 'test_table', - ], - 'clusterId' => [ - 'description' => '集群ID。', - 'type' => 'string', - 'example' => '244', - ], - 'cron' => [ - 'description' => '定时调度任务Cron。', - 'type' => 'string', - 'example' => '* * 24 7 0', - ], - 'description' => [ - 'description' => '召回算法配置描述。', - 'type' => 'string', - 'example' => 'test', - ], - 'projectName' => [ - 'description' => 'ODPS中的ProjectName。', - 'type' => 'string', - 'example' => 'test', - ], - 'algorithmName' => [ - 'description' => '召回算法配置名称。', - 'type' => 'string', - 'example' => 'test', - ], - 'cronEnabled' => [ - 'description' => '是否开启定时启动实验任务配置。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **true**:开启。'."\n" - ."\n" - .'- **false**:关闭。', - 'type' => 'boolean', - 'example' => 'true', - ], - ], + .'等', 'type' => 'string', 'example' => 'pending'], + 'progress' => ['description' => '进度展示百分比,例如80', 'type' => 'integer', 'format' => 'int32', 'example' => '80'], ], ], ], - 'requestId' => [ - 'description' => '请求的ID。', - 'type' => 'string', - 'example' => '7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3', - ], + 'requestId' => ['description' => '请求的RequestID', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], ], ], ], @@ -7752,1793 +4281,1409 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"gmtModified\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"status\\": \\"Running\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"algorithmId\\": \\"abc\\",\\n \\"meta\\": {\\n \\"taskId\\": \\"taskId\\",\\n \\"metaType\\": \\"metaType\\",\\n \\"type\\": \\"ODPS\\",\\n \\"extInfo\\": {\\n \\"kvSeparator\\": \\":\\",\\n \\"itemSeparator\\": \\",\\"\\n },\\n \\"category\\": \\"1_2\\",\\n \\"threshold\\": {\\n \\"sourceDataSizeThreshold\\": 1,\\n \\"sourceDataRecordThreshold\\": 1,\\n \\"indexSizeThreshold\\": 1,\\n \\"indexLossThreshold\\": 1\\n },\\n \\"tableName\\": \\"test_table\\",\\n \\"clusterId\\": \\"244\\",\\n \\"cron\\": \\"* * 24 7 0\\",\\n \\"description\\": \\"test\\",\\n \\"projectName\\": \\"test\\",\\n \\"algorithmName\\": \\"test\\",\\n \\"cronEnabled\\": true\\n }\\n },\\n \\"requestId\\": \\"7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => 'ModifyFilteringAlgorithmMeta', - 'summary' => '修改召回表的配置。', - 'description' => '可修改的配置有:'."\n" - .'● cron、cronEnabled'."\n" - .'● description'."\n" - .'● algorithmName'."\n" - .'● threshold:注意,如果要修改ODPS表的阈值配置信息,必须全量提交,不支持只传入ODPS表的阈值配置信息下边的某一项。', - ], - 'DescribeFilteringAlgorithm' => [ - 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取最新任务', + 'summary' => '获取最近一次构建的任务。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeLatestTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"code\\": \\"400\\",\\n \\"switchedTime\\": \\"2020-11-08T02:00:00Z\\",\\n \\"rollbackEnabled\\": true,\\n \\"message\\": \\"xxx\\",\\n \\"flowType\\": \\"Manual\\",\\n \\"costSeconds\\": 50,\\n \\"builtTime\\": \\"2020-11-08T02:00:00Z\\",\\n \\"versionId\\": \\"20102010211\\",\\n \\"size\\": 2938475566,\\n \\"status\\": \\"pending\\",\\n \\"progress\\": 80\\n }\\n ],\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","type":"json"}]', + ], + 'DescribeQuota' => [ + 'path' => '/v2/openapi/instances/{instanceId}/quota', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', - 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18682', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'abilityTreeCode' => '18685', + 'abilityTreeNodes' => ['FEATUREairecDM7OX0', 'FEATUREairecEDD4RN', 'FEATUREairecIDS0JZ', 'FEATUREairecDTVO6V'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], - ], - [ - 'name' => 'algorithmId', - 'in' => 'path', - 'schema' => [ - 'description' => '指定的召回表ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'abc', - ], + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回参数。', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '召回表信息。', + 'description' => '返回结果', 'type' => 'object', 'properties' => [ - 'gmtModified' => [ - 'description' => '最后更新时间,单位为UTC时间。', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'status' => [ - 'description' => '表示单签召回表的状态。 '."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Draft**:草稿。'."\n" - ."\n" - .'- **Running**:运行中。'."\n" - ."\n" - .'- **Offline**:已下线。'."\n" - ."\n" - .'- **Deleted**:已删除。', - 'type' => 'string', - 'example' => 'Draft', - ], - 'gmtCreate' => [ - 'description' => '创建时间的UTC时间。', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'algorithmId' => [ - 'description' => '指定的召回ID。', - 'type' => 'string', - 'example' => 'abc', - ], - 'meta' => [ - 'description' => 'Meta源数据。', - 'type' => 'object', - 'properties' => [ - 'taskId' => [ - 'description' => '任务ID。', - 'type' => 'string', - 'example' => 'taskId', - ], - 'metaType' => [ - 'description' => '算法类型,当前只支持ODPS。', - 'type' => 'string', - 'example' => 'metaType', - ], - 'type' => [ - 'description' => '数据源类型,当前只支持ODPS。', - 'type' => 'string', - 'example' => 'ODPS', - ], - 'extInfo' => [ - 'description' => '召回表类型包含内容。', - 'type' => 'object', - 'properties' => [ - 'kvSeparator' => [ - 'description' => 'kv分隔符。', - 'type' => 'string', - 'example' => ':', - ], - 'itemSeparator' => [ - 'description' => 'Item分隔符。', - 'type' => 'string', - 'example' => ',', - ], - ], - ], - 'category' => [ - 'description' => '召回类别。', - 'type' => 'string', - 'example' => '1_2', - ], - 'threshold' => [ - 'description' => 'Table的阈值信息。', - 'type' => 'object', - 'properties' => [ - 'sourceDataSizeThreshold' => [ - 'description' => '源数据大小波动阈值。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'sourceDataRecordThreshold' => [ - 'description' => '源数据条目数波动阈值。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'indexSizeThreshold' => [ - 'description' => '索引大小波动阈值。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'indexLossThreshold' => [ - 'description' => '索引丢失阈值。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - ], - ], - 'tableName' => [ - 'description' => 'ODPS召回表名称。', - 'type' => 'string', - 'example' => 'test_table', - ], - 'clusterId' => [ - 'description' => '集群ID。', - 'type' => 'string', - 'example' => '244', - ], - 'cron' => [ - 'description' => '定时调度任务Cron。', - 'type' => 'string', - 'example' => '* * 24 7 0', - ], - 'description' => [ - 'description' => '描述。', - 'type' => 'string', - 'example' => 'test', - ], - 'projectName' => [ - 'description' => 'ODPS中的ProjectName。', - 'type' => 'string', - 'example' => 'test', - ], - 'algorithmName' => [ - 'description' => '算法名称。', - 'type' => 'string', - 'example' => 'test', - ], - 'cronEnabled' => [ - 'description' => '是否开启定时任务。', - 'type' => 'boolean', - 'example' => 'Y', - ], - ], - ], + 'itemCountUsed' => ['description' => '已经使用的物品数'."\n" + ."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '100'], + 'itemCount' => ['description' => '物品表文档数,取值范围:1~1000', 'type' => 'integer', 'format' => 'int64', 'example' => '100'], + 'userCount' => ['description' => '用户表文档数,取值范围如下:'."\n" + .'1~1000', 'type' => 'integer', 'format' => 'int64', 'example' => '100'], + 'userCountUsed' => ['description' => '已使用的用户数', 'type' => 'integer', 'format' => 'int64', 'example' => '100'], + 'qps' => ['description' => '查询的QPS值,取值范围如下:'."\n" + ."\n" + .'最小值 10、最大值 500', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'currentQps' => ['description' => '弹性QPS数量', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], ], ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3', - ], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'success'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"gmtModified\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"status\\": \\"Draft\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"algorithmId\\": \\"abc\\",\\n \\"meta\\": {\\n \\"taskId\\": \\"taskId\\",\\n \\"metaType\\": \\"metaType\\",\\n \\"type\\": \\"ODPS\\",\\n \\"extInfo\\": {\\n \\"kvSeparator\\": \\":\\",\\n \\"itemSeparator\\": \\",\\"\\n },\\n \\"category\\": \\"1_2\\",\\n \\"threshold\\": {\\n \\"sourceDataSizeThreshold\\": 1,\\n \\"sourceDataRecordThreshold\\": 1,\\n \\"indexSizeThreshold\\": 1,\\n \\"indexLossThreshold\\": 1\\n },\\n \\"tableName\\": \\"test_table\\",\\n \\"clusterId\\": \\"244\\",\\n \\"cron\\": \\"* * 24 7 0\\",\\n \\"description\\": \\"test\\",\\n \\"projectName\\": \\"test\\",\\n \\"algorithmName\\": \\"test\\",\\n \\"cronEnabled\\": true\\n }\\n },\\n \\"requestId\\": \\"7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '获取召回表', - 'summary' => '根据指定召回表ID 获取某个召回配置信息。', - ], - 'ListFilteringAlgorithms' => [ - 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取指定实例的配额信息', + 'summary' => '通过指定的实例ID查看实例的配额信息。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeQuota', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"itemCountUsed\\": 100,\\n \\"itemCount\\": 100,\\n \\"userCount\\": 100,\\n \\"userCountUsed\\": 100,\\n \\"qps\\": 10,\\n \\"currentQps\\": 10\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', + ], + 'DescribeRegions' => [ + 'path' => '/v2/openapi/configurations/regions', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', - 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18703', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'abilityTreeCode' => '18686', + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], - ], - [ - 'name' => 'status', - 'in' => 'query', - 'schema' => [ - 'description' => '表示单签召回表的状态。 '."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Draft**:草稿。'."\n" - ."\n" - .'- **Running**:运行中。'."\n" - ."\n" - .'- **Offline**:已下线。'."\n" - ."\n" - .'- **Deleted**:已删除。', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'Running', - ], - ], - [ - 'name' => 'algorithmId', - 'in' => 'query', - 'schema' => [ - 'description' => '召回表ID。', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => '123', - ], - ], - [ - 'name' => 'page', - 'in' => 'query', - 'schema' => [ - 'description' => '召回表分页。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'docRequired' => false, - 'example' => '1', - ], - ], - [ - 'name' => 'size', + 'name' => 'acceptLanguage', 'in' => 'query', - 'schema' => [ - 'description' => '召回表大小。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'docRequired' => false, - 'example' => '1', - ], + 'schema' => ['description' => '指定返回的语言,默认值为zh-cn。', 'type' => 'string', 'required' => false, 'example' => 'zh-cn'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回参数。', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '返回参数。', + 'description' => '返回结果', 'type' => 'array', 'items' => [ - 'description' => '召回表信息。', + 'description' => '返回详情结果', 'type' => 'object', 'properties' => [ - 'gmtModified' => [ - 'description' => '最后更新时间,单位为UTC时间。', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'status' => [ - 'description' => '表示单签召回表的状态。 '."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Draft**:草稿。'."\n" - ."\n" - .'- **Running**:运行中。'."\n" - ."\n" - .'- **Offline**:已下线。'."\n" - ."\n" - .'- **Deleted**:已删除。', - 'type' => 'string', - 'example' => 'Running', - ], - 'gmtCreate' => [ - 'description' => '创建时间的UTC时间。', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'algorithmId' => [ - 'description' => '指定的召回ID。', - 'type' => 'string', - 'example' => '123', - ], - 'meta' => [ - 'description' => 'Meta源数据。', - 'type' => 'object', - 'properties' => [ - 'taskId' => [ - 'description' => '任务ID。', - 'type' => 'string', - 'example' => '123', - ], - 'metaType' => [ - 'description' => '算法类型,当前只支持ODPS。', - 'type' => 'string', - 'example' => 'ODPS', - ], - 'type' => [ - 'description' => '数据源类型,当前只支持ODPS。', - 'type' => 'string', - 'example' => 'odps', - ], - 'extInfo' => [ - 'description' => '召回表类型包含内容。', - 'type' => 'object', - 'properties' => [ - 'kvSeparator' => [ - 'description' => 'kv分隔符。', - 'type' => 'string', - 'example' => ':', - ], - 'itemSeparator' => [ - 'description' => 'Item分隔符。', - 'type' => 'string', - 'example' => ',', - ], - ], - ], - 'category' => [ - 'description' => '召回类别。', - 'type' => 'string', - 'example' => 'odps', - ], - 'threshold' => [ - 'description' => 'Table的阈值信息。', - 'type' => 'object', - 'properties' => [ - 'sourceDataSizeThreshold' => [ - 'description' => '源数据大小波动阈值。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'sourceDataRecordThreshold' => [ - 'description' => '源数据条目数波动阈值。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'indexSizeThreshold' => [ - 'description' => '索引大小阈值。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'indexLossThreshold' => [ - 'description' => '索引丢失阈值。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - ], - ], - 'tableName' => [ - 'description' => 'ODPS召回表名称。', - 'type' => 'string', - 'example' => 'item', - ], - 'clusterId' => [ - 'description' => '集群ID。', - 'type' => 'string', - 'example' => '123', - ], - 'cron' => [ - 'description' => '定时调度任务Cron。', - 'type' => 'string', - 'example' => '0 0/12 0 * *', - ], - 'description' => [ - 'description' => '描述。', - 'type' => 'string', - 'example' => 'test', - ], - 'projectName' => [ - 'description' => 'ODPS中的ProjectName。', - 'type' => 'string', - 'example' => 'airec123', - ], - 'algorithmName' => [ - 'description' => '算法名称。', - 'type' => 'string', - 'example' => 'test', - ], - 'cronEnabled' => [ - 'description' => '是否开启定时任务。', - 'type' => 'boolean', - 'example' => 'true', - ], - ], - ], - ], - ], - ], - 'headers' => [ - 'description' => '显示header信息,目前有count在map中。', - 'type' => 'object', - 'properties' => [ - 'X-Total-Count' => [ - 'description' => '总数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '12', + 'regionId' => ['description' => '实例所在的区域。', 'type' => 'string', 'example' => 'cn-beijing'], + 'endpoint' => ['description' => '接入点地址', 'type' => 'string', 'example' => '47.109.94.218'], + 'status' => ['description' => '开通状态:'."\n" + .'NotOpen 未开通'."\n" + .'Processing 开通中'."\n" + .'Running 运行中', 'type' => 'string', 'example' => 'Running'], + 'localName' => ['description' => '区域名称', 'type' => 'string', 'example' => 'xxx'], + 'consoleUrl' => ['description' => '控制台地址', 'type' => 'string', 'example' => 'xxx'], ], ], ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3', - ], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '16B78383-2803-4964-9605-37B30C073B0E'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'successful'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"gmtModified\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"status\\": \\"Running\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"algorithmId\\": \\"123\\",\\n \\"meta\\": {\\n \\"taskId\\": \\"123\\",\\n \\"metaType\\": \\"ODPS\\",\\n \\"type\\": \\"odps\\",\\n \\"extInfo\\": {\\n \\"kvSeparator\\": \\":\\",\\n \\"itemSeparator\\": \\",\\"\\n },\\n \\"category\\": \\"odps\\",\\n \\"threshold\\": {\\n \\"sourceDataSizeThreshold\\": 1,\\n \\"sourceDataRecordThreshold\\": 1,\\n \\"indexSizeThreshold\\": 1,\\n \\"indexLossThreshold\\": 1\\n },\\n \\"tableName\\": \\"item\\",\\n \\"clusterId\\": \\"123\\",\\n \\"cron\\": \\"0 0/12 0 * *\\",\\n \\"description\\": \\"test\\",\\n \\"projectName\\": \\"airec123\\",\\n \\"algorithmName\\": \\"test\\",\\n \\"cronEnabled\\": true\\n }\\n }\\n ],\\n \\"headers\\": {\\n \\"X-Total-Count\\": 12\\n },\\n \\"requestId\\": \\"7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3\\"\\n}","errorExample":""},{"type":"xml","example":"<headers>\\n <x-total-count>12</x-total-count>\\n</headers>\\n<requestId>7585c2b2-0d61-4c96-ac5d-b960bfedd4a3</requestId>\\n<result>\\n <algorithmId>abc</algorithmId>\\n <gmtCreate>2018-12-07t02:24:26.000z</gmtCreate>\\n <gmtModified>2018-12-07t02:24:26.000z</gmtModified>\\n <meta>\\n <algorithmName>user</algorithmName>\\n <category>i2i</category>\\n <cron>00***</cron>\\n <extInfo>\\n <itemSeparator>,</itemSeparator>\\n <kvseparator>;</kvseparator>\\n </extInfo>\\n <fields>\\n <dest>triggeritemId</dest>\\n <source>abc</source>\\n </fields>\\n <fields>\\n <dest>targeitemId</dest>\\n <source>def</source>\\n </fields>\\n <fields>\\n <dest>weight</dest>\\n <source>ade</source>\\n </fields>\\n <partition/>\\n <projectName>openrecGray</projectName>\\n <tableName>userFakeAna</tableName>\\n <type>odps</type>\\n </meta>\\n <status>running</status>\\n</result>","errorExample":""}]', - 'title' => '获取召回表列表', - 'summary' => '列表显示所有的召回表信息。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'OfflineFilteringAlgorithm' => [ - 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/actions/offline', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '查询区域', + 'summary' => '查询可以使用的阿里云区域。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeRegions', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"regionId\\": \\"cn-beijing\\",\\n \\"endpoint\\": \\"47.109.94.218\\",\\n \\"status\\": \\"Running\\",\\n \\"localName\\": \\"xxx\\",\\n \\"consoleUrl\\": \\"xxx\\"\\n }\\n ],\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"16B78383-2803-4964-9605-37B30C073B0E\\",\\n \\"message\\": \\"successful\\"\\n}","type":"json"}]', + ], + 'DescribeRule' => [ + 'path' => '/v2/openapi/instances/{instanceId}/rules/{ruleId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18726', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18687', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'algorithmId', + 'name' => 'ruleId', 'in' => 'path', - 'schema' => [ - 'description' => '召回算法ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'schema' => ['description' => '通过规则ID查询。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '98493A14-D619-4E88-9F8D-108939817F9F'], + ], + [ + 'name' => 'sceneId', + 'in' => 'query', + 'schema' => ['description' => '场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'scenetest'], + ], + [ + 'name' => 'ruleType', + 'in' => 'query', + 'schema' => ['description' => '规则类型:'."\n" + .'**selection:**选品规则'."\n" + ."\n" + .'**operation:**运营规则'."\n" + ."\n" + .'**top:**置顶规则'."\n" + ."\n" + .'**fixed:**定坑规则', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'selection'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回参数。', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '召回表信息。', + 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ - 'gmtModified' => [ - 'description' => '最后更新时间,单位为UTC时间。', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'status' => [ - 'description' => '表示单签召回表的状态。 '."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **Draft**:草稿。'."\n" - ."\n" - .'- **Running**:运行中。'."\n" - ."\n" - .'- **Offline**:已下线。'."\n" - ."\n" - .'- **Deleted**:已删除。', - 'type' => 'string', - 'example' => 'Init', - ], - 'gmtCreate' => [ - 'description' => '创建时间的UTC时间。', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'algorithmId' => [ - 'description' => '指定的召回ID。', - 'type' => 'string', - 'example' => 'abc', - ], - 'meta' => [ - 'description' => 'Meta源数据。', - 'type' => 'object', - 'properties' => [ - 'taskId' => [ - 'description' => '任务ID。', - 'type' => 'string', - 'example' => 'taskId', - ], - 'metaType' => [ - 'description' => '算法类型,当前只支持ODPS。', - 'type' => 'string', - 'example' => 'metaType', - ], - 'type' => [ - 'description' => '数据源类型,当前只支持ODPS。', - 'type' => 'string', - 'example' => 'ODPS', - ], - 'extInfo' => [ - 'description' => '召回表类型包含内容。', - 'type' => 'object', - 'properties' => [ - 'kvSeparator' => [ - 'description' => 'kv分隔符。', - 'type' => 'string', - 'example' => ':', - ], - 'itemSeparator' => [ - 'description' => 'Item分隔符。', - 'type' => 'string', - 'example' => ',', - ], - ], - ], - 'category' => [ - 'description' => '召回类别。', - 'type' => 'string', - 'example' => '1_2', - ], - 'threshold' => [ - 'description' => 'Table的阈值信息。', - 'type' => 'object', - 'properties' => [ - 'sourceDataSizeThreshold' => [ - 'description' => '源数据大小波动阈值。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'sourceDataRecordThreshold' => [ - 'description' => '源数据条目数波动阈值。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'indexSizeThreshold' => [ - 'description' => '索引大小波动阈值。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'indexLossThreshold' => [ - 'description' => '索引大小波动阈值。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - ], - ], - 'tableName' => [ - 'description' => 'ODPS召回表名称。', - 'type' => 'string', - 'example' => 'test_table', - ], - 'clusterId' => [ - 'description' => '集群ID。', - 'type' => 'string', - 'example' => '244', - ], - 'cron' => [ - 'description' => '定时调度任务Cron。', - 'type' => 'string', - 'example' => '* * 24 7 0', - ], - 'description' => [ - 'description' => '描述。', - 'type' => 'string', - 'example' => 'test', - ], - 'projectName' => [ - 'description' => 'ODPS中的ProjectName。', - 'type' => 'string', - 'example' => 'test', - ], - 'algorithmName' => [ - 'description' => '算法名称。', - 'type' => 'string', - 'example' => 'test', - ], - 'cronEnabled' => [ - 'description' => '是否开启定时任务。', - 'type' => 'boolean', - 'example' => 'true', - ], - ], - ], + 'ruleId' => ['description' => '通过规则ID查询。', 'type' => 'string', 'example' => '98493A14-D619-4E88-9F8D-108939817F9F'], + 'gmtModified' => ['description' => '最后修改时间。', 'type' => 'string', 'example' => '2020-04-27T06:38:28.000Z'], + 'status' => ['description' => '规则状态:'."\n" + .'**DRAFT:** 草稿状态'."\n" + ."\n" + .'**EFFECTIVE:** 生效状态'."\n" + ."\n" + .'**PUBLISHING:**发布中状态'."\n" + ."\n" + .'**INEFFECTIVE:** 已失效状态'."\n" + ."\n" + .'**FAILED:**未生效状态', 'type' => 'string', 'example' => 'DRAFT'], + 'gmtCreate' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2020-04-27T06:38:28.000Z'], ], ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3', - ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情。', 'type' => 'string', 'example' => 'An internal server error occurred'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"gmtModified\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"status\\": \\"Init\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"algorithmId\\": \\"abc\\",\\n \\"meta\\": {\\n \\"taskId\\": \\"taskId\\",\\n \\"metaType\\": \\"metaType\\",\\n \\"type\\": \\"ODPS\\",\\n \\"extInfo\\": {\\n \\"kvSeparator\\": \\":\\",\\n \\"itemSeparator\\": \\",\\"\\n },\\n \\"category\\": \\"1_2\\",\\n \\"threshold\\": {\\n \\"sourceDataSizeThreshold\\": 1,\\n \\"sourceDataRecordThreshold\\": 1,\\n \\"indexSizeThreshold\\": 1,\\n \\"indexLossThreshold\\": 1\\n },\\n \\"tableName\\": \\"test_table\\",\\n \\"clusterId\\": \\"244\\",\\n \\"cron\\": \\"* * 24 7 0\\",\\n \\"description\\": \\"test\\",\\n \\"projectName\\": \\"test\\",\\n \\"algorithmName\\": \\"test\\",\\n \\"cronEnabled\\": true\\n }\\n },\\n \\"requestId\\": \\"7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '下线召回表', - 'summary' => '下线召回表。', - ], - 'CreateRankingSystem' => [ - 'summary' => '创建排序服务。', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取规则信息', + 'summary' => '查询一个规则的详细信息。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeRule', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"ruleId\\": \\"98493A14-D619-4E88-9F8D-108939817F9F\\",\\n \\"gmtModified\\": \\"2020-04-27T06:38:28.000Z\\",\\n \\"status\\": \\"DRAFT\\",\\n \\"gmtCreate\\": \\"2020-04-27T06:38:28.000Z\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<result>\\n <gmtModified/>\\n <ruleId/>\\n <gmtCreate/>\\n <status/>\\n</result>\\n<code/>\\n<requestId/>\\n<message/>","errorExample":""}]', + ], + 'DescribeScene' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '117162', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18688', + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例id', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], + ], + [ + 'name' => 'sceneId', + 'in' => 'path', + 'schema' => ['description' => '场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'testid'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'description' => '场景详情。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求id', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], 'result' => [ - 'description' => '返回详情结果', - '$ref' => '#/components/schemas/RankingSystem', + 'description' => '场景详情。', + 'type' => 'object', + 'properties' => [ + 'sceneId' => ['description' => '场景ID。', 'type' => 'string', 'example' => 'test'], + 'gmtModified' => ['description' => '最后修改时间。', 'type' => 'string', 'example' => '2020-04-23T06:08:48.000Z'], + 'status' => ['description' => '场景状态:'."\n" + .'- **DRAFT**:唤醒,重新发布'."\n" + .'- **PUBLISHING** :发布'."\n" + .'- **RUNNING**:运行中'."\n" + .'- **FAILED**:发布失败'."\n" + .'- **FROZEN** :冻结', 'type' => 'string', 'example' => 'DRAFT'], + 'gmtCreate' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2020-04-23T06:08:48.000Z'], + ], ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情。', 'type' => 'string', 'example' => 'An internal server error occurred'], ], ], ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', + ], + ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"result\\": {\\n \\"Meta\\": {\\n \\"AutoDeploy\\": true,\\n \\"AutoDeployAuc\\": \\"0.3\\",\\n \\"Conf\\": \\"\\",\\n \\"PredictEngine\\": {\\n \\"ResourceId\\": \\"eas-oljkkdrggxhx7eizjd\\",\\n \\"Version\\": \\"1\\",\\n \\"ClusterId\\": \\"cn-shanghai\\"\\n },\\n \\"PredictEngineType\\": \\"EAS\\",\\n \\"ModelVersionName\\": \\"模型A_T1638964800000\\",\\n \\"FailMsg\\": \\"\\"\\n },\\n \\"ApplyStatus\\": \\"NOT_APPLIED\\",\\n \\"DeployStatus\\": \\"NOT_DEPLOYED\\",\\n \\"SceneIdList\\": [\\n 0\\n ],\\n \\"Name\\": \\"servicea\\",\\n \\"ModelTemplateId\\": \\"a-a-a\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<requestId>829F38F6-E2D6-4109-90A6-888160BD16C2</requestId>\\n<result>\\n <name>service-a</name>\\n <deployStatus>NOT_DEPLOYED</deployStatus>\\n <applyStatus>NOT_APPLIED</applyStatus>\\n <modelTemplateId>123465</modelTemplateId>\\n <modelTemplateName>排序模型A</modelTemplateName>\\n <sceneIdList>1</sceneIdList>\\n <sceneIdList>2</sceneIdList>\\n <sceneIdList>3</sceneIdList>\\n <meta>\\n <autoDeploy>true</autoDeploy>\\n <autoDeployAuc>0.9</autoDeployAuc>\\n <conf/>\\n <predictEngineType>EAS</predictEngineType>\\n <predictEngine>\\n <clusterId>cn-shanghai</clusterId>\\n <resourceId>eas-oljkkdrggxhx7eizjd</resourceId>\\n <version>v1</version>\\n </predictEngine>\\n </meta>\\n</result>","errorExample":""}]', - 'title' => '创建排序服务', - ], - 'DeleteRankingSystem' => [ - 'summary' => '删除排序服务', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '查询场景详情', + 'summary' => '查询场景详情。', + 'description' => '如需使用场景管理功能,不建议使用API进行操作。请使用控制台中“场景管理”功能,使用详情见官方文档<props="china">:[通过选投策略配置,快速搭建推荐场景](https://help.aliyun.com/document_detail/171790.html?spm=a2c4g.11186623.6.677.1f6a3483tNyo2M)</props>', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeScene', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"sceneId\\": \\"test\\",\\n \\"gmtModified\\": \\"2020-04-23T06:08:48.000Z\\",\\n \\"status\\": \\"DRAFT\\",\\n \\"gmtCreate\\": \\"2020-04-23T06:08:48.000Z\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<Result>\\n <Status>DRAFT</Status>\\n <GmtCreate>2020-04-23T06:08:48.000Z</GmtCreate>\\n <GmtModified>2020-04-23T06:08:48.000Z</GmtModified>\\n <SceneId>123</SceneId>\\n <SceneMeta>\\n <SceneName>sceneTest</SceneName>\\n <Description>xxx</Description>\\n <Metric>\\n <PvCtr>32</PvCtr>\\n <Daily>32</Daily>\\n <Weekly>32</Weekly>\\n </Metric>\\n </SceneMeta>\\n</Result>\\n<RequestId>76E2C51D-A2D7-4775-9FD8-2AB84B2A0CEF</RequestId>","errorExample":""}]', + ], + 'DescribeSceneBucket' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiment-bucket', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '117181', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18689', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-test'], ], [ - 'name' => 'name', + 'name' => 'sceneId', 'in' => 'path', - 'schema' => [ - 'title' => '排序服务名称', - 'description' => '排序服务名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'service-a', - ], + 'schema' => ['description' => '场景ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], 'result' => [ - 'description' => '返回结果。', - '$ref' => '#/components/schemas/RankingSystem', + 'description' => '返回结果', + 'type' => 'object', + 'properties' => [ + 'num' => ['description' => '总桶数', 'type' => 'integer', 'format' => 'int32', 'example' => '2'], + 'inUse' => ['description' => '当前所有ab占用桶号,其余均为缺省实验占用', 'type' => 'string', 'example' => '1'], + 'detail' => ['description' => '详情', 'type' => 'object', 'example' => 'xxx'], + ], ], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B'], ], + 'description' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"result\\": {\\n \\"Meta\\": {\\n \\"AutoDeploy\\": true,\\n \\"AutoDeployAuc\\": \\"0.3\\",\\n \\"Conf\\": \\"\\",\\n \\"PredictEngine\\": {\\n \\"ResourceId\\": \\"eas-oljkkdrggxhx7eizjd\\",\\n \\"Version\\": \\"1\\",\\n \\"ClusterId\\": \\"cn-shanghai\\"\\n },\\n \\"PredictEngineType\\": \\"EAS\\",\\n \\"ModelVersionName\\": \\"模型A_T1638964800000\\",\\n \\"FailMsg\\": \\"\\"\\n },\\n \\"ApplyStatus\\": \\"NOT_APPLIED\\",\\n \\"DeployStatus\\": \\"NOT_DEPLOYED\\",\\n \\"SceneIdList\\": [\\n 0\\n ],\\n \\"Name\\": \\"servicea\\",\\n \\"ModelTemplateId\\": \\"a-a-a\\"\\n }\\n}","type":"json"}]', - 'title' => '删除排序服务', - ], - 'ModifyRankingSystem' => [ - 'summary' => '修改排序服务。', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => 'DescribeSceneBucket', + 'summary' => '查看场景下实验桶分布情况。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeSceneBucket', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"num\\": 2,\\n \\"inUse\\": \\"1\\",\\n \\"detail\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"requestId\\": \\"E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B\\"\\n}","errorExample":""},{"type":"xml","example":"<DescribeSceneBucketResponse>\\n <result>\\n <num>10</num>\\n <inUse>1</inUse>\\n <inUse>2</inUse>\\n <inUse>3</inUse>\\n <detail>\\n <123396>3</123396>\\n <123417>1</123417>\\n <123417>2</123417>\\n </detail>\\n </result>\\n <requestId>E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B</requestId>\\n</DescribeSceneBucketResponse>","errorExample":""}]', + ], + 'DescribeSceneThroughput' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/throughput', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '117165', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18690', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => '实例id'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'name', + 'name' => 'sceneId', 'in' => 'path', - 'schema' => [ - 'title' => '排序服务', - 'description' => '排序服务', - 'type' => 'string', - 'required' => true, - 'example' => '"service-a', - ], - ], - [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'description' => '配置', - 'type' => 'object', - 'required' => false, - 'example' => '{}', - ], + 'schema' => ['description' => '场景id'."\n" + ."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'testid'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求的RequestID', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], 'result' => [ - 'description' => '修改后的排序服务实体', - '$ref' => '#/components/schemas/RankingSystem', + 'description' => '返回详情结果'."\n" + ."\n", + 'type' => 'object', + 'properties' => [ + 'pvCount' => ['description' => 'pv计数', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + ], ], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求id'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'An internal server error occurred'], ], + 'description' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": {\\n \\"Meta\\": {\\n \\"AutoDeploy\\": true,\\n \\"AutoDeployAuc\\": \\"0.3\\",\\n \\"Conf\\": \\"\\",\\n \\"PredictEngine\\": {\\n \\"ResourceId\\": \\"eas-oljkkdrggxhx7eizjd\\",\\n \\"Version\\": \\"1\\",\\n \\"ClusterId\\": \\"cn-shanghai\\"\\n },\\n \\"PredictEngineType\\": \\"EAS\\",\\n \\"ModelVersionName\\": \\"模型A_T1638964800000\\",\\n \\"FailMsg\\": \\"\\"\\n },\\n \\"ApplyStatus\\": \\"NOT_APPLIED\\",\\n \\"DeployStatus\\": \\"NOT_DEPLOYED\\",\\n \\"SceneIdList\\": [\\n 0\\n ],\\n \\"Name\\": \\"servicea\\",\\n \\"ModelTemplateId\\": \\"a-a-a\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '修改排序服务', - ], - 'GetRankingSystem' => [ - 'summary' => '获取排序服务详情。', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取场景流量', + 'summary' => '获取场景流量。', + 'description' => '如需使用场景管理功能,不建议使用API进行操作。请使用控制台中“场景管理”功能,使用详情见官方文档<props="china">:[通过选投策略配置,快速搭建推荐场景](https://help.aliyun.com/document_detail/171790.html?spm=a2c4g.11186623.6.677.1f6a3483tNyo2M)</props>', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeSceneThroughput', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"pvCount\\": 123\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<Result>\\n <PvCount>123213</PvCount>\\n</Result>\\n<RequestId>6839AE7C-A984-48C1-AC17-331BAC6D97BC</RequestId>","errorExample":""}]', + ], + 'DescribeSyncReportDetail' => [ + 'path' => '/v2/openapi/instances/{instanceId}/sync-reports/detail', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '117168', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'abilityTreeCode' => '18691', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-test', - ], + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'name', - 'in' => 'path', - 'schema' => [ - 'title' => '排序服务名称', - 'description' => '服务名称', - 'type' => 'string', - 'required' => false, - 'example' => 'test-service', - ], + 'name' => 'startTime', + 'in' => 'query', + 'schema' => ['description' => '开始时间秒级时间戳'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1586673466'], + ], + [ + 'name' => 'endTime', + 'in' => 'query', + 'schema' => ['description' => '结束时间秒级时间戳'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1586673466'], + ], + [ + 'name' => 'type', + 'in' => 'query', + 'schema' => ['description' => 'behavior/item/user表', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'behavior'], + ], + [ + 'name' => 'levelType', + 'in' => 'query', + 'schema' => ['description' => '严重等级 error/warn/info', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'error'], ], ], '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' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], 'result' => [ - 'description' => '响应业务实体', - '$ref' => '#/components/schemas/RankingSystem', + 'description' => '返回详情结果'."\n" + ."\n", + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'historyData' => [ + 'description' => '历史数据异常记录占比列表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'errorPercent' => ['description' => '指定时间段异常数据记录占比 ', 'type' => 'number', 'format' => 'float', 'example' => '84.6'], + 'startTime' => ['description' => '开始时间秒级时间戳'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1586673466'], + 'endTime' => ['description' => '结束时间秒级时间戳'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1586673466'], + ], + 'description' => '', + ], + ], + 'sampleDisplay' => ['description' => '是否样本展示', 'type' => 'boolean', 'example' => 'true'], + 'type' => ['description' => '例如:实时行为记录的bhv_time不合法。'."\n", 'type' => 'string', 'example' => 'bhvTimeBehavior'], + 'errorCount' => ['description' => '错误数', 'type' => 'integer', 'format' => 'int32', 'example' => '246165'], + 'errorPercent' => ['description' => '异常记录占比', 'type' => 'number', 'format' => 'float', 'example' => '84.6'], + 'defaultDisplay' => ['description' => '是否默认展示', 'type' => 'boolean', 'example' => 'false'], + ], + 'description' => '', + ], ], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求id'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'An internal server error occurred'], ], + 'description' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"result\\": {\\n \\"Meta\\": {\\n \\"AutoDeploy\\": true,\\n \\"AutoDeployAuc\\": \\"0.3\\",\\n \\"Conf\\": \\"\\",\\n \\"PredictEngine\\": {\\n \\"ResourceId\\": \\"eas-oljkkdrggxhx7eizjd\\",\\n \\"Version\\": \\"1\\",\\n \\"ClusterId\\": \\"cn-shanghai\\"\\n },\\n \\"PredictEngineType\\": \\"EAS\\",\\n \\"ModelVersionName\\": \\"模型A_T1638964800000\\",\\n \\"FailMsg\\": \\"\\"\\n },\\n \\"ApplyStatus\\": \\"NOT_APPLIED\\",\\n \\"DeployStatus\\": \\"NOT_DEPLOYED\\",\\n \\"SceneIdList\\": [\\n 0\\n ],\\n \\"Name\\": \\"servicea\\",\\n \\"ModelTemplateId\\": \\"a-a-a\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<requestId>829F38F6-E2D6-4109-90A6-888160BD16C2</requestId>\\n<result>\\n <name>service-a</name>\\n <deployStatus>DEPLOY_SUCCESS</deployStatus>\\n <applyStatus>NOT_APPLIED</applyStatus>\\n <modelTemplateName>排序模型A</modelTemplateName>\\n <modelTemplateId>123455</modelTemplateId>\\n <sceneIdList>1</sceneIdList>\\n <sceneIdList>2</sceneIdList>\\n <sceneIdList>3</sceneIdList>\\n <meta>\\n <autoDeploy>true</autoDeploy>\\n <autoDeployAuc>0.9</autoDeployAuc>\\n <conf>{\\n\\t\\"fg_threads\\": 4,\\n \\"fg_mode\\":\\"normal\\",\\n\\t\\"inter_op_parallelism_threads\\": 4,\\n\\t\\"intra_op_parallelism_threads\\": 4,\\n\\t\\"remote_type\\": \\"hologres\\",\\n\\t\\"url\\": \\"postgres://user:password@addr:port/db_name\\",\\n\\t\\"period\\": 2880,\\n\\t\\"timeout\\": 600,\\n\\t\\"tables\\": [{\\n\\t\\t\\"name\\": \\"table1\\",\\n\\t\\t\\"key\\": \\"svid\\",\\n\\t\\t\\"value\\": \\"feat1,feat2,feat3,feat4 as alt_feat4\\",\\n\\t\\t\\"timekey\\": \\"update_time\\",\\n\\t\\t\\"condition\\": \\"feat1 < 50\\"\\n\\t}, {\\n\\t\\t\\"name\\": \\"table2\\",\\n\\t\\t\\"key\\": \\"svid\\",\\n\\t\\t\\"value\\": \\"feat5,feat6,feat7,feat8\\",\\n\\t\\t\\"timekey\\": \\"update_time\\"\\n\\t}]\\n}</conf>\\n <predictEngineType>EAS</predictEngineType>\\n <predictEngine>\\n <clusterId>cn-shanghai</clusterId>\\n <resourceId>eas-oljkkdrggxhx7eizjd</resourceId>\\n <version>v1</version>\\n </predictEngine>\\n </meta>\\n</result>","errorExample":""}]', - 'title' => '获取排序服务详情', - 'description' => '****', - ], - 'GetRankingSystemHistory' => [ - 'summary' => '查询排序服务操作记录。', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}/histories/{operateId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取实时数据小时级别报告细节信息', + 'summary' => '获取实时数据小时级别报告细节信息。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeSyncReportDetail', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"historyData\\": [\\n {\\n \\"errorPercent\\": 84.6,\\n \\"startTime\\": 1586673466,\\n \\"endTime\\": 1586673466\\n }\\n ],\\n \\"sampleDisplay\\": true,\\n \\"type\\": \\"bhvTimeBehavior\\",\\n \\"errorCount\\": 246165,\\n \\"errorPercent\\": 84.6,\\n \\"defaultDisplay\\": false\\n }\\n ],\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<Result>\\n <Total>\\n <ErrorPercent>84.6</ErrorPercent>\\n <TotalCount>290993</TotalCount>\\n <ErrorCount>246165</ErrorCount>\\n <StartTime>1567152000</StartTime>\\n <EndTime>1567155600</EndTime>\\n </Total>\\n <Detail>\\n <Type>userIdBehavior</Type>\\n <ErrorPercent>0</ErrorPercent>\\n <ErrorCount>100</ErrorCount>\\n <History>\\n <ErrorPercent>0</ErrorPercent>\\n <StartTime>1567119600</StartTime>\\n <EndTime>1567123200</EndTime>\\n </History>\\n <History>\\n <ErrorPercent>0</ErrorPercent>\\n <StartTime>1567119600</StartTime>\\n <EndTime>1567123200</EndTime>\\n </History>\\n </Detail>\\n <Detail>\\n <Type>userIdBehavior</Type>\\n <ErrorPercent>0</ErrorPercent>\\n <ErrorCount>100</ErrorCount>\\n <History>\\n <ErrorPercent>0</ErrorPercent>\\n <StartTime>1567119600</StartTime>\\n <EndTime>1567123200</EndTime>\\n </History>\\n <History>\\n <ErrorPercent>0</ErrorPercent>\\n <StartTime>1567119600</StartTime>\\n <EndTime>1567123200</EndTime>\\n </History>\\n </Detail>\\n</Result>\\n<RequestId>AD3BCF47-2A4C-44DD-B6B7-CC2F2BCB1DB9</RequestId>","errorExample":""}]', + ], + 'DescribeSyncReportOutliers' => [ + 'path' => '/v2/openapi/instances/{instanceId}/sync-reports/outliers', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, + 'operationType' => 'read', 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '117155', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'abilityTreeCode' => '18692', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-test'], ], [ - 'name' => 'name', - 'in' => 'path', - 'schema' => [ - 'title' => '排序服务名称', - 'description' => '排序服务名称', - 'type' => 'string', - 'required' => true, - 'example' => 'service-a', - ], + 'name' => 'startTime', + 'in' => 'query', + 'schema' => ['description' => '开始时间秒级时间戳', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1586673466'], ], [ - 'name' => 'operateId', - 'in' => 'path', - 'schema' => [ - 'title' => '操作记录id', - 'description' => '操作记录id', - 'type' => 'string', - 'required' => true, - 'example' => 'u-s-a', - ], + 'name' => 'key', + 'in' => 'query', + 'schema' => ['description' => 'itemBhv'."\n" + .'实时行为中,商品ID是否存在于商品库中'."\n" + .'userBhv'."\n" + .'实时行为中,用户ID是否存在于用户库中'."\n" + .'bhvTypeBhv'."\n" + .'实时行为中,bhv_type是否合法'."\n" + .'traceIdBhv'."\n" + .'实时行为中,trace_id是否合法'."\n" + .'traceInfoBhv'."\n" + .'实时行为中,trace_info是否合法'."\n" + .'itemItem'."\n" + .'修改记录物品ID是否合法'."\n" + .'userUser'."\n" + .'修改记录用户ID是否合法', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'itemBhv'], + ], + [ + 'name' => 'type', + 'in' => 'query', + 'schema' => ['description' => '数据表名(behavior/item/user)', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'hehavoir'], + ], + [ + 'name' => 'endTime', + 'in' => 'query', + 'schema' => ['description' => '结束时间秒级时间戳', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1586673466'], + ], + [ + 'name' => 'levelType', + 'in' => 'query', + 'schema' => ['description' => '异常级别(error/warn/info)', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'error'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求的RequestID', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'result' => [ - 'description' => '响应业务实体', - '$ref' => '#/components/schemas/RankingSystemHistory', - ], + 'result' => ['description' => '返回详情结果'."\n" + ."\n", 'type' => 'object'], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'success'], ], + 'description' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": {\\n \\"Meta\\": {\\n \\"AutoDeploy\\": true,\\n \\"AutoDeployAuc\\": \\"0.3\\",\\n \\"Conf\\": \\"\\",\\n \\"ModelTemplateName\\": \\"排序模型A\\",\\n \\"PredictEngine\\": {\\n \\"ResourceId\\": \\"eas-oljkkdrggxhx7eizjd\\",\\n \\"Version\\": \\"1\\"\\n },\\n \\"PredictEngineType\\": \\"EAS\\",\\n \\"PreviousOperateId\\": \\"aaaa\\"\\n },\\n \\"OperateTime\\": \\"2021-12-06T03:01:41.217Z\\",\\n \\"OperateId\\": \\"8AC865AF-37D6-42ED-AA9A-B60D8ECDF640\\",\\n \\"OperateType\\": \\"CONF_CHANGE\\",\\n \\"Name\\": \\"servicea\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '查询排序服务操作记录', - ], - 'ListRankingSystems' => [ - 'summary' => '获取排序服务列表。', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取实时数据报告异常明细', + 'summary' => '获取实时数据报告异常明细。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeSyncReportOutliers', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', + ], + 'DescribeUserMetrics' => [ + 'path' => '/v2/openapi/instances/{instanceId}/metrics', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '117169', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'abilityTreeCode' => '18693', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-test', - ], - ], - [ - 'name' => 'name', + 'name' => 'startTime', 'in' => 'query', - 'schema' => [ - 'title' => '排序服务名称', - 'description' => '排序服务名称', - 'type' => 'string', - 'required' => false, - 'example' => 'service-a', - ], + 'schema' => ['description' => '开始时间(秒级时间戳)', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1567152000'], ], [ - 'name' => 'deployStatus', + 'name' => 'endTime', 'in' => 'query', - 'schema' => [ - 'title' => '查询部署状态', - 'description' => '查询部署状态:'."\n" - .'NOT_DEPLOYED 未部署'."\n" - .'DEPLOY_SUCCESS 部署成功', - 'type' => 'string', - 'required' => false, - 'example' => 'NOT_DEPLOYED', - ], + 'schema' => ['description' => '结束时间(秒级时间戳)', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1658110530'], ], [ - 'name' => 'page', + 'name' => 'metricType', 'in' => 'query', - 'schema' => [ - 'title' => '分页,页码', - 'description' => '分页,页码', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '查询数据类型:'."\n" + ."\n" + .'- pvCtr'."\n" + .'- uvCtr', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'pvCtr'], ], [ - 'name' => 'size', - 'in' => 'query', - 'schema' => [ - 'title' => '分页,大小', - 'description' => '分页,大小', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '10', - ], + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求的RequestID', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], 'result' => [ - 'title' => 'result', - 'description' => 'result', + 'description' => '返回详情结果'."\n" + ."\n", 'type' => 'array', 'items' => [ - 'description' => '服务列表信息', - '$ref' => '#/components/schemas/RankingSystem', + 'description' => '返回结果'."\n", + 'type' => 'object', + 'properties' => [ + 'sceneId' => ['description' => '场景ID', 'type' => 'string', 'example' => 'test'], + 'dataPoints' => [ + 'description' => '指标结果', + 'type' => 'array', + 'items' => [ + 'description' => '指标结果', + 'type' => 'object', + 'properties' => [ + 'val' => ['description' => '具体数值', 'type' => 'number', 'format' => 'float', 'example' => '84.6'], + 'startTime' => ['description' => '开始时间(秒级时间戳)', 'type' => 'integer', 'format' => 'int64', 'example' => '1567152000'], + 'endTime' => ['description' => '结束时间(秒级时间戳)', 'type' => 'integer', 'format' => 'int64', 'example' => '1567152000'], + ], + ], + ], + ], ], ], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'success'], ], + 'description' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": [\\n {\\n \\"Meta\\": {\\n \\"AutoDeploy\\": true,\\n \\"AutoDeployAuc\\": \\"0.3\\",\\n \\"Conf\\": \\"\\",\\n \\"PredictEngine\\": {\\n \\"ResourceId\\": \\"eas-oljkkdrggxhx7eizjd\\",\\n \\"Version\\": \\"1\\",\\n \\"ClusterId\\": \\"cn-shanghai\\"\\n },\\n \\"PredictEngineType\\": \\"EAS\\",\\n \\"ModelVersionName\\": \\"模型A_T1638964800000\\",\\n \\"FailMsg\\": \\"\\"\\n },\\n \\"ApplyStatus\\": \\"NOT_APPLIED\\",\\n \\"DeployStatus\\": \\"NOT_DEPLOYED\\",\\n \\"SceneIdList\\": [\\n 0\\n ],\\n \\"Name\\": \\"servicea\\",\\n \\"ModelTemplateId\\": \\"a-a-a\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '获取排序服务列表', - ], - 'ListRankingSystemHistories' => [ - 'summary' => '查询服务操作记录列表。', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}/histories', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取用户指标(转化率信息)', + 'summary' => '获取用户指标(转化率信息)。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeUserMetrics', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"sceneId\\": \\"test\\",\\n \\"dataPoints\\": [\\n {\\n \\"val\\": 84.6,\\n \\"startTime\\": 1567152000,\\n \\"endTime\\": 1567152000\\n }\\n ]\\n }\\n ],\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', + ], + 'DowngradeInstance' => [ + 'path' => '/v2/openapi/instances/{instanceId}/actions/downgrade', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'deprecated' => false, + 'operationType' => 'write', 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '117159', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '18694', + 'abilityTreeNodes' => ['FEATUREairecIDS0JZ', 'FEATUREairecDTVO6V'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', + 'description' => '返回参数。', + 'type' => 'object', + 'properties' => [ + 'result' => [ + 'description' => '返回参数。', + 'type' => 'object', + 'properties' => [ + 'instanceId' => ['description' => '实例ID。'."\n", 'type' => 'string', 'example' => 'airec-cn-****'], + ], + ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'An internal server error occurred'], + ], ], ], - [ - 'name' => 'name', - 'in' => 'path', + '5XX' => [ 'schema' => [ - 'title' => '排序服务名称', - 'description' => '排序服务名称', - 'type' => 'string', - 'required' => true, - 'example' => 'service-a', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', ], ], - [ - 'name' => 'operateType', - 'in' => 'query', - 'schema' => [ - 'title' => '操作类型', - 'description' => '操作类型:'."\n" - .'CONF_CHANGE(配置变更)、DEPLOY_CHANGE(部署变更)', - 'type' => 'string', - 'required' => false, - 'example' => 'CONF_CHANGE', + ], + 'title' => '降低指定实例配额 (Quota)信息', + 'summary' => '降低指定实例配额 (Quota)信息。', + 'description' => '新的配额数据不能大于已经选择的配额并且不能小于目前已经使用的配额。'."\n" + ."\n" + .'用户数限制为:最小值 1,000,000、最大值 10,000,000;'."\n" + .'物品数限制为:最小值 1,000,000、最大值 10,000,000;'."\n" + .'推荐请求QPS限制为:最小值 10、最大值 500。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:DowngradeInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], ], ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"instanceId\\": \\"airec-cn-****\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>90D6B8F5-FE97-4509-9AAB-367836C51818</RequestId>\\n<Result>\\n <InstanceId>airec-cn-xxxxxx</InstanceId>\\n</Result>","errorExample":""}]', + ], + 'EnableExperiment' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/actions/enable-experiment', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'page', - 'in' => 'query', - 'schema' => [ - 'title' => '分页,页码', - 'description' => '分页,页码', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], + 'AK' => [], ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '18695', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], + ], + 'parameters' => [ [ - 'name' => 'size', - 'in' => 'query', - 'schema' => [ - 'title' => '分页,大小', - 'description' => '分页,大小', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '10', - ], + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], + ], + [ + 'name' => 'sceneId', + 'in' => 'path', + 'schema' => ['description' => '场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'sceneId'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'result' => [ - 'title' => 'result', - 'description' => 'result', - 'type' => 'array', - 'items' => [ - 'description' => '响应业务实体', - '$ref' => '#/components/schemas/RankingSystemHistory', - ], - ], + 'result' => ['description' => '返回参数。', 'type' => 'boolean', 'example' => 'True'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B'], ], ], ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', + ], + ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": [\\n {\\n \\"Meta\\": {\\n \\"AutoDeploy\\": true,\\n \\"AutoDeployAuc\\": \\"0.3\\",\\n \\"Conf\\": \\"\\",\\n \\"ModelTemplateName\\": \\"排序模型A\\",\\n \\"PredictEngine\\": {\\n \\"ResourceId\\": \\"eas-oljkkdrggxhx7eizjd\\",\\n \\"Version\\": \\"1\\"\\n },\\n \\"PredictEngineType\\": \\"EAS\\",\\n \\"PreviousOperateId\\": \\"aaaa\\"\\n },\\n \\"OperateTime\\": \\"2021-12-06T03:01:41.217Z\\",\\n \\"OperateId\\": \\"8AC865AF-37D6-42ED-AA9A-B60D8ECDF640\\",\\n \\"OperateType\\": \\"CONF_CHANGE\\",\\n \\"Name\\": \\"servicea\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '查询服务操作记录列表', - ], - 'DeployRankingSystem' => [ - 'summary' => '部署/重启部署排序服务,已经部署过的服务,修改配置后必须重启部署,注:若未修改任何参数,则可以不传body。', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}/actions/deploy', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '启用实验', + 'summary' => '启用实验功能。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:EnableExperiment', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B\\"\\n}","type":"json"}]', + ], + 'GenerateSample' => [ + 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}/actions/generate', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '117176', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '117131', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例id', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-test', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-xxx'], ], [ - 'name' => 'name', + 'name' => 'sampleId', 'in' => 'path', - 'schema' => [ - 'title' => '排序服务名称', - 'description' => '服务名称', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'description' => '配置', - 'type' => 'object', - 'required' => false, - 'example' => ' "meta": {'."\n" - .' "autoDeploy": true,'."\n" - .' "autoDeployAuc": "0.9",'."\n" - .' "conf":"",'."\n" - .' "predictEngineType": "EAS",'."\n" - .' "predictEngine":{'."\n" - .' "resourceId": "eas-oljkkdrggxhx7eizjd"'."\n" - .' }'."\n" - .' }', - ], + 'schema' => ['title' => '样本id', 'description' => '样本ID。', 'type' => 'string', 'required' => true, 'example' => 'Sample'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '当前请求的RequestID', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'result' => [ - 'title' => 'result', - 'description' => '返回结果', - 'type' => 'object', - 'example' => 'xxx', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['description' => '返回结果。', '$ref' => '#/components/schemas/Sample'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","errorExample":""},{"type":"xml","example":"<code>InternalServerError</code>\\n<message>An internal server error occurred.</message>\\n<requestId>829F38F6-E2D6-4109-90A6-888160BD16C2</requestId>","errorExample":""}]', - 'title' => '部署排序服务', - ], - 'VerifyRankingSystem' => [ - 'summary' => '调试排序服务。', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}/actions/verify', - 'methods' => [ - 'post', + 'title' => '生成样本', + 'summary' => '生成样本,只针对复制创建的样本。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GenerateSample'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:GenerateSample', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"Status\\": \\"Formatted\\",\\n \\"Meta\\": {\\n \\"AutoUpdate\\": true,\\n \\"AutoUpdateFrequency\\": 1673341140,\\n \\"ClonedId\\": \\"1638877561147\\",\\n \\"Config\\": {\\n \\"BhvTableSourceIds\\": [\\n \\"\\"\\n ],\\n \\"FeatureConfig\\": {\\n \\"ItemFeatures\\": \\"deress,red\\",\\n \\"UserFeatures\\": \\"man\\"\\n },\\n \\"LabelLogic\\": {\\n \\"BhvTimeWindow\\": 86400,\\n \\"NegativeBhvTypes\\": \\"click,expose\\",\\n \\"PositiveBhvTypes\\": \\"like\\"\\n },\\n \\"WeightLogicList\\": [\\n {\\n \\"Bhv\\": \\"click\\",\\n \\"Weight\\": \\"1\\"\\n }\\n ]\\n },\\n \\"ExtendParams\\": {\\n \\"LatestTaskStatus\\": 1,\\n \\"SampleCount\\": 0\\n },\\n \\"MetaType\\": \\"Sample\\",\\n \\"Name\\": \\"12345\\",\\n \\"StoreConfig\\": \\"projectName.tableName\\",\\n \\"Type\\": \\"System\\"\\n },\\n \\"GmtCreate\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"GmtModified\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"SampleId\\": \\"1638880131873\\"\\n }\\n}","type":"json"}]', + ], + 'GetExtraDataSource' => [ + 'path' => '/v2/openapi/instances/{instanceId}/extra-data-sources/{type}/{dataSourceId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '117171', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '117108', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'airec-test'], ], [ - 'name' => 'name', + 'name' => 'type', 'in' => 'path', - 'schema' => [ - 'title' => '排序服务名称', - 'description' => '排序服务名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'service-a', - ], + 'schema' => ['description' => '数据源类型'."\n" + .'UserCustomDataSource'."\n" + .'ItemCustomDataSource'."\n" + .'BehaviorCustomDataSource'."\n" + .'SampleCustomDataSource', 'type' => 'string', 'required' => true, 'example' => 'UserCustomDataSource'], ], [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'description' => '请求Body参数。', - 'type' => 'object', - 'required' => false, - 'example' => '{'."\n" - .' "userFeatures": "a:c,d:b",'."\n" - .' "itemFeatures": "a:1,b:2"'."\n" - .'}', - ], + 'name' => 'dataSourceId', + 'in' => 'path', + 'schema' => ['description' => '数据源ID', 'type' => 'string', 'required' => true, 'example' => '123'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'result' => [ - 'title' => 'result', - 'description' => '返回结果。', - 'type' => 'string', - 'example' => 'test', - ], + 'requestId' => ['type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['$ref' => '#/components/schemas/ExtraDataSource'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": \\"test\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '调试排序服务', - ], - 'RollbackRankingSystem' => [ - 'summary' => '回滚排序服务。', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}/actions/rollback', - 'methods' => [ - 'post', + 'title' => '查看其他数据源详情', + 'summary' => '查看其他数据源详情。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetExtraDataSource'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:GetExtraDataSource', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"Status\\": \\"Ready 待应用;Online 已应用;Failed失败\\",\\n \\"Meta\\": {\\n \\"Internal\\": true,\\n \\"MetaType\\": \\"ExtraDataSource\\",\\n \\"ProjectName\\": \\"test_project\\",\\n \\"TableName\\": \\"test_table\\",\\n \\"Type\\": \\"ODPS\\",\\n \\"UpdateFrequency\\": 86400\\n },\\n \\"Type\\": \\"UserCustomDataSource\\\\\\\\ItemCustomDataSource\\\\\\\\\\\\nBehaviorCustomDataSource\\\\\\\\\\\\nSampleCustomDataSource\\",\\n \\"GmtCreate\\": \\"2021-12-07T13:26:29.000Z\\",\\n \\"GmtModified\\": \\"2021-12-07T13:26:29.000Z\\",\\n \\"DataSourceId\\": \\"E01D574F-ABD0-4C55-A5E3-8D24FD8D42EA\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<result>\\n <type>UserCustomDataSource</type>\\n <meta>\\n <metaType>ExtraDataSource</metaType>\\n <projectName>project_name</projectName>\\n <tableName>table</tableName>\\n <type>ODPS</type>\\n <updateFrequency>86400</updateFrequency>\\n <internal>false</internal>\\n </meta>\\n <status>Online</status>\\n <gmtCreate>2021-11-30T11:53:05.000Z</gmtCreate>\\n <gmtModified>2021-11-30T11:53:05.000Z</gmtModified>\\n <dataSourceId>cd4bb4b3-1e54-4dbb-a178-e58dac4035a5</dataSourceId>\\n</result>\\n<requestId>90D6B8F5-FE97-4509-9AAB-367836C51818</requestId>","errorExample":""}]', + ], + 'GetFlowControlTask' => [ + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'list', - 'abilityTreeCode' => '117180', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '155268', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'name', + 'name' => 'taskId', 'in' => 'path', - 'schema' => [ - 'title' => '排序服务名称', - 'description' => '排序服务名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'service-a', - ], - ], - [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'description' => '请求Body参数。', - 'type' => 'object', - 'required' => false, - 'example' => '{'."\n" - .' "operateId": "a-b-c"'."\n" - .'}', - ], + 'schema' => ['description' => '流量调控任务ID。', 'type' => 'string', 'required' => false, 'example' => '1667979619806'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], 'result' => [ - 'title' => 'result', - 'description' => '返回结果。', - 'type' => 'object', - 'example' => '无', + 'description' => '返回参数。', + 'type' => 'array', + 'items' => [ + 'description' => '返回参数。', + 'type' => 'object', + 'properties' => [ + 'gmtCreate' => ['description' => '创建时间的UTC时间。', 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'gmtModified' => ['description' => '最后修改数据源的UTC时间。', 'type' => 'string', 'example' => '2020-04-23T06:08:48.000Z'], + 'meta' => [ + 'description' => '流量调控Meta。', + 'type' => 'object', + 'properties' => [ + 'description' => ['description' => '流量调控描述信息。', 'type' => 'string', 'example' => '用于首页推荐物品调控。'], + 'endTime' => ['description' => '结束时间秒级时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1656518399'], + 'metaType' => ['description' => '流量调控Meta类型,固定值FlowControlTask。', 'type' => 'string', 'example' => 'FlowControlTask'], + 'sceneIds' => ['description' => '场景ID,支持多个,英文,分割即可。', 'type' => 'string', 'example' => '1,2,3'], + 'selectionParams' => [ + 'description' => '选品规则参数列表。', + 'type' => 'array', + 'items' => [ + 'description' => '选品规则参数。', + 'type' => 'object', + 'properties' => [ + 'selectType' => ['description' => '选品规则过滤条件类型。', 'type' => 'string', 'example' => 'QUERY_PUB_TIME'], + 'selectValue' => ['description' => '选品规则过滤条件具体数值。', 'type' => 'string', 'example' => '10000'], + 'selectionOperation' => ['description' => '选品规则过滤条件操作。', 'type' => 'string', 'example' => 'OPERATOR_HIGHER'], + ], + ], + ], + 'startTime' => ['description' => '开始时间(秒级时间戳)。', 'type' => 'integer', 'format' => 'int64', 'example' => '1640739600'], + 'target' => [ + 'description' => '曝光配置。', + 'type' => 'object', + 'properties' => [ + 'type' => ['description' => '曝光类型。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **EXPOSE_PERCENT**:每日曝光百分比。'."\n" + ."\n" + .'- **EXPOSE_COUNT**:曝光总量。', 'type' => 'string', 'example' => 'EXPOSE_PERCENT'], + 'value' => ['description' => '曝光值。', 'type' => 'integer', 'format' => 'int64', 'example' => '20'], + ], + ], + 'taskName' => ['description' => '流量调控任务名称。', 'type' => 'string', 'example' => '曝光任务'], + ], + ], + 'status' => ['description' => '任务状态。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **DRAFT**:草稿。'."\n" + ."\n" + .'- **READY**:待生效。'."\n" + ."\n" + .'- **RUNNING**:运行中。'."\n" + ."\n" + .'- **ENDED**:结束。', 'type' => 'string', 'example' => 'DRAFT'], + 'taskId' => ['description' => '流量调控任务ID。', 'type' => 'string', 'example' => '1666854602398'], + ], + ], ], ], ], ], + 500 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', + ], + ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '回滚排序服务', - ], - 'CreateRankingModelTemplate' => [ - 'summary' => '创建排序模型模板。', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-templates', - 'methods' => [ - 'post', + 'title' => '获取流量调控任务详情', + 'summary' => '获取流量调控任务详情。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFlowControlTask'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:GetFlowControlTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": [\\n {\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"gmtModified\\": \\"2020-04-23T06:08:48.000Z\\",\\n \\"meta\\": {\\n \\"description\\": \\"用于首页推荐物品调控。\\",\\n \\"endTime\\": 1656518399,\\n \\"metaType\\": \\"FlowControlTask\\",\\n \\"sceneIds\\": \\"1,2,3\\",\\n \\"selectionParams\\": [\\n {\\n \\"selectType\\": \\"QUERY_PUB_TIME\\",\\n \\"selectValue\\": \\"10000\\",\\n \\"selectionOperation\\": \\"OPERATOR_HIGHER\\"\\n }\\n ],\\n \\"startTime\\": 1640739600,\\n \\"target\\": {\\n \\"type\\": \\"EXPOSE_PERCENT\\",\\n \\"value\\": 20\\n },\\n \\"taskName\\": \\"曝光任务\\"\\n },\\n \\"status\\": \\"DRAFT\\",\\n \\"taskId\\": \\"1666854602398\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'GetLatestDataDiagnoseTaskStatus' => [ + 'path' => '/v2/openapi/instances/{instanceId}/data-diagnose-task/status', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '117139', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '138222', + 'abilityTreeNodes' => ['FEATUREairecG8RBMT'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => 'A short description of struct', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-shdjkgkeog'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => '返回参数。', + 'description' => '返回结果', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'result' => [ - 'title' => '排序模型模板信息', - 'description' => '排序模型模板信息。', - '$ref' => '#/components/schemas/RankingModelTemplate', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '当前请求的RequestID', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['description' => '创建的任务状态'."\n" + .'任务状态:'."\n" + ."\n" + .'- RUNNING 运行中'."\n" + .'- FAILURE 失败'."\n" + .'- SUCCESS 成功'."\n" + .'- NOTASK 没有任务', 'type' => 'object', 'example' => 'RUNNING'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"result\\": {\\n \\"Status\\": \\"TRAINING_SUCCESS\\",\\n \\"Meta\\": {\\n \\"Authorized\\": true,\\n \\"AutoRun\\": true,\\n \\"AutoRunTime\\": 1,\\n \\"AutoRunType\\": \\"DAY\\",\\n \\"Conf\\": \\"train_config {}\\",\\n \\"LastEditTime\\": \\"2021-12-06T03:01:41.217Z\\",\\n \\"OssArn\\": \\"acs:ram::111:role/aliyunodpspaidefaultrole\\",\\n \\"OssBucket\\": \\"bucket-a\\",\\n \\"OssEndpoint\\": \\"oss-cn-beijing.aliyuncs.com\\",\\n \\"SampleId\\": \\"1111\\",\\n \\"SampleName\\": \\"样本1\\",\\n \\"SampleTimeWindow\\": 3,\\n \\"SampleTimeWindowType\\": \\"DAY\\",\\n \\"Type\\": \\"MULTI_TOWER\\",\\n \\"Name\\": \\"模型A\\",\\n \\"DeployStatus\\": \\"NOT_DEPLOYED\\",\\n \\"CanDeploy\\": true\\n },\\n \\"VersionNum\\": 3,\\n \\"TemplateId\\": \\"a-a-a\\"\\n }\\n}","type":"json"}]', - 'title' => '创建排序模型模板', - ], - 'DeleteRankingModelTemplate' => [ - 'summary' => '删除模型。', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-templates/{templateId}', - 'methods' => [ - 'delete', + 'title' => '获取最新诊断任务状态', + 'summary' => '获取最新诊断任务状态。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetLatestDataDiagnoseTaskStatus'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:GetLatestDataDiagnoseTaskStatus', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","type":"json"}]', + ], + 'GetRankingModelTemplate' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-templates/{templateId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '117145', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '117142', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ 'name' => 'templateId', 'in' => 'path', - 'schema' => [ - 'title' => '排序模型模板ID', - 'description' => '排序模型模板ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'testTemplateId', - ], + 'schema' => ['title' => '模型模板ID', 'description' => '排序模型模板ID。', 'type' => 'string', 'required' => false, 'example' => 'testTemplateId'], ], ], 'responses' => [ @@ -9548,239 +5693,198 @@ 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'result' => [ - 'description' => '返回参数。', - '$ref' => '#/components/schemas/RankingModelTemplate', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'result' => ['description' => '返回参数。', '$ref' => '#/components/schemas/RankingModelTemplate'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": {\\n \\"Status\\": \\"TRAINING_SUCCESS\\",\\n \\"Meta\\": {\\n \\"Authorized\\": true,\\n \\"AutoRun\\": true,\\n \\"AutoRunTime\\": 1,\\n \\"AutoRunType\\": \\"DAY\\",\\n \\"Conf\\": \\"train_config {}\\",\\n \\"LastEditTime\\": \\"2021-12-06T03:01:41.217Z\\",\\n \\"OssArn\\": \\"acs:ram::111:role/aliyunodpspaidefaultrole\\",\\n \\"OssBucket\\": \\"bucket-a\\",\\n \\"OssEndpoint\\": \\"oss-cn-beijing.aliyuncs.com\\",\\n \\"SampleId\\": \\"1111\\",\\n \\"SampleName\\": \\"样本1\\",\\n \\"SampleTimeWindow\\": 3,\\n \\"SampleTimeWindowType\\": \\"DAY\\",\\n \\"Type\\": \\"MULTI_TOWER\\",\\n \\"Name\\": \\"模型A\\",\\n \\"DeployStatus\\": \\"NOT_DEPLOYED\\",\\n \\"CanDeploy\\": true\\n },\\n \\"VersionNum\\": 3,\\n \\"TemplateId\\": \\"a-a-a\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '删除模型', - ], - 'ModifyRankingModelTemplate' => [ - 'summary' => '修改排序模型模板。', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-templates/{templateId}', - 'methods' => [ - 'put', + 'title' => '查看排序模型配置详情', + 'summary' => '查看排序模型配置详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetRankingModelTemplate'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:GetRankingModelTemplate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"result\\": {\\n \\"Status\\": \\"TRAINING_SUCCESS\\",\\n \\"Meta\\": {\\n \\"Authorized\\": true,\\n \\"AutoRun\\": true,\\n \\"AutoRunTime\\": 1,\\n \\"AutoRunType\\": \\"DAY\\",\\n \\"Conf\\": \\"train_config {}\\",\\n \\"LastEditTime\\": \\"2021-12-06T03:01:41.217Z\\",\\n \\"OssArn\\": \\"acs:ram::111:role/aliyunodpspaidefaultrole\\",\\n \\"OssBucket\\": \\"bucket-a\\",\\n \\"OssEndpoint\\": \\"oss-cn-beijing.aliyuncs.com\\",\\n \\"SampleId\\": \\"1111\\",\\n \\"SampleName\\": \\"样本1\\",\\n \\"SampleTimeWindow\\": 3,\\n \\"SampleTimeWindowType\\": \\"DAY\\",\\n \\"Type\\": \\"MULTI_TOWER\\",\\n \\"Name\\": \\"模型A\\",\\n \\"DeployStatus\\": \\"NOT_DEPLOYED\\",\\n \\"CanDeploy\\": true\\n },\\n \\"VersionNum\\": 3,\\n \\"TemplateId\\": \\"a-a-a\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<requestId>829F38F6-E2D6-4109-90A6-888160BD16C2</requestId>\\n<result>\\n <templateId>a-a-a</templateId>\\n <status>TRAINING_READY</status>\\n <versionNum>3</versionNum>\\n <meta>\\n <name>模型a</name>\\n <metaType>RankingModelTemplate</metaType>\\n <lastEditTime>2021-12-06T03:01:41.217Z</lastEditTime>\\n <type>MULTI_TOWER</type>\\n <conf>train_config {\\n batch_size: 1024\\n log_step_count_steps: 100\\n optimizer_config: {\\n adam_optimizer: {\\n learning_rate: {\\n exponential_decay_learning_rate {\\n initial_learning_rate: 0.001\\n decay_steps: 1000\\n decay_factor: 0.5\\n min_learning_rate: 0.00001\\n }\\n }\\n }\\n use_moving_average: false\\n }\\n save_checkpoints_steps: 100\\n sync_replicas: True\\n num_steps: 2500\\n}\\n\\nmodel_config {\\n model_class: \\"MultiTower\\"\\n feature_groups {\\n group_name: \\"item\\"\\n feature_names: \\"adgroup_id\\"\\n feature_names: \\"cate_id\\"\\n feature_names: \\"campaign_id\\"\\n feature_names: \\"customer\\"\\n feature_names: \\"brand\\"\\n feature_names: \\"price\\"\\n feature_names: \\"pid\\"\\n wide_deep: DEEP\\n }\\n feature_groups {\\n group_name: \\"user\\"\\n feature_names: \\"user_id\\"\\n feature_names: \\"cms_segid\\"\\n feature_names: \\"cms_group_id\\"\\n feature_names: \\"age_level\\"\\n feature_names: \\"pvalue_level\\"\\n feature_names: \\"shopping_level\\"\\n feature_names: \\"occupation\\"\\n feature_names: \\"new_user_class_level\\"\\n feature_names: \\"user_tag_cate\\"\\n wide_deep: DEEP\\n }\\n feature_groups {\\n group_name: \\"combo\\"\\n feature_names: \\"combo__user_id_occupation\\"\\n feature_names: \\"combo__age_level_customer\\"\\n feature_names: \\"combo__pvalue_level_brand\\"\\n wide_deep: DEEP\\n }\\n embedding_regularization: 1e-05\\n multi_tower {\\n towers {\\n input: \\"item\\"\\n dnn {\\n hidden_units: 192\\n hidden_units: 256\\n hidden_units: 192\\n hidden_units: 128\\n }\\n }\\n towers {\\n input: \\"user\\"\\n dnn {\\n hidden_units: 192\\n hidden_units: 256\\n hidden_units: 192\\n hidden_units: 128\\n }\\n }\\n towers {\\n input: \\"combo\\"\\n dnn {\\n hidden_units: 192\\n hidden_units: 256\\n hidden_units: 192\\n hidden_units: 128\\n }\\n }\\n final_dnn {\\n hidden_units: 256\\n hidden_units: 192\\n hidden_units: 128\\n hidden_units: 64\\n }\\n l2_regularization: 0.0001\\n }\\n}</conf>\\n <sampleId>123</sampleId>\\n <sampleName>样本1</sampleName>\\n <sampleTimeWindow>30</sampleTimeWindow>\\n <sampleTimeWindowType>HOUR</sampleTimeWindowType>\\n <authorized>true</authorized>\\n <ossBucket>keluo</ossBucket>\\n <ossEndpoint>oss-cn-beijing.aliyuncs.com</ossEndpoint>\\n <ossArn>acs:ram::111:role/aliyunodpspaidefaultrole</ossArn>\\n <autoRun>true</autoRun>\\n <autoRunTime>3</autoRunTime>\\n <autoRunType>HOUR</autoRunType>\\n <deployStatus>NOT_DEPLOYED</deployStatus>\\n <canDeploy>true</canDeploy>\\n </meta>\\n</result>","errorExample":""}]', + ], + 'GetRankingModelVersion' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-versions/{versionId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '117144', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '117152', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'templateId', + 'name' => 'versionId', 'in' => 'path', - 'schema' => [ - 'title' => '排序模型模板ID', - 'description' => '排序模型模板ID', - 'type' => 'string', - 'required' => true, - 'example' => 'a-a-a', - ], - ], - [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'description' => '配置信息', - 'type' => 'object', - 'required' => false, - 'example' => '{}', - ], + 'schema' => ['title' => '模型版本ID', 'description' => '模型版本ID。', 'type' => 'string', 'required' => true, 'example' => '1'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求的RequestID', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'result' => [ - 'description' => '模型信息', - '$ref' => '#/components/schemas/RankingModelTemplate', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '90EF57C6-CC92-55D0-BA35-892DF9337EAB'], + 'result' => ['description' => '排序模型。', '$ref' => '#/components/schemas/RankingModelVersion'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": {\\n \\"Status\\": \\"TRAINING_SUCCESS\\",\\n \\"Meta\\": {\\n \\"Authorized\\": true,\\n \\"AutoRun\\": true,\\n \\"AutoRunTime\\": 1,\\n \\"AutoRunType\\": \\"DAY\\",\\n \\"Conf\\": \\"train_config {}\\",\\n \\"LastEditTime\\": \\"2021-12-06T03:01:41.217Z\\",\\n \\"OssArn\\": \\"acs:ram::111:role/aliyunodpspaidefaultrole\\",\\n \\"OssBucket\\": \\"bucket-a\\",\\n \\"OssEndpoint\\": \\"oss-cn-beijing.aliyuncs.com\\",\\n \\"SampleId\\": \\"1111\\",\\n \\"SampleName\\": \\"样本1\\",\\n \\"SampleTimeWindow\\": 3,\\n \\"SampleTimeWindowType\\": \\"DAY\\",\\n \\"Type\\": \\"MULTI_TOWER\\",\\n \\"Name\\": \\"模型A\\",\\n \\"DeployStatus\\": \\"NOT_DEPLOYED\\",\\n \\"CanDeploy\\": true\\n },\\n \\"VersionNum\\": 3,\\n \\"TemplateId\\": \\"a-a-a\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '修改排序模型模板', - ], - 'GetRankingModelTemplate' => [ - 'summary' => '查看排序模型配置详情', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-templates/{templateId}', - 'methods' => [ - 'get', + 'title' => '查看排序模型版本详情', + 'summary' => '查看排序模型版本详情,包括评估结果和训练结果', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetRankingModelVersion'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:GetRankingModelVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"90EF57C6-CC92-55D0-BA35-892DF9337EAB\\",\\n \\"result\\": {\\n \\"Status\\": \\"TRAINING\\",\\n \\"RunTime\\": \\"2021-12-08T20:00:00.0Z\\",\\n \\"RunLog\\": \\"\\",\\n \\"TemplateName\\": \\"模型A\\",\\n \\"RunResult\\": {\\n \\"AssessAuc\\": \\"0.3\\",\\n \\"AssessGauc\\": \\"0.3\\",\\n \\"AssessLoss\\": \\"0.3\\",\\n \\"TrainAuc\\": \\"0.3\\",\\n \\"TrainGauc\\": \\"0.3\\",\\n \\"TrainLoss\\": \\"0.3\\"\\n },\\n \\"Name\\": \\"模型A_t1638964800000\\",\\n \\"TemplateId\\": \\"a-a-a\\"\\n }\\n}","type":"json"}]', + ], + 'GetRankingSystem' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '117142', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'abilityTreeCode' => '117168', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID', 'type' => 'string', 'required' => false, 'example' => 'airec-test'], ], [ - 'name' => 'templateId', + 'name' => 'name', 'in' => 'path', - 'schema' => [ - 'title' => '模型模板ID', - 'description' => '排序模型模板ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'testTemplateId', - ], + 'schema' => ['title' => '排序服务名称', 'description' => '服务名称', 'type' => 'string', 'required' => false, 'example' => 'test-service'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => '返回参数。', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'result' => [ - 'description' => '返回参数。', - '$ref' => '#/components/schemas/RankingModelTemplate', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'result' => ['description' => '响应业务实体', '$ref' => '#/components/schemas/RankingSystem'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"result\\": {\\n \\"Status\\": \\"TRAINING_SUCCESS\\",\\n \\"Meta\\": {\\n \\"Authorized\\": true,\\n \\"AutoRun\\": true,\\n \\"AutoRunTime\\": 1,\\n \\"AutoRunType\\": \\"DAY\\",\\n \\"Conf\\": \\"train_config {}\\",\\n \\"LastEditTime\\": \\"2021-12-06T03:01:41.217Z\\",\\n \\"OssArn\\": \\"acs:ram::111:role/aliyunodpspaidefaultrole\\",\\n \\"OssBucket\\": \\"bucket-a\\",\\n \\"OssEndpoint\\": \\"oss-cn-beijing.aliyuncs.com\\",\\n \\"SampleId\\": \\"1111\\",\\n \\"SampleName\\": \\"样本1\\",\\n \\"SampleTimeWindow\\": 3,\\n \\"SampleTimeWindowType\\": \\"DAY\\",\\n \\"Type\\": \\"MULTI_TOWER\\",\\n \\"Name\\": \\"模型A\\",\\n \\"DeployStatus\\": \\"NOT_DEPLOYED\\",\\n \\"CanDeploy\\": true\\n },\\n \\"VersionNum\\": 3,\\n \\"TemplateId\\": \\"a-a-a\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<requestId>829F38F6-E2D6-4109-90A6-888160BD16C2</requestId>\\n<result>\\n <templateId>a-a-a</templateId>\\n <status>TRAINING_READY</status>\\n <versionNum>3</versionNum>\\n <meta>\\n <name>模型a</name>\\n <metaType>RankingModelTemplate</metaType>\\n <lastEditTime>2021-12-06T03:01:41.217Z</lastEditTime>\\n <type>MULTI_TOWER</type>\\n <conf>train_config {\\n batch_size: 1024\\n log_step_count_steps: 100\\n optimizer_config: {\\n adam_optimizer: {\\n learning_rate: {\\n exponential_decay_learning_rate {\\n initial_learning_rate: 0.001\\n decay_steps: 1000\\n decay_factor: 0.5\\n min_learning_rate: 0.00001\\n }\\n }\\n }\\n use_moving_average: false\\n }\\n save_checkpoints_steps: 100\\n sync_replicas: True\\n num_steps: 2500\\n}\\n\\nmodel_config {\\n model_class: \\"MultiTower\\"\\n feature_groups {\\n group_name: \\"item\\"\\n feature_names: \\"adgroup_id\\"\\n feature_names: \\"cate_id\\"\\n feature_names: \\"campaign_id\\"\\n feature_names: \\"customer\\"\\n feature_names: \\"brand\\"\\n feature_names: \\"price\\"\\n feature_names: \\"pid\\"\\n wide_deep: DEEP\\n }\\n feature_groups {\\n group_name: \\"user\\"\\n feature_names: \\"user_id\\"\\n feature_names: \\"cms_segid\\"\\n feature_names: \\"cms_group_id\\"\\n feature_names: \\"age_level\\"\\n feature_names: \\"pvalue_level\\"\\n feature_names: \\"shopping_level\\"\\n feature_names: \\"occupation\\"\\n feature_names: \\"new_user_class_level\\"\\n feature_names: \\"user_tag_cate\\"\\n wide_deep: DEEP\\n }\\n feature_groups {\\n group_name: \\"combo\\"\\n feature_names: \\"combo__user_id_occupation\\"\\n feature_names: \\"combo__age_level_customer\\"\\n feature_names: \\"combo__pvalue_level_brand\\"\\n wide_deep: DEEP\\n }\\n embedding_regularization: 1e-05\\n multi_tower {\\n towers {\\n input: \\"item\\"\\n dnn {\\n hidden_units: 192\\n hidden_units: 256\\n hidden_units: 192\\n hidden_units: 128\\n }\\n }\\n towers {\\n input: \\"user\\"\\n dnn {\\n hidden_units: 192\\n hidden_units: 256\\n hidden_units: 192\\n hidden_units: 128\\n }\\n }\\n towers {\\n input: \\"combo\\"\\n dnn {\\n hidden_units: 192\\n hidden_units: 256\\n hidden_units: 192\\n hidden_units: 128\\n }\\n }\\n final_dnn {\\n hidden_units: 256\\n hidden_units: 192\\n hidden_units: 128\\n hidden_units: 64\\n }\\n l2_regularization: 0.0001\\n }\\n}</conf>\\n <sampleId>123</sampleId>\\n <sampleName>样本1</sampleName>\\n <sampleTimeWindow>30</sampleTimeWindow>\\n <sampleTimeWindowType>HOUR</sampleTimeWindowType>\\n <authorized>true</authorized>\\n <ossBucket>keluo</ossBucket>\\n <ossEndpoint>oss-cn-beijing.aliyuncs.com</ossEndpoint>\\n <ossArn>acs:ram::111:role/aliyunodpspaidefaultrole</ossArn>\\n <autoRun>true</autoRun>\\n <autoRunTime>3</autoRunTime>\\n <autoRunType>HOUR</autoRunType>\\n <deployStatus>NOT_DEPLOYED</deployStatus>\\n <canDeploy>true</canDeploy>\\n </meta>\\n</result>","errorExample":""}]', - 'title' => '查看排序模型配置详情', - ], - 'RunRankingModelTemplate' => [ - 'summary' => '运行排序模型模板', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-templates/{templateId}/actions/run', - 'methods' => [ - 'post', + 'title' => '获取排序服务详情', + 'summary' => '获取排序服务详情。', + 'description' => '****', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetRankingSystem'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:GetRankingSystem', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"result\\": {\\n \\"Meta\\": {\\n \\"AutoDeploy\\": true,\\n \\"AutoDeployAuc\\": \\"0.3\\",\\n \\"Conf\\": \\"\\",\\n \\"PredictEngine\\": {\\n \\"ResourceId\\": \\"eas-oljkkdrggxhx7eizjd\\",\\n \\"Version\\": \\"1\\",\\n \\"ClusterId\\": \\"cn-shanghai\\"\\n },\\n \\"PredictEngineType\\": \\"EAS\\",\\n \\"ModelVersionName\\": \\"模型A_T1638964800000\\",\\n \\"FailMsg\\": \\"\\"\\n },\\n \\"ApplyStatus\\": \\"NOT_APPLIED\\",\\n \\"DeployStatus\\": \\"NOT_DEPLOYED\\",\\n \\"SceneIdList\\": [\\n 0\\n ],\\n \\"Name\\": \\"servicea\\",\\n \\"ModelTemplateId\\": \\"a-a-a\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<requestId>829F38F6-E2D6-4109-90A6-888160BD16C2</requestId>\\n<result>\\n <name>service-a</name>\\n <deployStatus>DEPLOY_SUCCESS</deployStatus>\\n <applyStatus>NOT_APPLIED</applyStatus>\\n <modelTemplateName>排序模型A</modelTemplateName>\\n <modelTemplateId>123455</modelTemplateId>\\n <sceneIdList>1</sceneIdList>\\n <sceneIdList>2</sceneIdList>\\n <sceneIdList>3</sceneIdList>\\n <meta>\\n <autoDeploy>true</autoDeploy>\\n <autoDeployAuc>0.9</autoDeployAuc>\\n <conf>{\\n\\t\\"fg_threads\\": 4,\\n \\"fg_mode\\":\\"normal\\",\\n\\t\\"inter_op_parallelism_threads\\": 4,\\n\\t\\"intra_op_parallelism_threads\\": 4,\\n\\t\\"remote_type\\": \\"hologres\\",\\n\\t\\"url\\": \\"postgres://user:password@addr:port/db_name\\",\\n\\t\\"period\\": 2880,\\n\\t\\"timeout\\": 600,\\n\\t\\"tables\\": [{\\n\\t\\t\\"name\\": \\"table1\\",\\n\\t\\t\\"key\\": \\"svid\\",\\n\\t\\t\\"value\\": \\"feat1,feat2,feat3,feat4 as alt_feat4\\",\\n\\t\\t\\"timekey\\": \\"update_time\\",\\n\\t\\t\\"condition\\": \\"feat1 < 50\\"\\n\\t}, {\\n\\t\\t\\"name\\": \\"table2\\",\\n\\t\\t\\"key\\": \\"svid\\",\\n\\t\\t\\"value\\": \\"feat5,feat6,feat7,feat8\\",\\n\\t\\t\\"timekey\\": \\"update_time\\"\\n\\t}]\\n}</conf>\\n <predictEngineType>EAS</predictEngineType>\\n <predictEngine>\\n <clusterId>cn-shanghai</clusterId>\\n <resourceId>eas-oljkkdrggxhx7eizjd</resourceId>\\n <version>v1</version>\\n </predictEngine>\\n </meta>\\n</result>","errorExample":""}]', + ], + 'GetRankingSystemHistory' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}/histories/{operateId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '117149', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '117155', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例id', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'airec-test'], ], [ - 'name' => 'templateId', + 'name' => 'name', 'in' => 'path', - 'schema' => [ - 'title' => '模型模板ID', - 'description' => '模型ID', - 'type' => 'string', - 'required' => true, - 'example' => '123', - ], + 'schema' => ['title' => '排序服务名称', 'description' => '排序服务名称', 'type' => 'string', 'required' => true, 'example' => 'service-a'], + ], + [ + 'name' => 'operateId', + 'in' => 'path', + 'schema' => ['title' => '操作记录id', 'description' => '操作记录id', 'type' => 'string', 'required' => true, 'example' => 'u-s-a'], ], ], 'responses' => [ @@ -9790,367 +5894,370 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '当前请求的RequestID', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'result' => [ - 'title' => 'result', - 'description' => '返回结果', - 'type' => 'object', - 'example' => 'xxx', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求的RequestID', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'result' => ['description' => '响应业务实体', '$ref' => '#/components/schemas/RankingSystemHistory'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","errorExample":""},{"type":"xml","example":"<requestId>829F38F6-E2D6-4109-90A6-888160BD16C2</requestId>","errorExample":""}]', - 'title' => '启动训练', - ], - 'CreateRankingModel' => [ - 'path' => '/v2/openapi/instances/{instanceId}/ranking-models', - 'methods' => [ - 'post', + 'title' => '查询排序服务操作记录', + 'summary' => '查询排序服务操作记录。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetRankingSystemHistory'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:GetRankingSystemHistory', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": {\\n \\"Meta\\": {\\n \\"AutoDeploy\\": true,\\n \\"AutoDeployAuc\\": \\"0.3\\",\\n \\"Conf\\": \\"\\",\\n \\"ModelTemplateName\\": \\"排序模型A\\",\\n \\"PredictEngine\\": {\\n \\"ResourceId\\": \\"eas-oljkkdrggxhx7eizjd\\",\\n \\"Version\\": \\"1\\"\\n },\\n \\"PredictEngineType\\": \\"EAS\\",\\n \\"PreviousOperateId\\": \\"aaaa\\"\\n },\\n \\"OperateTime\\": \\"2021-12-06T03:01:41.217Z\\",\\n \\"OperateId\\": \\"8AC865AF-37D6-42ED-AA9A-B60D8ECDF640\\",\\n \\"OperateType\\": \\"CONF_CHANGE\\",\\n \\"Name\\": \\"servicea\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'GetSample' => [ + 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '18667', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '117125', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-shdjkgkeog'], ], [ - 'name' => 'dryRun', + 'name' => 'sampleId', + 'in' => 'path', + 'schema' => ['title' => '样本id', 'description' => '样本ID。', 'type' => 'string', 'required' => true, 'example' => '123'], + ], + [ + 'name' => 'withExtendParmas', 'in' => 'query', - 'schema' => [ - 'description' => '是否校验参数。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **true**:校验模型ID是否存在。'."\n" - ."\n" - .'- **false**:默认false,校验参数后创建模型 。', - 'type' => 'boolean', - 'required' => false, - 'docRequired' => false, - 'example' => 'true', - ], + 'schema' => ['title' => '是否携带扩展参数', 'description' => '是否携带扩展参数'."\n" + ."\n" + .'- **true**:有扩展参数'."\n" + ."\n" + .'- **false**:没有扩展参数', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回参数。', + 'title' => 'Schema of Response', + 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '返回参数。', - 'type' => 'object', - 'properties' => [ - 'rankingModelId' => [ - 'description' => '排序模型ID。', - 'type' => 'string', - 'example' => 'testRankingId', - ], - 'gmtModified' => [ - 'description' => '最后修改时间的UTC时间。', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'gmtCreate' => [ - 'description' => '创建时间的UTC时间。', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'meta' => [ - 'description' => '模型Meta原信息。', - 'type' => 'object', - 'example' => 'map', - ], - ], - ], - 'code' => [ - 'description' => '状态码。', - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['description' => '样本实体。', '$ref' => '#/components/schemas/Sample'], ], ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'title' => '获取样本详情', + 'summary' => '获取样本详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetSample'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:GetSample', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"rankingModelId\\": \\"testRankingId\\",\\n \\"gmtModified\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"meta\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"message\\": \\"success\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '创建排名模型', - 'summary' => '创建模型。', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"Status\\": \\"Formatted\\",\\n \\"Meta\\": {\\n \\"AutoUpdate\\": true,\\n \\"AutoUpdateFrequency\\": 1673341140,\\n \\"ClonedId\\": \\"1638877561147\\",\\n \\"Config\\": {\\n \\"BhvTableSourceIds\\": [\\n \\"\\"\\n ],\\n \\"FeatureConfig\\": {\\n \\"ItemFeatures\\": \\"deress,red\\",\\n \\"UserFeatures\\": \\"man\\"\\n },\\n \\"LabelLogic\\": {\\n \\"BhvTimeWindow\\": 86400,\\n \\"NegativeBhvTypes\\": \\"click,expose\\",\\n \\"PositiveBhvTypes\\": \\"like\\"\\n },\\n \\"WeightLogicList\\": [\\n {\\n \\"Bhv\\": \\"click\\",\\n \\"Weight\\": \\"1\\"\\n }\\n ]\\n },\\n \\"ExtendParams\\": {\\n \\"LatestTaskStatus\\": 1,\\n \\"SampleCount\\": 0\\n },\\n \\"MetaType\\": \\"Sample\\",\\n \\"Name\\": \\"12345\\",\\n \\"StoreConfig\\": \\"projectName.tableName\\",\\n \\"Type\\": \\"System\\"\\n },\\n \\"GmtCreate\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"GmtModified\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"SampleId\\": \\"1638880131873\\"\\n }\\n}","type":"json"}]', ], - 'DeleteRankingModel' => [ - 'path' => '/v2/openapi/instances/{instanceId}/ranking-models/{rankingModelId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'InitComputingResource' => [ + 'path' => '/v2/openapi/instances/{instanceId}/computing-resources/actions/init', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '18674', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '117128', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例id', 'type' => 'string', 'required' => false, 'example' => 'airec-test'], ], [ - 'name' => 'rankingModelId', - 'in' => 'path', - 'schema' => [ - 'description' => '排序模型ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'testRankingId', - ], + 'name' => 'type', + 'in' => 'query', + 'schema' => ['title' => '计算资源类型', 'description' => '资源类型,本期固定为:MAX_COMPUTE', 'type' => 'string', 'required' => false, 'example' => '是'], + ], + [ + 'name' => 'key', + 'in' => 'query', + 'schema' => ['title' => '计算资源初始化参数', 'description' => 'type=MAX_COMPUTE则为mc工作空间名称', 'type' => 'string', 'required' => false, 'example' => 'MAX_COMPUTE'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回参数。', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '返回参数。', - 'type' => 'object', - 'properties' => [ - 'rankingModelId' => [ - 'description' => '排序模型ID。', - 'type' => 'string', - 'example' => 'testRankingId', - ], - 'meta' => [ - 'description' => '模型Meta原信息。', - 'type' => 'object', - ], - ], - ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'D486768B-8BF8-4D80-B491-43DC3D0AF8AB', - ], - 'message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'successful', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求id', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], ], ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'title' => '初始化计算资源', + 'summary' => '初始化计算资源。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'InitComputingResource'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:InitComputingResource', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"rankingModelId\\": \\"testRankingId\\",\\n \\"meta\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"D486768B-8BF8-4D80-B491-43DC3D0AF8AB\\",\\n \\"message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '删除排名模型', - 'summary' => '删除排序模型。', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","errorExample":""},{"type":"xml","example":"<requestId>829F38F6-E2D6-4109-90A6-888160BD16C2</requestId>\\n<result>true</result>","errorExample":""}]', ], - 'DeleteRankingModelVersion' => [ - 'summary' => '删除某个模型版本。', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-versions/{versionId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListDashboardDetails' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dashboard/details', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '119230', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18696', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'versionId', - 'in' => 'path', - 'schema' => [ - 'description' => '版本ID', - 'type' => 'string', - 'required' => true, - 'example' => '1', - ], + 'name' => 'startTime', + 'in' => 'query', + 'schema' => ['description' => '开始时间,秒级时间戳', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1588521600'], + ], + [ + 'name' => 'endTime', + 'in' => 'query', + 'schema' => ['description' => '结束时间,秒级时间戳', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1588521600'], + ], + [ + 'name' => 'traceIds', + 'in' => 'query', + 'schema' => ['description' => 'trace_Id,同数据规范', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'Alibaba'], + ], + [ + 'name' => 'sceneIds', + 'in' => 'query', + 'schema' => ['description' => '场景ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test'], + ], + [ + 'name' => 'metricType', + 'in' => 'query', + 'schema' => ['description' => '查询指标,枚举选择'."\n" + ."\n" + .'USER_ACTION_PV_COUNT 整体流量规模PV'."\n" + ."\n" + .'USER_ACTION_UV_COUNT 整体流量规模UV'."\n" + ."\n" + .'USER_ACTION_PV_RATIO 流量转化率'."\n" + ."\n" + .'USER_ACTION_UV_RATIO 人均流量'."\n" + ."\n" + .'USER_PV_STAY 人均停留 (内容型)'."\n" + ."\n" + .'USER_UV_STAY 次均停留 (内容型)', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'xxx'], + ], + [ + 'name' => 'experimentIds', + 'in' => 'query', + 'schema' => ['description' => '实验ID列表,all(场景级别整体效果)。默认值为all。', 'type' => 'string', 'required' => false, 'example' => 'all'], + ], + [ + 'name' => 'matchTypes', + 'in' => 'query', + 'schema' => ['description' => '匹配类型列表。', 'type' => 'string', 'required' => false, 'example' => 'hot,emb,u2x2i,hilp,new,'], ], ], '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' => '829F38F6-E2D6-4109-90A6-888160BD16C2', + 'result' => [ + 'description' => '指定指标的详细信息'."\n" + ."\n", + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'traceId' => ['description' => 'trace_id', 'type' => 'string', 'example' => 'Alibaba'], + 'sceneId' => ['description' => '场景ID', 'type' => 'string', 'example' => 'test'], + 'metricRes' => [ + 'description' => '指标结果'."\n", + 'type' => 'object', + 'properties' => [ + 'total' => ['description' => '统计', 'type' => 'object', 'example' => 'xxx'], + 'detail' => ['description' => '详细信息', 'type' => 'object', 'example' => 'xxx'], + ], + ], + ], + 'description' => '', + ], ], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'An internal server error occurred'], ], + 'description' => '', ], ], + '5XX' => [], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '删除模型版本', - ], - 'ModifyRankingModel' => [ - 'path' => '/v2/openapi/instances/{instanceId}/ranking-models/{rankingModelId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => 'ListDashboardDetails', + 'summary' => '通过指定条件查询指定实例的细分指标。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListDashboardDetails', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"traceId\\": \\"Alibaba\\",\\n \\"sceneId\\": \\"test\\",\\n \\"metricRes\\": {\\n \\"total\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"detail\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n }\\n ],\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>16B78383-2803-4964-9605-37B30C073B0E</RequestId>\\n<Result>\\n <TraceId>alibaba</TraceId>\\n <SceneId>scene_id1</SceneId>\\n <MetricRes>\\n <Total>\\n <Vval>0</Vval>\\n <Min>0</Min>\\n <Avg>0</Avg>\\n <Max>0</Max>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588521600</StartTime>\\n <EndTime>1588525200</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Total>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588003200</StartTime>\\n <EndTime>1588006800</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588089600</StartTime>\\n <EndTime>1588093200</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588176000</StartTime>\\n <EndTime>1588179600</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588262400</StartTime>\\n <EndTime>1588266000</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588348800</StartTime>\\n <EndTime>1588352400</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588435200</StartTime>\\n <EndTime>1588438800</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588521600</StartTime>\\n <EndTime>1588525200</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n </MetricRes>\\n</Result>\\n<Result>\\n <TraceId>alibaba</TraceId>\\n <SceneId>all</SceneId>\\n <MetricRes>\\n <Total>\\n <Val>0</Val>\\n <Min>0</Min>\\n <Avg>0</Avg>\\n <Max>0</Max>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588521600</StartTime>\\n <EndTime>1588525200</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Total>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588003200</StartTime>\\n <EndTime>1588006800</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588089600</StartTime>\\n <EndTime>1588093200</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588176000</StartTime>\\n <EndTime>1588179600</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588262400</StartTime>\\n <EndTime>1588266000</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588348800</StartTime>\\n <EndTime>1588352400</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588435200</StartTime>\\n <EndTime>1588438800</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588521600</StartTime>\\n <EndTime>1588525200</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n </MetricRes>\\n</Result>","errorExample":""}]', + ], + 'ListDashboardDetailsFlows' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dashboard/details/flows', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18723', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18697', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'rankingModelId', - 'in' => 'path', - 'schema' => [ - 'description' => '排序模型ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test1234', - ], + 'name' => 'startTime', + 'in' => 'query', + 'schema' => ['description' => '秒级时间戳'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1588521600'], + ], + [ + 'name' => 'endTime', + 'in' => 'query', + 'schema' => ['description' => '秒级时间戳'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1588521600'], + ], + [ + 'name' => 'traceIds', + 'in' => 'query', + 'schema' => ['description' => 'trace_Id', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'Alibaba'], + ], + [ + 'name' => 'sceneIds', + 'in' => 'query', + 'schema' => ['description' => '场景ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test'], + ], + [ + 'name' => 'metricType', + 'in' => 'query', + 'schema' => ['description' => '查询指标,枚举选择'."\n" + ."\n" + .'USER_ACTION_PV_COUNT 整体流量规模PV'."\n" + ."\n" + .'USER_ACTION_UV_COUNT 整体流量规模UV'."\n" + ."\n" + .'USER_ACTION_PV_RATIO 流量转化率'."\n" + ."\n" + .'USER_ACTION_UV_RATIO 人均流量'."\n" + ."\n" + .'USER_PV_STAY 人均停留 (内容型)'."\n" + ."\n" + .'USER_UV_STAY 次均停留 (内容型)', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'USERACTIONUV_COUNT'], + ], + [ + 'name' => 'experimentIds', + 'in' => 'query', + 'schema' => ['description' => '实验ID列表,all(场景级别整体效果)。默认值为all。', 'type' => 'string', 'required' => false, 'example' => 'all'], ], ], 'responses' => [ @@ -10159,73 +6266,83 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '结果', + 'description' => '指定指标的详细信息'."\n" + ."\n", 'type' => 'object', 'properties' => [ - 'rankingModelId' => [ - 'description' => '排序模型ID', - 'type' => 'string', - 'example' => 'test1234', - ], - 'gmtModified' => [ - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'gmtCreate' => [ - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'meta' => [ - 'description' => '数据源信息,召回表的数据来源,目前只支持ODPS', - 'type' => 'object', - 'example' => '{}', + 'metricType' => ['description' => '查询指标,枚举选择'."\n" + ."\n" + .'USER_ACTION_PV_COUNT 整体流量规模PV'."\n" + ."\n" + .'USER_ACTION_UV_COUNT 整体流量规模UV'."\n" + ."\n" + .'USER_ACTION_PV_RATIO 流量转化率'."\n" + ."\n" + .'USER_ACTION_UV_RATIO 人均流量'."\n" + ."\n" + .'USER_PV_STAY 人均停留 (内容型)'."\n" + ."\n" + .'USER_UV_STAY 次均停留 (内容型)', 'type' => 'string', 'example' => 'USERACTIONUV_COUNT'], + 'metricData' => [ + 'description' => '指标结果', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'traceId' => ['description' => 'trace_id', 'type' => 'string', 'example' => 'Alibaba'], + 'sceneId' => ['description' => '场景ID', 'type' => 'string', 'example' => 'test'], + 'metricRes' => ['description' => '指标结果', 'type' => 'object', 'example' => 'xxx'], + ], + 'description' => '', + ], ], ], ], - 'code' => [ - 'description' => '错误code', - 'type' => 'string', - 'example' => '1', - ], - 'requestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'message' => [ - 'description' => '返回消息', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'An internal server error occurred'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"rankingModelId\\": \\"test1234\\",\\n \\"gmtModified\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"gmtCreate\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"meta\\": {}\\n },\\n \\"code\\": \\"1\\",\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '修改排名模型', - 'summary' => '修改模型信息。', - ], - 'ListRankingModels' => [ - 'path' => '/v2/openapi/instances/{instanceId}/ranking-models', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '通过指定条件查询实例的细分流量指标', + 'summary' => '通过指定条件查询指定实例的细分流量指标。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListDashboardDetailsFlows', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"metricType\\": \\"USERACTIONUV_COUNT\\",\\n \\"metricData\\": [\\n {\\n \\"traceId\\": \\"Alibaba\\",\\n \\"sceneId\\": \\"test\\",\\n \\"metricRes\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ]\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>16B78383-2803-4964-9605-37B30C073B0E</RequestId>\\n<Result>\\n <MetricType>cart</MetricType>\\n <MetricData>\\n <TraceId>alibaba</TraceId>\\n <SceneId>scene_id1</SceneId>\\n <MetricRes>\\n <Total>\\n <Val>0</Val>\\n <Min>0</Min>\\n <Avg>0</Avg>\\n <Max>0</Max>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588521600</StartTime>\\n <EndTime>1588525200</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Total>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1585929600</StartTime>\\n <EndTime>1585933200</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1586016000</StartTime>\\n <EndTime>1586019600</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n </MetricRes>\\n </MetricData>\\n <MetricData>\\n <TraceId>alibaba</TraceId>\\n <SceneId>all</SceneId>\\n <MetricRes>\\n <Total>\\n <Val>0</Val>\\n <Min>0</Min>\\n <Avg>0</Avg>\\n <Max>0</Max>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588521600</StartTime>\\n <EndTime>1588525200</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Total>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588521600</StartTime>\\n <EndTime>1588525200</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n </MetricRes>\\n </MetricData>\\n</Result>","errorExample":""}]', + ], + 'ListDashboardMetrics' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dashboard/metrics', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -10235,58 +6352,51 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18710', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'abilityTreeCode' => '18698', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test001', - ], + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'rankingModelId', + 'name' => 'startTime', 'in' => 'query', - 'schema' => [ - 'description' => '模型id', - 'type' => 'string', - 'required' => false, - 'example' => 'xxx', - ], + 'schema' => ['description' => '起始时间,秒级时间戳', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1586673466'], ], [ - 'name' => 'page', + 'name' => 'endTime', 'in' => 'query', - 'schema' => [ - 'description' => '指定页码,默认为:1'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '1', - ], + 'schema' => ['description' => '截止时间,秒级时间戳', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'example' => '1586673466'], ], [ - 'name' => 'size', + 'name' => 'metricType', 'in' => 'query', - 'schema' => [ - 'description' => '指定每页展示条数,默认为10,限制:[1-50]', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '10', - ], + 'schema' => ['description' => '指标类型'."\n" + ."\n" + .'USER_ACTION_PV_COUNT 整体流量规模PV'."\n" + ."\n" + .'USER_ACTION_UV_COUNT 整体流量规模UV'."\n" + ."\n" + .'USER_ACTION_PV_RATIO 流量转化率'."\n" + ."\n" + .'USER_ACTION_UV_RATIO 人均流量', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '指标类型'."\n" + ."\n" + .'USERACTIONPV_COUNT'], + ], + [ + 'name' => 'metricView', + 'in' => 'query', + 'schema' => ['description' => '查询维度,配合metricQuery使用,默认值为USER, 枚举值如下;'."\n" + .' USER 用户维度,'."\n" + .' ITEM 物品维度', 'type' => 'string', 'required' => false, 'example' => 'ITEM'], + ], + [ + 'name' => 'metricQuery', + 'in' => 'query', + 'schema' => ['description' => '查询条件,格式 k1:v1;k2:v2', 'type' => 'string', 'required' => false, 'example' => 'dimension:ITEM_TYPE;behaviorType:expose'], ], ], 'responses' => [ @@ -10295,414 +6405,385 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '返回结果', + 'description' => '统计结果'."\n", 'type' => 'array', 'items' => [ - 'description' => '返回详情结果'."\n" - ."\n", 'type' => 'object', 'properties' => [ - 'rankingModelId' => [ - 'description' => '模型ID', - 'type' => 'string', - 'example' => '123', - ], - 'gmtModified' => [ - 'description' => '最后修改时间', - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'gmtCreate' => [ - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2020-04-27T06:38:28.000Z', - ], - 'meta' => [ - 'description' => 'meta', - 'type' => 'object', + 'total' => ['description' => '统计', 'type' => 'object', 'example' => 'xxx'], + 'detail' => [ + 'description' => '详细信息', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'val' => ['description' => '具体数值', 'type' => 'string', 'example' => '13'], + 'startTime' => ['description' => '秒级时间戳', 'type' => 'string', 'example' => '1586673466'], + 'endTime' => ['description' => '秒级时间戳', 'type' => 'string', 'example' => '1586673466'], + ], + 'description' => '', + ], ], ], + 'description' => '', ], ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '2D898E45-B97A-4245-B590-6D0AFEAF626B', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'success', - ], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求id'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'An internal server error occurred'], ], + 'description' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + '5XX' => [], + ], + 'title' => 'ListDashboardMetrics', + 'summary' => '查询指定实例的整理仪表盘数据。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListDashboardMetrics', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"rankingModelId\\": \\"123\\",\\n \\"gmtModified\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"gmtCreate\\": \\"2020-04-27T06:38:28.000Z\\",\\n \\"meta\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ],\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"2D898E45-B97A-4245-B590-6D0AFEAF626B\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', - 'title' => '获取排名模型列表', - 'summary' => '查询模型列表。', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"total\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"detail\\": [\\n {\\n \\"val\\": \\"13\\",\\n \\"startTime\\": \\"1586673466\\",\\n \\"endTime\\": \\"1586673466\\"\\n }\\n ]\\n }\\n ],\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>16B78383-2803-4964-9605-37B30C073B0E</RequestId>\\n<Result>\\n <Total>\\n <Val>32</Val>\\n <Min>32</Min>\\n <Average7>32</Average7>\\n <Max>32</Max>\\n <Average30>32</Average30>\\n <Daily>32</Daily>\\n <StatTime>1586673466</StatTime>\\n <EndTime>1586673466</EndTime>\\n <Weekly>32</Weekly>\\n </Total>\\n <Detail>\\n <Val>13</Val>\\n <StartTime>1586673466</StartTime>\\n <EndTime>1586673466</EndTime>\\n </Detail>\\n <Detail>\\n <Val>32</Val>\\n <StartTime>1586673466</StartTime>\\n <EndTime>1586673466</EndTime>\\n </Detail>\\n</Result>","errorExample":""}]', ], - 'ListRankingModelTemplates' => [ - 'summary' => '查看排序模型模板列表,按创建时间倒序。', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-templates', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListDashboardMetricsFlows' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dashboard/metrics/flows', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '117146', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'abilityTreeCode' => '18699', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'page', + 'name' => 'startTime', 'in' => 'query', - 'schema' => [ - 'title' => '分页,页码', - 'description' => '指定页码,默认为1。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '秒级时间戳'."\n" + ."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1586673466'], ], [ - 'name' => 'size', + 'name' => 'endTime', 'in' => 'query', - 'schema' => [ - 'title' => '分页,大小', - 'description' => '指定每页展示条数,默认为10,限制:[1-50]。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => '秒级时间戳'."\n" + ."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1586673466'], + ], + [ + 'name' => 'metricType', + 'in' => 'query', + 'schema' => ['description' => '指标类型'."\n" + ."\n" + .'USER_ACTION_PV_COUNT 整体流量规模PV'."\n" + ."\n" + .'USER_ACTION_UV_COUNT 整体流量规模UV'."\n" + ."\n" + .'USER_ACTION_PV_RATIO 流量转化率'."\n" + ."\n" + .'USER_ACTION_UV_RATIO 人均流量', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'USERACTIONPV_COUNT'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'F1C976E0-FCD2-52E8-9244-179C9C095C29', - ], 'result' => [ - 'title' => 'result', - 'description' => '返回参数。', + 'description' => '统计结果'."\n", 'type' => 'array', 'items' => [ - 'description' => '排序模型。', - '$ref' => '#/components/schemas/RankingModelTemplate', + 'type' => 'object', + 'properties' => [ + 'metricType' => ['description' => '指标类型', 'type' => 'string', 'example' => 'xxx'], + 'metricData' => ['description' => '指标数据', 'type' => 'object', 'example' => 'xxx'], + ], + 'description' => '', ], ], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求id'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'An internal server error occurred'], ], + 'description' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F1C976E0-FCD2-52E8-9244-179C9C095C29\\",\\n \\"result\\": [\\n {\\n \\"Status\\": \\"TRAINING_SUCCESS\\",\\n \\"Meta\\": {\\n \\"Authorized\\": true,\\n \\"AutoRun\\": true,\\n \\"AutoRunTime\\": 1,\\n \\"AutoRunType\\": \\"DAY\\",\\n \\"Conf\\": \\"train_config {}\\",\\n \\"LastEditTime\\": \\"2021-12-06T03:01:41.217Z\\",\\n \\"OssArn\\": \\"acs:ram::111:role/aliyunodpspaidefaultrole\\",\\n \\"OssBucket\\": \\"bucket-a\\",\\n \\"OssEndpoint\\": \\"oss-cn-beijing.aliyuncs.com\\",\\n \\"SampleId\\": \\"1111\\",\\n \\"SampleName\\": \\"样本1\\",\\n \\"SampleTimeWindow\\": 3,\\n \\"SampleTimeWindowType\\": \\"DAY\\",\\n \\"Type\\": \\"MULTI_TOWER\\",\\n \\"Name\\": \\"模型A\\",\\n \\"DeployStatus\\": \\"NOT_DEPLOYED\\",\\n \\"CanDeploy\\": true\\n },\\n \\"VersionNum\\": 3,\\n \\"TemplateId\\": \\"a-a-a\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '查看排序模型模板列表', - ], - 'GetRankingModelVersion' => [ - 'summary' => '查看排序模型版本详情,包括评估结果和训练结果', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-versions/{versionId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '查询指定实例的整理仪表盘流量数据', + 'summary' => '查询指定实例的整理仪表盘流量数据。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListDashboardMetricsFlows', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"metricType\\": \\"xxx\\",\\n \\"metricData\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ],\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>16B78383-2803-4964-9605-37B30C073B0E</RequestId>\\n<Result>\\n <MetricType>click</MetricType>\\n <MetricData>\\n <Val>32</Val>\\n <Min>32</Min>\\n <Average7>32</Average7>\\n <Max>32</Max>\\n <Average30>32</Average30>\\n <Daily>32</Daily>\\n <StatTime>1586673466</StatTime>\\n <EndTime>1586673466</EndTime>\\n <Detail>\\n <Val>10</Val>\\n <StartTime>1586673466</StartTime>\\n <EndTime>1586673466</EndTime>\\n <Type>click</Type>\\n </Detail>\\n <Detail>\\n <Val>10</Val>\\n <StartTime>1586673466</StartTime>\\n <EndTime>1586673466</EndTime>\\n <Type>expose</Type>\\n </Detail>\\n <Weekly>32</Weekly>\\n </MetricData>\\n</Result>","errorExample":""}]', + ], + 'ListDataDiagnoseReports' => [ + 'path' => '/v2/openapi/instances/{instanceId}/data-diagnose-reports', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '117152', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'operationType' => 'list', + 'abilityTreeCode' => '138223', + 'abilityTreeNodes' => ['FEATUREairecG8RBMT'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-shdjkgkeog'], ], [ - 'name' => 'versionId', - 'in' => 'path', - 'schema' => [ - 'title' => '模型版本ID', - 'description' => '模型版本ID。', - 'type' => 'string', - 'required' => true, - 'example' => '1', - ], + 'name' => 'taskCreateTime', + 'in' => 'query', + 'schema' => ['description' => '创建任务的时间', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1566489600'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => '返回参数。', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '90EF57C6-CC92-55D0-BA35-892DF9337EAB', - ], - 'result' => [ - 'description' => '排序模型。', - '$ref' => '#/components/schemas/RankingModelVersion', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['description' => '返回结果', 'type' => 'object', 'example' => '{'."\n" + .' "todayTimeLimit":8,'."\n" + .' "totalCount":10,'."\n" + .' "reports":['."\n" + .' {'."\n" + .' "diagnoseLevel":"low | medium | high",'."\n" + .' "startTime":1566489600,'."\n" + .' "endTime":1566489600,'."\n" + .' "taskCreateTime":1566489600,'."\n" + .' "taskSource":"manual | cycle | firstRun",'."\n" + .' "total":{'."\n" + .' "itemCount":100,'."\n" + .' "userCount":100,'."\n" + .' "bhvCount":100'."\n" + .' },'."\n" + .' "details":['."\n" + .' {'."\n" + .' "key":"",'."\n" + .' "level":"error | warn | info",'."\n" + .' "errorCount":10,'."\n" + .' "errorPercent":10,'."\n" + .' "sampleEnabled":true;'."\n" + .' }'."\n" + .' ]'."\n" + .' },'."\n" + .' {'."\n" + .' "diagnoseLevel":"low | medium | high",'."\n" + .' "startTime":1566489600,'."\n" + .' "endTime":1566489600,'."\n" + .' "taskCreateTime":1566489600,'."\n" + .' "taskSource":"manual | cycle | firstRun",'."\n" + .' "total":{'."\n" + .' "itemCount":100,'."\n" + .' "userCount":100,'."\n" + .' "bhvCount":100'."\n" + .' },'."\n" + .' "details":['."\n" + .' {'."\n" + .' "key":"",'."\n" + .' "level":"error | warn | info",'."\n" + .' "errorCount":10,'."\n" + .' "errorPercent":10,'."\n" + .' "sampleEnabled":true;'."\n" + .' }'."\n" + .' ]'."\n" + .' }'."\n" + .' ]'."\n" + .'}'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"90EF57C6-CC92-55D0-BA35-892DF9337EAB\\",\\n \\"result\\": {\\n \\"Status\\": \\"TRAINING\\",\\n \\"RunTime\\": \\"2021-12-08T20:00:00.0Z\\",\\n \\"RunLog\\": \\"\\",\\n \\"TemplateName\\": \\"模型A\\",\\n \\"RunResult\\": {\\n \\"AssessAuc\\": \\"0.3\\",\\n \\"AssessGauc\\": \\"0.3\\",\\n \\"AssessLoss\\": \\"0.3\\",\\n \\"TrainAuc\\": \\"0.3\\",\\n \\"TrainGauc\\": \\"0.3\\",\\n \\"TrainLoss\\": \\"0.3\\"\\n },\\n \\"Name\\": \\"模型A_t1638964800000\\",\\n \\"TemplateId\\": \\"a-a-a\\"\\n }\\n}","type":"json"}]', - 'title' => '查看排序模型版本详情', - ], - 'ListRankingModelVersions' => [ - 'summary' => '获取排序模型版本。', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-versions', - 'methods' => [ - 'get', + 'title' => '获取数据诊断报告 ', + 'summary' => '获取数据诊断报告 (包括用户手动触发的诊断、每天产出的周期报告、数据启动时诊断的报告)。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDataDiagnoseReports'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListDataDiagnoseReports', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","type":"json"}]', + ], + 'ListDataDiagnoseSampleDetails' => [ + 'path' => '/v2/openapi/instances/{instanceId}/data-diagnose-reports/sample-details', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '117151', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'list', + 'abilityTreeCode' => '139245', + 'abilityTreeNodes' => ['FEATUREairecG8RBMT'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-shdjkgkeog'], ], [ - 'name' => 'templateId', + 'name' => 'taskCreateTime', 'in' => 'query', - 'schema' => [ - 'title' => '模型模板ID', - 'description' => '模型模板ID。', - 'type' => 'string', - 'required' => true, - 'example' => '1', - ], + 'schema' => ['description' => '毫秒时间戳, 诊断任务创建的时间。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1665936000000'], ], [ - 'name' => 'page', + 'name' => 'startTime', 'in' => 'query', - 'schema' => [ - 'title' => '分页,页码', - 'description' => '指定页码,默认为1。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '秒级时间戳,查询的整点时间', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1665158400'], ], [ - 'name' => 'size', + 'name' => 'endTime', 'in' => 'query', - 'schema' => [ - 'title' => '分页,大小', - 'description' => '指定每页展示条数,默认为10,限制:[1-50]。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => '秒级时间戳,查询的整点时间', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1682179200'], ], [ - 'name' => 'status', + 'name' => 'taskSource', 'in' => 'query', - 'schema' => [ - 'title' => '版本状态', - 'description' => '版本状态。'."\n" - ."\n" - .'取值:'."\n" - ."\n" - .'- **DRAFT**:草稿状态。'."\n" - ."\n" - .'- **EFFECTIVE**:生效状态。'."\n" - ."\n" - .'- **PUBLISHING**:发布中状态。'."\n" - ."\n" - .'- **INEFFECTIVE**:已失效状态。'."\n" - ."\n" - .'- **FAILED**:未生效状态。', - 'type' => 'string', - 'required' => false, - 'example' => 'TRAINING', - ], + 'schema' => ['description' => '任务类型:firstRun, manual, cycle', 'type' => 'string', 'required' => true, 'example' => 'cycle'], + ], + [ + 'name' => 'key', + 'in' => 'query', + 'schema' => ['description' => '诊断项', 'type' => 'string', 'required' => true], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => '返回参数。', + 'description' => '返回结果', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'result' => [ - 'title' => 'map', - 'description' => '返回参数。', - 'type' => 'array', - 'items' => [ - 'description' => '排序模型版本数据。', - '$ref' => '#/components/schemas/RankingModelVersion', - ], - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '当前请求的RequestID', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['description' => '返回详情结果', 'type' => 'object'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": [\\n {\\n \\"Status\\": \\"TRAINING\\",\\n \\"RunTime\\": \\"2021-12-08T20:00:00.0Z\\",\\n \\"RunLog\\": \\"\\",\\n \\"TemplateName\\": \\"模型A\\",\\n \\"RunResult\\": {\\n \\"AssessAuc\\": \\"0.3\\",\\n \\"AssessGauc\\": \\"0.3\\",\\n \\"AssessLoss\\": \\"0.3\\",\\n \\"TrainAuc\\": \\"0.3\\",\\n \\"TrainGauc\\": \\"0.3\\",\\n \\"TrainLoss\\": \\"0.3\\"\\n },\\n \\"Name\\": \\"模型A_t1638964800000\\",\\n \\"TemplateId\\": \\"a-a-a\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '获取排序模型版本', - ], - 'DecribeRankingModel' => [ - 'path' => '/v2/openapi/instances/{instanceId}/ranking-models/{rankingModelId}', - 'methods' => [ - 'get', + 'title' => '获取数据诊断报告抽样明细', + 'summary' => '获取数据诊断报告抽样明细。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDataDiagnoseSampleDetails'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListDataDiagnoseSampleDetails', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","type":"json"}]', + ], + 'ListDataSet' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dataSets', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', - 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18670', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'abilityTreeCode' => '18700', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****', - ], - ], - [ - 'name' => 'rankingModelId', - 'in' => 'path', - 'schema' => [ - 'description' => '排序模型ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'testRankingId', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], ], ], 'responses' => [ @@ -10713,44 +6794,38 @@ 'properties' => [ 'result' => [ 'description' => '返回参数。', - 'type' => 'object', - 'properties' => [ - 'rankingModelId' => [ - 'description' => '排序模型ID。', - 'type' => 'string', - 'example' => 'testRankingId', - ], - 'gmtModified' => [ - 'description' => '最后修改时间的UTC时间。', - 'type' => 'string', - 'example' => '2020-04-27T06:38:28.000Z', - ], - 'gmtCreate' => [ - 'description' => '创建的UTC时间。', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'meta' => [ - 'description' => '模型Meta原信息。', - 'type' => 'object', + 'type' => 'array', + 'items' => [ + 'description' => '返回参数。', + 'type' => 'object', + 'properties' => [ + 'versionId' => ['description' => '数据版本ID。', 'type' => 'string', 'example' => '2018102321****'], + 'state' => ['description' => 'State状态类型。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Importing**:数据导入中。'."\n" + ."\n" + .'- **DataSuccess**:数据导入成功。'."\n" + ."\n" + .'- **DataFailed**:数据导入失败,终态。'."\n" + ."\n" + .'- **Training**:训练中。'."\n" + ."\n" + .'- **Success**:成功,终态。'."\n" + ."\n" + .'- **Failed**:失败,终态。'."\n" + ."\n" + .'- **Stopped**:终止,终态。', 'type' => 'string', 'example' => 'Importing'], + 'gmtModified' => ['description' => '最后修改时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '2020-11-11T09:47:43.000Z'], + 'gmtCreate' => ['description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '2018-12-07T02:24:26.000Z'], + 'instanceId' => ['description' => '实例ID。'."\n", 'type' => 'string', 'example' => 'airec-cn-o400whm78004'], ], ], ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'message' => [ - 'description' => '错误信息。', - 'type' => 'string', - 'example' => 'successful', - ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'success'], ], ], ], @@ -10758,62 +6833,55 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"rankingModelId\\": \\"testRankingId\\",\\n \\"gmtModified\\": \\"2020-04-27T06:38:28.000Z\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"meta\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"message\\": \\"successful\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '获取排序模型', - 'summary' => '获取排序模型。', - ], - 'CheckRankingModelReachable' => [ - 'path' => '/v2/openapi/instances/{instanceId}/ranking-models/{rankingModelId}/actions/check-connectivity', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取数据集列表', + 'summary' => '获取指定实例的数据集列表。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListDataSet', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"versionId\\": \\"2018102321****\\",\\n \\"state\\": \\"Importing\\",\\n \\"gmtModified\\": 0,\\n \\"gmtCreate\\": 0,\\n \\"instanceId\\": \\"airec-cn-o400whm78004\\"\\n }\\n ],\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', + ], + 'ListDataSource' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dataSources', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', - 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '18663', - 'abilityTreeNodes' => [ - 'FEATUREairecY1ADIM', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18701', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例id', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-7e22x6f75001', - ], - ], - [ - 'name' => 'rankingModelId', - 'in' => 'path', - 'schema' => [ - 'description' => '模型id', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'rankingModelId', - ], + 'schema' => ['description' => '实例id。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], ], 'responses' => [ @@ -10822,142 +6890,140 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '返回结果', - 'type' => 'boolean', - 'example' => 'true', - ], - 'code' => [ - 'description' => '错误码', - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '当前请求的RequestID。'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情', - 'type' => 'string', - 'example' => 'An internal server error occurred', + 'description' => '数据源信息列表'."\n", + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'gmtModified' => ['description' => '最后修改数据源的UTC时间。'."\n", 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'gmtCreate' => ['description' => '创建数据源的UTC时间。'."\n", 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'tableName' => ['description' => '智能推荐的实例的表名。'."\n", 'type' => 'string', 'example' => 'behavior'], + 'meta' => [ + 'description' => '数据源配置参数'."\n", + 'type' => 'object', + 'properties' => [ + 'bucketName' => ['description' => 'oss数据源的bucketName信息', 'type' => 'string', 'example' => 'airec'], + 'accessKeyId' => ['description' => '有访问ODPS权限的accesskey ID。'."\n", 'type' => 'string', 'example' => 'xxx'], + 'type' => ['description' => '数据源类型,当前只支持ODPS。'."\n", 'type' => 'string', 'example' => 'ODPS'], + 'partition' => ['description' => 'ODPS Partition。例如:ds=20180102'."\n", 'type' => 'string', 'example' => 'ds=20181122'], + 'timestamp' => ['description' => 'ODPS 毫秒数据时间戳。例如:1544112000000'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1544112000000'], + 'path' => ['description' => 'oss数据源的path信息', 'type' => 'string', 'example' => 'oss://xxx.xxx'], + 'tableName' => ['description' => 'ODPS的table name。', 'type' => 'string', 'example' => 'test_maxcompute'], + 'projectName' => ['description' => 'ODPS 的project name。', 'type' => 'string', 'example' => 'openrec_gray'], + ], + ], + ], + 'description' => '', + ], ], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '当前请求的RequestID。'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'An internal server error occurred'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": true,\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<CheckRankingModelReachableResponse>\\n <result>true</result>\\n <requestId>829F38F6-E2D6-4109-90A6-888160BD16C2</requestId>\\n</CheckRankingModelReachableResponse>","errorExample":""}]', - 'title' => '测试模型网络联通性', - 'summary' => '测试模型网络联通性。', - ], - 'CreateRule' => [ - 'path' => '/v2/openapi/instances/{instanceId}/rules', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取指定实例的数据源列表', + 'summary' => '获取指定实例的数据源列表信息。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListDataSource', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"gmtModified\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"tableName\\": \\"behavior\\",\\n \\"meta\\": {\\n \\"bucketName\\": \\"airec\\",\\n \\"accessKeyId\\": \\"xxx\\",\\n \\"type\\": \\"ODPS\\",\\n \\"partition\\": \\"ds=20181122\\",\\n \\"timestamp\\": 1544112000000,\\n \\"path\\": \\"oss://xxx.xxx\\",\\n \\"tableName\\": \\"test_maxcompute\\",\\n \\"projectName\\": \\"openrec_gray\\"\\n }\\n }\\n ],\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<GmtCreate>2018-12-07T02:24:26.000Z</GmtCreate>\\n<GmtModified>2018-12-07T02:24:26.000Z</GmtModified>\\n<TableName>item</TableName>\\n<Meta>\\n <Type>ODPS</Type>\\n <Timestamp>1544112000000</Timestamp>\\n <AccessKeyId>LTAIHhxxxxxxxxxx</AccessKeyId>\\n <ProjectName>openrec_gray</ProjectName>\\n <TableName>content_gul_item_autotest</TableName>\\n <Partition>ds=20181122</Partition>\\n</Meta>","errorExample":""}]', + ], + 'ListExperiments' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '18668', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18702', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-****'."\n", - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], + ], + [ + 'name' => 'sceneId', + 'in' => 'path', + 'schema' => ['description' => '场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'sceneId'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回结果详情。', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '返回结果详情。', - 'type' => 'object', - 'properties' => [ - 'ruleId' => [ - 'description' => '规则ID。', - 'type' => 'string', - 'example' => '98493A14-D619-4E88-9F8D-108939817F9F', - ], - 'gmtModified' => [ - 'description' => '最后修改时间。', - 'type' => 'string', - 'example' => '2020-04-27T06:38:28.000Z', - ], - 'status' => [ - 'description' => '规则状态:'."\n" + 'description' => '返回参数。', + 'type' => 'array', + 'items' => [ + 'description' => '返回参数。', + 'type' => 'object', + 'properties' => [ + 'base' => ['description' => '是否为默认实验。', 'type' => 'boolean', 'example' => 'true'], + 'onlineTime' => ['description' => '实验上线时间。', 'type' => 'string', 'example' => '2020-12-07T06:47:30.000Z'], + 'offlineTime' => ['description' => '实验下线时间。', 'type' => 'string', 'example' => '2020-12-07T06:47:30.000Z'], + 'description' => ['description' => '实验备注。', 'type' => 'string', 'example' => 'xxx'], + 'status' => ['description' => '实验状态。'."\n" + ."\n" + .'取值:'."\n" ."\n" - .'- **DRAFT**:草稿状态'."\n" - ."\n\n" - .'- **EFFECTIVE**:生效状态'."\n" + .'- **Init**:未上线。'."\n" ."\n" - .'- **PUBLISHING**:发布中状态'."\n" + .'- **Online**:上线。'."\n" ."\n" - .'- **INEFFECTIVE**:已失效状态'."\n" + .'- **Finish**:推全。'."\n" ."\n" - .'- **FAILED**:未生效状态', - 'type' => 'string', - 'example' => 'EFFECTIVE', - ], - 'gmtCreate' => [ - 'description' => '创建时间。', - 'type' => 'string', - 'example' => '2020-04-27T06:38:28.000Z', + .'- **Offline**:下线。', 'type' => 'string', 'example' => 'init'], + 'name' => ['description' => '实验名称。', 'type' => 'string', 'example' => 'test'], + 'buckets' => [ + 'description' => '分桶列表,上线实验时该字段才生效。', + 'type' => 'array', + 'items' => ['description' => '分桶信息。', 'type' => 'string', 'example' => '[1,2,3]'], + ], + 'experimentId' => ['description' => '实验ID。', 'type' => 'string', 'example' => '123'], ], ], ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情。', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B'], ], ], ], @@ -10965,487 +7031,200 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"ruleId\\": \\"98493A14-D619-4E88-9F8D-108939817F9F\\",\\n \\"gmtModified\\": \\"2020-04-27T06:38:28.000Z\\",\\n \\"status\\": \\"EFFECTIVE\\",\\n \\"gmtCreate\\": \\"2020-04-27T06:38:28.000Z\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<0>\\n <Result>\\n <Status>DRAFT</Status>\\n <GmtCreate>2020-04-27T06:38:28.000Z</GmtCreate>\\n <GmtModified>2020-04-27T06:38:28.000Z</GmtModified>\\n <RuleId>98493A14-D619-4E88-9F8D-108939817F9F</RuleId>\\n <RuleMeta>\\n <RuleMetaType>SELECTION</RuleMetaType>\\n <SceneId>123</SceneId>\\n <PubState>PUBLISHING</PubState>\\n <SelectionParams>\\n <SelectType>QUERY_ITEM_TYPE</SelectType>\\n <SelectionOperation>OPERATOR_EQUAL</SelectionOperation>\\n <SelectValue>atrical,image</SelectValue>\\n </SelectionParams>\\n </RuleMeta>\\n </Result>\\n <RequestId>76E2C51D-A2D7-4775-9FD8-2AB84B2A0CEF</RequestId>\\n</0>\\n<1>\\n <Result>\\n <Status>DRAFT</Status>\\n <GmtCreate>2020-04-27T03:17:21.000Z</GmtCreate>\\n <GmtModified>2020-04-27T03:17:21.000Z</GmtModified>\\n <RuleId>123456789001122</RuleId>\\n <RuleMeta>\\n <RuleMetaType>OPERATION</RuleMetaType>\\n <SceneId>123</SceneId>\\n <PubState>PUBLISHING</PubState>\\n <OperationParams>\\n <OperationType>MIX</OperationType>\\n <Settings>\\n <Name>image</Name>\\n <Value>10</Value>\\n </Settings>\\n </OperationParams>\\n <OperationParams>\\n <OperationType>DIVERSIFY</OperationType>\\n <CategoryIndex>1</CategoryIndex>\\n <Window>2</Window>\\n <Status>true</Status>\\n <DiversifyType>TYPE_SHOP</DiversifyType>\\n </OperationParams>\\n <OperationParams>\\n <OperationType>EXPOSURE</OperationType>\\n <ExposureSettings>\\n <DurationSeconds>12340</DurationSeconds>\\n <Status>true</Status>\\n <ExposureType>TYPE_EXPOSE</ExposureType>\\n <ScenarioBased>true</ScenarioBased>\\n </ExposureSettings>\\n <ExposureSettings>\\n <DurationSeconds>12340000</DurationSeconds>\\n <Status>true</Status>\\n <ExposureType>TYPE_CLICK</ExposureType>\\n <ScenarioBased>true</ScenarioBased>\\n </ExposureSettings>\\n </OperationParams>\\n </RuleMeta>\\n </Result>\\n <RequestId>76E2C51D-A2D7-4775-9FD8-2AB84B2A0CEF</RequestId>\\n</1>","errorExample":""}]', - 'title' => '创建规则', - 'summary' => '创建推荐策略运营规则。', - 'requestParamsDescription' => '请求的body:'."\n" - .'| 参数 | 类型 | 是否必需 | 描述 |'."\n" - .'| --- | --- | --- | --- |'."\n" - .'| type | String | 是 | 规则类型<br />**SelectionRule:**选品规则<br />**OperationRule:**运营规则<br />**TopRule:** 置顶规则<br />**FixedPositionRule:**定坑规则 |'."\n" - .'| ruleMeta | Map | 是 | 规则的具体信息 |'."\n" - .'| └sceneId | String | 是 | 场景ID<br />如要修改全局运营规则,填global |'."\n" - .'| selectionParams | List | 是 | 选品规则参数 |'."\n" - .'| └selectType | Enum | 是 | **QUERY_ITEM_TYPE: **物品类型<br />**QUERY_CATEGORY:**物品类目<br />**QUERY_PUB_TIME :**发布时间<br />**QUERY_CHANNEL:** 渠道 |'."\n" - .'| └selectionOperation | Enum | 是 | **OPERATOR_HIGHER:**大于等于<br />**OPERATOR_LOWER:**小于等于<br />**_QUERY_VALUE_IN:** 包括_ |'."\n" - .'| └selectValue | String | 是 | 具体选择的选品规则(Json格式传递) |'."\n" - .'| operationParams | | | |'."\n" - .'| └modifyOperationType | List | 是 | ["DIVERSIFY","EXPOSURE"] 添加需要修改的 key |'."\n" - .'| └instanceDiversifyEnable | boolean | 是 | 是否使用实例级别的多样性规则 |'."\n" - .'| └instanceMixEnable | boolean | <br /> | 是否使用实例级别的混排规则 |'."\n" - .'| └operationType | Enum | 是 | MIX 排序<br />**DIVERSIFY:** 多样性<br />**EXPOSURE:**曝光 (只有全局规则支持曝光类型) |'."\n" - .'| └settings | MixSetting | 是 | |'."\n" - .'| └name | String | 是 | 混排类型 |'."\n" - .'| └value | int | 是 | 混排类型所占百分比 |'."\n" - .'| └diversifyType | Enum | 是 | **TYPE_SHOP:** 店铺打散<br />**TYPE_AUTHOR :**作者打散<br />**TYPE_CATEGORY:**类目打散<br />**TYPE_ITEM_TYPE:** 物品类型打散 |'."\n" - .'| └categoryIndex | int | 是 | 层级,没有填0 |'."\n" - .'| └window | int | 是 | 窗口 |'."\n" - .'| └status | boolean | 是 | 打散是否开启,**true**:开启,**false**:关闭|'."\n" - .'| └instanceExposureEnable | boolean | 是 | 是否使用实例级别的曝光配置,<br />默认true |'."\n" - .'| └exposureSettings | List | 是 | 曝光配置列表 |'."\n" - .'| └durationSeconds | Long | 是 | 曝光时间(秒级时间戳) |'."\n" - .'| └exposureType | String | 是 | 曝光类型:<br />**TYPE_EXPOSE**:曝光<br />**TYPE_CLICK**:点击<br />**TYPE_LOOP**:循环 |'."\n" - .'| └status | boolean | 是 | 曝光是否开启,**true**:开启,**false**:关闭|'."\n" - .'| └scenarioBased | boolean | 是 | 是否基于场景,**true**:是,**false**:否,基于实例|'."\n" - .'| └mtOrderSettings | MtOrderSetting | 是 | 相关度规则配置列表 |'."\n" - .'| └index | int | 是 | 该值为标识顺序以及符号,<br />例如:a=b=c:111,a=b>c:112,a>b>c:123 |'."\n" - .'| └value | String | 是 | 相关度规则,**TITLE**,**TAG**,**CHANNEL**,**AUTHOR** |'."\n" - .'| └settings | NewItemSetting | 是 | 新品定义规则配置 |'."\n" - .'| └selectType | String | 是 | QUERY_PUB_TIME,固定字符串 |'."\n" - .'| └selectionOperation | String | 是 | OPERATOR_LOWER,固定字符串 |'."\n" - .'| └selectValue | int | 是 | 新品定义的时间,秒级别时间戳|'."\n" - .'| └settings | SimilaritySetting | | 标题相似度规则 |'."\n" - .'| └windowSize | int | | 重复个数,标题相似度这个规则不需要修改 |'."\n" - .'| └repeatLimit | int | | 时间窗口 ,标题相似度这个规则不需要修改|'."\n" - .'| └type | String | | title,固定字符串 |'."\n" - .'| └status | boolean | | 标题相似度规则是否开启,**true**:是,**false**:否|'."\n" - .'| topParams | List | 是 | 置顶规则物品列表 |'."\n" - .'| └itemId | String | 是 | 物品ID|'."\n" - .'| └itemType | String | 是 | 物品类型 |'."\n" - .'| └title | String | 是 | 标题 |'."\n" - .'| └categoryPath | String | 是 | 类目 |'."\n" - .'| └channel | String | 是 | 渠道(内容/新闻) |'."\n" - .'| └author | String | 是 | 作者(内容/新闻) |'."\n" - .'| └brandId | String | 是 | 品牌(电商) |'."\n" - .'| └shopId | String | 是 | 店铺(电商) |'."\n" - .'| fixedPositionParams | List<Fixed> | 是 | 定坑规则列表 |'."\n" - .'| └positions | List<Long> | 是 | 位置列表,格式为[坑位ID1,坑位ID2] |'."\n" - .'| └selectType | String | 是 | 选品类型,固定值为QUERY_ITEM_ID_AND_TYPE |'."\n" - .'| └selectionOperation | String | 是 | 选品规则,固定值为QUERY_VALUE_IN |'."\n" - .'| └selectValue | String | 是 | 选品物品,格式为1:item;2:item |', - ], - 'ModifyRule' => [ - 'path' => '/v2/openapi/instances/{instanceId}/rules/{ruleId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => 'ListExperiments', + 'summary' => '列出实验清单,说明:只展示实验基本信息,不展示算法配置,暂不提供分页功能。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListExperiments', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"base\\": true,\\n \\"onlineTime\\": \\"2020-12-07T06:47:30.000Z\\",\\n \\"offlineTime\\": \\"2020-12-07T06:47:30.000Z\\",\\n \\"description\\": \\"xxx\\",\\n \\"status\\": \\"init\\",\\n \\"name\\": \\"test\\",\\n \\"buckets\\": [\\n \\"[1,2,3]\\"\\n ],\\n \\"experimentId\\": \\"123\\"\\n }\\n ],\\n \\"requestId\\": \\"E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B\\"\\n}","errorExample":""},{"type":"xml","example":"<result>\\n <experimentId>12345</experimentId>\\n <name>实验1</name>\\n <description>demo1</description>\\n <buckets>1</buckets>\\n <buckets>2</buckets>\\n <buckets>3</buckets>\\n <status>init</status>\\n <base>true</base>\\n <onlineTime>2020-11-11t09:47:43.000z</onlineTime>\\n <offlineTime/>\\n</result>\\n<requestId>e3d6fe3b-b7c2-43da-9a13-5ea837aced9b</requestId>","errorExample":""}]', + ], + 'ListExtraDataSources' => [ + 'path' => '/v2/openapi/instances/{instanceId}/extra-data-sources', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18724', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '117105', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'ruleId', - 'in' => 'path', - 'schema' => [ - 'description' => '规则ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '13469', - ], + 'name' => 'type', + 'in' => 'query', + 'schema' => ['title' => '根据数据源类型过滤', 'description' => '数据源类型。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **UserCustomDataSource**:用户数据源。'."\n" + ."\n" + .'- **ItemCustomDataSource**:物品数据源。'."\n" + ."\n" + .'- **BehaviorCustomDataSource**:行为数据源。', 'type' => 'string', 'required' => false, 'example' => 'UserCustomDataSource'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], 'result' => [ - 'description' => '返回详情结果。', - 'type' => 'object', - 'properties' => [ - 'ruleId' => [ - 'description' => '规则ID。', - 'type' => 'string', - 'example' => '98493A14-D619-4E88-9F8D-108939817F9F', - ], - 'ruleMeta' => [ - 'description' => '规则的具体信息。', - 'type' => 'object', - 'example' => 'xxx', - ], - 'gmtModified' => [ - 'description' => '最后修改时间。', - 'type' => 'string', - 'example' => '2020-04-27T06:38:28.000Z', - ], - 'status' => [ - 'description' => '规则状态:'."\n" - .'**DRAFT:** 草稿状态'."\n" - ."\n" - .'**EFFECTIVE:** 生效状态'."\n" - ."\n" - .'**PUBLISHING:**发布中状态'."\n" - ."\n" - .'**INEFFECTIVE:** 已失效状态'."\n" - ."\n" - .'**FAILED:**未生效状态', - 'type' => 'string', - 'example' => 'EFFECTIVE', - ], - 'gmtCreate' => [ - 'description' => '创建时间。', - 'type' => 'string', - 'example' => '2020-04-27T06:38:28.000Z', - ], - ], - ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情。', - 'type' => 'string', - 'example' => 'An internal server error occurred', + 'description' => '返回参数。', + 'type' => 'array', + 'items' => ['description' => '数据源列表。', '$ref' => '#/components/schemas/ExtraDataSource'], ], ], ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'title' => '获取数据源', + 'summary' => '获取特征、样本数据源列表。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListExtraDataSources'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListExtraDataSources', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"ruleId\\": \\"98493A14-D619-4E88-9F8D-108939817F9F\\",\\n \\"ruleMeta\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"gmtModified\\": \\"2020-04-27T06:38:28.000Z\\",\\n \\"status\\": \\"EFFECTIVE\\",\\n \\"gmtCreate\\": \\"2020-04-27T06:38:28.000Z\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => 'ModifyRule', - 'summary' => '修改规则。', - 'requestParamsDescription' => '```json'."\n" - .'// 修改选品规则'."\n" - .'{ "type":"SelectionRule",'."\n" - .' "ruleMeta":{'."\n" - .' "sceneId":"123",'."\n" - .' "ruleMetaType":"SELECTION",'."\n" - .' "selectionParams":['."\n" - .' {'."\n" - .' "selectType":"QUERY_ITEM_TYPE",'."\n" - .' "selectionOperation":"QUERY_VALUE_IN",'."\n" - .' "selectValue":"[\\"atrical\\",\\"image\\"]"'."\n" - .' }'."\n" - .' ]'."\n" - .' }'."\n" - .'}'."\n" - .'// 修改运营规则'."\n" - .'{'."\n" - .' "type":"OperationRule",'."\n" - .' "ruleMeta":{'."\n" - .' "ruleMetaType":"OPERATION",'."\n" - .' "sceneId":"123",'."\n" - .' "operationParams":['."\n" - .' {'."\n" - .' "operationType":"MIX",'."\n" - .' "settings":['."\n" - .' {'."\n" - .' "name":"image",'."\n" - .' "value":10'."\n" - .' }'."\n" - .' ]'."\n" - .' },'."\n" - .' {'."\n" - .' "operationType":"DIVERSIFY",'."\n" - .' "status":true,'."\n" - .' "diversifyType":"TYPE_SHOP",'."\n" - .' "categoryIndex":1,'."\n" - .' "window":2'."\n" - .' },'."\n" - .' {'."\n" - .' "operationType":"EXPOSURE",'."\n" - .' "exposureSettings":['."\n" - .' {'."\n" - .' "durationSeconds":1234000,'."\n" - .' "status":true,'."\n" - .' "exposureType":"TYPE_EXPOSE",'."\n" - .' "scenarioBased":true'."\n" - .' },'."\n" - .' {'."\n" - .' "durationSeconds":123400,'."\n" - .' "status":true,'."\n" - .' "exposureType":"TYPE_CLICK",'."\n" - .' "scenarioBased":true'."\n" - .' },'."\n" - .' {'."\n" - .' "durationSeconds":3000,'."\n" - .' "status":true,'."\n" - .' "exposureType":"TYPE_LOOP",'."\n" - .' "scenarioBased":false'."\n" - .' }'."\n" - .' ]'."\n" - .' }'."\n" - .' ]'."\n" - .' }'."\n" - .'}'."\n" - .'```', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": [\\n {\\n \\"Status\\": \\"Ready 待应用;Online 已应用;Failed失败\\",\\n \\"Meta\\": {\\n \\"Internal\\": true,\\n \\"MetaType\\": \\"ExtraDataSource\\",\\n \\"ProjectName\\": \\"test_project\\",\\n \\"TableName\\": \\"test_table\\",\\n \\"Type\\": \\"ODPS\\",\\n \\"UpdateFrequency\\": 86400\\n },\\n \\"Type\\": \\"UserCustomDataSource\\\\\\\\ItemCustomDataSource\\\\\\\\\\\\nBehaviorCustomDataSource\\\\\\\\\\\\nSampleCustomDataSource\\",\\n \\"GmtCreate\\": \\"2021-12-07T13:26:29.000Z\\",\\n \\"GmtModified\\": \\"2021-12-07T13:26:29.000Z\\",\\n \\"DataSourceId\\": \\"E01D574F-ABD0-4C55-A5E3-8D24FD8D42EA\\"\\n }\\n ]\\n}","type":"json"}]', ], - 'ListRules' => [ - 'path' => '/v2/openapi/instances/{instanceId}/rules', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListFeatureTables' => [ + 'path' => '/v2/openapi/instances/{instanceId}/feature-tables', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18712', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeCode' => '117113', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], - ], - [ - 'name' => 'sceneId', - 'in' => 'query', - 'schema' => [ - 'description' => '要修改规则的场景ID,'."\n" - .'如要修改全局运营规则,则填**global**。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'scenetest', - ], - ], - [ - 'name' => 'ruleType', - 'in' => 'query', - 'schema' => [ - 'description' => '规则类型:'."\n" - .'**selection:** 选品规则'."\n" - ."\n" - .'**operation:**运营规则。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'selection', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '特征表id', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-shdjkgkeog'], ], [ - 'name' => 'status', - 'in' => 'query', - 'schema' => [ - 'description' => '规则状态:'."\n" - .'**DRAFT:** 草稿状态;'."\n" - ."\n" - .'**EFFECTIVE:** 生效状态;'."\n" - ."\n" - .'**PUBLISHING:**发布中状态;'."\n" - ."\n" - .'**INEFFECTIVE:** 已失效状态;'."\n" - ."\n" - .'**FAILED:**未生效状态。', - 'type' => 'string', - 'required' => false, - 'example' => 'EFFECTIVE', - ], - ], - [ - 'name' => 'page', + 'name' => 'type', 'in' => 'query', - 'schema' => [ - 'description' => '指定页码,默认为:1。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'docRequired' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '1', - ], + 'schema' => ['title' => '特征表类型', 'description' => '特征表类型', 'type' => 'string', 'required' => false, 'example' => 'ItemFeatureTable UserFeatureTable'], ], [ - 'name' => 'size', + 'name' => 'updateFrequency', 'in' => 'query', - 'schema' => [ - 'description' => '指定每页展示条数,默认为10,限制:[1-50]。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '10', - ], + 'schema' => ['title' => '特征更新频率', 'description' => '特征更新频率', 'type' => 'string', 'required' => false, 'example' => '1'], ], [ - 'name' => 'startTime', + 'name' => 'dataSourceId', 'in' => 'query', - 'schema' => [ - 'description' => '开始时间(秒级时间戳)。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'maximum' => '4102444800', - 'minimum' => '1546300800', - 'example' => '1567584765', - ], - ], - [ - 'name' => 'endTime', - 'in' => 'query', - 'schema' => [ - 'description' => '结束时间 (秒级时间戳)。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1567584765', - ], + 'schema' => ['title' => '数据源id', 'description' => '数据源id', 'type' => 'string', 'required' => false, 'example' => '123'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回结果详情。', + 'title' => 'Schema of Response', + 'description' => '返回结果详情', 'type' => 'object', 'properties' => [ + 'requestId' => ['title' => 'Id of the request', 'description' => '请求id', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], 'result' => [ - 'description' => '返回结果详情。', + 'title' => 'result', + 'description' => '返回结果数组', 'type' => 'array', - 'items' => [ - 'description' => '返回结果详情。', - 'type' => 'object', - 'properties' => [ - 'ruleId' => [ - 'description' => '规则ID。', - 'type' => 'string', - 'example' => '98493A14-D619-4E88-9F8D-108939817F9F', - ], - 'gmtModified' => [ - 'description' => '最后修改时间。', - 'type' => 'string', - 'example' => '2020-04-27T06:38:28.000Z', - ], - 'status' => [ - 'description' => '规则状态:'."\n" - .'**DRAFT:** 草稿状态;'."\n" - ."\n" - .'**EFFECTIVE:** 生效状态;'."\n" - ."\n" - .'**PUBLISHING:**发布中状态;'."\n" - ."\n" - .'**INEFFECTIVE:** 已失效状态;'."\n" - ."\n" - .'**FAILED:**未生效状态。', - 'type' => 'string', - 'example' => 'draft', - ], - 'gmtCreate' => [ - 'description' => '创建时间。', - 'type' => 'string', - 'example' => '2020-04-27T06:38:28.000Z', - ], - ], - ], - ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求id。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情。', - 'type' => 'string', - 'example' => 'An internal server error occurred', + 'items' => ['description' => '返回结果', '$ref' => '#/components/schemas/FeatureTable'], + 'example' => 'result', ], ], ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'title' => '获取特征表列表', + 'summary' => '获取特征表列表。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFeatureTables'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListFeatureTables', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"ruleId\\": \\"98493A14-D619-4E88-9F8D-108939817F9F\\",\\n \\"gmtModified\\": \\"2020-04-27T06:38:28.000Z\\",\\n \\"status\\": \\"draft\\",\\n \\"gmtCreate\\": \\"2020-04-27T06:38:28.000Z\\"\\n }\\n ],\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<0>\\n <Result>\\n <Status>DRAFT</Status>\\n <GmtCreate>2020-04-27T06:38:28.000Z</GmtCreate>\\n <GmtModified>2020-04-27T06:38:28.000Z</GmtModified>\\n <RuleId>98493A14-D619-4E88-9F8D-108939817F9F</RuleId>\\n <RuleMeta>\\n <RuleMetaType>SELECTION</RuleMetaType>\\n <SceneId>123</SceneId>\\n <PubState>PUBLISHING</PubState>\\n <SelectionParams>\\n <SelectType>QUERY_ITEM_TYPE</SelectType>\\n <SelectionOperation>OPERATOR_EQUAL</SelectionOperation>\\n <SelectValue>atrical,image</SelectValue>\\n </SelectionParams>\\n </RuleMeta>\\n </Result>\\n <RequestId>76E2C51D-A2D7-4775-9FD8-2AB84B2A0CEF</RequestId>\\n <Headers>\\n <X-Total-Count>19</X-Total-Count>\\n </Headers>\\n</0>\\n<1>\\n <Result>\\n <Status>DRAFT</Status>\\n <GmtCreate>2020-04-27T03:17:21.000Z</GmtCreate>\\n <GmtModified>2020-04-27T03:17:21.000Z</GmtModified>\\n <RuleId>123456789001122</RuleId>\\n <RuleMeta>\\n <RuleMetaType>OPERATION</RuleMetaType>\\n <SceneId>123</SceneId>\\n <PubState>PUBLISHING</PubState>\\n <OperationParams>\\n <OperationType>MIX</OperationType>\\n <Settings>\\n <Name>image</Name>\\n <Value>10</Value>\\n </Settings>\\n </OperationParams>\\n <OperationParams>\\n <OperationType>DIVERSIFY</OperationType>\\n <CategoryIndex>1</CategoryIndex>\\n <Window>2</Window>\\n <Status>true</Status>\\n <DiversifyType>TYPE_SHOP</DiversifyType>\\n </OperationParams>\\n <OperationParams>\\n <OperationType>EXPOSURE</OperationType>\\n <ExposureSettings>\\n <DurationSeconds>1234000</DurationSeconds>\\n <Status>true</Status>\\n <ExposureType>TYPE_EXPOSE</ExposureType>\\n <ScenarioBased>true</ScenarioBased>\\n </ExposureSettings>\\n <ExposureSettings>\\n <DurationSeconds>123400</DurationSeconds>\\n <Status>true</Status>\\n <ExposureType>TYPE_CLICK</ExposureType>\\n <ScenarioBased>true</ScenarioBased>\\n </ExposureSettings>\\n </OperationParams>\\n </RuleMeta>\\n </Result>\\n <RequestId>76E2C51D-A2D7-4775-9FD8-2AB84B2A0CEF</RequestId>\\n <Headers>\\n <X-Total-Count>19</X-Total-Count>\\n </Headers>\\n</1>","errorExample":""}]', - 'title' => '获取规则列表', - 'summary' => '查询规则列表。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": [\\n {\\n \\"Status\\": \\"\\",\\n \\"Meta\\": {\\n \\"DataSourceId\\": \\"907648f5-abae-44fd-a4c4-525cc25947e9\\",\\n \\"FeatureList\\": [\\n {\\n \\"Comment\\": \\"com11\\",\\n \\"FeatureName\\": \\"fn11\\",\\n \\"FieldName\\": \\"fieldName11\\",\\n \\"Status\\": \\"NotApplied 未应用 Applied 已应用\\"\\n }\\n ],\\n \\"Internal\\": true,\\n \\"MetaType\\": \\"FeatureTable\\",\\n \\"Source\\": \\"test_project.test_table\\",\\n \\"UpdateFrequency\\": 86400\\n },\\n \\"FeatureTableId\\": \\"30E70118-FC7C-4438-9287-583CE47266A9\\",\\n \\"Type\\": \\"ItemFeatureTable 物品特征表 UserFeatureTable 用户特征表\\",\\n \\"GmtCreate\\": \\"2021-12-10T02:59:54.000Z\\",\\n \\"GmtModified\\": \\"2021-12-10T02:59:54.000Z\\"\\n }\\n ]\\n}","type":"json"}]', ], - 'DescribeRule' => [ - 'path' => '/v2/openapi/instances/{instanceId}/rules/{ruleId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListFilteringAlgorithms' => [ + 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -11455,119 +7234,119 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18687', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeCode' => '18703', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'ruleId', - 'in' => 'path', - 'schema' => [ - 'description' => '通过规则ID查询。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '98493A14-D619-4E88-9F8D-108939817F9F', - ], + 'name' => 'status', + 'in' => 'query', + 'schema' => ['description' => '表示单签召回表的状态。 '."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Draft**:草稿。'."\n" + ."\n" + .'- **Running**:运行中。'."\n" + ."\n" + .'- **Offline**:已下线。'."\n" + ."\n" + .'- **Deleted**:已删除。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'Running'], ], [ - 'name' => 'sceneId', + 'name' => 'algorithmId', 'in' => 'query', - 'schema' => [ - 'description' => '场景ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'scenetest', - ], + 'schema' => ['description' => '召回表ID。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '123'], ], [ - 'name' => 'ruleType', + 'name' => 'page', 'in' => 'query', - 'schema' => [ - 'description' => '规则类型:'."\n" - .'**selection:**选品规则'."\n" - ."\n" - .'**operation:**运营规则'."\n" - ."\n" - .'**top:**置顶规则'."\n" - ."\n" - .'**fixed:**定坑规则', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'selection', - ], + 'schema' => ['description' => '召回表分页。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '1'], + ], + [ + 'name' => 'size', + 'in' => 'query', + 'schema' => ['description' => '召回表大小。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'example' => '1'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '返回结果详情。', - 'type' => 'object', - 'properties' => [ - 'ruleId' => [ - 'description' => '通过规则ID查询。', - 'type' => 'string', - 'example' => '98493A14-D619-4E88-9F8D-108939817F9F', - ], - 'gmtModified' => [ - 'description' => '最后修改时间。', - 'type' => 'string', - 'example' => '2020-04-27T06:38:28.000Z', - ], - 'status' => [ - 'description' => '规则状态:'."\n" - .'**DRAFT:** 草稿状态'."\n" + 'description' => '返回参数。', + 'type' => 'array', + 'items' => [ + 'description' => '召回表信息。', + 'type' => 'object', + 'properties' => [ + 'gmtModified' => ['description' => '最后更新时间,单位为UTC时间。', 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'status' => ['description' => '表示单签召回表的状态。 '."\n" ."\n" - .'**EFFECTIVE:** 生效状态'."\n" + .'取值:'."\n" ."\n" - .'**PUBLISHING:**发布中状态'."\n" + .'- **Draft**:草稿。'."\n" ."\n" - .'**INEFFECTIVE:** 已失效状态'."\n" + .'- **Running**:运行中。'."\n" ."\n" - .'**FAILED:**未生效状态', - 'type' => 'string', - 'example' => 'DRAFT', - ], - 'gmtCreate' => [ - 'description' => '创建时间。', - 'type' => 'string', - 'example' => '2020-04-27T06:38:28.000Z', + .'- **Offline**:已下线。'."\n" + ."\n" + .'- **Deleted**:已删除。', 'type' => 'string', 'example' => 'Running'], + 'gmtCreate' => ['description' => '创建时间的UTC时间。', 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'algorithmId' => ['description' => '指定的召回ID。', 'type' => 'string', 'example' => '123'], + 'meta' => [ + 'description' => 'Meta源数据。', + 'type' => 'object', + 'properties' => [ + 'taskId' => ['description' => '任务ID。', 'type' => 'string', 'example' => '123'], + 'metaType' => ['description' => '算法类型,当前只支持ODPS。', 'type' => 'string', 'example' => 'ODPS'], + 'type' => ['description' => '数据源类型,当前只支持ODPS。', 'type' => 'string', 'example' => 'odps'], + 'extInfo' => [ + 'description' => '召回表类型包含内容。', + 'type' => 'object', + 'properties' => [ + 'kvSeparator' => ['description' => 'kv分隔符。', 'type' => 'string', 'example' => ':'], + 'itemSeparator' => ['description' => 'Item分隔符。', 'type' => 'string', 'example' => ','], + ], + ], + 'category' => ['description' => '召回类别。', 'type' => 'string', 'example' => 'odps'], + 'threshold' => [ + 'description' => 'Table的阈值信息。', + 'type' => 'object', + 'properties' => [ + 'sourceDataSizeThreshold' => ['description' => '源数据大小波动阈值。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'sourceDataRecordThreshold' => ['description' => '源数据条目数波动阈值。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'indexSizeThreshold' => ['description' => '索引大小阈值。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'indexLossThreshold' => ['description' => '索引丢失阈值。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + ], + ], + 'tableName' => ['description' => 'ODPS召回表名称。', 'type' => 'string', 'example' => 'item'], + 'clusterId' => ['description' => '集群ID。', 'type' => 'string', 'example' => '123'], + 'cron' => ['description' => '定时调度任务Cron。', 'type' => 'string', 'example' => '0 0/12 0 * *'], + 'description' => ['description' => '描述。', 'type' => 'string', 'example' => 'test'], + 'projectName' => ['description' => 'ODPS中的ProjectName。', 'type' => 'string', 'example' => 'airec123'], + 'algorithmName' => ['description' => '算法名称。', 'type' => 'string', 'example' => 'test'], + 'cronEnabled' => ['description' => '是否开启定时任务。', 'type' => 'boolean', 'example' => 'true'], + ], + ], ], ], ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情。', - 'type' => 'string', - 'example' => 'An internal server error occurred', + 'headers' => [ + 'description' => '显示header信息,目前有count在map中。', + 'type' => 'object', + 'properties' => [ + 'X-Total-Count' => ['description' => '总数。', 'type' => 'integer', 'format' => 'int32', 'example' => '12'], + ], ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3'], ], ], ], @@ -11575,1433 +7354,1453 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"ruleId\\": \\"98493A14-D619-4E88-9F8D-108939817F9F\\",\\n \\"gmtModified\\": \\"2020-04-27T06:38:28.000Z\\",\\n \\"status\\": \\"DRAFT\\",\\n \\"gmtCreate\\": \\"2020-04-27T06:38:28.000Z\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<result>\\n <gmtModified/>\\n <ruleId/>\\n <gmtCreate/>\\n <status/>\\n</result>\\n<code/>\\n<requestId/>\\n<message/>","errorExample":""}]', - 'title' => '获取规则信息', - 'summary' => '查询一个规则的详细信息。', + 'title' => '获取召回表列表', + 'summary' => '列表显示所有的召回表信息。', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'PublishRule' => [ - 'path' => '/v2/openapi/instances/{instanceId}/rules/{ruleId}/actions/publish', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListFilteringAlgorithms', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"gmtModified\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"status\\": \\"Running\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"algorithmId\\": \\"123\\",\\n \\"meta\\": {\\n \\"taskId\\": \\"123\\",\\n \\"metaType\\": \\"ODPS\\",\\n \\"type\\": \\"odps\\",\\n \\"extInfo\\": {\\n \\"kvSeparator\\": \\":\\",\\n \\"itemSeparator\\": \\",\\"\\n },\\n \\"category\\": \\"odps\\",\\n \\"threshold\\": {\\n \\"sourceDataSizeThreshold\\": 1,\\n \\"sourceDataRecordThreshold\\": 1,\\n \\"indexSizeThreshold\\": 1,\\n \\"indexLossThreshold\\": 1\\n },\\n \\"tableName\\": \\"item\\",\\n \\"clusterId\\": \\"123\\",\\n \\"cron\\": \\"0 0/12 0 * *\\",\\n \\"description\\": \\"test\\",\\n \\"projectName\\": \\"airec123\\",\\n \\"algorithmName\\": \\"test\\",\\n \\"cronEnabled\\": true\\n }\\n }\\n ],\\n \\"headers\\": {\\n \\"X-Total-Count\\": 12\\n },\\n \\"requestId\\": \\"7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3\\"\\n}","errorExample":""},{"type":"xml","example":"<headers>\\n <x-total-count>12</x-total-count>\\n</headers>\\n<requestId>7585c2b2-0d61-4c96-ac5d-b960bfedd4a3</requestId>\\n<result>\\n <algorithmId>abc</algorithmId>\\n <gmtCreate>2018-12-07t02:24:26.000z</gmtCreate>\\n <gmtModified>2018-12-07t02:24:26.000z</gmtModified>\\n <meta>\\n <algorithmName>user</algorithmName>\\n <category>i2i</category>\\n <cron>00***</cron>\\n <extInfo>\\n <itemSeparator>,</itemSeparator>\\n <kvseparator>;</kvseparator>\\n </extInfo>\\n <fields>\\n <dest>triggeritemId</dest>\\n <source>abc</source>\\n </fields>\\n <fields>\\n <dest>targeitemId</dest>\\n <source>def</source>\\n </fields>\\n <fields>\\n <dest>weight</dest>\\n <source>ade</source>\\n </fields>\\n <partition/>\\n <projectName>openrecGray</projectName>\\n <tableName>userFakeAna</tableName>\\n <type>odps</type>\\n </meta>\\n <status>running</status>\\n</result>","errorExample":""}]', + ], + 'ListFlowControlTask' => [ + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18727', - 'abilityTreeNodes' => [ - 'FEATUREairecG8RBMT', - ], + 'operationType' => 'list', + 'abilityTreeCode' => '155267', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ - 'name' => 'ruleId', + 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '规则ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '98493A14-D619-4E88-9F8D-108939817F9F', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'ruleType', + 'name' => 'taskId', 'in' => 'query', - 'schema' => [ - 'description' => '规则类型:'."\n" - .'**selection:**选品规则'."\n" - ."\n" - .'**operation:**运营规则'."\n" - ."\n" - .'**top:**置顶规则'."\n" - ."\n" - .'**fixed:**定坑规则', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'selection', - ], + 'schema' => ['description' => '流量调控任务ID。', 'type' => 'string', 'required' => false, 'example' => '1661506482'], ], [ - 'name' => 'sceneId', + 'name' => 'status', 'in' => 'query', - 'schema' => [ - 'description' => '场景ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'schema' => ['description' => '任务状态。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **DRAFT**:草稿。'."\n" + ."\n" + .'- **READY**:待生效。'."\n" + ."\n" + .'- **RUNNING**:运行中。'."\n" + ."\n" + .'- **ENDED**:结束。', 'type' => 'string', 'required' => false, 'example' => 'DRAFT'], ], [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'name' => 'page', + 'in' => 'query', + 'schema' => ['description' => '分页页数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'size', + 'in' => 'query', + 'schema' => ['description' => '指定每页展示条数,默认为10,限制:[1-50]。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回结果详情。', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '6E427B10-30FC-1873-922F-FC176D3398D4'], 'result' => [ - 'description' => '返回结果详情。', - 'type' => 'object', - 'properties' => [ - 'ruleId' => [ - 'description' => '规则ID。', - 'type' => 'string', - 'example' => '98493A14-D619-4E88-9F8D-108939817F9F', + 'description' => '返回参数。', + 'type' => 'array', + 'items' => [ + 'description' => '返回参数。', + 'type' => 'object', + 'properties' => [ + 'gmtCreate' => ['description' => '创建时间,单位为UTC时间。', 'type' => 'string', 'example' => '2022-08-06T06:14:01.000Z'], + 'gmtModified' => ['description' => '最后修改时间,单位为UTC时间。', 'type' => 'string', 'example' => '2022-08-06T06:14:01.000Z'], + 'meta' => [ + 'description' => '流量调控Meta。', + 'type' => 'object', + 'properties' => [ + 'description' => ['description' => '流量调控描述信息。', 'type' => 'string', 'example' => '这是一个测试任务'], + 'endTime' => ['description' => '结束时间秒级时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1621267200'], + 'metaType' => ['description' => '流量调控Meta类型,固定值FlowControlTask。', 'type' => 'string', 'example' => 'metaType'], + 'sceneIds' => ['description' => '场景ID,支持多个,英文,分割即可。', 'type' => 'string', 'example' => '1,2,3'], + 'selectionParams' => [ + 'description' => '选品规则参数列表。', + 'type' => 'array', + 'items' => [ + 'description' => '选品规则参数。', + 'type' => 'object', + 'properties' => [ + 'selectType' => ['description' => '选品规则过滤条件类型。', 'type' => 'string', 'example' => 'selectType'], + 'selectValue' => ['description' => '选品规则过滤条件具体数值。', 'type' => 'string', 'example' => 'selectValue'], + 'selectionOperation' => ['description' => '选品规则过滤条件操作。', 'type' => 'string', 'example' => 'selectionOperation'], + ], + ], + ], + 'startTime' => ['description' => '开始时间秒级时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1621267200'], + 'target' => [ + 'description' => '曝光配置。', + 'type' => 'object', + 'properties' => [ + 'type' => ['description' => '曝光类型。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **EXPOSE_PERCENT**:每日曝光百分比。'."\n" + ."\n" + .'- **EXPOSE_COUNT**:曝光总量。', 'type' => 'string', 'example' => 'EXPOSE_PERCENT'], + 'value' => ['description' => '曝光值。', 'type' => 'integer', 'format' => 'int64', 'example' => '50'], + ], + ], + 'taskName' => ['description' => '流量调控任务名称。', 'type' => 'string', 'example' => 'testtaskname'], + ], + ], + 'status' => ['description' => '任务状态。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **DRAFT**:草稿。'."\n" + ."\n" + .'- **READY**:待生效。'."\n" + ."\n" + .'- **RUNNING**:运行中。'."\n" + ."\n" + .'- **ENDED**:结束。', 'type' => 'string', 'example' => 'DRAFT'], + 'TaskId' => ['description' => '流量调控任务ID。', 'type' => 'string', 'example' => '1661506482'], ], ], ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情。', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], ], ], ], - '5XX' => [ + 500 => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"ruleId\\": \\"98493A14-D619-4E88-9F8D-108939817F9F\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","type":"json"}]', - 'title' => '发布规则', - 'summary' => '发布一个规则。', - ], - 'CreateScene' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes', - 'methods' => [ - 'post', + 'title' => '获取流量调控任务列表,按照创建时间倒序返回', + 'summary' => '查询流控任务列表。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFlowControlTask'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListFlowControlTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"6E427B10-30FC-1873-922F-FC176D3398D4\\",\\n \\"result\\": [\\n {\\n \\"gmtCreate\\": \\"2022-08-06T06:14:01.000Z\\",\\n \\"gmtModified\\": \\"2022-08-06T06:14:01.000Z\\",\\n \\"meta\\": {\\n \\"description\\": \\"这是一个测试任务\\",\\n \\"endTime\\": 1621267200,\\n \\"metaType\\": \\"metaType\\",\\n \\"sceneIds\\": \\"1,2,3\\",\\n \\"selectionParams\\": [\\n {\\n \\"selectType\\": \\"selectType\\",\\n \\"selectValue\\": \\"selectValue\\",\\n \\"selectionOperation\\": \\"selectionOperation\\"\\n }\\n ],\\n \\"startTime\\": 1621267200,\\n \\"target\\": {\\n \\"type\\": \\"EXPOSE_PERCENT\\",\\n \\"value\\": 50\\n },\\n \\"taskName\\": \\"testtaskname\\"\\n },\\n \\"status\\": \\"DRAFT\\",\\n \\"TaskId\\": \\"1661506482\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<ListFlowControlTaskResponse>\\n <requestId>8F81A922-6C81-46D6-B78C-CC35E16B1691</requestId>\\n <result>\\n <taskMeta>\\n <taskName>test</taskName>\\n <description>这是一个测试任务</description>\\n <startTime>1621267200</startTime>\\n <endTime>1621267200</endTime>\\n <selectionParams>\\n <selectType/>\\n <selectionOperation/>\\n <selectValue/>\\n </selectionParams>\\n <sceneIds>1,2,3</sceneIds>\\n <target>\\n <type>EXPOSE_PERCENT</type>\\n <value>50</value>\\n </target>\\n </taskMeta>\\n <taskId>1661506482</taskId>\\n <status>DRAFT</status>\\n <gmtCreate>2022-08-06T06:14:01.000Z</gmtCreate>\\n <gmtModified>2022-08-06T11:17:49.000Z</gmtModified>\\n </result>\\n <headers>\\n <X-Total-Count>1</X-Total-Count>\\n </headers>\\n</ListFlowControlTaskResponse>","errorExample":""}]', + ], + 'ListFlowControlTaskInvalidItems' => [ + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/invalidItems', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '18669', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - ], + 'operationType' => 'list', + 'abilityTreeCode' => '156202', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'dryRun', - 'in' => 'query', + 'name' => 'taskId', + 'in' => 'path', + 'schema' => ['description' => '流量调控任务ID。', 'type' => 'string', 'required' => false, 'example' => '1661506482'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'description' => '是否dryRun'."\n" - .'**true:**校验场景ID是否存在'."\n" - .'**false:**默认为false,创建场景。', - 'type' => 'boolean', + 'description' => '请求体参数。', + 'type' => 'array', + 'items' => ['description' => 'ItemId与ItemType组合JSON。', 'type' => 'string', 'required' => false, 'example' => '[ { "itemId": "10", "itemType": "itemType" }, { "itemId": "10", "itemType": "itemType" } ]'], 'required' => false, - 'docRequired' => true, - 'example' => 'false', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回结果详情。', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], 'result' => [ - 'description' => '返回结果详情。', - 'type' => 'object', - 'properties' => [ - 'sceneId' => [ - 'description' => '场景ID。', - 'type' => 'string', - 'example' => 'test', - ], - 'gmtModified' => [ - 'description' => '最后修改时间。', - 'type' => 'string', - 'example' => '2020-04-23T06:08:48.000Z', - ], - 'status' => [ - 'description' => '场景状态:'."\n" - .'- **DRAFT**:唤醒,重新发布'."\n" - .'- **PUBLISHING** :发布'."\n" - .'- **RUNNING**:运行中'."\n" - .'- **FAILED**:发布失败'."\n" - .'- **FROZEN** :冻结', - 'type' => 'string', - 'example' => 'DRAFT', - ], - 'gmtCreate' => [ - 'description' => '创建时间。', - 'type' => 'string', - 'example' => '2020-04-23T06:08:48.000Z', + 'description' => '返回参数。', + 'type' => 'array', + 'items' => [ + 'description' => '返回参数。', + 'type' => 'object', + 'properties' => [ + 'invalidItems' => [ + 'description' => '失效物品ItemId与ItemType清单。', + 'type' => 'array', + 'items' => [ + 'description' => '失效物品。', + 'type' => 'object', + 'properties' => [ + 'itemId' => ['description' => '物品ID。', 'type' => 'string', 'example' => '287723'], + 'itemType' => ['description' => '物品Type。', 'type' => 'string', 'example' => 'video'], + ], + ], + ], ], ], ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情。', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], ], ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'title' => '查询失效物品清单', + 'summary' => '查询当前流量调控任务中失效物品清单,返回物品ID(ItemId)与物品类型(ItemType)。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFlowControlTaskInvalidItems'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListFlowControlTaskInvalidItems', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"sceneId\\": \\"test\\",\\n \\"gmtModified\\": \\"2020-04-23T06:08:48.000Z\\",\\n \\"status\\": \\"DRAFT\\",\\n \\"gmtCreate\\": \\"2020-04-23T06:08:48.000Z\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<sceneId>123</sceneId>\\n<sceneMeta>\\n <sceneName>sceneTest</sceneName>\\n <description>xxx</description>\\n</sceneMeta>","errorExample":""}]', - 'title' => '创建场景', - 'summary' => '校验创建场景的信息。', - 'description' => '如需使用场景管理功能,不建议使用API进行操作。请使用控制台中“场景管理”功能,使用详情见官方文档<props="china">:[通过选投策略配置,快速搭建推荐场景](https://help.aliyun.com/document_detail/171790.html?spm=a2c4g.11186623.6.677.1f6a3483tNyo2M)</props>', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"result\\": [\\n {\\n \\"invalidItems\\": [\\n {\\n \\"itemId\\": \\"287723\\",\\n \\"itemType\\": \\"video\\"\\n }\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<ListFlowControlTaskInvalidItemsResponse>\\n <requestId>16B78383-2803-4964-9605-37B30C073B0E</requestId>\\n <result>\\n <invalidItems>\\n <itemId>itemId</itemId>\\n <itemType>111111</itemType>\\n </invalidItems>\\n </result>\\n</ListFlowControlTaskInvalidItemsResponse>","errorExample":""}]', ], - 'DeleteScene' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListFlowControlTaskItemReports' => [ + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/itemReports', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '18675', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - 'FEATUREairec5G3YBA', - ], + 'operationType' => 'list', + 'abilityTreeCode' => '155145', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'sceneId', + 'name' => 'taskId', 'in' => 'path', - 'schema' => [ - 'description' => '场景ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'testid', - ], + 'schema' => ['description' => '流量调控任务ID。', 'type' => 'string', 'required' => false, 'example' => '1666854493104'], + ], + [ + 'name' => 'selectTimeType', + 'in' => 'query', + 'schema' => ['description' => '查询时间段,如果selectType=invalidItem,则只支持yesterDay。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **yesterDay**:昨天。'."\n" + ."\n" + .'- **lastSevenDays**:最近7天。'."\n" + ."\n" + .'- **lastFifteenDays**:最近15天。', 'type' => 'string', 'required' => false, 'example' => 'yesterDay'], + ], + [ + 'name' => 'selectType', + 'in' => 'query', + 'schema' => ['description' => '查询数据类型。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **topExposeItem**:曝光排名物品。'."\n" + ."\n" + .'- **invalidItem**:失效物品。', 'type' => 'string', 'required' => false, 'example' => 'invalidItem'], + ], + [ + 'name' => 'count', + 'in' => 'query', + 'schema' => ['description' => '当selectType="topItem",count 代表查询TOP前xx个物品,默认10'."\n" + .'当selectType="invalidItem",count 代表查询失效物品个数,默认10个。', 'type' => 'string', 'required' => false, 'example' => '5'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回结果详情。', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D486768B-8BF8-4D80-B491-43DC3D0AF8AB'], 'result' => [ - 'description' => '返回结果详情。', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'sceneId' => [ - 'description' => '场景ID。', - 'type' => 'string', - 'example' => 'test', + 'detail' => [ + 'description' => '数据列表。', + 'type' => 'array', + 'items' => [ + 'description' => '数据。', + 'type' => 'object', + 'properties' => [ + 'taskId' => ['description' => '流量调控任务ID。', 'type' => 'string', 'example' => '1666669577221'], + 'itemId' => ['description' => '物品ID。', 'type' => 'string', 'example' => '123'], + 'itemType' => ['description' => '物品Type。', 'type' => 'string', 'example' => 'video'], + 'taskRank' => ['description' => '当天曝光量排名。', 'type' => 'string', 'example' => '12'], + 'itemPv' => ['description' => '物品当天曝光量。', 'type' => 'string', 'example' => '100'], + 'taskPv' => ['description' => '任务当天曝光量。', 'type' => 'string', 'example' => '50'], + 'pvPercent' => ['description' => '物品当天曝光占比。', 'type' => 'string', 'example' => '10.12'], + 'itemClick' => ['description' => '物品当天点击量。', 'type' => 'string', 'example' => '100'], + 'taskClick' => ['description' => '任务当天点击量。', 'type' => 'string', 'example' => '100'], + 'clickPercent' => ['description' => '物品当天点击占比。', 'type' => 'string', 'example' => '1.23'], + 'itemCtr' => ['description' => '物品当天点击率。', 'type' => 'string', 'example' => '2.34'], + 'taskCtr' => ['description' => '任务当天点击率。', 'type' => 'string', 'example' => '1.23'], + 'accTaskRank' => ['description' => '累计曝光量排名。', 'type' => 'string', 'example' => '10'], + 'accItemPv' => ['description' => '物品累计曝光量。', 'type' => 'string', 'example' => '500'], + 'accTaskPv' => ['description' => '任务累计曝光量。', 'type' => 'string', 'example' => '200'], + 'accPvPercent' => ['description' => '物品累计曝光占比。', 'type' => 'string', 'example' => '20.12'], + 'accItemClick' => ['description' => '物品累计点击量。', 'type' => 'string', 'example' => '1000'], + 'accTaskClick' => ['description' => '任务累计点击量。', 'type' => 'string', 'example' => '600'], + 'accClickPercent' => ['description' => '物品累计点击占比。', 'type' => 'string', 'example' => '3.24'], + 'accItemCtr' => ['description' => '物品累计点击率。', 'type' => 'string', 'example' => '4.56'], + 'accTaskCtr' => ['description' => '任务累计点击率。', 'type' => 'string', 'example' => '3.22'], + ], + ], ], ], ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情。', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], ], ], ], - '5XX' => [ + 500 => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], + 'code' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"sceneId\\": \\"test\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>8F81A922-6C81-46D6-B78C-CC35E16B1691</RequestId>\\n<Result>\\n <InstanceId>airec-yunchu-test</InstanceId>\\n <SceneId>1234</SceneId>\\n <Id>901</Id>\\n <Type>Scene</Type>\\n <Status/>\\n <GmtCreate>1587435971000</GmtCreate>\\n <GmtModified>1587435971000</GmtModified>\\n <SceneMeta>\\n <Description>this is a test scene</Description>\\n <SceneName>aaa</SceneName>\\n <Metric>\\n <Weekly>123</Weekly>\\n <Daily>12334</Daily>\\n <PvCtr>123</PvCtr>\\n </Metric>\\n </SceneMeta>\\n</Result>","errorExample":""}]', - 'title' => '删除场景', - 'summary' => '删除场景。', - 'description' => '如需使用场景管理功能,不建议使用API进行操作。请使用控制台中“场景管理”功能,使用详情见官方文档<props="china">:[通过选投策略配置,快速搭建推荐场景](https://help.aliyun.com/document_detail/171790.html?spm=a2c4g.11186623.6.677.1f6a3483tNyo2M)</props>', - ], - 'ModifyScene' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}', - 'methods' => [ - 'put', + 'title' => '流量调控曝光排名物品/失效物品查询', + 'summary' => '流量调控曝光排名物品/失效物品查询。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFlowControlTaskItemReports'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListFlowControlTaskItemReports', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"D486768B-8BF8-4D80-B491-43DC3D0AF8AB\\",\\n \\"result\\": {\\n \\"detail\\": [\\n {\\n \\"taskId\\": \\"1666669577221\\",\\n \\"itemId\\": \\"123\\",\\n \\"itemType\\": \\"video\\",\\n \\"taskRank\\": \\"12\\",\\n \\"itemPv\\": \\"100\\",\\n \\"taskPv\\": \\"50\\",\\n \\"pvPercent\\": \\"10.12\\",\\n \\"itemClick\\": \\"100\\",\\n \\"taskClick\\": \\"100\\",\\n \\"clickPercent\\": \\"1.23\\",\\n \\"itemCtr\\": \\"2.34\\",\\n \\"taskCtr\\": \\"1.23\\",\\n \\"accTaskRank\\": \\"10\\",\\n \\"accItemPv\\": \\"500\\",\\n \\"accTaskPv\\": \\"200\\",\\n \\"accPvPercent\\": \\"20.12\\",\\n \\"accItemClick\\": \\"1000\\",\\n \\"accTaskClick\\": \\"600\\",\\n \\"accClickPercent\\": \\"3.24\\",\\n \\"accItemCtr\\": \\"4.56\\",\\n \\"accTaskCtr\\": \\"3.22\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<ListFlowControlTaskItemReportsResponse>\\n <requestId>16B78383-2803-4964-9605-37B30C073B0E</requestId>\\n <result>\\n <detail>\\n <taskId>111111</taskId>\\n <itemId>itemId</itemId>\\n <itemType>itemType</itemType>\\n <title>title</title>\\n <categoryPath>人文关怀</categoryPath>\\n <author>张三</author>\\n <channel>渠道</channel>\\n <brandId>121</brandId>\\n <shopId>111</shopId>\\n <taskRank>12</taskRank>\\n <itemPv>100</itemPv>\\n <taskPv>50</taskPv>\\n <pvPercent>10.12</pvPercent>\\n <itemClick>100</itemClick>\\n <taskClick>100</taskClick>\\n <clickPercent>1.23</clickPercent>\\n <itemCtr>2.34</itemCtr>\\n <taskCtr>1.56</taskCtr>\\n <accTaskRank>10</accTaskRank>\\n <accItemPv>500</accItemPv>\\n <accTaskPv>200</accTaskPv>\\n <accPvPercent>20.12</accPvPercent>\\n <accItemClick>500</accItemClick>\\n <accTaskClick>300</accTaskClick>\\n <accClickPercent>3.24</accClickPercent>\\n <accItemCtr>4.56</accItemCtr>\\n <accTaskCtr>3.22</accTaskCtr>\\n </detail>\\n <detail>\\n <taskId>111111</taskId>\\n <itemId>itemId</itemId>\\n <itemType>itemType</itemType>\\n <taskRank>12</taskRank>\\n <itemPv>100</itemPv>\\n <taskPv>50</taskPv>\\n <pvPercent>10.12</pvPercent>\\n <itemClick>100</itemClick>\\n <taskClick>100</taskClick>\\n <clickPercent>1.23</clickPercent>\\n <itemCtr>2.34</itemCtr>\\n <taskCtr>1.56</taskCtr>\\n <accTaskRank>10</accTaskRank>\\n <accItemPv>500</accItemPv>\\n <accTaskPv>200</accTaskPv>\\n <accPvPercent>20.12</accPvPercent>\\n <accItemClick>500</accItemClick>\\n <accTaskClick>300</accTaskClick>\\n <accClickPercent>3.24</accClickPercent>\\n <accItemCtr>4.56</accItemCtr>\\n <accTaskCtr>3.22</accTaskCtr>\\n </detail>\\n </result>\\n</ListFlowControlTaskItemReportsResponse>","errorExample":""}]', + ], + 'ListFlowControlTaskItems' => [ + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/actions/items', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18725', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - 'FEATUREairec5G3YBA', - ], + 'operationType' => 'list', + 'abilityTreeCode' => '155140', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'sceneId', + 'name' => 'taskId', 'in' => 'path', - 'schema' => [ - 'description' => '场景ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'schema' => ['description' => '流量调控任务ID。', 'type' => 'string', 'required' => false, 'example' => '1667369058068'], + ], + [ + 'name' => 'page', + 'in' => 'query', + 'schema' => ['description' => '分页,页码。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'size', + 'in' => 'query', + 'schema' => ['description' => '分页查询时,设置的每页行数。最大值为500。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回结果详情。', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], 'result' => [ - 'description' => '返回结果详情。', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'sceneId' => [ - 'description' => '场景ID。', - 'type' => 'string', - 'example' => 'test', - ], - 'gmtModified' => [ - 'description' => '最后修改时间。', - 'type' => 'string', - 'example' => '2020-04-23T06:08:48.000Z', - ], - 'status' => [ - 'description' => '场景状态:'."\n" - .'- **DRAFT**:唤醒,重新发布'."\n" - .'- **PUBLISHING** :发布'."\n" - .'- **RUNNING**:运行中'."\n" - .'- **FAILED**:发布失败'."\n" - .'- **FROZEN** :冻结', - 'type' => 'string', - 'example' => 'DRAFT', - ], - 'gmtCreate' => [ - 'description' => '创建时间。', - 'type' => 'string', - 'example' => '2020-04-23T06:08:48.000Z', + 'totalCount' => ['description' => '物品总条数。', 'type' => 'string', 'example' => '1'], + 'validCount' => ['description' => '有效物品个数。', 'type' => 'string', 'example' => '1'], + 'detail' => [ + 'description' => '物品列表。', + 'type' => 'array', + 'items' => [ + 'description' => '物品信息。', + 'type' => 'object', + 'properties' => [ + 'author' => ['description' => '作者。', 'type' => 'string', 'example' => 'zhangsan'], + 'duration' => ['description' => '持续时间。', 'type' => 'string', 'example' => '18'], + 'itemId' => ['description' => '物品ID。', 'type' => 'string', 'example' => '123'], + 'itemType' => ['description' => '物品Type。', 'type' => 'string', 'example' => 'video'], + 'expireTime' => ['description' => '过期时间。', 'type' => 'string', 'example' => '1612687809'], + 'categoryPath' => ['description' => '类目路径。', 'type' => 'string', 'example' => '12_34'], + 'pubTime' => ['description' => '发布时间。', 'type' => 'string', 'example' => '1661931487'], + 'lastModifyTime' => ['description' => '最后修改时间。', 'type' => 'string', 'example' => '1662346558'], + 'channel' => ['description' => '频道。', 'type' => 'string', 'example' => 'news'], + 'weight' => ['description' => '权重。', 'type' => 'string', 'example' => '10'], + 'title' => ['description' => '标题。', 'type' => 'string', 'example' => 'test'], + 'status' => ['description' => '物品状态。', 'type' => 'string', 'example' => '1'], + ], + ], ], ], ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情。', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], ], ], ], - '5XX' => [ + 500 => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'Code' => ['type' => 'string', 'description' => ''], + 'Message' => ['type' => 'string', 'description' => ''], + 'RequestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"sceneId\\": \\"test\\",\\n \\"gmtModified\\": \\"2020-04-23T06:08:48.000Z\\",\\n \\"status\\": \\"DRAFT\\",\\n \\"gmtCreate\\": \\"2020-04-23T06:08:48.000Z\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<Result>\\n <Status>RUNNING</Status>\\n <GmtCreate>2020-04-23T06:08:48.000Z</GmtCreate>\\n <GmtModified>2020-04-23T10:04:24.000Z</GmtModified>\\n <SceneId>123</SceneId>\\n <SceneMeta>\\n <SceneName>xxx</SceneName>\\n <Description>xxx</Description>\\n </SceneMeta>\\n</Result>\\n<RequestId>E6535761-3448-4D6E-A791-477531763F29</RequestId>","errorExample":""}]', - 'title' => '修改场景信息', - 'summary' => '修改场景信息。', - 'description' => '如需使用场景管理功能,不建议使用API进行操作。请使用控制台中“场景管理”功能,使用详情见官方文档<props="china">:[通过选投策略配置,快速搭建推荐场景](https://help.aliyun.com/document_detail/171790.html?spm=a2c4g.11186623.6.677.1f6a3483tNyo2M)</props>', - ], - 'DescribeScene' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}', - 'methods' => [ - 'get', + 'title' => '流量调控预览', + 'summary' => '流量调控预览。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFlowControlTaskItems'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListFlowControlTaskItems', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"result\\": {\\n \\"totalCount\\": \\"1\\",\\n \\"validCount\\": \\"1\\",\\n \\"detail\\": [\\n {\\n \\"author\\": \\"zhangsan\\",\\n \\"duration\\": \\"18\\",\\n \\"itemId\\": \\"123\\",\\n \\"itemType\\": \\"video\\",\\n \\"expireTime\\": \\"1612687809\\",\\n \\"categoryPath\\": \\"12_34\\",\\n \\"pubTime\\": \\"1661931487\\",\\n \\"lastModifyTime\\": \\"1662346558\\",\\n \\"channel\\": \\"news\\",\\n \\"weight\\": \\"10\\",\\n \\"title\\": \\"test\\",\\n \\"status\\": \\"1\\"\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<ListFlowControlTaskItemsResponse>\\n <requestId>16B78383-2803-4964-9605-37B30C073B0E</requestId>\\n <result>\\n <detail>\\n <duration>-1</duration>\\n <itemId>item1076848</itemId>\\n <itemType>video</itemType>\\n <expireTime>4102416000</expireTime>\\n <categoryPath>none</categoryPath>\\n <author>none</author>\\n <pubTime>1661931487</pubTime>\\n <lastModifyTime>1662025185</lastModifyTime>\\n <channel>none</channel>\\n <weight>1</weight>\\n <title>none</title>\\n <status>1</status>\\n </detail>\\n <detail>\\n <duration>-1</duration>\\n <itemId>item8281501</itemId>\\n <itemType>image</itemType>\\n <expireTime>4102416000</expireTime>\\n <categoryPath>none</categoryPath>\\n <author>none</author>\\n <pubTime>1661931487</pubTime>\\n <lastModifyTime>1662346558</lastModifyTime>\\n <channel>none</channel>\\n <weight>1</weight>\\n <title>none</title>\\n <status>1</status>\\n </detail>\\n <totalCount>19835</totalCount>\\n <validCount>19835</validCount>\\n </result>\\n</ListFlowControlTaskItemsResponse>","errorExample":""}]', + ], + 'ListFlowControlTaskReference' => [ + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/reference', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18688', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - 'FEATUREairec5G3YBA', - ], + 'operationType' => 'list', + 'abilityTreeCode' => '155137', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'sceneId', + 'name' => 'taskId', 'in' => 'path', - 'schema' => [ - 'description' => '场景ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'testid', - ], + 'schema' => ['description' => '流量调控任务ID。', 'type' => 'string', 'required' => false, 'example' => '1666670046687'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '场景详情。', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '场景详情。', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'sceneId' => [ - 'description' => '场景ID。', - 'type' => 'string', - 'example' => 'test', - ], - 'gmtModified' => [ - 'description' => '最后修改时间。', - 'type' => 'string', - 'example' => '2020-04-23T06:08:48.000Z', - ], - 'status' => [ - 'description' => '场景状态:'."\n" - .'- **DRAFT**:唤醒,重新发布'."\n" - .'- **PUBLISHING** :发布'."\n" - .'- **RUNNING**:运行中'."\n" - .'- **FAILED**:发布失败'."\n" - .'- **FROZEN** :冻结', - 'type' => 'string', - 'example' => 'DRAFT', - ], - 'gmtCreate' => [ - 'description' => '创建时间。', - 'type' => 'string', - 'example' => '2020-04-23T06:08:48.000Z', - ], + 'last7PvPercent' => ['description' => '最近7天物品池平均曝光占比。', 'type' => 'number', 'format' => 'double', 'example' => '0.1'], + 'last7ScenePv' => ['description' => '最近7天场景平均曝光。', 'type' => 'number', 'format' => 'double', 'example' => '10'], + 'last7TaskPv' => ['description' => '最近7天物品池在选中场景平均曝光。', 'type' => 'number', 'format' => 'double', 'example' => '10'], + 'lastPvPercent' => ['description' => '昨天物品池曝光占比。', 'type' => 'number', 'format' => 'double', 'example' => '0.1'], + 'lastScenePv' => ['description' => '昨天场景总曝光。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], + 'lastTaskPv' => ['description' => '昨天物品池在选中场景内曝光。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], + 'referenceId' => ['description' => '预览ID。', 'type' => 'string', 'example' => '421351235918'], ], ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情。', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], ], ], ], - '5XX' => [ + 500 => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"sceneId\\": \\"test\\",\\n \\"gmtModified\\": \\"2020-04-23T06:08:48.000Z\\",\\n \\"status\\": \\"DRAFT\\",\\n \\"gmtCreate\\": \\"2020-04-23T06:08:48.000Z\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<Result>\\n <Status>DRAFT</Status>\\n <GmtCreate>2020-04-23T06:08:48.000Z</GmtCreate>\\n <GmtModified>2020-04-23T06:08:48.000Z</GmtModified>\\n <SceneId>123</SceneId>\\n <SceneMeta>\\n <SceneName>sceneTest</SceneName>\\n <Description>xxx</Description>\\n <Metric>\\n <PvCtr>32</PvCtr>\\n <Daily>32</Daily>\\n <Weekly>32</Weekly>\\n </Metric>\\n </SceneMeta>\\n</Result>\\n<RequestId>76E2C51D-A2D7-4775-9FD8-2AB84B2A0CEF</RequestId>","errorExample":""}]', - 'title' => '查询场景详情', - 'summary' => '查询场景详情。', - 'description' => '如需使用场景管理功能,不建议使用API进行操作。请使用控制台中“场景管理”功能,使用详情见官方文档<props="china">:[通过选投策略配置,快速搭建推荐场景](https://help.aliyun.com/document_detail/171790.html?spm=a2c4g.11186623.6.677.1f6a3483tNyo2M)</props>', - ], - 'ListScenes' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes', - 'methods' => [ - 'get', + 'title' => '流量调控参考数据', + 'summary' => '流量调控参考数据。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFlowControlTaskReference'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListFlowControlTaskReference', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"last7PvPercent\\": 0.1,\\n \\"last7ScenePv\\": 10,\\n \\"last7TaskPv\\": 10,\\n \\"lastPvPercent\\": 0.1,\\n \\"lastScenePv\\": 10,\\n \\"lastTaskPv\\": 10,\\n \\"referenceId\\": \\"421351235918\\"\\n },\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\"\\n}","errorExample":""},{"type":"xml","example":"<ListFlowControlTaskReferenceResponse>\\n <requestId>16B78383-2803-4964-9605-37B30C073B0E</requestId>\\n <result>\\n <referenceId>421351235918</referenceId>\\n <lastTaskPv>10</lastTaskPv>\\n <lastScenePv>10</lastScenePv>\\n <lastPvPercent>0.1</lastPvPercent>\\n <last7TaskPv>10</last7TaskPv>\\n <last7ScenePv>10</last7ScenePv>\\n <last7PvPercent>0.1</last7PvPercent>\\n </result>\\n</ListFlowControlTaskReferenceResponse>","errorExample":""}]', + ], + 'ListFlowControlTaskReports' => [ + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/flowTaskReports', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18716', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - 'FEATUREairec5G3YBA', - ], + 'operationType' => 'list', + 'abilityTreeCode' => '155143', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'status', - 'in' => 'query', - 'schema' => [ - 'description' => '场景状态:'."\n" - .'- **DRAFT**:唤醒,重新发布'."\n" - .'- **PUBLISHING** :发布'."\n" - .'- **RUNNING**:运行中'."\n" - .'- **FAILED**:发布失败'."\n" - .'- **FROZEN** :冻结', - 'type' => 'string', - 'required' => false, - 'example' => '1', - ], - ], - [ - 'name' => 'sceneId', - 'in' => 'query', - 'schema' => [ - 'description' => '场景ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], + 'name' => 'taskId', + 'in' => 'path', + 'schema' => ['description' => '流量调控任务ID。', 'type' => 'string', 'required' => false, 'example' => '1666697299358'], ], [ - 'name' => 'page', + 'name' => 'startTime', 'in' => 'query', - 'schema' => [ - 'description' => '指定页码,默认为:1。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '1', - ], + 'schema' => ['description' => 's时间戳(格式:yyyymmdd),如果'."\n" + .'不传,默认查询任务开始到t-1天统计数据与指标分析数据。', 'type' => 'string', 'required' => false, 'example' => '1666195200'], ], [ - 'name' => 'size', + 'name' => 'endTime', 'in' => 'query', - 'schema' => [ - 'description' => '指定每页展示条数,默认为10,限制:1-50。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '10', - ], + 'schema' => ['description' => 's时间戳(格式:yyyymmdd),最大值为t-1。', 'type' => 'string', 'required' => false, 'example' => '1668268800'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回结果详情。', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '16B78383-2803-4964-9605-37B30C073B0E'], 'result' => [ - 'description' => '返回结果详情。', - 'type' => 'array', - 'items' => [ - 'description' => '返回结果详情。', - 'type' => 'object', - 'properties' => [ - 'sceneId' => [ - 'description' => '场景ID。', - 'type' => 'string', - 'example' => 'test', - ], - 'gmtModified' => [ - 'description' => '最后修改时间。', - 'type' => 'string', - 'example' => '2020-04-23T06:08:48.000Z', - ], - 'status' => [ - 'description' => '场景状态:'."\n" - .'- **DRAFT**:唤醒,重新发布'."\n" - .'- **PUBLISHING** :发布'."\n" - .'- **RUNNING**:运行中'."\n" - .'- **FAILED**:发布失败'."\n" - .'- **FROZEN** :冻结', - 'type' => 'string', - 'example' => '1', + 'description' => '返回参数。', + 'type' => 'object', + 'properties' => [ + 'total' => [ + 'description' => '指标统计数据。', + 'type' => 'object', + 'properties' => [ + 'accTaskCtr' => ['description' => 'Ctr指标。', 'type' => 'number', 'format' => 'double', 'example' => '0.1'], + 'accTaskPv' => ['description' => 'Pv指标。', 'type' => 'integer', 'format' => 'int64', 'example' => '1000'], + 'accTotalCtr' => ['description' => '场景Ctr指标。', 'type' => 'number', 'format' => 'double', 'example' => '0.2'], + 'InvalidPercent' => ['description' => '失效物品占比指标。', 'type' => 'number', 'format' => 'double', 'example' => '0.3'], ], - 'gmtCreate' => [ - 'description' => '创建时间。', - 'type' => 'string', - 'example' => '2020-04-23T06:08:48.000Z', + ], + 'metrics' => [ + 'description' => '指标列表。', + 'type' => 'array', + 'items' => [ + 'description' => '指标详情。', + 'type' => 'object', + 'properties' => [ + 'type' => ['description' => '指标类型。', 'type' => 'string', 'example' => 'taskPv'], + 'details' => [ + 'description' => '数据列表。', + 'type' => 'array', + 'items' => [ + 'description' => '指标。', + 'type' => 'object', + 'properties' => [ + 'val' => ['description' => '指标值。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'endTime' => ['description' => '指标结束时间秒级时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1664035200'], + 'startTime' => ['description' => '指标开始时间秒级时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1664000452'], + ], + ], + ], + ], ], ], ], ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情。', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], ], ], ], - '5XX' => [ + 500 => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"sceneId\\": \\"test\\",\\n \\"gmtModified\\": \\"2020-04-23T06:08:48.000Z\\",\\n \\"status\\": \\"1\\",\\n \\"gmtCreate\\": \\"2020-04-23T06:08:48.000Z\\"\\n }\\n ],\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<Result>\\n <Status>DRAFT</Status>\\n <GmtCreate>2020-04-23T06:08:48.000Z</GmtCreate>\\n <GmtModified>2020-04-23T06:08:48.000Z</GmtModified>\\n <SceneId>123</SceneId>\\n <SceneMeta>\\n <SceneName>sceneTest</SceneName>\\n <Description>xxx</Description>\\n <Metric>\\n <PvCtr>32</PvCtr>\\n <Daily>32</Daily>\\n <Weekly>32</Weekly>\\n </Metric>\\n </SceneMeta>\\n</Result>\\n<RequestId>0D532E4F-899E-4A59-96B8-C7843A286A53</RequestId>","errorExample":""}]', - 'title' => '查询场景列表', - 'summary' => '查询场景列表。', - 'description' => '如需使用场景管理功能,不建议使用API进行操作。请使用控制台中“场景管理”功能,使用详情见官方文档<props="china">:[通过选投策略配置,快速搭建推荐场景](https://help.aliyun.com/document_detail/171790.html?spm=a2c4g.11186623.6.677.1f6a3483tNyo2M)</props>', - ], - 'CreateCustomSample' => [ - 'summary' => '创建自定义样本。', - 'path' => '/v2/openapi/instances/{instanceId}/samples', - 'methods' => [ - 'post', + 'title' => '流量调控任务曝光分析', + 'summary' => '流量调控任务曝光分析。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFlowControlTaskReports'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListFlowControlTaskReports', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"16B78383-2803-4964-9605-37B30C073B0E\\",\\n \\"result\\": {\\n \\"total\\": {\\n \\"accTaskCtr\\": 0.1,\\n \\"accTaskPv\\": 1000,\\n \\"accTotalCtr\\": 0.2,\\n \\"InvalidPercent\\": 0.3\\n },\\n \\"metrics\\": [\\n {\\n \\"type\\": \\"taskPv\\",\\n \\"details\\": [\\n {\\n \\"val\\": 0,\\n \\"endTime\\": 1664035200,\\n \\"startTime\\": 1664000452\\n }\\n ]\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<ListFlowControlTaskReportsResponse>\\n <requestId>16B78383-2803-4964-9605-37B30C073B0E</requestId>\\n <result>\\n <total>\\n <accTaskPv>1000</accTaskPv>\\n <accPvPercent>0.2</accPvPercent>\\n <accTaskCtr>0.1</accTaskCtr>\\n <accTotalCtr>0.2</accTotalCtr>\\n <invalidPercent>0.2</invalidPercent>\\n </total>\\n <metrics>\\n <type>taskPv</type>\\n <details>\\n <val>0</val>\\n <startTime>1588003200</startTime>\\n <endTime>1588006800</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n <details>\\n <val>0</val>\\n <startTime>1588089600</startTime>\\n <endTime>1588093200</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n </metrics>\\n <metrics>\\n <type>totalPv</type>\\n <details>\\n <val>0</val>\\n <startTime>1588003200</startTime>\\n <endTime>1588006800</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n <details>\\n <val>0</val>\\n <startTime>1588089600</startTime>\\n <endTime>1588093200</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n </metrics>\\n <metrics>\\n <type>pvPercent</type>\\n <details>\\n <val>0</val>\\n <startTime>1588003200</startTime>\\n <endTime>1588006800</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n <details>\\n <val>0</val>\\n <startTime>1588089600</startTime>\\n <endTime>1588093200</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n </metrics>\\n <metrics>\\n <type>taskCtr</type>\\n <details>\\n <val>0</val>\\n <startTime>1588003200</startTime>\\n <endTime>1588006800</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n <details>\\n <val>0</val>\\n <startTime>1588089600</startTime>\\n <endTime>1588093200</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n </metrics>\\n <metrics>\\n <type>totalCtr</type>\\n <details>\\n <val>0</val>\\n <startTime>1588003200</startTime>\\n <endTime>1588006800</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n <details>\\n <val>0</val>\\n <startTime>1588089600</startTime>\\n <endTime>1588093200</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n </metrics>\\n <metrics>\\n <type>totalCount</type>\\n <details>\\n <val>0</val>\\n <startTime>1588003200</startTime>\\n <endTime>1588006800</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n <details>\\n <val>0</val>\\n <startTime>1588089600</startTime>\\n <endTime>1588093200</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n </metrics>\\n <metrics>\\n <type>invalidCount</type>\\n <details>\\n <val>0</val>\\n <startTime>1588003200</startTime>\\n <endTime>1588006800</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n <details>\\n <val>0</val>\\n <startTime>1588089600</startTime>\\n <endTime>1588093200</endTime>\\n <count>0</count>\\n <totalCount>0</totalCount>\\n </details>\\n </metrics>\\n </result>\\n</ListFlowControlTaskReportsResponse>","errorExample":""}]', + ], + 'ListIndexVersions' => [ + 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/index-versions', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '117123', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18704', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-xxx', - ], + 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-test'], + ], + [ + 'name' => 'algorithmId', + 'in' => 'path', + 'schema' => ['description' => '指定的表ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'abc'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '返回结果详情。', + 'description' => '响应体', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], 'result' => [ - 'description' => '返回结果详情。', - '$ref' => '#/components/schemas/Sample', + 'description' => '召回表信息', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'code' => ['description' => '错误码', 'type' => 'string', 'example' => 'abc'], + 'switchedTime' => ['description' => '索引切换完成时间,为UTC时间', 'type' => 'string', 'example' => '2020-11-08T02:00:00Z'], + 'rollbackEnabled' => ['description' => '是否可以回滚', 'type' => 'boolean', 'example' => 'true'], + 'message' => ['description' => '错误信息', 'type' => 'string', 'example' => 'xxx'], + 'flowType' => ['description' => '任务类型,包含 Auto Manual Rollback ', 'type' => 'string', 'example' => 'Auto'], + 'costSeconds' => ['description' => '索引构建耗时', 'type' => 'integer', 'format' => 'int32', 'example' => '600'], + 'builtTime' => ['description' => '索引开始构建时间,为UTC时间', 'type' => 'string', 'example' => '2020-11-08T02:00:00Z'], + 'versionId' => ['description' => '索引版本的版本号,后端生成', 'type' => 'string', 'example' => '2020112301'], + 'size' => ['description' => '索引构建大小', 'type' => 'integer', 'format' => 'int64', 'example' => '300922211'], + 'status' => ['description' => '索引状态,包含索引:'."\n" + ."\n" + .'- 失败(failed)'."\n" + .'- 生效中(online)'."\n" + .'- 已失效(offline)'."\n" + ."\n" + .'全量任务:'."\n" + ."\n" + .'- 全量中(pending)'."\n" + .'- 已完成(success)'."\n" + .'- 失败(failed)'."\n" + ."\n" + .'等', 'type' => 'string', 'example' => 'abc'], + 'progress' => ['description' => '进度展示百分比,例如80', 'type' => 'integer', 'format' => 'int32', 'example' => '80'], + ], + 'description' => '', + ], ], + 'requestId' => ['description' => '请求的RequestID', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], ], ], ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"Status\\": \\"样本状态 Unready 未完成配置 \\\\u0000Ready 配置完成 \\\\u0000Generating 样本生成中 \\\\u0000Success 样本生成成功 \\\\u0000Failed 样本生成失败 \\\\u0000Formatting 格式化中 \\\\u0000Formatted 格式化完成 \\\\u0000FormatFailed 格式化失败 \\\\u0000Applied 已应用到模型中\\",\\n \\"Meta\\": {\\n \\"AutoUpdate\\": true,\\n \\"AutoUpdateFrequency\\": 86400,\\n \\"ClonedId\\": \\"1638877561147\\",\\n \\"Config\\": {\\n \\"BhvTableSourceIds\\": [\\n \\"\\"\\n ],\\n \\"FeatureConfig\\": {\\n \\"ItemFeatures\\": \\"物品特征,支持多值,逗号分隔。\\",\\n \\"UserFeatures\\": \\"用户特征,支持多值,逗号分隔。\\"\\n },\\n \\"LabelLogic\\": {\\n \\"BhvTimeWindow\\": 86400,\\n \\"NegativeBhvTypes\\": \\"click,expose\\",\\n \\"PositiveBhvTypes\\": \\"like\\"\\n },\\n \\"WeightLogicList\\": [\\n {\\n \\"Bhv\\": \\"click\\",\\n \\"Weight\\": \\"1.01\\"\\n }\\n ]\\n },\\n \\"ExtendParams\\": {\\n \\"LatestTaskStatus\\": 0,\\n \\"SampleCount\\": 0\\n },\\n \\"MetaType\\": \\"Sample\\",\\n \\"Name\\": \\"12345\\",\\n \\"StoreConfig\\": \\"projectName.tableName\\",\\n \\"Type\\": \\"Cloned 复制的 System 系统的 Custom 自定义的\\"\\n },\\n \\"GmtCreate\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"GmtModified\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"SampleId\\": \\"1638880131873\\"\\n }\\n}","type":"json"}]', - 'title' => '创建自定义样本', - ], - 'CreateSampleFormatConfig' => [ - 'summary' => '创建样本格式化配置。', - 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}/format-configs', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取索引版本列表', + 'summary' => '根据指定的实例ID,召回表ID获取索引版本列表。目前仅支持显示10条数据(包含3条可以切换的),所以不用翻页,不用过滤。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListIndexVersions', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"code\\": \\"abc\\",\\n \\"switchedTime\\": \\"2020-11-08T02:00:00Z\\",\\n \\"rollbackEnabled\\": true,\\n \\"message\\": \\"xxx\\",\\n \\"flowType\\": \\"Auto\\",\\n \\"costSeconds\\": 600,\\n \\"builtTime\\": \\"2020-11-08T02:00:00Z\\",\\n \\"versionId\\": \\"2020112301\\",\\n \\"size\\": 300922211,\\n \\"status\\": \\"abc\\",\\n \\"progress\\": 80\\n }\\n ],\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'ListInstance' => [ + 'path' => '/v2/openapi/instances', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '117132', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18705', + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-****', - ], + 'name' => 'page', + 'in' => 'query', + 'schema' => ['description' => '指定页码,默认为:1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'example' => '1'], ], [ - 'name' => 'sampleId', - 'in' => 'path', - 'schema' => [ - 'title' => '样本id', - 'description' => '样本ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'Sample1', - ], + 'name' => 'size', + 'in' => 'query', + 'schema' => ['description' => '指定每页展示条数,默认为10,限制:[1-50]。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'example' => '10'], ], [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'description' => '请求Body参数。', - 'type' => 'object', - 'required' => false, - 'example' => '{'."\n" - .' "type": "SampleFormatConfig",'."\n" - .' "meta": {'."\n" - .' "metaType": "SampleFormatConfig",'."\n" - .' "config": {'."\n" - .' "features": ['."\n" - .' {'."\n" - .' "feature_type": "id_feature",'."\n" - .' "value_type": "String",'."\n" - .' "hash_bucket_size": 100000,'."\n" - .' "expression": "user:user_id",'."\n" - .' "feature_name": "user_id",'."\n" - .' "embedding_dim": 16,'."\n" - .' "combiner": "mean",'."\n" - .' "group": "user"'."\n" - .' },'."\n" - .' {'."\n" - .' "feature_type": "id_feature",'."\n" - .' "value_type": "String",'."\n" - .' "hash_bucket_size": 100,'."\n" - .' "expression": "user:cms_segid",'."\n" - .' "feature_name": "cms_segid",'."\n" - .' "embedding_dim": 16,'."\n" - .' "combiner": "mean",'."\n" - .' "group": "user"'."\n" - .' },'."\n" - .' {'."\n" - .' "feature_type": "id_feature",'."\n" - .' "value_type": "String",'."\n" - .' "hash_bucket_size": 100,'."\n" - .' "expression": "user:cms_group_id",'."\n" - .' "feature_name": "cms_group_id",'."\n" - .' "embedding_dim": 16,'."\n" - .' "combiner": "mean",'."\n" - .' "group": "user"'."\n" - .' },'."\n" - .' {'."\n" - .' "feature_type": "combo_feature",'."\n" - .' "hash_bucket_size": 10,'."\n" - .' "expression": ['."\n" - .' "user:pvalue_level",'."\n" - .' "item:brand"'."\n" - .' ],'."\n" - .' "feature_name": "combo__pvalue_level_brand",'."\n" - .' "embedding_dim": 16,'."\n" - .' "group": "combo"'."\n" - .' }'."\n" - .' ]'."\n" - .' }'."\n" - .' }'."\n" - .'}', - ], + 'name' => 'status', + 'in' => 'query', + 'schema' => ['description' => '通过实例运行状态进行过滤。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Initializing**:初始化中。'."\n" + ."\n" + .'- **Ready**:待数据导入。'."\n" + ."\n" + .'- **Running**:运行中。', 'type' => 'string', 'required' => false, 'example' => 'Running'], + ], + [ + 'name' => 'name', + 'in' => 'query', + 'schema' => ['description' => '通过实例名称进行过滤,支持模糊匹配。'."\n", 'type' => 'string', 'required' => false, 'example' => '实例1'], + ], + [ + 'name' => 'expiredTime', + 'in' => 'query', + 'schema' => ['description' => '秒级时间戳,通过过期时间过滤,大于当前时间会过滤出即将过期的实例(不包含已经过期的实例)。', 'type' => 'string', 'required' => false, 'example' => '1608533404'], + ], + [ + 'name' => 'instanceId', + 'in' => 'query', + 'schema' => ['description' => '通过实例ID进行过滤,支持模糊匹配。', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '返回结果详情。', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], 'result' => [ - 'title' => 'result', - 'description' => '格式化配置详情。', - 'type' => 'object', - 'example' => '{'."\n" - .' "result": {'."\n" - .' "meta": {'."\n" - .' "metaType": "SampleFormatConfig",'."\n" - .' "sampleId": "Sample1",'."\n" - .' "config": {'."\n" - .' "features": ['."\n" - .' {'."\n" - .' "feature_type": "id_feature",'."\n" - .' "value_type": "String",'."\n" - .' "hash_bucket_size": 100000,'."\n" - .' "expression": "user:user_id",'."\n" - .' "feature_name": "user_id",'."\n" - .' "embedding_dim": 16,'."\n" - .' "combiner": "mean",'."\n" - .' "group": "user"'."\n" - .' }'."\n" - .' ]'."\n" - .' }'."\n" - .' },'."\n" - .' "status": "",'."\n" - .' "gmtCreate": "2021-12-07T08:58:19.000Z",'."\n" - .' "gmtModified": "2021-12-07T08:58:19.000Z",'."\n" - .' "sampleFormatConfigId": "99D369F6-0A73-4247-9E9F-F693A16CD6AC"'."\n" - .' }'."\n" - .'}', + 'description' => '返回参数。', + 'type' => 'array', + 'items' => [ + 'description' => '返回参数。', + 'type' => 'object', + 'properties' => [ + 'regionId' => ['description' => '实例所在的区域。', 'type' => 'string', 'example' => 'cn-beijing'], + 'type' => ['description' => '实例类型。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Algorithm_configuration**:算法配置版。'."\n" + ."\n" + .'- **Industry_operation**:行业运营版。'."\n" + ."\n" + .'- **Cold_start**:冷启动版。', 'type' => 'string', 'example' => 'Standard'], + 'lockMode' => ['description' => '实例锁定状态。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Unlock**:未锁定。'."\n" + ."\n" + .'- **ManualLock**:手动锁定。'."\n" + ."\n" + .'- **LockByExpiration**:欠费锁定。', 'type' => 'string', 'example' => 'Unlock'], + 'expiredTime' => ['description' => '实例过期时间,单位为UTC时间。', 'type' => 'string', 'example' => '2019-01-06T16:00:00.000Z'], + 'status' => ['description' => '实例运行状态。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Initializing**:初始化中。'."\n" + ."\n" + .'- **Ready**:待数据导入。'."\n" + ."\n" + .'- **Running**:运行中。', 'type' => 'string', 'example' => 'Running'], + 'gmtCreate' => ['description' => '实例创建时间,单位为UTC时间。', 'type' => 'string', 'example' => '2018-12-06T06:14:01.000Z'], + 'chargeType' => ['description' => '实例付费类型。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **PREPAY**:预付费(包年包月)。'."\n" + ."\n" + .'- **POSTPAY**:后付费(按量付费)。', 'type' => 'string', 'example' => 'PrePaid'], + 'industry' => ['description' => '实例行业类型。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **content**:内容型。'."\n" + ."\n" + .'- **item**:商品型。'."\n" + ."\n" + .'- **news**:新闻型。', 'type' => 'string', 'example' => 'news'], + 'commodityCode' => ['description' => 'Airec商品代码。', 'type' => 'string', 'example' => 'airecpre'], + 'gmtModified' => ['description' => '实例最后更新时间,单位为UTC时间。', 'type' => 'string', 'example' => '2018-12-06T11:17:49.000Z'], + 'dataSetVersion' => ['description' => '当前在线服务的数据集版本。', 'type' => 'string', 'example' => '20181206170353'], + 'name' => ['description' => '实例名称。', 'type' => 'string', 'example' => '实例1'], + 'instanceId' => ['description' => '实例ID。', 'type' => 'string', 'example' => 'airec-cn-****'], + ], + ], ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'An internal server error occurred'], ], ], ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"result\\": {\\n \\"meta\\": {\\n \\"metaType\\": \\"SampleFormatConfig\\",\\n \\"sampleId\\": \\"Sample1\\",\\n \\"config\\": {\\n \\"features\\": [\\n {\\n \\"feature_type\\": \\"id_feature\\",\\n \\"value_type\\": \\"String\\",\\n \\"hash_bucket_size\\": 100000,\\n \\"expression\\": \\"user:user_id\\",\\n \\"feature_name\\": \\"user_id\\",\\n \\"embedding_dim\\": 16,\\n \\"combiner\\": \\"mean\\",\\n \\"group\\": \\"user\\"\\n }\\n ]\\n }\\n },\\n \\"status\\": \\"\\",\\n \\"gmtCreate\\": \\"2021-12-07T08:58:19.000Z\\",\\n \\"gmtModified\\": \\"2021-12-07T08:58:19.000Z\\",\\n \\"sampleFormatConfigId\\": \\"99D369F6-0A73-4247-9E9F-F693A16CD6AC\\"\\n }\\n }\\n}","type":"json"}]', - 'title' => '创建样本格式化配置', - 'responseParamsDescription' => '| 参数 | 类型 | 是否必需 | 描述 |'."\n" - .'| :--- | :--- | :--- | :--- |'."\n" - .'| meta|String|是|Meta源数据。|'."\n" - .'| metaType|String|是|SampleFormatConfig固定字符串。|'."\n" - .'| sampleId|String|是|样本ID。|'."\n" - .'| config|Object|是|配置列表。|'."\n" - .'| features|List|是|配置信息。|'."\n" - .'| feature_type|String|是|特征类型。|'."\n" - .'| value_type|String|否|返回值类型。|'."\n" - .'| hash_bucket_size|Integer|否|哈希桶大小。|'."\n" - .'| expression|String|否|特征表字段名数组。|'."\n" - .'| feature_name|String|否|特征名。|'."\n" - .'| embedding_dim|Integer|否|embedding维数。|'."\n" - .'| combiner|String|否|组合器名称。|'."\n" - .'| group|String|否|特征组名。|', - ], - 'DeleteSample' => [ - 'summary' => '删除样本。', - 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '查询实例列表', + 'summary' => '查询一个或多个实例的详细信息。', + 'description' => '获取实例列表,返回实例列表按GmtCreate倒序。请求参数的作用类似于一个过滤器,过滤器为逻辑与( AND )关系。如果某个参数为空,则过滤器不起作用。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"regionId\\": \\"cn-beijing\\",\\n \\"type\\": \\"Standard\\",\\n \\"lockMode\\": \\"Unlock\\",\\n \\"expiredTime\\": \\"2019-01-06T16:00:00.000Z\\",\\n \\"status\\": \\"Running\\",\\n \\"gmtCreate\\": \\"2018-12-06T06:14:01.000Z\\",\\n \\"chargeType\\": \\"PrePaid\\",\\n \\"industry\\": \\"news\\",\\n \\"commodityCode\\": \\"airecpre\\",\\n \\"gmtModified\\": \\"2018-12-06T11:17:49.000Z\\",\\n \\"dataSetVersion\\": \\"20181206170353\\",\\n \\"name\\": \\"实例1\\",\\n \\"instanceId\\": \\"airec-cn-****\\"\\n }\\n ],\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<result>\\n <instanceId>airec-cn-5i3mq380d9q6</instanceId>\\n <name>测试使用</name>\\n <type>Standard</type>\\n <status>Running</status>\\n <industry>item</industry>\\n <regionId>cn-hangzhou</regionId>\\n <chargeType>PrePaid</chargeType>\\n <dataSetVersion>20201220105251</dataSetVersion>\\n <commodityCode>airecpre</commodityCode>\\n <gmtCreate>2020-12-20T02:51:57.000Z</gmtCreate>\\n <gmtModified>2020-12-20T03:34:05.000Z</gmtModified>\\n <expiredTime>2021-01-20T16:00:00.000Z</expiredTime>\\n <lockMode>Unlock</lockMode>\\n</result>\\n<requestId>CD76827D-8D92-4C90-9C31-A01941834442</requestId>\\n<headers>\\n <X-Total-Count>1</X-Total-Count>\\n</headers>","errorExample":""}]', + ], + 'ListInstanceTask' => [ + 'path' => '/v2/openapi/instances/{instanceId}/tasks', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, + 'operationType' => 'read', 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '117130', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18706', + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-shdjkgkeog', - ], - ], - [ - 'name' => 'sampleId', - 'in' => 'path', - 'schema' => [ - 'title' => '样本id', - 'description' => '样本ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'Sample1', - ], + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], 'result' => [ - 'description' => '返回结果详情。', - '$ref' => '#/components/schemas/Sample', + 'description' => '返回结果。', + 'type' => 'array', + 'items' => [ + 'description' => '返回详情结果'."\n", + 'type' => 'object', + 'properties' => [ + 'subProgressInfos' => [ + 'description' => '子任务具体进度信息列表', + 'type' => 'array', + 'items' => [ + 'description' => '子任务具体进度信息列表', + 'type' => 'object', + 'properties' => [ + 'type' => ['description' => '子任务类型', 'type' => 'string', 'example' => 'DATA_PROCESS'], + 'detail' => ['description' => '子任务具体描述', 'type' => 'string', 'example' => 'data import progress info'], + 'totalNum' => ['description' => '子任务一共的任务数量', 'type' => 'integer', 'format' => 'int32', 'example' => '11'], + 'finishedNum' => ['description' => '已完成子任务数', 'type' => 'integer', 'format' => 'int32', 'example' => '2'], + 'progress' => ['description' => '执行进度'."\n" + .'范围为0-100'."\n" + .'100为执行结束', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + ], + ], + ], + 'totalProgress' => ['description' => '当前任务整体进度', 'type' => 'integer', 'format' => 'int32', 'example' => '50'], + 'name' => ['description' => '任务名称', 'type' => 'string', 'example' => '启动任务'], + ], + ], ], + 'code' => ['description' => '错误码', 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '请求的RequestID', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'successful'], ], + 'description' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"Status\\": \\"样本状态 Unready 未完成配置 \\\\u0000Ready 配置完成 \\\\u0000Generating 样本生成中 \\\\u0000Success 样本生成成功 \\\\u0000Failed 样本生成失败 \\\\u0000Formatting 格式化中 \\\\u0000Formatted 格式化完成 \\\\u0000FormatFailed 格式化失败 \\\\u0000Applied 已应用到模型中\\",\\n \\"Meta\\": {\\n \\"AutoUpdate\\": true,\\n \\"AutoUpdateFrequency\\": 86400,\\n \\"ClonedId\\": \\"1638877561147\\",\\n \\"Config\\": {\\n \\"BhvTableSourceIds\\": [\\n \\"\\"\\n ],\\n \\"FeatureConfig\\": {\\n \\"ItemFeatures\\": \\"物品特征,支持多值,逗号分隔。\\",\\n \\"UserFeatures\\": \\"用户特征,支持多值,逗号分隔。\\"\\n },\\n \\"LabelLogic\\": {\\n \\"BhvTimeWindow\\": 86400,\\n \\"NegativeBhvTypes\\": \\"click,expose\\",\\n \\"PositiveBhvTypes\\": \\"like\\"\\n },\\n \\"WeightLogicList\\": [\\n {\\n \\"Bhv\\": \\"click\\",\\n \\"Weight\\": \\"1.01\\"\\n }\\n ]\\n },\\n \\"ExtendParams\\": {\\n \\"LatestTaskStatus\\": 0,\\n \\"SampleCount\\": 0\\n },\\n \\"MetaType\\": \\"Sample\\",\\n \\"Name\\": \\"12345\\",\\n \\"StoreConfig\\": \\"projectName.tableName\\",\\n \\"Type\\": \\"Cloned 复制的 System 系统的 Custom 自定义的\\"\\n },\\n \\"GmtCreate\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"GmtModified\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"SampleId\\": \\"1638880131873\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '删除样本', - ], - 'ModifySample' => [ - 'summary' => '修改样本配置。', - 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '查询指定实例的任务列表', + 'summary' => '查询指定实例的任务列表。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListInstanceTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"subProgressInfos\\": [\\n {\\n \\"type\\": \\"DATA_PROCESS\\",\\n \\"detail\\": \\"data import progress info\\",\\n \\"totalNum\\": 11,\\n \\"finishedNum\\": 2,\\n \\"progress\\": 20\\n }\\n ],\\n \\"totalProgress\\": 50,\\n \\"name\\": \\"启动任务\\"\\n }\\n ],\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"successful\\"\\n}","type":"json"}]', + ], + 'ListItems' => [ + 'path' => '/v2/openapi/instances/{instanceId}/items/actions/list', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '117127', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18707', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-shdjkgkeog', - ], + 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-test'], ], [ - 'name' => 'sampleId', - 'in' => 'path', - 'schema' => [ - 'title' => '样本id', - 'description' => '样本ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'Sample1', - ], + 'name' => 'strategyUsed', + 'in' => 'query', + 'schema' => ['description' => '默认false,传入true 则使用置顶/定坑侧逻辑,但是必须在body中传入 sceneId', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'description' => '请求Body参数。', - 'type' => 'object', - 'required' => false, - 'example' => '{}', - ], + 'name' => 'withInvalidDetail', + 'in' => 'query', + 'schema' => ['description' => '置顶/定坑侧控制返回值中是否包含InvalidDetail'."\0".', 用于 itemId:itemType 查询类型使用', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + ], + [ + 'name' => 'page', + 'in' => 'query', + 'schema' => ['description' => '页数,默认1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'example' => '1'], + ], + [ + 'name' => 'size', + 'in' => 'query', + 'schema' => ['description' => '每页数量,默认10', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '1000', 'minimum' => '1', 'example' => '10'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], 'result' => [ - 'description' => '返回结果详情。', - '$ref' => '#/components/schemas/Sample', + 'description' => '结果', + 'type' => 'object', + 'properties' => [ + 'total' => [ + 'description' => '统计', + 'type' => 'object', + 'properties' => [ + 'sceneWeightItem' => ['description' => '场景加权物品数量', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], + 'totalCount' => ['description' => '全部数量', 'type' => 'integer', 'format' => 'int64', 'example' => '5000'], + 'queryCount' => ['description' => '列出数量', 'type' => 'integer', 'format' => 'int64', 'example' => '3000'], + 'sceneRecommendItem' => ['description' => '场景可推荐物品数量', 'type' => 'integer', 'format' => 'int64', 'example' => '200'], + 'weightItem' => ['description' => '加权物品', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], + 'instanceRecommendItem' => ['description' => '实例可推荐物品数量', 'type' => 'integer', 'format' => 'int64', 'example' => '200'], + ], + ], + 'detail' => [ + 'description' => '详细信息', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'title' => ['description' => '标题', 'type' => 'string', 'example' => 'test'], + 'categoryPath' => ['description' => '类目路径', 'type' => 'string', 'example' => '1_2'], + 'itemId' => ['description' => 'itemId,同数据规范同字段', 'type' => 'string', 'example' => '123'], + 'itemType' => ['description' => 'itemType,同数据规范同字段', 'type' => 'string', 'example' => 'item'], + 'status' => ['description' => '是否可推荐', 'type' => 'string', 'example' => '1'], + 'brandId' => ['description' => '品牌ID', 'type' => 'string', 'example' => '1'], + 'shopId' => ['description' => '店铺ID', 'type' => 'string', 'example' => '1'], + 'pubTime' => ['description' => '发布时间', 'type' => 'string', 'example' => '1647998107012'], + 'channel' => ['description' => '频道', 'type' => 'string', 'example' => 'news'], + 'duration' => ['description' => '持续时间', 'type' => 'string', 'example' => '30'], + 'author' => ['description' => '作者', 'type' => 'string', 'example' => 'abc'], + 'expireTime' => ['description' => '过期时间', 'type' => 'string', 'example' => '1647998107012'], + ], + 'description' => '', + ], + ], + ], ], + 'requestId' => ['description' => '当前请求的RequestID', 'type' => 'string', 'example' => '6839AE7C-A984-48C1-AC17-331BAC6D97BC'], ], + 'description' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"Status\\": \\"样本状态 Unready 未完成配置 \\\\u0000Ready 配置完成 \\\\u0000Generating 样本生成中 \\\\u0000Success 样本生成成功 \\\\u0000Failed 样本生成失败 \\\\u0000Formatting 格式化中 \\\\u0000Formatted 格式化完成 \\\\u0000FormatFailed 格式化失败 \\\\u0000Applied 已应用到模型中\\",\\n \\"Meta\\": {\\n \\"AutoUpdate\\": true,\\n \\"AutoUpdateFrequency\\": 86400,\\n \\"ClonedId\\": \\"1638877561147\\",\\n \\"Config\\": {\\n \\"BhvTableSourceIds\\": [\\n \\"\\"\\n ],\\n \\"FeatureConfig\\": {\\n \\"ItemFeatures\\": \\"物品特征,支持多值,逗号分隔。\\",\\n \\"UserFeatures\\": \\"用户特征,支持多值,逗号分隔。\\"\\n },\\n \\"LabelLogic\\": {\\n \\"BhvTimeWindow\\": 86400,\\n \\"NegativeBhvTypes\\": \\"click,expose\\",\\n \\"PositiveBhvTypes\\": \\"like\\"\\n },\\n \\"WeightLogicList\\": [\\n {\\n \\"Bhv\\": \\"click\\",\\n \\"Weight\\": \\"1.01\\"\\n }\\n ]\\n },\\n \\"ExtendParams\\": {\\n \\"LatestTaskStatus\\": 0,\\n \\"SampleCount\\": 0\\n },\\n \\"MetaType\\": \\"Sample\\",\\n \\"Name\\": \\"12345\\",\\n \\"StoreConfig\\": \\"projectName.tableName\\",\\n \\"Type\\": \\"Cloned 复制的 System 系统的 Custom 自定义的\\"\\n },\\n \\"GmtCreate\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"GmtModified\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"SampleId\\": \\"1638880131873\\"\\n }\\n}","type":"json"}]', - 'title' => '修改样本配置', - ], - 'ListSamples' => [ - 'summary' => '获取样本列表。', - 'path' => '/v2/openapi/instances/{instanceId}/samples', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取列表项', + 'summary' => '查询实例物品池。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListItems', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"total\\": {\\n \\"sceneWeightItem\\": 10,\\n \\"totalCount\\": 5000,\\n \\"queryCount\\": 3000,\\n \\"sceneRecommendItem\\": 200,\\n \\"weightItem\\": 10,\\n \\"instanceRecommendItem\\": 200\\n },\\n \\"detail\\": [\\n {\\n \\"title\\": \\"test\\",\\n \\"categoryPath\\": \\"1_2\\",\\n \\"itemId\\": \\"123\\",\\n \\"itemType\\": \\"item\\",\\n \\"status\\": \\"1\\",\\n \\"brandId\\": \\"1\\",\\n \\"shopId\\": \\"1\\",\\n \\"pubTime\\": \\"1647998107012\\",\\n \\"channel\\": \\"news\\",\\n \\"duration\\": \\"30\\",\\n \\"author\\": \\"abc\\",\\n \\"expireTime\\": \\"1647998107012\\"\\n }\\n ]\\n },\\n \\"requestId\\": \\"6839AE7C-A984-48C1-AC17-331BAC6D97BC\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'ListLogs' => [ + 'path' => '/v2/openapi/instances/{instanceId}/logs', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '117124', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'abilityTreeCode' => '18708', + 'abilityTreeNodes' => ['FEATUREairecY1ADIM'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '指定的实例ID', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-shdjkgkeog', - ], + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'sampleId', + 'name' => 'queryParams', 'in' => 'query', - 'schema' => [ - 'title' => '样本id', - 'description' => '样本id', - 'type' => 'string', - 'required' => false, - 'example' => 'Sample1', - ], + 'schema' => ['description' => '查询条件:'."\n" + .'key1:value1;key2:value;'."\n" + .'例如:requestId:xxxx;requestUri:xxx;', 'type' => 'string', 'required' => false, 'example' => 'key1:value1;key2:value'], + ], + [ + 'name' => 'startTime', + 'in' => 'query', + 'schema' => ['description' => '开始时间(秒级时间戳)', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '2147483647', 'minimum' => '1565193600', 'example' => '1586673466'], + ], + [ + 'name' => 'endTime', + 'in' => 'query', + 'schema' => ['description' => '结束时间 (秒级时间戳)'."\n" + ."\n", 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '2147483647', 'minimum' => '1565193600', 'example' => '1678155766'], ], [ 'name' => 'page', 'in' => 'query', - 'schema' => [ - 'title' => '分页,页码', - 'description' => '分页,页码', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '页数,默认1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'example' => '1'], ], [ 'name' => 'size', 'in' => 'query', - 'schema' => [ - 'title' => '分页,大小', - 'description' => '分页,大小', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => '指定每页展示条数,默认为10,限制:[1-50]', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '1000', 'minimum' => '1', 'example' => '20'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '当前请求的RequestID', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], 'result' => [ - 'title' => 'result', - 'description' => '样本列表', + 'description' => '查询结果'."\n", 'type' => 'array', - 'items' => [ - 'description' => '结果详情', - '$ref' => '#/components/schemas/Sample', + 'items' => ['description' => '查询结果'."\n", 'type' => 'object'], + ], + 'headers' => [ + 'description' => 'headers info', + 'type' => 'object', + 'properties' => [ + 'X-Total-Count' => ['description' => '查询总量'."\n" + ."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '12'], ], - 'example' => 'result', ], + 'code' => ['description' => '错误码', 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '请求id'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'success'], ], + 'description' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": [\\n {\\n \\"Status\\": \\"样本状态 Unready 未完成配置 \\\\u0000Ready 配置完成 \\\\u0000Generating 样本生成中 \\\\u0000Success 样本生成成功 \\\\u0000Failed 样本生成失败 \\\\u0000Formatting 格式化中 \\\\u0000Formatted 格式化完成 \\\\u0000FormatFailed 格式化失败 \\\\u0000Applied 已应用到模型中\\",\\n \\"Meta\\": {\\n \\"AutoUpdate\\": true,\\n \\"AutoUpdateFrequency\\": 86400,\\n \\"ClonedId\\": \\"1638877561147\\",\\n \\"Config\\": {\\n \\"BhvTableSourceIds\\": [\\n \\"\\"\\n ],\\n \\"FeatureConfig\\": {\\n \\"ItemFeatures\\": \\"物品特征,支持多值,逗号分隔。\\",\\n \\"UserFeatures\\": \\"用户特征,支持多值,逗号分隔。\\"\\n },\\n \\"LabelLogic\\": {\\n \\"BhvTimeWindow\\": 86400,\\n \\"NegativeBhvTypes\\": \\"click,expose\\",\\n \\"PositiveBhvTypes\\": \\"like\\"\\n },\\n \\"WeightLogicList\\": [\\n {\\n \\"Bhv\\": \\"click\\",\\n \\"Weight\\": \\"1.01\\"\\n }\\n ]\\n },\\n \\"ExtendParams\\": {\\n \\"LatestTaskStatus\\": 0,\\n \\"SampleCount\\": 0\\n },\\n \\"MetaType\\": \\"Sample\\",\\n \\"Name\\": \\"12345\\",\\n \\"StoreConfig\\": \\"projectName.tableName\\",\\n \\"Type\\": \\"Cloned 复制的 System 系统的 Custom 自定义的\\"\\n },\\n \\"GmtCreate\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"GmtModified\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"SampleId\\": \\"1638880131873\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '获取样本列表', - ], - 'GetSample' => [ - 'summary' => '获取样本详情', - 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取日志列表', + 'summary' => '该接口用于获取指定实例的日志信息(近七日内)。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListLogs', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n ],\\n \\"headers\\": {\\n \\"X-Total-Count\\": 12\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', + ], + 'ListMixCategories' => [ + 'path' => '/v2/openapi/configurations/mixCategories', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '117125', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], - ], - 'parameters' => [ - [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-shdjkgkeog', - ], - ], - [ - 'name' => 'sampleId', - 'in' => 'path', - 'schema' => [ - 'title' => '样本id', - 'description' => '样本ID。', - 'type' => 'string', - 'required' => true, - 'example' => '123', - ], - ], - [ - 'name' => 'withExtendParmas', - 'in' => 'query', - 'schema' => [ - 'title' => '是否携带扩展参数', - 'description' => '是否携带扩展参数'."\n" - ."\n" - .'- **true**:有扩展参数'."\n" - ."\n" - .'- **false**:没有扩展参数', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - ], + 'abilityTreeCode' => '18709', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], + 'parameters' => [], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], 'result' => [ - 'description' => '样本实体。', - '$ref' => '#/components/schemas/Sample', + 'description' => '返回结果', + 'type' => 'array', + 'items' => [ + 'description' => '查询结果'."\n", + 'type' => 'object', + 'properties' => [ + 'categories' => [ + 'description' => '类目', + 'type' => 'array', + 'items' => ['description' => '类目', 'type' => 'integer', 'format' => 'int64', 'example' => 'aaaa'], + ], + ], + ], ], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'ED093A1D-1C56-57A2-B078-3C518F632F03'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'Success'], ], + 'description' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"Status\\": \\"样本状态 Unready 未完成配置 \\\\u0000Ready 配置完成 \\\\u0000Generating 样本生成中 \\\\u0000Success 样本生成成功 \\\\u0000Failed 样本生成失败 \\\\u0000Formatting 格式化中 \\\\u0000Formatted 格式化完成 \\\\u0000FormatFailed 格式化失败 \\\\u0000Applied 已应用到模型中\\",\\n \\"Meta\\": {\\n \\"AutoUpdate\\": true,\\n \\"AutoUpdateFrequency\\": 86400,\\n \\"ClonedId\\": \\"1638877561147\\",\\n \\"Config\\": {\\n \\"BhvTableSourceIds\\": [\\n \\"\\"\\n ],\\n \\"FeatureConfig\\": {\\n \\"ItemFeatures\\": \\"物品特征,支持多值,逗号分隔。\\",\\n \\"UserFeatures\\": \\"用户特征,支持多值,逗号分隔。\\"\\n },\\n \\"LabelLogic\\": {\\n \\"BhvTimeWindow\\": 86400,\\n \\"NegativeBhvTypes\\": \\"click,expose\\",\\n \\"PositiveBhvTypes\\": \\"like\\"\\n },\\n \\"WeightLogicList\\": [\\n {\\n \\"Bhv\\": \\"click\\",\\n \\"Weight\\": \\"1.01\\"\\n }\\n ]\\n },\\n \\"ExtendParams\\": {\\n \\"LatestTaskStatus\\": 0,\\n \\"SampleCount\\": 0\\n },\\n \\"MetaType\\": \\"Sample\\",\\n \\"Name\\": \\"12345\\",\\n \\"StoreConfig\\": \\"projectName.tableName\\",\\n \\"Type\\": \\"Cloned 复制的 System 系统的 Custom 自定义的\\"\\n },\\n \\"GmtCreate\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"GmtModified\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"SampleId\\": \\"1638880131873\\"\\n }\\n}","type":"json"}]', - 'title' => '获取样本详情', - ], - 'CloneSample' => [ - 'summary' => '复制创建样本。', - 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}/actions/clone', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => 'ListMixCategories', + 'summary' => '查询类目列表。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListMixCategories', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"categories\\": [\\n 0\\n ]\\n }\\n ],\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"ED093A1D-1C56-57A2-B078-3C518F632F03\\",\\n \\"message\\": \\"Success\\"\\n}","type":"json"}]', + ], + 'ListOfflineStorages' => [ + 'path' => '/v2/openapi/instances/[instanceId]/offlineStorages', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '117122', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '20401', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-shdjkgkeog', - ], - ], - [ - 'name' => 'sampleId', - 'in' => 'path', - 'schema' => [ - 'title' => '样本id', - 'description' => '样本id', - 'type' => 'string', - 'required' => true, - 'example' => 'abc', - ], + 'schema' => ['title' => 'instanceId', 'description' => 'instanceId', 'type' => 'string', 'format' => 'byte', 'required' => true, 'example' => 'airec-cn-xxx'], ], ], 'responses' => [ @@ -13011,245 +8810,255 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'format' => 'byte', 'example' => '6839AE7C-A984-48C1-AC17-331BAC6D97BC'], 'result' => [ - 'description' => '样本', - '$ref' => '#/components/schemas/Sample', + 'title' => '结果列表', + 'description' => '结果列表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'tableName' => ['title' => '表名称', 'description' => '表名称', 'type' => 'string', 'format' => 'byte', 'example' => 'item'], + 'meta' => ['title' => '元信息', 'description' => '元信息', 'type' => 'object'], + ], + 'description' => '', + ], ], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"Status\\": \\"样本状态 Unready 未完成配置 \\\\u0000Ready 配置完成 \\\\u0000Generating 样本生成中 \\\\u0000Success 样本生成成功 \\\\u0000Failed 样本生成失败 \\\\u0000Formatting 格式化中 \\\\u0000Formatted 格式化完成 \\\\u0000FormatFailed 格式化失败 \\\\u0000Applied 已应用到模型中\\",\\n \\"Meta\\": {\\n \\"AutoUpdate\\": true,\\n \\"AutoUpdateFrequency\\": 86400,\\n \\"ClonedId\\": \\"1638877561147\\",\\n \\"Config\\": {\\n \\"BhvTableSourceIds\\": [\\n \\"\\"\\n ],\\n \\"FeatureConfig\\": {\\n \\"ItemFeatures\\": \\"物品特征,支持多值,逗号分隔。\\",\\n \\"UserFeatures\\": \\"用户特征,支持多值,逗号分隔。\\"\\n },\\n \\"LabelLogic\\": {\\n \\"BhvTimeWindow\\": 86400,\\n \\"NegativeBhvTypes\\": \\"click,expose\\",\\n \\"PositiveBhvTypes\\": \\"like\\"\\n },\\n \\"WeightLogicList\\": [\\n {\\n \\"Bhv\\": \\"click\\",\\n \\"Weight\\": \\"1.01\\"\\n }\\n ]\\n },\\n \\"ExtendParams\\": {\\n \\"LatestTaskStatus\\": 0,\\n \\"SampleCount\\": 0\\n },\\n \\"MetaType\\": \\"Sample\\",\\n \\"Name\\": \\"12345\\",\\n \\"StoreConfig\\": \\"projectName.tableName\\",\\n \\"Type\\": \\"Cloned 复制的 System 系统的 Custom 自定义的\\"\\n },\\n \\"GmtCreate\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"GmtModified\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"SampleId\\": \\"1638880131873\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '复制创建样本', - ], - 'GenerateSample' => [ - 'summary' => '生成样本,只针对复制创建的样本。', - 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}/actions/generate', - 'methods' => [ - 'put', + 'title' => '查询离线存储', + 'summary' => '查询离线存储。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListOfflineStorages'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListOfflineStorages', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"6839AE7C-A984-48C1-AC17-331BAC6D97BC\\",\\n \\"result\\": [\\n {\\n \\"tableName\\": \\"item\\",\\n \\"meta\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ]\\n}","type":"json"}]', + ], + 'ListRankingModelTemplates' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-templates', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '117131', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '117146', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-xxx', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'sampleId', - 'in' => 'path', - 'schema' => [ - 'title' => '样本id', - 'description' => '样本ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'Sample', - ], + 'name' => 'page', + 'in' => 'query', + 'schema' => ['title' => '分页,页码', 'description' => '指定页码,默认为1。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'size', + 'in' => 'query', + 'schema' => ['title' => '分页,大小', 'description' => '指定每页展示条数,默认为10,限制:[1-50]。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => '返回结果详情。', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'F1C976E0-FCD2-52E8-9244-179C9C095C29'], 'result' => [ - 'description' => '返回结果。', - '$ref' => '#/components/schemas/Sample', + 'title' => 'result', + 'description' => '返回参数。', + 'type' => 'array', + 'items' => ['description' => '排序模型。', '$ref' => '#/components/schemas/RankingModelTemplate'], ], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"Status\\": \\"样本状态 Unready 未完成配置 \\\\u0000Ready 配置完成 \\\\u0000Generating 样本生成中 \\\\u0000Success 样本生成成功 \\\\u0000Failed 样本生成失败 \\\\u0000Formatting 格式化中 \\\\u0000Formatted 格式化完成 \\\\u0000FormatFailed 格式化失败 \\\\u0000Applied 已应用到模型中\\",\\n \\"Meta\\": {\\n \\"AutoUpdate\\": true,\\n \\"AutoUpdateFrequency\\": 86400,\\n \\"ClonedId\\": \\"1638877561147\\",\\n \\"Config\\": {\\n \\"BhvTableSourceIds\\": [\\n \\"\\"\\n ],\\n \\"FeatureConfig\\": {\\n \\"ItemFeatures\\": \\"物品特征,支持多值,逗号分隔。\\",\\n \\"UserFeatures\\": \\"用户特征,支持多值,逗号分隔。\\"\\n },\\n \\"LabelLogic\\": {\\n \\"BhvTimeWindow\\": 86400,\\n \\"NegativeBhvTypes\\": \\"click,expose\\",\\n \\"PositiveBhvTypes\\": \\"like\\"\\n },\\n \\"WeightLogicList\\": [\\n {\\n \\"Bhv\\": \\"click\\",\\n \\"Weight\\": \\"1.01\\"\\n }\\n ]\\n },\\n \\"ExtendParams\\": {\\n \\"LatestTaskStatus\\": 0,\\n \\"SampleCount\\": 0\\n },\\n \\"MetaType\\": \\"Sample\\",\\n \\"Name\\": \\"12345\\",\\n \\"StoreConfig\\": \\"projectName.tableName\\",\\n \\"Type\\": \\"Cloned 复制的 System 系统的 Custom 自定义的\\"\\n },\\n \\"GmtCreate\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"GmtModified\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"SampleId\\": \\"1638880131873\\"\\n }\\n}","type":"json"}]', - 'title' => '生成样本', - ], - 'CreateCustomAnalysisTask' => [ - 'summary' => '创建自定义分析任务。', - 'path' => '/v2/openapi/instances/{instanceId}/dashboard/custom-analysis-tasks', - 'methods' => [ - 'post', + 'title' => '查看排序模型模板列表', + 'summary' => '查看排序模型模板列表,按创建时间倒序。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListRankingModelTemplates'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListRankingModelTemplates', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F1C976E0-FCD2-52E8-9244-179C9C095C29\\",\\n \\"result\\": [\\n {\\n \\"Status\\": \\"TRAINING_SUCCESS\\",\\n \\"Meta\\": {\\n \\"Authorized\\": true,\\n \\"AutoRun\\": true,\\n \\"AutoRunTime\\": 1,\\n \\"AutoRunType\\": \\"DAY\\",\\n \\"Conf\\": \\"train_config {}\\",\\n \\"LastEditTime\\": \\"2021-12-06T03:01:41.217Z\\",\\n \\"OssArn\\": \\"acs:ram::111:role/aliyunodpspaidefaultrole\\",\\n \\"OssBucket\\": \\"bucket-a\\",\\n \\"OssEndpoint\\": \\"oss-cn-beijing.aliyuncs.com\\",\\n \\"SampleId\\": \\"1111\\",\\n \\"SampleName\\": \\"样本1\\",\\n \\"SampleTimeWindow\\": 3,\\n \\"SampleTimeWindowType\\": \\"DAY\\",\\n \\"Type\\": \\"MULTI_TOWER\\",\\n \\"Name\\": \\"模型A\\",\\n \\"DeployStatus\\": \\"NOT_DEPLOYED\\",\\n \\"CanDeploy\\": true\\n },\\n \\"VersionNum\\": 3,\\n \\"TemplateId\\": \\"a-a-a\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'ListRankingModelVersions' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-versions', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '36672', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '117151', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ - 'name' => 'type', + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-****'], + ], + [ + 'name' => 'templateId', 'in' => 'query', - 'schema' => [ - 'description' => '查询类型 。'."\n" - .'如:'."\n" - .'**ITEM_CUSTOM**:物品维度自定义分析。', - 'type' => 'string', - 'required' => true, - 'example' => 'ITEM_CUSTOM', - ], + 'schema' => ['title' => '模型模板ID', 'description' => '模型模板ID。', 'type' => 'string', 'required' => true, 'example' => '1'], ], [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-xxx', - ], + 'name' => 'page', + 'in' => 'query', + 'schema' => ['title' => '分页,页码', 'description' => '指定页码,默认为1。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'size', + 'in' => 'query', + 'schema' => ['title' => '分页,大小', 'description' => '指定每页展示条数,默认为10,限制:[1-50]。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'], + ], + [ + 'name' => 'status', + 'in' => 'query', + 'schema' => ['title' => '版本状态', 'description' => '版本状态。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **DRAFT**:草稿状态。'."\n" + ."\n" + .'- **EFFECTIVE**:生效状态。'."\n" + ."\n" + .'- **PUBLISHING**:发布中状态。'."\n" + ."\n" + .'- **INEFFECTIVE**:已失效状态。'."\n" + ."\n" + .'- **FAILED**:未生效状态。', 'type' => 'string', 'required' => false, 'example' => 'TRAINING'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => '返回结果详情。', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '16B78383-2803-4964-9605-37B30C073B0E', - ], - 'code' => [ - 'description' => '返回码。', - 'type' => 'string', - 'example' => '200', - ], - 'message' => [ - 'description' => '返回信息。', - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], 'result' => [ - 'description' => '创建任务的ID。', - 'type' => 'object', - 'example' => '123', + 'title' => 'map', + 'description' => '返回参数。', + 'type' => 'array', + 'items' => ['description' => '排序模型版本数据。', '$ref' => '#/components/schemas/RankingModelVersion'], ], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"16B78383-2803-4964-9605-37B30C073B0E\\",\\n \\"code\\": \\"200\\",\\n \\"message\\": \\"success\\",\\n \\"result\\": 123\\n}","errorExample":""},{"type":"xml","example":"<requestId>16B78383-2803-4964-9605-37B30C073B0E</requestId>\\n<result>\\n <taskId>latest</taskId>\\n</result>","errorExample":""}]', - 'title' => '创建自定义分析任务', - ], - 'AttachIndexVersion' => [ - 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/index-versions/{versionId}/actions/attach', - 'methods' => [ - 'post', + 'title' => '获取排序模型版本', + 'summary' => '获取排序模型版本。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListRankingModelVersions'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListRankingModelVersions', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": [\\n {\\n \\"Status\\": \\"TRAINING\\",\\n \\"RunTime\\": \\"2021-12-08T20:00:00.0Z\\",\\n \\"RunLog\\": \\"\\",\\n \\"TemplateName\\": \\"模型A\\",\\n \\"RunResult\\": {\\n \\"AssessAuc\\": \\"0.3\\",\\n \\"AssessGauc\\": \\"0.3\\",\\n \\"AssessLoss\\": \\"0.3\\",\\n \\"TrainAuc\\": \\"0.3\\",\\n \\"TrainGauc\\": \\"0.3\\",\\n \\"TrainLoss\\": \\"0.3\\"\\n },\\n \\"Name\\": \\"模型A_t1638964800000\\",\\n \\"TemplateId\\": \\"a-a-a\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'ListRankingModels' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-models', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18662', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18710', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-test001'], ], [ - 'name' => 'algorithmId', - 'in' => 'path', - 'schema' => [ - 'description' => '召回配置ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'name' => 'rankingModelId', + 'in' => 'query', + 'schema' => ['description' => '模型id', 'type' => 'string', 'required' => false, 'example' => 'xxx'], ], [ - 'name' => 'versionId', - 'in' => 'path', - 'schema' => [ - 'description' => '索引版本ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'v1', - ], + 'name' => 'page', + 'in' => 'query', + 'schema' => ['description' => '指定页码,默认为:1'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'example' => '1'], + ], + [ + 'name' => 'size', + 'in' => 'query', + 'schema' => ['description' => '指定每页展示条数,默认为10,限制:[1-50]', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'example' => '10'], ], ], 'responses' => [ @@ -13258,257 +9067,186 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '是否切换成功。'."\n" - .'**TRUE**:是。'."\n" - .'**FALSE**:否。', - 'type' => 'boolean', - 'example' => 'TRUE', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'E63A27A4-3411-4910-B7D5-12EEAC19389B', + 'description' => '返回结果', + 'type' => 'array', + 'items' => [ + 'description' => '返回详情结果'."\n" + ."\n", + 'type' => 'object', + 'properties' => [ + 'rankingModelId' => ['description' => '模型ID', 'type' => 'string', 'example' => '123'], + 'gmtModified' => ['description' => '最后修改时间', 'type' => 'string', 'example' => '2020-11-11T09:47:43.000Z'], + 'gmtCreate' => ['description' => '创建时间', 'type' => 'string', 'example' => '2020-04-27T06:38:28.000Z'], + 'meta' => ['description' => 'meta', 'type' => 'object'], + ], + ], ], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '2D898E45-B97A-4245-B590-6D0AFEAF626B'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'success'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"E63A27A4-3411-4910-B7D5-12EEAC19389B\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => 'AttachIndexVersion', - 'summary' => '把指定版本的索引切换到线上。', - ], - 'ModifyDataSource' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dataSources/{tableName}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取排名模型列表', + 'summary' => '查询模型列表。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListRankingModels', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"rankingModelId\\": \\"123\\",\\n \\"gmtModified\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"gmtCreate\\": \\"2020-04-27T06:38:28.000Z\\",\\n \\"meta\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ],\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"2D898E45-B97A-4245-B590-6D0AFEAF626B\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', + ], + 'ListRankingSystemHistories' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}/histories', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18719', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '117159', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'airec-test'], ], [ - 'name' => 'tableName', + 'name' => 'name', 'in' => 'path', - 'schema' => [ - 'description' => '要修改数据源的数据表名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'behavior', - ], + 'schema' => ['title' => '排序服务名称', 'description' => '排序服务名称', 'type' => 'string', 'required' => true, 'example' => 'service-a'], + ], + [ + 'name' => 'operateType', + 'in' => 'query', + 'schema' => ['title' => '操作类型', 'description' => '操作类型:'."\n" + .'CONF_CHANGE(配置变更)、DEPLOY_CHANGE(部署变更)', 'type' => 'string', 'required' => false, 'example' => 'CONF_CHANGE'], + ], + [ + 'name' => 'page', + 'in' => 'query', + 'schema' => ['title' => '分页,页码', 'description' => '分页,页码', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'size', + 'in' => 'query', + 'schema' => ['title' => '分页,大小', 'description' => '分页,大小', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回结果详情。', + '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' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], 'result' => [ - 'description' => '返回结果详情。', - 'type' => 'object', - 'properties' => [ - 'gmtModified' => [ - 'description' => '最后修改数据源的时间。'."\n", - 'type' => 'string', - 'example' => '2020-04-23T06:08:48.000Z', - ], - 'gmtCreate' => [ - 'description' => '创建时间的时间戳。', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'tableName' => [ - 'description' => '智能推荐的实例的表名。'."\n", - 'type' => 'string', - 'example' => 'behavior', - ], - 'meta' => [ - 'description' => '数据源配置参数。', - 'type' => 'object', - 'properties' => [ - 'bucketName' => [ - 'description' => 'oss数据源的bucketName信息。', - 'type' => 'string', - 'example' => 'airec', - ], - 'accessKeyId' => [ - 'description' => '有访问ODPS权限的accesskey ID。'."\n", - 'type' => 'string', - 'example' => 'xxx', - ], - 'type' => [ - 'description' => '数据源类型,当前只支持ODPS。'."\n", - 'type' => 'string', - 'example' => 'ODPS', - ], - 'partition' => [ - 'description' => 'ODPS Partition。例如:ds=20180102。', - 'type' => 'string', - 'example' => 'ds=20181122', - ], - 'timestamp' => [ - 'description' => 'ODPS 毫秒数据时间戳。例如:1544112000000。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1544112000000', - ], - 'path' => [ - 'description' => 'oss数据源的信息。', - 'type' => 'string', - 'example' => 'oss://xxx.xxx', - ], - 'tableName' => [ - 'description' => 'ODPS 数据源的table name。', - 'type' => 'string', - 'example' => 'table01', - ], - 'projectName' => [ - 'description' => 'ODPS数据源的 project name。', - 'type' => 'string', - 'example' => 'airecproject', - ], - ], - ], - ], - ], - 'code' => [ - 'description' => '错误码。', - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情。', - 'type' => 'string', - 'example' => 'successful', + 'title' => 'result', + 'description' => 'result', + 'type' => 'array', + 'items' => ['description' => '响应业务实体', '$ref' => '#/components/schemas/RankingSystemHistory'], ], ], ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'title' => '查询服务操作记录列表', + 'summary' => '查询服务操作记录列表。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListRankingSystemHistories'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListRankingSystemHistories', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"gmtModified\\": \\"2020-04-23T06:08:48.000Z\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"tableName\\": \\"behavior\\",\\n \\"meta\\": {\\n \\"bucketName\\": \\"airec\\",\\n \\"accessKeyId\\": \\"xxx\\",\\n \\"type\\": \\"ODPS\\",\\n \\"partition\\": \\"ds=20181122\\",\\n \\"timestamp\\": 1544112000000,\\n \\"path\\": \\"oss://xxx.xxx\\",\\n \\"tableName\\": \\"table01\\",\\n \\"projectName\\": \\"airecproject\\"\\n }\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '修改指定实例的指定数据源信息', - 'summary' => '修改指定表的数据源信息。', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": [\\n {\\n \\"Meta\\": {\\n \\"AutoDeploy\\": true,\\n \\"AutoDeployAuc\\": \\"0.3\\",\\n \\"Conf\\": \\"\\",\\n \\"ModelTemplateName\\": \\"排序模型A\\",\\n \\"PredictEngine\\": {\\n \\"ResourceId\\": \\"eas-oljkkdrggxhx7eizjd\\",\\n \\"Version\\": \\"1\\"\\n },\\n \\"PredictEngineType\\": \\"EAS\\",\\n \\"PreviousOperateId\\": \\"aaaa\\"\\n },\\n \\"OperateTime\\": \\"2021-12-06T03:01:41.217Z\\",\\n \\"OperateId\\": \\"8AC865AF-37D6-42ED-AA9A-B60D8ECDF640\\",\\n \\"OperateType\\": \\"CONF_CHANGE\\",\\n \\"Name\\": \\"servicea\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', ], - 'ModifyFeatureTable' => [ - 'summary' => '修改特征表,只支表级别持特征列表的全量修改。', - 'path' => '/v2/openapi/instances/{instanceId}/feature-tables/{type}/{featureTableId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListRankingSystems' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '117111', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '117169', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例id', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID', 'type' => 'string', 'required' => false, 'example' => 'airec-test'], ], [ - 'name' => 'type', - 'in' => 'path', - 'schema' => [ - 'title' => '特征表类型', - 'description' => '特征表类型'."\n" - .'UserFeatureTable'."\n" - .'ItemFeatureTable', - 'type' => 'string', - 'required' => true, - 'example' => 'UserFeatureTable', - ], + 'name' => 'name', + 'in' => 'query', + 'schema' => ['title' => '排序服务名称', 'description' => '排序服务名称', 'type' => 'string', 'required' => false, 'example' => 'service-a'], ], [ - 'name' => 'featureTableId', - 'in' => 'path', - 'schema' => [ - 'title' => '特征表id', - 'description' => '特征表id', - 'type' => 'string', - 'required' => true, - 'example' => '123', - ], + 'name' => 'deployStatus', + 'in' => 'query', + 'schema' => ['title' => '查询部署状态', 'description' => '查询部署状态:'."\n" + .'NOT_DEPLOYED 未部署'."\n" + .'DEPLOY_SUCCESS 部署成功', 'type' => 'string', 'required' => false, 'example' => 'NOT_DEPLOYED'], + ], + [ + 'name' => 'page', + 'in' => 'query', + 'schema' => ['title' => '分页,页码', 'description' => '分页,页码', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'size', + 'in' => 'query', + 'schema' => ['title' => '分页,大小', 'description' => '分页,大小', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'], ], ], 'responses' => [ @@ -13518,56 +9256,61 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求的RequestID', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], 'result' => [ - '$ref' => '#/components/schemas/FeatureTable', + 'title' => 'result', + 'description' => 'result', + 'type' => 'array', + 'items' => ['description' => '服务列表信息', '$ref' => '#/components/schemas/RankingSystem'], ], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"Status\\": \\"\\",\\n \\"Meta\\": {\\n \\"DataSourceId\\": \\"907648f5-abae-44fd-a4c4-525cc25947e9\\",\\n \\"FeatureList\\": [\\n {\\n \\"Comment\\": \\"com11\\",\\n \\"FeatureName\\": \\"fn11\\",\\n \\"FieldName\\": \\"fieldName11\\",\\n \\"Status\\": \\"NotApplied 未应用 Applied 已应用\\"\\n }\\n ],\\n \\"Internal\\": true,\\n \\"MetaType\\": \\"FeatureTable\\",\\n \\"Source\\": \\"test_project.test_table\\",\\n \\"UpdateFrequency\\": 86400\\n },\\n \\"FeatureTableId\\": \\"30E70118-FC7C-4438-9287-583CE47266A9\\",\\n \\"Type\\": \\"ItemFeatureTable 物品特征表 UserFeatureTable 用户特征表\\",\\n \\"GmtCreate\\": \\"2021-12-10T02:59:54.000Z\\",\\n \\"GmtModified\\": \\"2021-12-10T02:59:54.000Z\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<result>\\n <type>ItemFeatureTable</type>\\n <meta>\\n <metaType>FeatureTable</metaType>\\n <dataSourceId>907648f5-abae-44fd-a4c4-525cc25947e9</dataSourceId>\\n <source>project_name.table</source>\\n <updateFrequency>86400</updateFrequency>\\n <featureList>\\n <fieldName>fieldName11</fieldName>\\n <featureName>fn11</featureName>\\n <comment>com11</comment>\\n </featureList>\\n <featureList>\\n <fieldName>fieldName22</fieldName>\\n <featureName>fn22</featureName>\\n <comment>com2222</comment>\\n </featureList>\\n </meta>\\n <status/>\\n <gmtCreate>2021-12-10T02:59:54.000Z</gmtCreate>\\n <gmtModified>2021-12-10T02:59:54.000Z</gmtModified>\\n <featureTableId>30E70118-FC7C-4438-9287-583CE47266A9</featureTableId>\\n</result>\\n<requestId>15847E8B-F00E-44AD-8FD0-26E1B0F4A0A6</requestId>","errorExample":""}]', - 'title' => '修改特征表', - ], - 'ModifyItems' => [ - 'path' => '/v2/openapi/instances/{instanceId}/items', - 'methods' => [ - 'post', + 'title' => '获取排序服务列表', + 'summary' => '获取排序服务列表。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListRankingSystems'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListRankingSystems', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": [\\n {\\n \\"Meta\\": {\\n \\"AutoDeploy\\": true,\\n \\"AutoDeployAuc\\": \\"0.3\\",\\n \\"Conf\\": \\"\\",\\n \\"PredictEngine\\": {\\n \\"ResourceId\\": \\"eas-oljkkdrggxhx7eizjd\\",\\n \\"Version\\": \\"1\\",\\n \\"ClusterId\\": \\"cn-shanghai\\"\\n },\\n \\"PredictEngineType\\": \\"EAS\\",\\n \\"ModelVersionName\\": \\"模型A_T1638964800000\\",\\n \\"FailMsg\\": \\"\\"\\n },\\n \\"ApplyStatus\\": \\"NOT_APPLIED\\",\\n \\"DeployStatus\\": \\"NOT_DEPLOYED\\",\\n \\"SceneIdList\\": [\\n 0\\n ],\\n \\"Name\\": \\"servicea\\",\\n \\"ModelTemplateId\\": \\"a-a-a\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'ListRuleConditions' => [ + 'path' => '/v2/openapi/instances/{instanceId}/rule-conditions', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18722', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18711', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], ], 'responses' => [ @@ -13576,146 +9319,82 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '成功,失败', - 'type' => 'boolean', - 'example' => 'true', - ], - 'requestId' => [ - 'description' => '返回的RequestId', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', + 'description' => '返回详情结果', + 'type' => 'array', + 'items' => [ + 'description' => '返回详情结果', + 'type' => 'object', + 'properties' => [ + 'selectType' => ['description' => '选品规则过滤条件类型', 'type' => 'string', 'example' => 'QUERY_ITEM_TYPE'], + 'selectValue' => ['description' => '选品规则过滤条件具体数值'."\n", 'type' => 'string', 'example' => '[\\"image\\",\\"article\\",\\"video\\",\\"shortvideo\\",\\"item\\",\\"recipe\\",\\"audio\\"]'], + 'selectionOperation' => ['description' => '选品规则过滤条件操作'."\n", 'type' => 'string', 'example' => 'QUERY_VALUE_IN'], + ], + ], ], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '请求id'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'success'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\"\\n}","type":"json"}]', - 'title' => '修改项目', - 'summary' => '批量操作物品池。', - ], - 'ModifyOfflineStorages' => [ - 'summary' => '修改实例的离线存储配置。(只支持三张表同时修改)。', - 'path' => '/v2/openapi/instances/[instanceId]/offlineStorages', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '20403', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], - ], - 'parameters' => [ - [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'description' => '实例id', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test-xxx', - 'title' => '实例id', - 'format' => 'byte', - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => '7F176EE8-51DA-4B4D-8FFE-04448CD7A171', - 'title' => 'Id of the request', - 'format' => 'byte', - ], - 'result' => [ - 'description' => '结果', - 'type' => 'boolean', - 'example' => 'true', - 'title' => '是否成功', - ], + 'title' => '查询实例具体的选品规则', + 'summary' => '查询实例具体的选品规则.。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListRuleConditions', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], - 'title' => 'Schema of Response', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"7F176EE8-51DA-4B4D-8FFE-04448CD7A171\\",\\n \\"result\\": true\\n}","errorExample":""},{"type":"xml","example":"<result>true</result>\\n<requestId>7F176EE8-51DA-4B4D-8FFE-04448CD7A171</requestId>","errorExample":""}]', - 'title' => '修改实例的离线存储配置', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"selectType\\": \\"QUERY_ITEM_TYPE\\",\\n \\"selectValue\\": \\"[\\\\\\\\\\\\\\"image\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"article\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"video\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"shortvideo\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"item\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"recipe\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"audio\\\\\\\\\\\\\\"]\\",\\n \\"selectionOperation\\": \\"QUERY_VALUE_IN\\"\\n }\\n ],\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', ], - 'StopDataSet' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dataSets/{versionId}/actions/stop', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListRuleTasks' => [ + 'path' => '/v2/openapi/instances/{instanceId}/rule-tasks', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', + 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18740', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18713', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'versionId', - 'in' => 'path', - 'schema' => [ - 'description' => '版本号'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '20181023214546', - ], + 'name' => 'sceneId', + 'in' => 'query', + 'schema' => ['description' => '场景id', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'testid'], ], ], 'responses' => [ @@ -13724,306 +9403,154 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '数据集详情'."\n", + 'description' => '返回详情结果'."\n", 'type' => 'object', 'properties' => [ - 'versionId' => [ - 'description' => '版本号'."\n", - 'type' => 'string', - 'example' => '20181023214546', - ], - 'state' => [ - 'description' => '数据版本状态(Importing:导入中)'."\n", - 'type' => 'string', - 'example' => 'Importing', - ], - 'gmtModified' => [ - 'description' => '最后修改数据源的时间。'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1544112000000', - ], - 'gmtCreate' => [ - 'description' => '创建数据源的时间。'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1544112000000', - ], - 'instanceId' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'example' => 'airec-cn-o400whm78004', - ], + 'finishTime' => ['description' => '完成时间', 'type' => 'integer', 'format' => 'int32', 'example' => '1588240081'], + 'finishRate' => ['description' => '完成率', 'type' => 'integer', 'format' => 'int32', 'example' => '50'], ], ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求id'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求id'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'An internal server error occurred'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"code\\": \\"InternalServerError\\",\\n \\"message\\": \\"An internal server error occurred\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"result\\": {\\n \\"versionId\\": \\"20181023214546\\",\\n \\"state\\": \\"Importing\\",\\n \\"gmtModified\\": 1544112000000,\\n \\"gmtCreate\\": 1544112000000,\\n \\"instanceId\\": \\"airec-cn-o400whm78004\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<RequestId>8F81A922-6C81-46D6-B78C-CC35E16B1691</RequestId>\\n<Result>\\n <InstanceId>airec-cn-xxxxx</InstanceId>\\n <VersionId>20181023214546</VersionId>\\n <State>Importing</State>\\n <GmtCreate>1537531932000</GmtCreate>\\n <GmtModified>1537531932000</GmtModified>\\n</Result>","errorExample":""}]', - 'title' => '停止数据集', - 'summary' => '停止指定实例的指定数据集版本。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'DescribeCustomAnalysisTask' => [ - 'summary' => '查询指定实例的仪表盘自定义分析任务结果', - 'path' => '/v2/openapi/instances/{instanceId}/dashboard/custom-analysis-tasks/{taskId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '查询规则的任务状态', + 'summary' => '查询规则的任务状态。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListRuleTasks', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"finishTime\\": 1588240081,\\n \\"finishRate\\": 50\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>B352FBD9-4643-441E-80ED-699D47D7B6A3</RequestId>\\n<Result>\\n <FinishRate>50</FinishRate>\\n <FinishTime>1588240081</FinishTime>\\n</Result>","errorExample":""}]', + ], + 'ListRules' => [ + 'path' => '/v2/openapi/instances/{instanceId}/rules', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '36674', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeCode' => '18712', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'type', + 'name' => 'sceneId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['description' => '要修改规则的场景ID,'."\n" + .'如要修改全局运营规则,则填**global**。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'scenetest'], ], [ - 'name' => 'taskId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'ruleType', + 'in' => 'query', + 'schema' => ['description' => '规则类型:'."\n" + .'**selection:** 选品规则'."\n" + ."\n" + .'**operation:**运营规则。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'selection'], ], - ], - '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', - ], - 'result' => [ - 'type' => 'object', - ], - 'code' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], - ], - ], + [ + 'name' => 'status', + 'in' => 'query', + 'schema' => ['description' => '规则状态:'."\n" + .'**DRAFT:** 草稿状态;'."\n" + ."\n" + .'**EFFECTIVE:** 生效状态;'."\n" + ."\n" + .'**PUBLISHING:**发布中状态;'."\n" + ."\n" + .'**INEFFECTIVE:** 已失效状态;'."\n" + ."\n" + .'**FAILED:**未生效状态。', 'type' => 'string', 'required' => false, 'example' => 'EFFECTIVE'], ], - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"code\\": \\"\\",\\n \\"message\\": \\"\\"\\n}","type":"json"}]', - 'title' => '查询指定实例的仪表盘自定义分析任务结果', - ], - 'DescribeDefaultAlgorithms' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/default-algorithms', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'page', + 'in' => 'query', + 'schema' => ['description' => '指定页码,默认为:1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'maximum' => '2147483647', 'minimum' => '1', 'example' => '1'], ], - ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18678', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', + [ + 'name' => 'size', + 'in' => 'query', + 'schema' => ['description' => '指定每页展示条数,默认为10,限制:[1-50]。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'example' => '10'], ], - ], - 'parameters' => [ [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-xxxxxx', - ], + 'name' => 'startTime', + 'in' => 'query', + 'schema' => ['description' => '开始时间(秒级时间戳)。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'maximum' => '4102444800', 'minimum' => '1546300800', 'example' => '1567584765'], ], [ - 'name' => 'sceneId', - 'in' => 'path', - 'schema' => [ - 'description' => '场景ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'name' => 'endTime', + 'in' => 'query', + 'schema' => ['description' => '结束时间 (秒级时间戳)。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1567584765'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '返回结果', + 'description' => '返回结果详情。', 'type' => 'array', 'items' => [ - 'description' => '返回详情结果', + 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ - 'key' => [ - 'description' => '算法key'."\n" - .'I2I I2I召回链路'."\n" - .'u2X2I U2X2I召回链路'."\n" - .'hot 热门商品召回链路'."\n" - .'new 新品召回链路'."\n" - .'embedding 向量召回链路'."\n" - .'mtorder 召回链路优先级'."\n" - .'rankservice 排序服务', - 'type' => 'string', - 'example' => 'I2I', - ], - 'config' => [ - 'description' => '实验定制值', - 'type' => 'array', - 'items' => [ - 'description' => '子配置项信息', - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => '算法配置项key', - 'type' => 'string', - 'example' => 'I2I-truncedquantity', - ], - 'defaultValue' => [ - 'description' => '算法配置项默认值', - 'type' => 'string', - 'example' => 'swing;commoni2i;pcategory;scategory', - ], - 'experimentValue' => [ - 'description' => '算法配置项实验值', - 'type' => 'string', - 'example' => '300', - ], - 'name' => [ - 'description' => '算法配置项name'."\n" - .'(说明:系统默认算法,控制台需要通过美杜莎获取,用户自定义算法,后端会返回name)', - 'type' => 'string', - 'example' => 'I2I算法', - ], - ], - ], - ], - 'defaultValue' => [ - 'description' => '算法默认值'."\n" - .'对于i2i,hot,new等召回算法为"true"/"false"'."\n" - .'对于mtorder为各路召回链路的排序', - 'type' => 'string', - 'example' => 'true', - ], - 'type' => [ - 'description' => '算法类别'."\n" - .'SYSTEM 系统默认类型'."\n" - .'CUSTOM 用户自定义类型', - 'type' => 'string', - 'example' => 'SYSTEM', - ], - 'experimentValue' => [ - 'description' => '实验定制值', - 'type' => 'string', - 'example' => '300', - ], - 'hasConfig' => [ - 'description' => '是否有子配置项'."\n" - .'true 是'."\n" - .'false 否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'category' => [ - 'description' => '算法类目'."\n" - .'RECALL 召回'."\n" - .'RANK 排序', - 'type' => 'string', - 'example' => 'RECALL', - ], - 'name' => [ - 'description' => '名称(说明:系统默认算法,控制台需要通过美杜莎获取,用户自定义算法,后端会返回name)', - 'type' => 'string', - 'example' => 'xxx', - ], + 'ruleId' => ['description' => '规则ID。', 'type' => 'string', 'example' => '98493A14-D619-4E88-9F8D-108939817F9F'], + 'gmtModified' => ['description' => '最后修改时间。', 'type' => 'string', 'example' => '2020-04-27T06:38:28.000Z'], + 'status' => ['description' => '规则状态:'."\n" + .'**DRAFT:** 草稿状态;'."\n" + ."\n" + .'**EFFECTIVE:** 生效状态;'."\n" + ."\n" + .'**PUBLISHING:**发布中状态;'."\n" + ."\n" + .'**INEFFECTIVE:** 已失效状态;'."\n" + ."\n" + .'**FAILED:**未生效状态。', 'type' => 'string', 'example' => 'draft'], + 'gmtCreate' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2020-04-27T06:38:28.000Z'], ], ], ], - 'requestId' => [ - 'description' => '请求id'."\n", - 'type' => 'string', - 'example' => 'F60021C4-57AF-5F46-9B3E-FCEF1C7A1459', - ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情。', 'type' => 'string', 'example' => 'An internal server error occurred'], ], ], ], @@ -14031,427 +9558,186 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"key\\": \\"I2I\\",\\n \\"config\\": [\\n {\\n \\"key\\": \\"I2I-truncedquantity\\",\\n \\"defaultValue\\": \\"swing;commoni2i;pcategory;scategory\\",\\n \\"experimentValue\\": \\"300\\",\\n \\"name\\": \\"I2I算法\\"\\n }\\n ],\\n \\"defaultValue\\": \\"true\\",\\n \\"type\\": \\"SYSTEM\\",\\n \\"experimentValue\\": \\"300\\",\\n \\"hasConfig\\": true,\\n \\"category\\": \\"RECALL\\",\\n \\"name\\": \\"xxx\\"\\n }\\n ],\\n \\"requestId\\": \\"F60021C4-57AF-5F46-9B3E-FCEF1C7A1459\\"\\n}","type":"json"}]', - 'title' => '获取默认算法信息', - 'summary' => '获取默认算法信息。', - ], - 'DescribeLatestTask' => [ - 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/tasks/latest', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取规则列表', + 'summary' => '查询规则列表。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListRules', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"ruleId\\": \\"98493A14-D619-4E88-9F8D-108939817F9F\\",\\n \\"gmtModified\\": \\"2020-04-27T06:38:28.000Z\\",\\n \\"status\\": \\"draft\\",\\n \\"gmtCreate\\": \\"2020-04-27T06:38:28.000Z\\"\\n }\\n ],\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<0>\\n <Result>\\n <Status>DRAFT</Status>\\n <GmtCreate>2020-04-27T06:38:28.000Z</GmtCreate>\\n <GmtModified>2020-04-27T06:38:28.000Z</GmtModified>\\n <RuleId>98493A14-D619-4E88-9F8D-108939817F9F</RuleId>\\n <RuleMeta>\\n <RuleMetaType>SELECTION</RuleMetaType>\\n <SceneId>123</SceneId>\\n <PubState>PUBLISHING</PubState>\\n <SelectionParams>\\n <SelectType>QUERY_ITEM_TYPE</SelectType>\\n <SelectionOperation>OPERATOR_EQUAL</SelectionOperation>\\n <SelectValue>atrical,image</SelectValue>\\n </SelectionParams>\\n </RuleMeta>\\n </Result>\\n <RequestId>76E2C51D-A2D7-4775-9FD8-2AB84B2A0CEF</RequestId>\\n <Headers>\\n <X-Total-Count>19</X-Total-Count>\\n </Headers>\\n</0>\\n<1>\\n <Result>\\n <Status>DRAFT</Status>\\n <GmtCreate>2020-04-27T03:17:21.000Z</GmtCreate>\\n <GmtModified>2020-04-27T03:17:21.000Z</GmtModified>\\n <RuleId>123456789001122</RuleId>\\n <RuleMeta>\\n <RuleMetaType>OPERATION</RuleMetaType>\\n <SceneId>123</SceneId>\\n <PubState>PUBLISHING</PubState>\\n <OperationParams>\\n <OperationType>MIX</OperationType>\\n <Settings>\\n <Name>image</Name>\\n <Value>10</Value>\\n </Settings>\\n </OperationParams>\\n <OperationParams>\\n <OperationType>DIVERSIFY</OperationType>\\n <CategoryIndex>1</CategoryIndex>\\n <Window>2</Window>\\n <Status>true</Status>\\n <DiversifyType>TYPE_SHOP</DiversifyType>\\n </OperationParams>\\n <OperationParams>\\n <OperationType>EXPOSURE</OperationType>\\n <ExposureSettings>\\n <DurationSeconds>1234000</DurationSeconds>\\n <Status>true</Status>\\n <ExposureType>TYPE_EXPOSE</ExposureType>\\n <ScenarioBased>true</ScenarioBased>\\n </ExposureSettings>\\n <ExposureSettings>\\n <DurationSeconds>123400</DurationSeconds>\\n <Status>true</Status>\\n <ExposureType>TYPE_CLICK</ExposureType>\\n <ScenarioBased>true</ScenarioBased>\\n </ExposureSettings>\\n </OperationParams>\\n </RuleMeta>\\n </Result>\\n <RequestId>76E2C51D-A2D7-4775-9FD8-2AB84B2A0CEF</RequestId>\\n <Headers>\\n <X-Total-Count>19</X-Total-Count>\\n </Headers>\\n</1>","errorExample":""}]', + ], + 'ListSampleFormatConfigs' => [ + 'summary' => '获取样本格式化配置列表。', + 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}/format-configs', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18684', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'abilityTreeCode' => '117133', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'airec-test', 'title' => 'A short description of struct'], ], [ - 'name' => 'algorithmId', + 'name' => 'sampleId', 'in' => 'path', - 'schema' => [ - 'description' => '指定的召回ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['description' => '样本id', 'type' => 'string', 'required' => true, 'example' => '123', 'title' => '样本id'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '响应体', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '召回表信息', - 'type' => 'array', - 'items' => [ - 'description' => '召回表信息', - 'type' => 'object', - 'properties' => [ - 'code' => [ - 'description' => '错误码', - 'type' => 'string', - 'example' => '400', - ], - 'switchedTime' => [ - 'description' => '索引切换完成时间,为UTC时间', - 'type' => 'string', - 'example' => '2020-11-08T02:00:00Z', - ], - 'rollbackEnabled' => [ - 'description' => '是否可以回滚', - 'type' => 'boolean', - 'example' => 'true', - ], - 'message' => [ - 'description' => '错误信息', - 'type' => 'string', - 'example' => 'xxx', - ], - 'flowType' => [ - 'description' => '任务类型,包含 Auto Manual Rollback ', - 'type' => 'string', - 'example' => 'Manual', - ], - 'costSeconds' => [ - 'description' => '索引构建耗时', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '50', - ], - 'builtTime' => [ - 'description' => '索引开始构建时间,为UTC时间', - 'type' => 'string', - 'example' => '2020-11-08T02:00:00Z', - ], - 'versionId' => [ - 'description' => '索引版本的版本号,后端生成', - 'type' => 'string', - 'example' => '20102010211', - ], - 'size' => [ - 'description' => '索引构建大小', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2938475566', - ], - 'status' => [ - 'description' => '索引状态,包含索引:'."\n" - ."\n" - .'- 失败(failed)'."\n" - .'- 生效中(online)'."\n" - .'- 已失效(offline)'."\n" - ."\n" - .'全量任务:'."\n" - ."\n" - .'- 全量中(pending )'."\n" - .'- 已完成(success)'."\n" - .'- 失败(failed) '."\n" - ."\n" - .'等', - 'type' => 'string', - 'example' => 'pending', - ], - 'progress' => [ - 'description' => '进度展示百分比,例如80', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '80', - ], - ], - ], - ], - 'requestId' => [ - 'description' => '请求的RequestID', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => 'EDF43C1F-99E4-431F-A7C0-8B260A5A792E', 'title' => 'Id of the request'], + 'result' => ['description' => '格式化配置列表', 'type' => 'object', 'example' => 'xxx', 'title' => 'result'], ], + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + ], + 'title' => '获取样本格式化配置列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListSampleFormatConfigs'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListSampleFormatConfigs', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"code\\": \\"400\\",\\n \\"switchedTime\\": \\"2020-11-08T02:00:00Z\\",\\n \\"rollbackEnabled\\": true,\\n \\"message\\": \\"xxx\\",\\n \\"flowType\\": \\"Manual\\",\\n \\"costSeconds\\": 50,\\n \\"builtTime\\": \\"2020-11-08T02:00:00Z\\",\\n \\"versionId\\": \\"20102010211\\",\\n \\"size\\": 2938475566,\\n \\"status\\": \\"pending\\",\\n \\"progress\\": 80\\n }\\n ],\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","type":"json"}]', - 'title' => '获取最新任务', - 'summary' => '获取最近一次构建的任务。', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"EDF43C1F-99E4-431F-A7C0-8B260A5A792E\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","errorExample":""},{"type":"xml","example":"<result>\\n <meta>\\n <metaType>SampleFormatConfig</metaType>\\n <sampleId>111</sampleId>\\n <config>{\\"features\\":[{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":100000.0,\\"expression\\":\\"user:user_id\\",\\"feature_name\\":\\"user_id\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"user\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":100.0,\\"expression\\":\\"user:cms_segid\\",\\"feature_name\\":\\"cms_segid\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"user\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":100.0,\\"expression\\":\\"user:cms_group_id\\",\\"feature_name\\":\\"cms_group_id\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"user\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":10.0,\\"expression\\":\\"user:age_level\\",\\"feature_name\\":\\"age_level\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"user\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":10.0,\\"expression\\":\\"user:pvalue_level\\",\\"feature_name\\":\\"pvalue_level\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"user\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":10.0,\\"expression\\":\\"user:shopping_level\\",\\"feature_name\\":\\"shopping_level\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"user\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":10.0,\\"expression\\":\\"user:occupation\\",\\"feature_name\\":\\"occupation\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"user\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":10.0,\\"expression\\":\\"user:new_user_class_level\\",\\"feature_name\\":\\"new_user_class_level\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"user\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":100000.0,\\"expression\\":\\"item:adgroup_id\\",\\"feature_name\\":\\"adgroup_id\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"item\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":100000.0,\\"expression\\":\\"item:cate_id\\",\\"feature_name\\":\\"cate_id\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"item\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":100000.0,\\"expression\\":\\"item:campaign_id\\",\\"feature_name\\":\\"campaign_id\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"item\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":100000.0,\\"expression\\":\\"item:customer\\",\\"feature_name\\":\\"customer\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"item\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":100000.0,\\"expression\\":\\"item:brand\\",\\"feature_name\\":\\"brand\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"item\\"},{\\"feature_type\\":\\"raw_feature\\",\\"value_type\\":\\"Integer\\",\\"expression\\":\\"item:price\\",\\"feature_name\\":\\"price\\",\\"combiner\\":\\"mean\\",\\"group\\":\\"item\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":100000.0,\\"expression\\":\\"item:pid\\",\\"feature_name\\":\\"pid\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"item\\"},{\\"feature_type\\":\\"id_feature\\",\\"hash_bucket_size\\":100000.0,\\"expression\\":\\"user:tag_category_list\\",\\"feature_name\\":\\"user_tag_cate\\",\\"group\\":\\"user\\",\\"is_multi\\":true},{\\"feature_type\\":\\"combo_feature\\",\\"hash_bucket_size\\":10.0,\\"expression\\":[\\"user:user_id\\",\\"user:occupation\\"],\\"feature_name\\":\\"combo__user_id_occupation\\",\\"embedding_dim\\":16.0,\\"group\\":\\"combo\\"},{\\"feature_type\\":\\"combo_feature\\",\\"hash_bucket_size\\":10.0,\\"expression\\":[\\"user:age_level\\",\\"item:customer\\"],\\"feature_name\\":\\"combo__age_level_customer\\",\\"embedding_dim\\":16.0,\\"group\\":\\"combo\\"},{\\"feature_type\\":\\"combo_feature\\",\\"hash_bucket_size\\":10.0,\\"expression\\":[\\"user:pvalue_level\\",\\"item:brand\\"],\\"feature_name\\":\\"combo__pvalue_level_brand\\",\\"embedding_dim\\":16.0,\\"group\\":\\"combo\\"}]}</config>\\n </meta>\\n <status/>\\n <gmtCreate>2021-12-07T08:58:19.000Z</gmtCreate>\\n <gmtModified>2021-12-07T08:58:19.000Z</gmtModified>\\n <sampleFormatConfigId>99D369F6-0A73-4247-9E9F-F693A16CD6AC</sampleFormatConfigId>\\n</result>\\n<requestId>1AEB0EBA-07EF-4C18-85FD-DC93B7A07DA2</requestId>","errorExample":""}]', ], - 'DescribeQuota' => [ - 'path' => '/v2/openapi/instances/{instanceId}/quota', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListSamples' => [ + 'path' => '/v2/openapi/instances/{instanceId}/samples', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18685', - 'abilityTreeNodes' => [ - 'FEATUREairecDM7OX0', - 'FEATUREairecEDD4RN', - 'FEATUREairecIDS0JZ', - 'FEATUREairecDTVO6V', - ], + 'abilityTreeCode' => '117124', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'result' => [ - 'description' => '返回结果', - 'type' => 'object', - 'properties' => [ - 'itemCountUsed' => [ - 'description' => '已经使用的物品数'."\n" - ."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '100', - ], - 'itemCount' => [ - 'description' => '物品表文档数,取值范围:1~1000', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '100', - ], - 'userCount' => [ - 'description' => '用户表文档数,取值范围如下:'."\n" - .'1~1000', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '100', - ], - 'userCountUsed' => [ - 'description' => '已使用的用户数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '100', - ], - 'qps' => [ - 'description' => '查询的QPS值,取值范围如下:'."\n" - ."\n" - .'最小值 10、最大值 500', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'currentQps' => [ - 'description' => '弹性QPS数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - ], - ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'success', - ], - ], - ], - ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], - ], - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '指定的实例ID', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-shdjkgkeog'], ], - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"itemCountUsed\\": 100,\\n \\"itemCount\\": 100,\\n \\"userCount\\": 100,\\n \\"userCountUsed\\": 100,\\n \\"qps\\": 10,\\n \\"currentQps\\": 10\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', - 'title' => '获取指定实例的配额信息', - 'summary' => '通过指定的实例ID查看实例的配额信息。', - ], - 'DescribeRegions' => [ - 'path' => '/v2/openapi/configurations/regions', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'sampleId', + 'in' => 'query', + 'schema' => ['title' => '样本id', 'description' => '样本id', 'type' => 'string', 'required' => false, 'example' => 'Sample1'], ], - ], - 'operationType' => 'read', - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18686', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - 'FEATUREairec5G3YBA', + [ + 'name' => 'page', + 'in' => 'query', + 'schema' => ['title' => '分页,页码', 'description' => '分页,页码', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], ], - ], - 'parameters' => [ [ - 'name' => 'acceptLanguage', + 'name' => 'size', 'in' => 'query', - 'schema' => [ - 'description' => '指定返回的语言,默认值为zh-cn。', - 'type' => 'string', - 'required' => false, - 'example' => 'zh-cn', - ], + 'schema' => ['title' => '分页,大小', 'description' => '分页,大小', 'type' => 'integer', 'format' => 'int64', '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' => '当前请求的RequestID', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], 'result' => [ - 'description' => '返回结果', + 'title' => 'result', + 'description' => '样本列表', 'type' => 'array', - 'items' => [ - 'description' => '返回详情结果', - 'type' => 'object', - 'properties' => [ - 'regionId' => [ - 'description' => '实例所在的区域。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'endpoint' => [ - 'description' => '接入点地址', - 'type' => 'string', - 'example' => '47.109.94.218', - ], - 'status' => [ - 'description' => '开通状态:'."\n" - .'NotOpen 未开通'."\n" - .'Processing 开通中'."\n" - .'Running 运行中', - 'type' => 'string', - 'example' => 'Running', - ], - 'localName' => [ - 'description' => '区域名称', - 'type' => 'string', - 'example' => 'xxx', - ], - 'consoleUrl' => [ - 'description' => '控制台地址', - 'type' => 'string', - 'example' => 'xxx', - ], - ], - ], - ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '16B78383-2803-4964-9605-37B30C073B0E', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'successful', + 'items' => ['description' => '结果详情', '$ref' => '#/components/schemas/Sample'], + 'example' => 'result', ], ], ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'title' => '获取样本列表', + 'summary' => '获取样本列表。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListSamples'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListSamples', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"regionId\\": \\"cn-beijing\\",\\n \\"endpoint\\": \\"47.109.94.218\\",\\n \\"status\\": \\"Running\\",\\n \\"localName\\": \\"xxx\\",\\n \\"consoleUrl\\": \\"xxx\\"\\n }\\n ],\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"16B78383-2803-4964-9605-37B30C073B0E\\",\\n \\"message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '查询区域', - 'summary' => '查询可以使用的阿里云区域。', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": [\\n {\\n \\"Status\\": \\"Formatted\\",\\n \\"Meta\\": {\\n \\"AutoUpdate\\": true,\\n \\"AutoUpdateFrequency\\": 1673341140,\\n \\"ClonedId\\": \\"1638877561147\\",\\n \\"Config\\": {\\n \\"BhvTableSourceIds\\": [\\n \\"\\"\\n ],\\n \\"FeatureConfig\\": {\\n \\"ItemFeatures\\": \\"deress,red\\",\\n \\"UserFeatures\\": \\"man\\"\\n },\\n \\"LabelLogic\\": {\\n \\"BhvTimeWindow\\": 86400,\\n \\"NegativeBhvTypes\\": \\"click,expose\\",\\n \\"PositiveBhvTypes\\": \\"like\\"\\n },\\n \\"WeightLogicList\\": [\\n {\\n \\"Bhv\\": \\"click\\",\\n \\"Weight\\": \\"1\\"\\n }\\n ]\\n },\\n \\"ExtendParams\\": {\\n \\"LatestTaskStatus\\": 1,\\n \\"SampleCount\\": 0\\n },\\n \\"MetaType\\": \\"Sample\\",\\n \\"Name\\": \\"12345\\",\\n \\"StoreConfig\\": \\"projectName.tableName\\",\\n \\"Type\\": \\"System\\"\\n },\\n \\"GmtCreate\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"GmtModified\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"SampleId\\": \\"1638880131873\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', ], - 'DescribeSceneBucket' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiment-bucket', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListSceneItems' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/items', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -14461,33 +9747,54 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18689', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'abilityTreeCode' => '18714', + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => '实例id'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], [ 'name' => 'sceneId', 'in' => 'path', - 'schema' => [ - 'description' => '场景ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'schema' => ['description' => '场景id'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'testid'], + ], + [ + 'name' => 'operationRuleId', + 'in' => 'query', + 'schema' => ['description' => '运营规则id'."\n", 'type' => 'string', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'selectionRuleId', + 'in' => 'query', + 'schema' => ['description' => '选品规则id'."\n", 'type' => 'string', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'page', + 'in' => 'query', + 'schema' => ['description' => '指定页码,默认为:1'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'example' => '1'], + ], + [ + 'name' => 'size', + 'in' => 'query', + 'schema' => ['description' => '指定每页展示条数,默认为10,限制:[1-50]'."\n" + ."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '128', 'minimum' => '0', 'example' => '10'], + ], + [ + 'name' => 'previewType', + 'in' => 'query', + 'schema' => ['description' => '预览类型:'."\n" + ."\n" + .'PREVIEW_ITEM 单独预览选品规则预览结果'."\n" + ."\n" + .'PREVIEW_QUERY 预览整体配置结果', 'type' => 'string', 'required' => false, 'example' => 'PREVIEW_ITEM'], + ], + [ + 'name' => 'queryCount', + 'in' => 'query', + 'schema' => ['description' => '查询数量'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'example' => '20'], ], ], 'responses' => [ @@ -14496,65 +9803,91 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '返回结果', + 'description' => '返回详情结果'."\n" + ."\n", 'type' => 'object', 'properties' => [ - 'num' => [ - 'description' => '总桶数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'inUse' => [ - 'description' => '当前所有ab占用桶号,其余均为缺省实验占用', - 'type' => 'string', - 'example' => '1', + 'total' => [ + 'description' => '统计', + 'type' => 'object', + 'properties' => [ + 'totalCount' => ['description' => '实例中item总数', 'type' => 'integer', 'format' => 'int64', 'example' => '1000'], + 'sceneWeightItem' => ['description' => '当前场景加权的item数', 'type' => 'integer', 'format' => 'int64', 'example' => '1000'], + 'sceneRecommendItem' => ['description' => '当前场景下可推荐的item数', 'type' => 'integer', 'format' => 'int64', 'example' => '1000'], + 'weightItem' => ['description' => '实例中加权的item数', 'type' => 'integer', 'format' => 'int64', 'example' => '1000'], + 'instanceRecommendItem' => ['description' => '当前实例可推荐的item数', 'type' => 'integer', 'format' => 'int64', 'example' => '1000'], + ], ], 'detail' => [ 'description' => '详情', - 'type' => 'object', - 'example' => 'xxx', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'title' => ['description' => '标题', 'type' => 'string', 'example' => 'title'], + 'categoryPath' => ['description' => '类目路径', 'type' => 'string', 'example' => '12_34'], + 'itemId' => ['description' => 'item_id', 'type' => 'string', 'example' => '123'], + 'itemType' => ['description' => 'item_type', 'type' => 'string', 'example' => 'video'], + 'status' => ['description' => '是否可推荐,1为可推荐,0为不可推荐', 'type' => 'string', 'example' => '1'], + 'brandId' => ['description' => '品牌id', 'type' => 'string', 'example' => '123'], + 'shopId' => ['description' => '店铺id', 'type' => 'string', 'example' => '123'], + 'pubTime' => ['description' => '发布时间', 'type' => 'string', 'example' => '1612687809'], + 'channel' => ['description' => '频道', 'type' => 'string', 'example' => '娱乐'], + 'duration' => ['description' => '停留时长', 'type' => 'string', 'example' => '300'], + 'author' => ['description' => '作者', 'type' => 'string', 'example' => 'zhangsan'], + 'expireTime' => ['description' => '失效时间', 'type' => 'string', 'example' => '1612687809'], + ], + 'description' => '', + ], ], ], ], - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B', - ], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求id'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'An internal server error occurred'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"num\\": 2,\\n \\"inUse\\": \\"1\\",\\n \\"detail\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"requestId\\": \\"E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B\\"\\n}","errorExample":""},{"type":"xml","example":"<DescribeSceneBucketResponse>\\n <result>\\n <num>10</num>\\n <inUse>1</inUse>\\n <inUse>2</inUse>\\n <inUse>3</inUse>\\n <detail>\\n <123396>3</123396>\\n <123417>1</123417>\\n <123417>2</123417>\\n </detail>\\n </result>\\n <requestId>E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B</requestId>\\n</DescribeSceneBucketResponse>","errorExample":""}]', - 'title' => 'DescribeSceneBucket', - 'summary' => '查看场景下实验桶分布情况。', - ], - 'DescribeSceneThroughput' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/throughput', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取预览结果', + 'summary' => '获取预览结果。', + 'description' => '如需使用场景管理功能,不建议使用API进行操作。请使用控制台中“场景管理”功能,使用详情见官方文档<props="china">:[通过选投策略配置,快速搭建推荐场景](https://help.aliyun.com/document_detail/171790.html?spm=a2c4g.11186623.6.677.1f6a3483tNyo2M)</props>', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListSceneItems', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"total\\": {\\n \\"totalCount\\": 1000,\\n \\"sceneWeightItem\\": 1000,\\n \\"sceneRecommendItem\\": 1000,\\n \\"weightItem\\": 1000,\\n \\"instanceRecommendItem\\": 1000\\n },\\n \\"detail\\": [\\n {\\n \\"title\\": \\"title\\",\\n \\"categoryPath\\": \\"12_34\\",\\n \\"itemId\\": \\"123\\",\\n \\"itemType\\": \\"video\\",\\n \\"status\\": \\"1\\",\\n \\"brandId\\": \\"123\\",\\n \\"shopId\\": \\"123\\",\\n \\"pubTime\\": \\"1612687809\\",\\n \\"channel\\": \\"娱乐\\",\\n \\"duration\\": \\"300\\",\\n \\"author\\": \\"zhangsan\\",\\n \\"expireTime\\": \\"1612687809\\"\\n }\\n ]\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<Result>\\n <Total>\\n <InstanceRecommendItem>200</InstanceRecommendItem>\\n <SceneRecommendItem>50</SceneRecommendItem>\\n <WeightItem>10</WeightItem>\\n <SceneWeightItem>2217</SceneWeightItem>\\n <TotalCount>5000</TotalCount>\\n </Total>\\n <Detail>\\n <ItemId>15755228600501_15755228759463</ItemId>\\n <ItemType>item</ItemType>\\n <ExpireTime/>\\n <CategoryPath>1024_10003</CategoryPath>\\n <PubTime>1575523106</PubTime>\\n <BrandId>15692083252170</BrandId>\\n <Weight>1</Weight>\\n <ShopId/>\\n <Title>澜笛若慕洁面乳</Title>\\n <Status>1</Status>\\n <Duration>123123</Duration>\\n <Author>123123</Author>\\n <Channel>123123</Channel>\\n </Detail>\\n</Result>\\n<RequestId>6839AE7C-A984-48C1-AC17-331BAC6D97BC</RequestId>","errorExample":""}]', + ], + 'ListSceneParameters' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dashboard/scene-parameters', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -14564,34 +9897,14 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18690', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeCode' => '18715', + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例id'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], - ], - [ - 'name' => 'sceneId', - 'in' => 'path', - 'schema' => [ - 'description' => '场景id'."\n" - ."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'testid', - ], + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], ], 'responses' => [ @@ -14600,61 +9913,64 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '返回详情结果'."\n" - ."\n", + 'description' => '返回详情结果', 'type' => 'object', 'properties' => [ - 'pvCount' => [ - 'description' => 'pv计数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', + 'traceId' => [ + 'description' => '渠道列表'."\n", + 'type' => 'array', + 'items' => ['description' => 'trace_id', 'type' => 'string', 'example' => 'alibaba'], + ], + 'sceneId' => [ + 'description' => '场景列表'."\n" + ."\n", + 'type' => 'array', + 'items' => ['description' => '场景ID', 'type' => 'string', 'example' => 'test'], ], ], ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求id'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '当前请求的RequestID。'."\n", 'type' => 'string', 'example' => 'A40E64C6-9E21-5E9C-B333-DD920AE5AB4A'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'success'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"pvCount\\": 123\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<Result>\\n <PvCount>123213</PvCount>\\n</Result>\\n<RequestId>6839AE7C-A984-48C1-AC17-331BAC6D97BC</RequestId>","errorExample":""}]', - 'title' => '获取场景流量', - 'summary' => '获取场景流量。', - 'description' => '如需使用场景管理功能,不建议使用API进行操作。请使用控制台中“场景管理”功能,使用详情见官方文档<props="china">:[通过选投策略配置,快速搭建推荐场景](https://help.aliyun.com/document_detail/171790.html?spm=a2c4g.11186623.6.677.1f6a3483tNyo2M)</props>', - ], - 'DescribeSyncReportDetail' => [ - 'path' => '/v2/openapi/instances/{instanceId}/sync-reports/detail', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取指定实例全量的渠道和场景信息列表', + 'summary' => '获取指定实例全量的渠道和场景信息列表。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListSceneParameters', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"traceId\\": [\\n \\"alibaba\\"\\n ],\\n \\"sceneId\\": [\\n \\"test\\"\\n ]\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"A40E64C6-9E21-5E9C-B333-DD920AE5AB4A\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', + ], + 'ListScenes' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -14664,158 +9980,69 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18691', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeCode' => '18716', + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'startTime', + 'name' => 'status', 'in' => 'query', - 'schema' => [ - 'description' => '开始时间秒级时间戳'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], + 'schema' => ['description' => '场景状态:'."\n" + .'- **DRAFT**:唤醒,重新发布'."\n" + .'- **PUBLISHING** :发布'."\n" + .'- **RUNNING**:运行中'."\n" + .'- **FAILED**:发布失败'."\n" + .'- **FROZEN** :冻结', 'type' => 'string', 'required' => false, 'example' => '1'], ], [ - 'name' => 'endTime', + 'name' => 'sceneId', 'in' => 'query', - 'schema' => [ - 'description' => '结束时间秒级时间戳'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], + 'schema' => ['description' => '场景ID。', 'type' => 'string', 'required' => false, 'example' => 'test'], ], [ - 'name' => 'type', + 'name' => 'page', 'in' => 'query', - 'schema' => [ - 'description' => 'behavior/item/user表', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'behavior', - ], + 'schema' => ['description' => '指定页码,默认为:1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'example' => '1'], ], [ - 'name' => 'levelType', + 'name' => 'size', 'in' => 'query', - 'schema' => [ - 'description' => '严重等级 error/warn/info', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'error', - ], + 'schema' => ['description' => '指定每页展示条数,默认为10,限制:1-50。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'example' => '10'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '返回详情结果'."\n" - ."\n", + 'description' => '返回结果详情。', 'type' => 'array', 'items' => [ + 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ - 'historyData' => [ - 'description' => '历史数据异常记录占比列表', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'errorPercent' => [ - 'description' => '指定时间段异常数据记录占比 ', - 'type' => 'number', - 'format' => 'float', - 'example' => '84.6', - ], - 'startTime' => [ - 'description' => '开始时间秒级时间戳'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1586673466', - ], - 'endTime' => [ - 'description' => '结束时间秒级时间戳'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1586673466', - ], - ], - ], - ], - 'sampleDisplay' => [ - 'description' => '是否样本展示', - 'type' => 'boolean', - 'example' => 'true', - ], - 'type' => [ - 'description' => '例如:实时行为记录的bhv_time不合法。'."\n", - 'type' => 'string', - 'example' => 'bhvTimeBehavior', - ], - 'errorCount' => [ - 'description' => '错误数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '246165', - ], - 'errorPercent' => [ - 'description' => '异常记录占比', - 'type' => 'number', - 'format' => 'float', - 'example' => '84.6', - ], - 'defaultDisplay' => [ - 'description' => '是否默认展示', - 'type' => 'boolean', - 'example' => 'false', - ], + 'sceneId' => ['description' => '场景ID。', 'type' => 'string', 'example' => 'test'], + 'gmtModified' => ['description' => '最后修改时间。', 'type' => 'string', 'example' => '2020-04-23T06:08:48.000Z'], + 'status' => ['description' => '场景状态:'."\n" + .'- **DRAFT**:唤醒,重新发布'."\n" + .'- **PUBLISHING** :发布'."\n" + .'- **RUNNING**:运行中'."\n" + .'- **FAILED**:发布失败'."\n" + .'- **FROZEN** :冻结', 'type' => 'string', 'example' => '1'], + 'gmtCreate' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2020-04-23T06:08:48.000Z'], ], ], ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求id'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情。', 'type' => 'string', 'example' => 'An internal server error occurred'], ], ], ], @@ -14823,181 +10050,111 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"historyData\\": [\\n {\\n \\"errorPercent\\": 84.6,\\n \\"startTime\\": 1586673466,\\n \\"endTime\\": 1586673466\\n }\\n ],\\n \\"sampleDisplay\\": true,\\n \\"type\\": \\"bhvTimeBehavior\\",\\n \\"errorCount\\": 246165,\\n \\"errorPercent\\": 84.6,\\n \\"defaultDisplay\\": false\\n }\\n ],\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<Result>\\n <Total>\\n <ErrorPercent>84.6</ErrorPercent>\\n <TotalCount>290993</TotalCount>\\n <ErrorCount>246165</ErrorCount>\\n <StartTime>1567152000</StartTime>\\n <EndTime>1567155600</EndTime>\\n </Total>\\n <Detail>\\n <Type>userIdBehavior</Type>\\n <ErrorPercent>0</ErrorPercent>\\n <ErrorCount>100</ErrorCount>\\n <History>\\n <ErrorPercent>0</ErrorPercent>\\n <StartTime>1567119600</StartTime>\\n <EndTime>1567123200</EndTime>\\n </History>\\n <History>\\n <ErrorPercent>0</ErrorPercent>\\n <StartTime>1567119600</StartTime>\\n <EndTime>1567123200</EndTime>\\n </History>\\n </Detail>\\n <Detail>\\n <Type>userIdBehavior</Type>\\n <ErrorPercent>0</ErrorPercent>\\n <ErrorCount>100</ErrorCount>\\n <History>\\n <ErrorPercent>0</ErrorPercent>\\n <StartTime>1567119600</StartTime>\\n <EndTime>1567123200</EndTime>\\n </History>\\n <History>\\n <ErrorPercent>0</ErrorPercent>\\n <StartTime>1567119600</StartTime>\\n <EndTime>1567123200</EndTime>\\n </History>\\n </Detail>\\n</Result>\\n<RequestId>AD3BCF47-2A4C-44DD-B6B7-CC2F2BCB1DB9</RequestId>","errorExample":""}]', - 'title' => '获取实时数据小时级别报告细节信息', - 'summary' => '获取实时数据小时级别报告细节信息。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'DescribeSyncReportOutliers' => [ - 'path' => '/v2/openapi/instances/{instanceId}/sync-reports/outliers', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '查询场景列表', + 'summary' => '查询场景列表。', + 'description' => '如需使用场景管理功能,不建议使用API进行操作。请使用控制台中“场景管理”功能,使用详情见官方文档<props="china">:[通过选投策略配置,快速搭建推荐场景](https://help.aliyun.com/document_detail/171790.html?spm=a2c4g.11186623.6.677.1f6a3483tNyo2M)</props>', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListScenes', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"sceneId\\": \\"test\\",\\n \\"gmtModified\\": \\"2020-04-23T06:08:48.000Z\\",\\n \\"status\\": \\"1\\",\\n \\"gmtCreate\\": \\"2020-04-23T06:08:48.000Z\\"\\n }\\n ],\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<Result>\\n <Status>DRAFT</Status>\\n <GmtCreate>2020-04-23T06:08:48.000Z</GmtCreate>\\n <GmtModified>2020-04-23T06:08:48.000Z</GmtModified>\\n <SceneId>123</SceneId>\\n <SceneMeta>\\n <SceneName>sceneTest</SceneName>\\n <Description>xxx</Description>\\n <Metric>\\n <PvCtr>32</PvCtr>\\n <Daily>32</Daily>\\n <Weekly>32</Weekly>\\n </Metric>\\n </SceneMeta>\\n</Result>\\n<RequestId>0D532E4F-899E-4A59-96B8-C7843A286A53</RequestId>","errorExample":""}]', + ], + 'ListUmengAppkeys' => [ + 'path' => '/v2/openapi/umeng/appkeys', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', + 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18692', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], - ], - 'parameters' => [ - [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-test', - ], - ], - [ - 'name' => 'startTime', - 'in' => 'query', - 'schema' => [ - 'description' => '开始时间秒级时间戳', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], - ], - [ - 'name' => 'key', - 'in' => 'query', - 'schema' => [ - 'description' => 'itemBhv'."\n" - .'实时行为中,商品ID是否存在于商品库中'."\n" - .'userBhv'."\n" - .'实时行为中,用户ID是否存在于用户库中'."\n" - .'bhvTypeBhv'."\n" - .'实时行为中,bhv_type是否合法'."\n" - .'traceIdBhv'."\n" - .'实时行为中,trace_id是否合法'."\n" - .'traceInfoBhv'."\n" - .'实时行为中,trace_info是否合法'."\n" - .'itemItem'."\n" - .'修改记录物品ID是否合法'."\n" - .'userUser'."\n" - .'修改记录用户ID是否合法', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'itemBhv', - ], - ], - [ - 'name' => 'type', - 'in' => 'query', - 'schema' => [ - 'description' => '数据表名(behavior/item/user)', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'hehavoir', - ], - ], - [ - 'name' => 'endTime', - 'in' => 'query', - 'schema' => [ - 'description' => '结束时间秒级时间戳', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], - ], - [ - 'name' => 'levelType', - 'in' => 'query', - 'schema' => [ - 'description' => '异常级别(error/warn/info)', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'error', - ], - ], + 'abilityTreeCode' => '18717', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], + 'parameters' => [], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '返回详情结果'."\n" - ."\n", - 'type' => 'object', - ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'success', + 'description' => '查询结果'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '返回详情结果', + 'type' => 'object', + 'properties' => [ + 'appkey' => ['description' => 'appkey'."\n", 'type' => 'string', 'example' => '5ddcf39f57729e708b00000e'], + 'platform' => ['description' => 'Android/ios', 'type' => 'string', 'example' => 'ios'], + 'name' => ['description' => 'app名称', 'type' => 'string', 'example' => 'xxx'], + ], + ], ], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '请求的RequestID', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'success'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', - 'title' => '获取实时数据报告异常明细', - 'summary' => '获取实时数据报告异常明细。', - ], - 'DescribeUserMetrics' => [ - 'path' => '/v2/openapi/instances/{instanceId}/metrics', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取友盟 appkey 列表信息', + 'summary' => '获取友盟appkey列表信息。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListUmengAppkeys', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"appkey\\": \\"5ddcf39f57729e708b00000e\\",\\n \\"platform\\": \\"ios\\",\\n \\"name\\": \\"xxx\\"\\n }\\n ],\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', + ], + 'ListUserClusters' => [ + 'path' => '/v2/openapi/instances/{instanceId}/user-clusters', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -15007,64 +10164,14 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18693', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeCode' => '18718', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ - 'name' => 'startTime', - 'in' => 'query', - 'schema' => [ - 'description' => '开始时间(秒级时间戳)', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1567152000', - ], - ], - [ - 'name' => 'endTime', - 'in' => 'query', - 'schema' => [ - 'description' => '结束时间(秒级时间戳)', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1658110530', - ], - ], - [ - 'name' => 'metricType', - 'in' => 'query', - 'schema' => [ - 'description' => '查询数据类型:'."\n" - ."\n" - .'- pvCtr'."\n" - .'- uvCtr', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'pvCtr', - ], - ], - [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => '指定的实例id', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-test'], ], ], 'responses' => [ @@ -15073,558 +10180,333 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '返回详情结果'."\n" - ."\n", + 'description' => '返回详情结果', 'type' => 'array', 'items' => [ - 'description' => '返回结果'."\n", + 'description' => '返回详情结果', 'type' => 'object', 'properties' => [ - 'sceneId' => [ - 'description' => '场景ID', - 'type' => 'string', - 'example' => 'test', - ], - 'dataPoints' => [ - 'description' => '指标结果', - 'type' => 'array', - 'items' => [ - 'description' => '指标结果', - 'type' => 'object', - 'properties' => [ - 'val' => [ - 'description' => '具体数值', - 'type' => 'number', - 'format' => 'float', - 'example' => '84.6', - ], - 'startTime' => [ - 'description' => '开始时间(秒级时间戳)', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1567152000', - ], - 'endTime' => [ - 'description' => '结束时间(秒级时间戳)', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1567152000', - ], - ], + 'gmtModified' => ['description' => '最后修改时间的UTC时间', 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'status' => ['description' => '状态', 'type' => 'string', 'example' => '1'], + 'gmtCreate' => ['description' => '创建时间的UTC时间', 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'name' => ['description' => '用户cluster名称', 'type' => 'string', 'example' => 'mycluster-for-airec'], + 'meta' => [ + 'description' => 'meta', + 'type' => 'object', + 'properties' => [ + 'metaType' => ['description' => 'meta类型', 'type' => 'string', 'example' => 'UserCluster'], + 'description' => ['description' => '描述信息', 'type' => 'string', 'example' => 'tst'], ], ], ], ], ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'success', + 'headers' => [ + 'description' => 'headers info', + 'type' => 'object', + 'properties' => [ + 'X-Total-Count' => ['description' => '总数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + ], ], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '1E2CBBA8-C623-4FEE-BC84-9672E460CA39'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"sceneId\\": \\"test\\",\\n \\"dataPoints\\": [\\n {\\n \\"val\\": 84.6,\\n \\"startTime\\": 1567152000,\\n \\"endTime\\": 1567152000\\n }\\n ]\\n }\\n ],\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', - 'title' => '获取用户指标(转化率信息)', - 'summary' => '获取用户指标(转化率信息)。', - ], - 'GetExtraDataSource' => [ - 'summary' => '查看其他数据源详情。', - 'path' => '/v2/openapi/instances/{instanceId}/extra-data-sources/{type}/{dataSourceId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '获取用户集群列表', + 'summary' => '列表显示当前的实例用户cluster。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListUserCluster', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"gmtModified\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"status\\": \\"1\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"name\\": \\"mycluster-for-airec\\",\\n \\"meta\\": {\\n \\"metaType\\": \\"UserCluster\\",\\n \\"description\\": \\"tst\\"\\n }\\n }\\n ],\\n \\"headers\\": {\\n \\"X-Total-Count\\": 1\\n },\\n \\"requestId\\": \\"1E2CBBA8-C623-4FEE-BC84-9672E460CA39\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'ModifyDataSource' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dataSources/{tableName}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, + 'operationType' => 'write', 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '117108', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '18719', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - 'title' => 'A short description of struct', - ], - ], - [ - 'name' => 'type', - 'in' => 'path', - 'schema' => [ - 'description' => '数据源类型'."\n" - .'UserCustomDataSource'."\n" - .'ItemCustomDataSource'."\n" - .'BehaviorCustomDataSource'."\n" - .'SampleCustomDataSource', - 'type' => 'string', - 'required' => true, - 'example' => 'UserCustomDataSource', - 'title' => '数据源类型', - ], + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'dataSourceId', + 'name' => 'tableName', 'in' => 'path', - 'schema' => [ - 'description' => '数据源ID', - 'type' => 'string', - 'required' => true, - 'example' => '123', - 'title' => '数据源id', - ], + 'schema' => ['description' => '要修改数据源的数据表名称。', 'type' => 'string', 'required' => false, 'example' => 'behavior'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', + 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], 'result' => [ - '$ref' => '#/components/schemas/ExtraDataSource', + 'description' => '返回结果详情。', + 'type' => 'object', + 'properties' => [ + 'gmtModified' => ['description' => '最后修改数据源的时间。'."\n", 'type' => 'string', 'example' => '2020-04-23T06:08:48.000Z'], + 'gmtCreate' => ['description' => '创建时间的时间戳。', 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'tableName' => ['description' => '智能推荐的实例的表名。'."\n", 'type' => 'string', 'example' => 'behavior'], + 'meta' => [ + 'description' => '数据源配置参数。', + 'type' => 'object', + 'properties' => [ + 'bucketName' => ['description' => 'oss数据源的bucketName信息。', 'type' => 'string', 'example' => 'airec'], + 'accessKeyId' => ['description' => '有访问ODPS权限的accesskey ID。'."\n", 'type' => 'string', 'example' => 'xxx'], + 'type' => ['description' => '数据源类型,当前只支持ODPS。'."\n", 'type' => 'string', 'example' => 'ODPS'], + 'partition' => ['description' => 'ODPS Partition。例如:ds=20180102。', 'type' => 'string', 'example' => 'ds=20181122'], + 'timestamp' => ['description' => 'ODPS 毫秒数据时间戳。例如:1544112000000。', 'type' => 'integer', 'format' => 'int64', 'example' => '1544112000000'], + 'path' => ['description' => 'oss数据源的信息。', 'type' => 'string', 'example' => 'oss://xxx.xxx'], + 'tableName' => ['description' => 'ODPS 数据源的table name。', 'type' => 'string', 'example' => 'table01'], + 'projectName' => ['description' => 'ODPS数据源的 project name。', 'type' => 'string', 'example' => 'airecproject'], + ], + ], + ], ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情。', 'type' => 'string', 'example' => 'successful'], ], ], ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', + ], + ], ], - 'responseDemo' => '[{"type":"json","example":"{}","errorExample":""},{"type":"xml","example":"<result>\\n <type>UserCustomDataSource</type>\\n <meta>\\n <metaType>ExtraDataSource</metaType>\\n <projectName>project_name</projectName>\\n <tableName>table</tableName>\\n <type>ODPS</type>\\n <updateFrequency>86400</updateFrequency>\\n <internal>false</internal>\\n </meta>\\n <status>Online</status>\\n <gmtCreate>2021-11-30T11:53:05.000Z</gmtCreate>\\n <gmtModified>2021-11-30T11:53:05.000Z</gmtModified>\\n <dataSourceId>cd4bb4b3-1e54-4dbb-a178-e58dac4035a5</dataSourceId>\\n</result>\\n<requestId>90D6B8F5-FE97-4509-9AAB-367836C51818</requestId>","errorExample":""}]', - 'title' => '查看其他数据源详情', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ListDashboardDetails' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dashboard/details', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '修改指定实例的指定数据源信息', + 'summary' => '修改指定表的数据源信息。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyDataSource', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"gmtModified\\": \\"2020-04-23T06:08:48.000Z\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"tableName\\": \\"behavior\\",\\n \\"meta\\": {\\n \\"bucketName\\": \\"airec\\",\\n \\"accessKeyId\\": \\"xxx\\",\\n \\"type\\": \\"ODPS\\",\\n \\"partition\\": \\"ds=20181122\\",\\n \\"timestamp\\": 1544112000000,\\n \\"path\\": \\"oss://xxx.xxx\\",\\n \\"tableName\\": \\"table01\\",\\n \\"projectName\\": \\"airecproject\\"\\n }\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"successful\\"\\n}","type":"json"}]', + ], + 'ModifyFeatureTable' => [ + 'path' => '/v2/openapi/instances/{instanceId}/feature-tables/{type}/{featureTableId}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18696', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '117111', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], - ], - [ - 'name' => 'startTime', - 'in' => 'query', - 'schema' => [ - 'description' => '开始时间,秒级时间戳', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1588521600', - ], - ], - [ - 'name' => 'endTime', - 'in' => 'query', - 'schema' => [ - 'description' => '结束时间,秒级时间戳', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1588521600', - ], - ], - [ - 'name' => 'traceIds', - 'in' => 'query', - 'schema' => [ - 'description' => 'trace_Id,同数据规范', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'Alibaba', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'airec-test'], ], [ - 'name' => 'sceneIds', - 'in' => 'query', - 'schema' => [ - 'description' => '场景ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], - ], - [ - 'name' => 'metricType', - 'in' => 'query', - 'schema' => [ - 'description' => '查询指标,枚举选择'."\n" - ."\n" - .'USER_ACTION_PV_COUNT 整体流量规模PV'."\n" - ."\n" - .'USER_ACTION_UV_COUNT 整体流量规模UV'."\n" - ."\n" - .'USER_ACTION_PV_RATIO 流量转化率'."\n" - ."\n" - .'USER_ACTION_UV_RATIO 人均流量'."\n" - ."\n" - .'USER_PV_STAY 人均停留 (内容型)'."\n" - ."\n" - .'USER_UV_STAY 次均停留 (内容型)', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'xxx', - ], - ], - [ - 'name' => 'experimentIds', - 'in' => 'query', - 'schema' => [ - 'description' => '实验ID列表,all(场景级别整体效果)。默认值为all。', - 'type' => 'string', - 'required' => false, - 'example' => 'all', - ], + 'name' => 'type', + 'in' => 'path', + 'schema' => ['title' => '特征表类型', 'description' => '特征表类型'."\n" + .'UserFeatureTable'."\n" + .'ItemFeatureTable', 'type' => 'string', 'required' => true, 'example' => 'UserFeatureTable'], ], [ - 'name' => 'matchTypes', - 'in' => 'query', - 'schema' => [ - 'description' => '匹配类型列表。', - 'type' => 'string', - 'required' => false, - 'example' => 'hot,emb,u2x2i,hilp,new,', - ], + 'name' => 'featureTableId', + 'in' => 'path', + 'schema' => ['title' => '特征表id', 'description' => '特征表id', 'type' => 'string', 'required' => true, 'example' => '123'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '指定指标的详细信息'."\n" - ."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'traceId' => [ - 'description' => 'trace_id', - 'type' => 'string', - 'example' => 'Alibaba', - ], - 'sceneId' => [ - 'description' => '场景ID', - 'type' => 'string', - 'example' => 'test', - ], - 'metricRes' => [ - 'description' => '指标结果'."\n", - 'type' => 'object', - 'properties' => [ - 'total' => [ - 'description' => '统计', - 'type' => 'object', - 'example' => 'xxx', - ], - 'detail' => [ - 'description' => '详细信息', - 'type' => 'object', - 'example' => 'xxx', - ], - ], - ], - ], - ], - ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['$ref' => '#/components/schemas/FeatureTable', 'description' => ''], ], ], ], - '5XX' => [], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"traceId\\": \\"Alibaba\\",\\n \\"sceneId\\": \\"test\\",\\n \\"metricRes\\": {\\n \\"total\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"detail\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n }\\n ],\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>16B78383-2803-4964-9605-37B30C073B0E</RequestId>\\n<Result>\\n <TraceId>alibaba</TraceId>\\n <SceneId>scene_id1</SceneId>\\n <MetricRes>\\n <Total>\\n <Vval>0</Vval>\\n <Min>0</Min>\\n <Avg>0</Avg>\\n <Max>0</Max>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588521600</StartTime>\\n <EndTime>1588525200</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Total>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588003200</StartTime>\\n <EndTime>1588006800</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588089600</StartTime>\\n <EndTime>1588093200</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588176000</StartTime>\\n <EndTime>1588179600</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588262400</StartTime>\\n <EndTime>1588266000</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588348800</StartTime>\\n <EndTime>1588352400</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588435200</StartTime>\\n <EndTime>1588438800</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588521600</StartTime>\\n <EndTime>1588525200</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n </MetricRes>\\n</Result>\\n<Result>\\n <TraceId>alibaba</TraceId>\\n <SceneId>all</SceneId>\\n <MetricRes>\\n <Total>\\n <Val>0</Val>\\n <Min>0</Min>\\n <Avg>0</Avg>\\n <Max>0</Max>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588521600</StartTime>\\n <EndTime>1588525200</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Total>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588003200</StartTime>\\n <EndTime>1588006800</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588089600</StartTime>\\n <EndTime>1588093200</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588176000</StartTime>\\n <EndTime>1588179600</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588262400</StartTime>\\n <EndTime>1588266000</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588348800</StartTime>\\n <EndTime>1588352400</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588435200</StartTime>\\n <EndTime>1588438800</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588521600</StartTime>\\n <EndTime>1588525200</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n </MetricRes>\\n</Result>","errorExample":""}]', - 'title' => 'ListDashboardDetails', - 'summary' => '通过指定条件查询指定实例的细分指标。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ListDashboardDetailsFlows' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dashboard/details/flows', - 'methods' => [ - 'get', + 'title' => '修改特征表', + 'summary' => '修改特征表,只支表级别持特征列表的全量修改。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyFeatureTable'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyFeatureTable', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"Status\\": \\"\\",\\n \\"Meta\\": {\\n \\"DataSourceId\\": \\"907648f5-abae-44fd-a4c4-525cc25947e9\\",\\n \\"FeatureList\\": [\\n {\\n \\"Comment\\": \\"com11\\",\\n \\"FeatureName\\": \\"fn11\\",\\n \\"FieldName\\": \\"fieldName11\\",\\n \\"Status\\": \\"NotApplied 未应用 Applied 已应用\\"\\n }\\n ],\\n \\"Internal\\": true,\\n \\"MetaType\\": \\"FeatureTable\\",\\n \\"Source\\": \\"test_project.test_table\\",\\n \\"UpdateFrequency\\": 86400\\n },\\n \\"FeatureTableId\\": \\"30E70118-FC7C-4438-9287-583CE47266A9\\",\\n \\"Type\\": \\"ItemFeatureTable 物品特征表 UserFeatureTable 用户特征表\\",\\n \\"GmtCreate\\": \\"2021-12-10T02:59:54.000Z\\",\\n \\"GmtModified\\": \\"2021-12-10T02:59:54.000Z\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<result>\\n <type>ItemFeatureTable</type>\\n <meta>\\n <metaType>FeatureTable</metaType>\\n <dataSourceId>907648f5-abae-44fd-a4c4-525cc25947e9</dataSourceId>\\n <source>project_name.table</source>\\n <updateFrequency>86400</updateFrequency>\\n <featureList>\\n <fieldName>fieldName11</fieldName>\\n <featureName>fn11</featureName>\\n <comment>com11</comment>\\n </featureList>\\n <featureList>\\n <fieldName>fieldName22</fieldName>\\n <featureName>fn22</featureName>\\n <comment>com2222</comment>\\n </featureList>\\n </meta>\\n <status/>\\n <gmtCreate>2021-12-10T02:59:54.000Z</gmtCreate>\\n <gmtModified>2021-12-10T02:59:54.000Z</gmtModified>\\n <featureTableId>30E70118-FC7C-4438-9287-583CE47266A9</featureTableId>\\n</result>\\n<requestId>15847E8B-F00E-44AD-8FD0-26E1B0F4A0A6</requestId>","errorExample":""}]', + ], + 'ModifyFilteringAlgorithmMeta' => [ + 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/meta', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18697', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '18720', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], - ], - [ - 'name' => 'startTime', - 'in' => 'query', - 'schema' => [ - 'description' => '秒级时间戳'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1588521600', - ], - ], - [ - 'name' => 'endTime', - 'in' => 'query', - 'schema' => [ - 'description' => '秒级时间戳'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1588521600', - ], - ], - [ - 'name' => 'traceIds', - 'in' => 'query', - 'schema' => [ - 'description' => 'trace_Id', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'Alibaba', - ], - ], - [ - 'name' => 'sceneIds', - 'in' => 'query', - 'schema' => [ - 'description' => '场景ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'metricType', - 'in' => 'query', - 'schema' => [ - 'description' => '查询指标,枚举选择'."\n" - ."\n" - .'USER_ACTION_PV_COUNT 整体流量规模PV'."\n" - ."\n" - .'USER_ACTION_UV_COUNT 整体流量规模UV'."\n" - ."\n" - .'USER_ACTION_PV_RATIO 流量转化率'."\n" - ."\n" - .'USER_ACTION_UV_RATIO 人均流量'."\n" - ."\n" - .'USER_PV_STAY 人均停留 (内容型)'."\n" - ."\n" - .'USER_UV_STAY 次均停留 (内容型)', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'USERACTIONUV_COUNT', - ], - ], - [ - 'name' => 'experimentIds', - 'in' => 'query', - 'schema' => [ - 'description' => '实验ID列表,all(场景级别整体效果)。默认值为all。', - 'type' => 'string', - 'required' => false, - 'example' => 'all', - ], + 'name' => 'algorithmId', + 'in' => 'path', + 'schema' => ['description' => '指定的召回ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '1'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '指定指标的详细信息'."\n" - ."\n", + 'description' => '召回表信息。', 'type' => 'object', 'properties' => [ - 'metricType' => [ - 'description' => '查询指标,枚举选择'."\n" - ."\n" - .'USER_ACTION_PV_COUNT 整体流量规模PV'."\n" - ."\n" - .'USER_ACTION_UV_COUNT 整体流量规模UV'."\n" - ."\n" - .'USER_ACTION_PV_RATIO 流量转化率'."\n" - ."\n" - .'USER_ACTION_UV_RATIO 人均流量'."\n" - ."\n" - .'USER_PV_STAY 人均停留 (内容型)'."\n" - ."\n" - .'USER_UV_STAY 次均停留 (内容型)', - 'type' => 'string', - 'example' => 'USERACTIONUV_COUNT', - ], - 'metricData' => [ - 'description' => '指标结果', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'traceId' => [ - 'description' => 'trace_id', - 'type' => 'string', - 'example' => 'Alibaba', - ], - 'sceneId' => [ - 'description' => '场景ID', - 'type' => 'string', - 'example' => 'test', + 'gmtModified' => ['description' => '最后更新时间,单位为UTC时间。', 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'status' => ['description' => '表示单签召回表的状态。 '."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Draft**:草稿。'."\n" + ."\n" + .'- **Running**:运行中。'."\n" + ."\n" + .'- **Offline**:已下线。'."\n" + ."\n" + .'- **Deleted**:已删除。', 'type' => 'string', 'example' => 'Running'], + 'gmtCreate' => ['description' => '创建时间的UTC时间。', 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'algorithmId' => ['description' => '指定的召回ID。', 'type' => 'string', 'example' => 'abc'], + 'meta' => [ + 'description' => 'Meta源数据。', + 'type' => 'object', + 'properties' => [ + 'taskId' => ['description' => '任务ID。', 'type' => 'string', 'example' => 'taskId'], + 'metaType' => ['description' => '算法类型,当前只支持ODPS。', 'type' => 'string', 'example' => 'metaType'], + 'type' => ['description' => '数据源类型,当前只支持ODPS。', 'type' => 'string', 'example' => 'ODPS'], + 'extInfo' => [ + 'description' => '召回表类型包含内容。', + 'type' => 'object', + 'properties' => [ + 'kvSeparator' => ['description' => 'kv分隔符。', 'type' => 'string', 'example' => ':'], + 'itemSeparator' => ['description' => 'Item分隔符。', 'type' => 'string', 'example' => ','], ], - 'metricRes' => [ - 'description' => '指标结果', - 'type' => 'object', - 'example' => 'xxx', + ], + 'category' => ['description' => '召回类别。', 'type' => 'string', 'example' => '1_2'], + 'threshold' => [ + 'description' => 'ODPS表的阈值配置信息。', + 'type' => 'object', + 'properties' => [ + 'sourceDataSizeThreshold' => ['description' => '源数据大小波动阈值。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'sourceDataRecordThreshold' => ['description' => '源数据条目数波动阈值。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'indexSizeThreshold' => ['description' => '索引大小波动阈值。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'indexLossThreshold' => ['description' => '索引丢失阈值。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], ], ], + 'tableName' => ['description' => 'ODPS召回表名称。', 'type' => 'string', 'example' => 'test_table'], + 'clusterId' => ['description' => '集群ID。', 'type' => 'string', 'example' => '244'], + 'cron' => ['description' => '定时调度任务Cron。', 'type' => 'string', 'example' => '* * 24 7 0'], + 'description' => ['description' => '召回算法配置描述。', 'type' => 'string', 'example' => 'test'], + 'projectName' => ['description' => 'ODPS中的ProjectName。', 'type' => 'string', 'example' => 'test'], + 'algorithmName' => ['description' => '召回算法配置名称。', 'type' => 'string', 'example' => 'test'], + 'cronEnabled' => ['description' => '是否开启定时启动实验任务配置。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **true**:开启。'."\n" + ."\n" + .'- **false**:关闭。', 'type' => 'boolean', 'example' => 'true'], ], ], ], ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['description' => '请求的ID。', 'type' => 'string', 'example' => '7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3'], ], ], ], @@ -15632,319 +10514,307 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"metricType\\": \\"USERACTIONUV_COUNT\\",\\n \\"metricData\\": [\\n {\\n \\"traceId\\": \\"Alibaba\\",\\n \\"sceneId\\": \\"test\\",\\n \\"metricRes\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ]\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>16B78383-2803-4964-9605-37B30C073B0E</RequestId>\\n<Result>\\n <MetricType>cart</MetricType>\\n <MetricData>\\n <TraceId>alibaba</TraceId>\\n <SceneId>scene_id1</SceneId>\\n <MetricRes>\\n <Total>\\n <Val>0</Val>\\n <Min>0</Min>\\n <Avg>0</Avg>\\n <Max>0</Max>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588521600</StartTime>\\n <EndTime>1588525200</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Total>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1585929600</StartTime>\\n <EndTime>1585933200</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1586016000</StartTime>\\n <EndTime>1586019600</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n </MetricRes>\\n </MetricData>\\n <MetricData>\\n <TraceId>alibaba</TraceId>\\n <SceneId>all</SceneId>\\n <MetricRes>\\n <Total>\\n <Val>0</Val>\\n <Min>0</Min>\\n <Avg>0</Avg>\\n <Max>0</Max>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588521600</StartTime>\\n <EndTime>1588525200</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Total>\\n <Detail>\\n <Val>0</Val>\\n <Last7dayCompare>0</Last7dayCompare>\\n <StartTime>1588521600</StartTime>\\n <EndTime>1588525200</EndTime>\\n <LastDayCompare>0</LastDayCompare>\\n </Detail>\\n </MetricRes>\\n </MetricData>\\n</Result>","errorExample":""}]', - 'title' => '通过指定条件查询实例的细分流量指标', - 'summary' => '通过指定条件查询指定实例的细分流量指标。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ListDashboardMetrics' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dashboard/metrics', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => 'ModifyFilteringAlgorithmMeta', + 'summary' => '修改召回表的配置。', + 'description' => '可修改的配置有:'."\n" + .'● cron、cronEnabled'."\n" + .'● description'."\n" + .'● algorithmName'."\n" + .'● threshold:注意,如果要修改ODPS表的阈值配置信息,必须全量提交,不支持只传入ODPS表的阈值配置信息下边的某一项。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyFilteringAlgorithmMeta', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"gmtModified\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"status\\": \\"Running\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"algorithmId\\": \\"abc\\",\\n \\"meta\\": {\\n \\"taskId\\": \\"taskId\\",\\n \\"metaType\\": \\"metaType\\",\\n \\"type\\": \\"ODPS\\",\\n \\"extInfo\\": {\\n \\"kvSeparator\\": \\":\\",\\n \\"itemSeparator\\": \\",\\"\\n },\\n \\"category\\": \\"1_2\\",\\n \\"threshold\\": {\\n \\"sourceDataSizeThreshold\\": 1,\\n \\"sourceDataRecordThreshold\\": 1,\\n \\"indexSizeThreshold\\": 1,\\n \\"indexLossThreshold\\": 1\\n },\\n \\"tableName\\": \\"test_table\\",\\n \\"clusterId\\": \\"244\\",\\n \\"cron\\": \\"* * 24 7 0\\",\\n \\"description\\": \\"test\\",\\n \\"projectName\\": \\"test\\",\\n \\"algorithmName\\": \\"test\\",\\n \\"cronEnabled\\": true\\n }\\n },\\n \\"requestId\\": \\"7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'ModifyFlowControlTask' => [ + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18698', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '154309', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], - ], - [ - 'name' => 'startTime', - 'in' => 'query', - 'schema' => [ - 'description' => '起始时间,秒级时间戳', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], - ], - [ - 'name' => 'endTime', - 'in' => 'query', - 'schema' => [ - 'description' => '截止时间,秒级时间戳', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '1586673466', - ], - ], - [ - 'name' => 'metricType', - 'in' => 'query', - 'schema' => [ - 'description' => '指标类型'."\n" - ."\n" - .'USER_ACTION_PV_COUNT 整体流量规模PV'."\n" - ."\n" - .'USER_ACTION_UV_COUNT 整体流量规模UV'."\n" - ."\n" - .'USER_ACTION_PV_RATIO 流量转化率'."\n" - ."\n" - .'USER_ACTION_UV_RATIO 人均流量', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => '指标类型'."\n" - ."\n" - .'USERACTIONPV_COUNT', - ], + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'metricView', - 'in' => 'query', - 'schema' => [ - 'description' => '查询维度,配合metricQuery使用,默认值为USER, 枚举值如下;'."\n" - .' USER 用户维度,'."\n" - .' ITEM 物品维度', - 'type' => 'string', - 'required' => false, - 'example' => 'ITEM', - ], + 'name' => 'taskId', + 'in' => 'path', + 'schema' => ['description' => '流量调控任务ID。', 'type' => 'string', 'required' => false, 'example' => '1667297014460'], ], [ - 'name' => 'metricQuery', - 'in' => 'query', + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'description' => '查询条件,格式 k1:v1;k2:v2', - 'type' => 'string', + 'description' => '请求Body参数。', + 'type' => 'object', + 'properties' => [ + 'TaskName' => ['description' => '流量调控任务名称。', 'type' => 'string', 'required' => false, 'example' => 'testname'], + 'description' => ['description' => '流量调控描述信息。', 'type' => 'string', 'required' => false, 'example' => '描述'], + 'endTime' => ['description' => '结束时间秒级时间戳。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1639519200'], + 'metaType' => ['description' => '流量调控Meta类型,固定值FlowControlTask。', 'type' => 'string', 'required' => false, 'example' => 'FlowControlTask'], + 'sceneIds' => ['description' => '场景ID,支持多个,英文,分割即可。', 'type' => 'string', 'required' => false, 'example' => 'all,sy101'], + 'selectionParams' => [ + 'description' => '选品规则参数列表。', + 'type' => 'array', + 'items' => [ + 'description' => '选品规则参数。', + 'type' => 'object', + 'properties' => [ + 'selectType' => ['description' => '选品规则过滤条件类型。', 'type' => 'string', 'required' => false, 'example' => 'invalidItem'], + 'selectValue' => ['description' => '选品规则过滤条件具体数值。', 'type' => 'string', 'required' => false, 'example' => '20'], + 'selectionOperation' => ['description' => '选品规则过滤条件操作。', 'type' => 'string', 'required' => false, 'example' => 'OPERATOR_HIGHER'], + ], + 'required' => false, + ], + 'required' => false, + ], + 'startTime' => ['description' => '开始时间(秒级时间戳)。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1638460800'], + 'target' => [ + 'description' => '物品曝光配置。', + 'type' => 'object', + 'properties' => [ + 'type' => ['description' => '曝光类型。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **EXPOSE_PERCENT**:每日曝光百分比。'."\n" + ."\n" + .'- **EXPOSE_COUNT**:曝光总量。', 'type' => 'string', 'required' => false, 'example' => 'EXPOSE_PERCENT'], + 'value' => ['description' => '曝光值。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '50'], + ], + 'required' => false, + ], + ], 'required' => false, - 'example' => 'dimension:ITEM_TYPE;behaviorType:expose', ], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], 'result' => [ - 'description' => '统计结果'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'total' => [ - 'description' => '统计', - 'type' => 'object', - 'example' => 'xxx', - ], - 'detail' => [ - 'description' => '详细信息', - 'type' => 'array', - 'items' => [ + 'description' => '返回参数。', + 'type' => 'object', + 'properties' => [ + 'gmtCreate' => ['description' => '创建时间的UTC时间。', 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'gmtModified' => ['description' => '最后修改数据源的UTC时间。', 'type' => 'string', 'example' => '2020-11-11T09:47:43.000Z'], + 'meta' => [ + 'description' => '流量调控Meta。', + 'type' => 'object', + 'properties' => [ + 'description' => ['description' => '流量调控描述信息。', 'type' => 'string', 'example' => 'tst'], + 'endTime' => ['description' => '结束时间秒级时间戳。', 'type' => 'integer', 'format' => 'int64', 'example' => '1656518399'], + 'metaType' => ['description' => '流量调控Meta类型,固定值FlowControlTask。', 'type' => 'string', 'example' => 'FlowControlTask'], + 'sceneIds' => ['description' => '场景ID,支持多个,英文,分割即可。', 'type' => 'string', 'example' => '1,2,3'], + 'selectionParams' => [ + 'description' => '选品规则参数列表。', + 'type' => 'array', + 'items' => [ + 'description' => '选品规则参数。', + 'type' => 'object', + 'properties' => [ + 'selectType' => ['description' => '选品规则过滤条件类型。', 'type' => 'string', 'example' => 'QUERY_PUB_TIME'], + 'selectValue' => ['description' => '选品规则过滤条件具体数值。', 'type' => 'string', 'example' => '10000'], + 'selectionOperation' => ['description' => '选品规则过滤条件操作。', 'type' => 'string', 'example' => 'OPERATOR_HIGHER'], + ], + ], + ], + 'startTime' => ['description' => '开始时间(秒级时间戳)。', 'type' => 'integer', 'format' => 'int64', 'example' => '1640739600'], + 'target' => [ + 'description' => '曝光配置。', 'type' => 'object', 'properties' => [ - 'val' => [ - 'description' => '具体数值', - 'type' => 'string', - 'example' => '13', - ], - 'startTime' => [ - 'description' => '秒级时间戳', - 'type' => 'string', - 'example' => '1586673466', - ], - 'endTime' => [ - 'description' => '秒级时间戳', - 'type' => 'string', - 'example' => '1586673466', - ], + 'type' => ['description' => '曝光类型。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **EXPOSE_PERCENT**:每日曝光百分比。'."\n" + ."\n" + .'- **EXPOSE_COUNT**:曝光总量。', 'type' => 'string', 'example' => 'EXPOSE_PERCENT'], + 'value' => ['description' => '曝光值。', 'type' => 'integer', 'format' => 'int64', 'example' => '20'], ], ], + 'taskName' => ['description' => '流量调侃任务名称。', 'type' => 'string', 'example' => '活动用户测试'], ], ], + 'status' => ['description' => '任务状态。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **DRAFT**:草稿。'."\n" + ."\n" + .'- **READY**:待生效。'."\n" + ."\n" + .'- **RUNNING**:运行中。'."\n" + ."\n" + .'- **ENDED**:结束。', 'type' => 'string', 'example' => 'DRAFT'], + 'TaskId' => ['description' => '流量调侃任务ID。', 'type' => 'string', 'example' => '1661506482'], ], ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求id'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], ], ], ], - '5XX' => [], + 500 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', + ], + ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"total\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"detail\\": [\\n {\\n \\"val\\": \\"13\\",\\n \\"startTime\\": \\"1586673466\\",\\n \\"endTime\\": \\"1586673466\\"\\n }\\n ]\\n }\\n ],\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>16B78383-2803-4964-9605-37B30C073B0E</RequestId>\\n<Result>\\n <Total>\\n <Val>32</Val>\\n <Min>32</Min>\\n <Average7>32</Average7>\\n <Max>32</Max>\\n <Average30>32</Average30>\\n <Daily>32</Daily>\\n <StatTime>1586673466</StatTime>\\n <EndTime>1586673466</EndTime>\\n <Weekly>32</Weekly>\\n </Total>\\n <Detail>\\n <Val>13</Val>\\n <StartTime>1586673466</StartTime>\\n <EndTime>1586673466</EndTime>\\n </Detail>\\n <Detail>\\n <Val>32</Val>\\n <StartTime>1586673466</StartTime>\\n <EndTime>1586673466</EndTime>\\n </Detail>\\n</Result>","errorExample":""}]', - 'title' => 'ListDashboardMetrics', - 'summary' => '查询指定实例的整理仪表盘数据。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ListDashboardMetricsFlows' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dashboard/metrics/flows', - 'methods' => [ - 'get', + 'title' => '修改流量控制任务,目前只支持草稿态和发布失败状态的任务修改配置信息', + 'summary' => '流调任务修改接口。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyFlowControlTask'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyFlowControlTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"result\\": {\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"gmtModified\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"meta\\": {\\n \\"description\\": \\"tst\\",\\n \\"endTime\\": 1656518399,\\n \\"metaType\\": \\"FlowControlTask\\",\\n \\"sceneIds\\": \\"1,2,3\\",\\n \\"selectionParams\\": [\\n {\\n \\"selectType\\": \\"QUERY_PUB_TIME\\",\\n \\"selectValue\\": \\"10000\\",\\n \\"selectionOperation\\": \\"OPERATOR_HIGHER\\"\\n }\\n ],\\n \\"startTime\\": 1640739600,\\n \\"target\\": {\\n \\"type\\": \\"EXPOSE_PERCENT\\",\\n \\"value\\": 20\\n },\\n \\"taskName\\": \\"活动用户测试\\"\\n },\\n \\"status\\": \\"DRAFT\\",\\n \\"TaskId\\": \\"1661506482\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<ModifyFlowControlTaskResponse>\\n <taskName>test</taskName>\\n <description>这是一个测试任务</description>\\n <startTime>1621267200</startTime>\\n <endTime>1621267200</endTime>\\n <selectionParams>\\n <selectType/>\\n <selectionOperation/>\\n <selectValue/>\\n </selectionParams>\\n <sceneIds>1,2,3</sceneIds>\\n <target>\\n <type>EXPOSE_PERCENT</type>\\n <value>50</value>\\n </target>\\n <metaType>FlowControlTask</metaType>\\n</ModifyFlowControlTaskResponse>","errorExample":""}]', + ], + 'ModifyInstance' => [ + 'path' => '/v2/openapi/instances/{instanceId}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', - 'deprecated' => false, + 'operationType' => 'write', 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18699', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '18721', + 'abilityTreeNodes' => ['FEATUREairec5G3YBA', 'FEATUREairecX63J28'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], - ], - [ - 'name' => 'startTime', - 'in' => 'query', - 'schema' => [ - 'description' => '秒级时间戳'."\n" - ."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], - ], - [ - 'name' => 'endTime', - 'in' => 'query', - 'schema' => [ - 'description' => '秒级时间戳'."\n" - ."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], - ], - [ - 'name' => 'metricType', - 'in' => 'query', - 'schema' => [ - 'description' => '指标类型'."\n" - ."\n" - .'USER_ACTION_PV_COUNT 整体流量规模PV'."\n" - ."\n" - .'USER_ACTION_UV_COUNT 整体流量规模UV'."\n" - ."\n" - .'USER_ACTION_PV_RATIO 流量转化率'."\n" - ."\n" - .'USER_ACTION_UV_RATIO 人均流量', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'USERACTIONPV_COUNT', - ], + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '统计结果'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'metricType' => [ - 'description' => '指标类型', - 'type' => 'string', - 'example' => 'xxx', - ], - 'metricData' => [ - 'description' => '指标数据', - 'type' => 'object', - 'example' => 'xxx', - ], - ], + 'description' => '返回参数。', + 'type' => 'object', + 'properties' => [ + 'regionId' => ['description' => '实例所在的区域。'."\n", 'type' => 'string', 'example' => 'cn-beijing'], + 'type' => ['description' => '实例类型。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Algorithm_configuration**:算法配置版。'."\n" + ."\n" + .'- **Industry_operation**:行业运营版。'."\n" + ."\n" + .'- **Cold_start**:冷启动版。', 'type' => 'string', 'example' => 'Algorithm_configuration'], + 'lockMode' => ['description' => '实例锁定状态。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Unlock**:未锁定。'."\n" + ."\n" + .'- **ManualLock**:手动锁定。'."\n" + ."\n" + .'- **LockByExpiration**:欠费锁定。', 'type' => 'string', 'example' => 'Unlock'], + 'expiredTime' => ['description' => '实例过期时间,单位为UTC时间。'."\n", 'type' => 'string', 'example' => '2019-01-06T16:00:00.000Z'], + 'status' => ['description' => '实例运行状态。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Initializing**:初始化中。'."\n" + ."\n" + .'- **Ready**:待数据导入。'."\n" + ."\n" + .'- **Running**:运行中。', 'type' => 'string', 'example' => 'Running'], + 'gmtCreate' => ['description' => '实例创建时间,单位为UTC时间。'."\n", 'type' => 'string', 'example' => '2018-12-06T06:14:01.000Z'], + 'chargeType' => ['description' => '实例付费类型。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **PREPAY**:预付费(包年包月)。'."\n" + ."\n" + .'- **POSTPAY**:后付费(按量付费)。', 'type' => 'string', 'example' => 'POSTPAY'], + 'industry' => ['description' => '实例行业类型。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **content**:内容型。'."\n" + ."\n" + .'- **item**:商品型。'."\n" + ."\n" + .'- **news**:新闻型。', 'type' => 'string', 'example' => 'news'], + 'commodityCode' => ['description' => 'Airec商品代码。', 'type' => 'string', 'example' => 'airecpre'], + 'gmtModified' => ['description' => '实例最后修改时间。', 'type' => 'string', 'example' => '2020-04-23T06:08:48.000Z'], + 'dataSetVersion' => ['description' => '当前实例在线服务的数据集版本。', 'type' => 'string', 'example' => '20181206170353'], + 'name' => ['description' => '实例名称。'."\n", 'type' => 'string', 'example' => '实例1'], + 'instanceId' => ['description' => '实例ID。'."\n", 'type' => 'string', 'example' => 'airec-cn-****'], ], ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求id'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '9B5AA8EF-DB75-5BE9-ADFD-E645F9EA7374'], + 'message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'successful'], ], ], ], @@ -15952,320 +10822,183 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"metricType\\": \\"xxx\\",\\n \\"metricData\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ],\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>16B78383-2803-4964-9605-37B30C073B0E</RequestId>\\n<Result>\\n <MetricType>click</MetricType>\\n <MetricData>\\n <Val>32</Val>\\n <Min>32</Min>\\n <Average7>32</Average7>\\n <Max>32</Max>\\n <Average30>32</Average30>\\n <Daily>32</Daily>\\n <StatTime>1586673466</StatTime>\\n <EndTime>1586673466</EndTime>\\n <Detail>\\n <Val>10</Val>\\n <StartTime>1586673466</StartTime>\\n <EndTime>1586673466</EndTime>\\n <Type>click</Type>\\n </Detail>\\n <Detail>\\n <Val>10</Val>\\n <StartTime>1586673466</StartTime>\\n <EndTime>1586673466</EndTime>\\n <Type>expose</Type>\\n </Detail>\\n <Weekly>32</Weekly>\\n </MetricData>\\n</Result>","errorExample":""}]', - 'title' => '查询指定实例的整理仪表盘流量数据', - 'summary' => '查询指定实例的整理仪表盘流量数据。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ListFeatureTables' => [ - 'summary' => '获取特征表列表。', - 'path' => '/v2/openapi/instances/{instanceId}/feature-tables', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '修改实例', + 'summary' => '修改指定实例配置。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"regionId\\": \\"cn-beijing\\",\\n \\"type\\": \\"Algorithm_configuration\\",\\n \\"lockMode\\": \\"Unlock\\",\\n \\"expiredTime\\": \\"2019-01-06T16:00:00.000Z\\",\\n \\"status\\": \\"Running\\",\\n \\"gmtCreate\\": \\"2018-12-06T06:14:01.000Z\\",\\n \\"chargeType\\": \\"POSTPAY\\",\\n \\"industry\\": \\"news\\",\\n \\"commodityCode\\": \\"airecpre\\",\\n \\"gmtModified\\": \\"2020-04-23T06:08:48.000Z\\",\\n \\"dataSetVersion\\": \\"20181206170353\\",\\n \\"name\\": \\"实例1\\",\\n \\"instanceId\\": \\"airec-cn-****\\"\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"9B5AA8EF-DB75-5BE9-ADFD-E645F9EA7374\\",\\n \\"message\\": \\"successful\\"\\n}","type":"json"}]', + ], + 'ModifyItems' => [ + 'path' => '/v2/openapi/instances/{instanceId}/items', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '117113', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '18722', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '特征表id', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-shdjkgkeog', - ], - ], - [ - 'name' => 'type', - 'in' => 'query', - 'schema' => [ - 'title' => '特征表类型', - 'description' => '特征表类型', - 'type' => 'string', - 'required' => false, - 'example' => 'ItemFeatureTable UserFeatureTable', - ], + 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-test'], ], - [ - 'name' => 'updateFrequency', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '特征更新频率', - 'description' => '特征更新频率', - 'type' => 'string', - 'required' => false, - 'example' => '1', + 'type' => 'object', + 'properties' => [ + 'result' => ['description' => '成功,失败', 'type' => 'boolean', 'example' => 'true'], + 'requestId' => ['description' => '返回的RequestId', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + ], + 'description' => '', ], ], - [ - 'name' => 'dataSourceId', - 'in' => 'query', + '5XX' => [ 'schema' => [ - 'title' => '数据源id', - 'description' => '数据源id', - 'type' => 'string', - 'required' => false, - 'example' => '123', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '返回结果详情', - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求id', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], - 'result' => [ - 'title' => 'result', - 'description' => '返回结果数组', - 'type' => 'array', - 'items' => [ - 'description' => '返回结果', - '$ref' => '#/components/schemas/FeatureTable', - ], - 'example' => 'result', - ], + 'title' => '修改项目', + 'summary' => '批量操作物品池。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyItems', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": [\\n {\\n \\"Status\\": \\"\\",\\n \\"Meta\\": {\\n \\"DataSourceId\\": \\"907648f5-abae-44fd-a4c4-525cc25947e9\\",\\n \\"FeatureList\\": [\\n {\\n \\"Comment\\": \\"com11\\",\\n \\"FeatureName\\": \\"fn11\\",\\n \\"FieldName\\": \\"fieldName11\\",\\n \\"Status\\": \\"NotApplied 未应用 Applied 已应用\\"\\n }\\n ],\\n \\"Internal\\": true,\\n \\"MetaType\\": \\"FeatureTable\\",\\n \\"Source\\": \\"test_project.test_table\\",\\n \\"UpdateFrequency\\": 86400\\n },\\n \\"FeatureTableId\\": \\"30E70118-FC7C-4438-9287-583CE47266A9\\",\\n \\"Type\\": \\"ItemFeatureTable 物品特征表 UserFeatureTable 用户特征表\\",\\n \\"GmtCreate\\": \\"2021-12-10T02:59:54.000Z\\",\\n \\"GmtModified\\": \\"2021-12-10T02:59:54.000Z\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取特征表列表', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\"\\n}","type":"json"}]', ], - 'ListIndexVersions' => [ - 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/index-versions', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ModifyOfflineStorages' => [ + 'path' => '/v2/openapi/instances/[instanceId]/offlineStorages', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18704', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '20403', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], - ], - [ - 'name' => 'algorithmId', - 'in' => 'path', - 'schema' => [ - 'description' => '指定的表ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'abc', - ], + 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'airec-test-xxx', 'format' => 'byte'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '响应体', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '召回表信息', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'code' => [ - 'description' => '错误码', - 'type' => 'string', - 'example' => 'abc', - ], - 'switchedTime' => [ - 'description' => '索引切换完成时间,为UTC时间', - 'type' => 'string', - 'example' => '2020-11-08T02:00:00Z', - ], - 'rollbackEnabled' => [ - 'description' => '是否可以回滚', - 'type' => 'boolean', - 'example' => 'true', - ], - 'message' => [ - 'description' => '错误信息', - 'type' => 'string', - 'example' => 'xxx', - ], - 'flowType' => [ - 'description' => '任务类型,包含 Auto Manual Rollback ', - 'type' => 'string', - 'example' => 'Auto', - ], - 'costSeconds' => [ - 'description' => '索引构建耗时', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '600', - ], - 'builtTime' => [ - 'description' => '索引开始构建时间,为UTC时间', - 'type' => 'string', - 'example' => '2020-11-08T02:00:00Z', - ], - 'versionId' => [ - 'description' => '索引版本的版本号,后端生成', - 'type' => 'string', - 'example' => '2020112301', - ], - 'size' => [ - 'description' => '索引构建大小', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '300922211', - ], - 'status' => [ - 'description' => '索引状态,包含索引:'."\n" - ."\n" - .'- 失败(failed)'."\n" - .'- 生效中(online)'."\n" - .'- 已失效(offline)'."\n" - ."\n" - .'全量任务:'."\n" - ."\n" - .'- 全量中(pending)'."\n" - .'- 已完成(success)'."\n" - .'- 失败(failed)'."\n" - ."\n" - .'等', - 'type' => 'string', - 'example' => 'abc', - ], - 'progress' => [ - 'description' => '进度展示百分比,例如80', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '80', - ], - ], - ], - ], - 'requestId' => [ - 'description' => '请求的RequestID', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], + 'requestId' => ['description' => '请求id', 'type' => 'string', 'example' => '7F176EE8-51DA-4B4D-8FFE-04448CD7A171', 'format' => 'byte'], + 'result' => ['description' => '结果', 'type' => 'boolean', 'example' => 'true'], ], + 'description' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + ], + 'title' => '修改实例的离线存储配置', + 'summary' => '修改实例的离线存储配置。(只支持三张表同时修改)。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyOfflineStorages'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyOfflineStorages', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"code\\": \\"abc\\",\\n \\"switchedTime\\": \\"2020-11-08T02:00:00Z\\",\\n \\"rollbackEnabled\\": true,\\n \\"message\\": \\"xxx\\",\\n \\"flowType\\": \\"Auto\\",\\n \\"costSeconds\\": 600,\\n \\"builtTime\\": \\"2020-11-08T02:00:00Z\\",\\n \\"versionId\\": \\"2020112301\\",\\n \\"size\\": 300922211,\\n \\"status\\": \\"abc\\",\\n \\"progress\\": 80\\n }\\n ],\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '获取索引版本列表', - 'summary' => '根据指定的实例ID,召回表ID获取索引版本列表。目前仅支持显示10条数据(包含3条可以切换的),所以不用翻页,不用过滤。', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"7F176EE8-51DA-4B4D-8FFE-04448CD7A171\\",\\n \\"result\\": true\\n}","errorExample":""},{"type":"xml","example":"<result>true</result>\\n<requestId>7F176EE8-51DA-4B4D-8FFE-04448CD7A171</requestId>","errorExample":""}]', ], - 'ListInstanceTask' => [ - 'path' => '/v2/openapi/instances/{instanceId}/tasks', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ModifyRankingModel' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-models/{rankingModelId}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', + 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18706', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - 'FEATUREairec5G3YBA', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '18723', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-test'], + ], + [ + 'name' => 'rankingModelId', + 'in' => 'path', + 'schema' => ['description' => '排序模型ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test1234'], ], ], 'responses' => [ @@ -16274,743 +11007,476 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '返回结果。', - 'type' => 'array', - 'items' => [ - 'description' => '返回详情结果'."\n", - 'type' => 'object', - 'properties' => [ - 'subProgressInfos' => [ - 'description' => '子任务具体进度信息列表', - 'type' => 'array', - 'items' => [ - 'description' => '子任务具体进度信息列表', - 'type' => 'object', - 'properties' => [ - 'type' => [ - 'description' => '子任务类型', - 'type' => 'string', - 'example' => 'DATA_PROCESS', - ], - 'detail' => [ - 'description' => '子任务具体描述', - 'type' => 'string', - 'example' => 'data import progress info', - ], - 'totalNum' => [ - 'description' => '子任务一共的任务数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '11', - ], - 'finishedNum' => [ - 'description' => '已完成子任务数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'progress' => [ - 'description' => '执行进度'."\n" - .'范围为0-100'."\n" - .'100为执行结束', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - ], - ], - ], - 'totalProgress' => [ - 'description' => '当前任务整体进度', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '50', - ], - 'name' => [ - 'description' => '任务名称', - 'type' => 'string', - 'example' => '启动任务', - ], - ], + 'description' => '结果', + 'type' => 'object', + 'properties' => [ + 'rankingModelId' => ['description' => '排序模型ID', 'type' => 'string', 'example' => 'test1234'], + 'gmtModified' => ['description' => '修改时间', 'type' => 'string', 'example' => '2020-11-11T09:47:43.000Z'], + 'gmtCreate' => ['description' => '创建时间', 'type' => 'string', 'example' => '2020-11-11T09:47:43.000Z'], + 'meta' => ['description' => '数据源信息,召回表的数据来源,目前只支持ODPS', 'type' => 'object', 'example' => '{}'], ], ], - 'code' => [ - 'description' => '错误码', - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '请求的RequestID', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'successful', - ], + 'code' => ['description' => '错误code', 'type' => 'string', 'example' => '1'], + 'requestId' => ['description' => '请求id', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'message' => ['description' => '返回消息', 'type' => 'string', 'example' => 'An internal server error occurred'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"subProgressInfos\\": [\\n {\\n \\"type\\": \\"DATA_PROCESS\\",\\n \\"detail\\": \\"data import progress info\\",\\n \\"totalNum\\": 11,\\n \\"finishedNum\\": 2,\\n \\"progress\\": 20\\n }\\n ],\\n \\"totalProgress\\": 50,\\n \\"name\\": \\"启动任务\\"\\n }\\n ],\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '查询指定实例的任务列表', - 'summary' => '查询指定实例的任务列表。', - ], - 'ListItems' => [ - 'path' => '/v2/openapi/instances/{instanceId}/items/actions/list', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '修改排名模型', + 'summary' => '修改模型信息。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyRankingModel', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"rankingModelId\\": \\"test1234\\",\\n \\"gmtModified\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"gmtCreate\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"meta\\": {}\\n },\\n \\"code\\": \\"1\\",\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'ModifyRankingModelTemplate' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-templates/{templateId}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18707', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '117144', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], - ], - [ - 'name' => 'strategyUsed', - 'in' => 'query', - 'schema' => [ - 'description' => '默认false,传入true 则使用置顶/定坑侧逻辑,但是必须在body中传入 sceneId', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - ], - [ - 'name' => 'withInvalidDetail', - 'in' => 'query', - 'schema' => [ - 'description' => '置顶/定坑侧控制返回值中是否包含InvalidDetail'."\0".', 用于 itemId:itemType 查询类型使用', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'airec-test'], ], [ - 'name' => 'page', - 'in' => 'query', - 'schema' => [ - 'description' => '页数,默认1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '1', - ], + 'name' => 'templateId', + 'in' => 'path', + 'schema' => ['title' => '排序模型模板ID', 'description' => '排序模型模板ID', 'type' => 'string', 'required' => true, 'example' => 'a-a-a'], ], [ - 'name' => 'size', - 'in' => 'query', - 'schema' => [ - 'description' => '每页数量,默认10', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '1000', - 'minimum' => '1', - 'example' => '10', - ], + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => ['description' => '配置信息', 'type' => 'object', 'required' => false, 'example' => '{}'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '结果', - 'type' => 'object', - 'properties' => [ - 'total' => [ - 'description' => '统计', - 'type' => 'object', - 'properties' => [ - 'sceneWeightItem' => [ - 'description' => '场景加权物品数量', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], - 'totalCount' => [ - 'description' => '全部数量', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '5000', - ], - 'queryCount' => [ - 'description' => '列出数量', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '3000', - ], - 'sceneRecommendItem' => [ - 'description' => '场景可推荐物品数量', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '200', - ], - 'weightItem' => [ - 'description' => '加权物品', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], - 'instanceRecommendItem' => [ - 'description' => '实例可推荐物品数量', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '200', - ], - ], - ], - 'detail' => [ - 'description' => '详细信息', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'title' => [ - 'description' => '标题', - 'type' => 'string', - 'example' => 'test', - ], - 'categoryPath' => [ - 'description' => '类目路径', - 'type' => 'string', - 'example' => '1_2', - ], - 'itemId' => [ - 'description' => 'itemId,同数据规范同字段', - 'type' => 'string', - 'example' => '123', - ], - 'itemType' => [ - 'description' => 'itemType,同数据规范同字段', - 'type' => 'string', - 'example' => 'item', - ], - 'status' => [ - 'description' => '是否可推荐', - 'type' => 'string', - 'example' => '1', - ], - 'brandId' => [ - 'description' => '品牌ID', - 'type' => 'string', - 'example' => '1', - ], - 'shopId' => [ - 'description' => '店铺ID', - 'type' => 'string', - 'example' => '1', - ], - 'pubTime' => [ - 'description' => '发布时间', - 'type' => 'string', - 'example' => '1647998107012', - ], - 'channel' => [ - 'description' => '频道', - 'type' => 'string', - 'example' => 'news', - ], - 'duration' => [ - 'description' => '持续时间', - 'type' => 'string', - 'example' => '30', - ], - 'author' => [ - 'description' => '作者', - 'type' => 'string', - 'example' => 'abc', - ], - 'expireTime' => [ - 'description' => '过期时间', - 'type' => 'string', - 'example' => '1647998107012', - ], - ], - ], - ], - ], - ], - 'requestId' => [ - 'description' => '当前请求的RequestID', - 'type' => 'string', - 'example' => '6839AE7C-A984-48C1-AC17-331BAC6D97BC', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求的RequestID', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'result' => ['description' => '模型信息', '$ref' => '#/components/schemas/RankingModelTemplate'], ], ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'title' => '修改排序模型模板', + 'summary' => '修改排序模型模板。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyRankingModelTemplate'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyRankingModelTemplate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"total\\": {\\n \\"sceneWeightItem\\": 10,\\n \\"totalCount\\": 5000,\\n \\"queryCount\\": 3000,\\n \\"sceneRecommendItem\\": 200,\\n \\"weightItem\\": 10,\\n \\"instanceRecommendItem\\": 200\\n },\\n \\"detail\\": [\\n {\\n \\"title\\": \\"test\\",\\n \\"categoryPath\\": \\"1_2\\",\\n \\"itemId\\": \\"123\\",\\n \\"itemType\\": \\"item\\",\\n \\"status\\": \\"1\\",\\n \\"brandId\\": \\"1\\",\\n \\"shopId\\": \\"1\\",\\n \\"pubTime\\": \\"1647998107012\\",\\n \\"channel\\": \\"news\\",\\n \\"duration\\": \\"30\\",\\n \\"author\\": \\"abc\\",\\n \\"expireTime\\": \\"1647998107012\\"\\n }\\n ]\\n },\\n \\"requestId\\": \\"6839AE7C-A984-48C1-AC17-331BAC6D97BC\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '获取列表项', - 'summary' => '查询实例物品池。', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": {\\n \\"Status\\": \\"TRAINING_SUCCESS\\",\\n \\"Meta\\": {\\n \\"Authorized\\": true,\\n \\"AutoRun\\": true,\\n \\"AutoRunTime\\": 1,\\n \\"AutoRunType\\": \\"DAY\\",\\n \\"Conf\\": \\"train_config {}\\",\\n \\"LastEditTime\\": \\"2021-12-06T03:01:41.217Z\\",\\n \\"OssArn\\": \\"acs:ram::111:role/aliyunodpspaidefaultrole\\",\\n \\"OssBucket\\": \\"bucket-a\\",\\n \\"OssEndpoint\\": \\"oss-cn-beijing.aliyuncs.com\\",\\n \\"SampleId\\": \\"1111\\",\\n \\"SampleName\\": \\"样本1\\",\\n \\"SampleTimeWindow\\": 3,\\n \\"SampleTimeWindowType\\": \\"DAY\\",\\n \\"Type\\": \\"MULTI_TOWER\\",\\n \\"Name\\": \\"模型A\\",\\n \\"DeployStatus\\": \\"NOT_DEPLOYED\\",\\n \\"CanDeploy\\": true\\n },\\n \\"VersionNum\\": 3,\\n \\"TemplateId\\": \\"a-a-a\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', ], - 'ListLogs' => [ - 'path' => '/v2/openapi/instances/{instanceId}/logs', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ModifyRankingSystem' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18708', - 'abilityTreeNodes' => [ - 'FEATUREairecY1ADIM', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '117165', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], - ], - [ - 'name' => 'queryParams', - 'in' => 'query', - 'schema' => [ - 'description' => '查询条件:'."\n" - .'key1:value1;key2:value;'."\n" - .'例如:requestId:xxxx;requestUri:xxx;', - 'type' => 'string', - 'required' => false, - 'example' => 'key1:value1;key2:value', - ], - ], - [ - 'name' => 'startTime', - 'in' => 'query', - 'schema' => [ - 'description' => '开始时间(秒级时间戳)', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'docRequired' => true, - 'maximum' => '2147483647', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], - ], - [ - 'name' => 'endTime', - 'in' => 'query', - 'schema' => [ - 'description' => '结束时间 (秒级时间戳)'."\n" - ."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'docRequired' => true, - 'maximum' => '2147483647', - 'minimum' => '1565193600', - 'example' => '1678155766', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 'airec-test'], ], [ - 'name' => 'page', - 'in' => 'query', - 'schema' => [ - 'description' => '页数,默认1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '1', - ], + 'name' => 'name', + 'in' => 'path', + 'schema' => ['title' => '排序服务', 'description' => '排序服务', 'type' => 'string', 'required' => true, 'example' => '"service-a'], ], [ - 'name' => 'size', - 'in' => 'query', - 'schema' => [ - 'description' => '指定每页展示条数,默认为10,限制:[1-50]', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '1000', - 'minimum' => '1', - 'example' => '20', - ], + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => ['description' => '配置', 'type' => 'object', 'required' => false, 'example' => '{}'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '查询结果'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '查询结果'."\n", - 'type' => 'object', - ], - ], - 'headers' => [ - 'description' => 'headers info', - 'type' => 'object', - 'properties' => [ - 'X-Total-Count' => [ - 'description' => '查询总量'."\n" - ."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '12', - ], - ], - ], - 'code' => [ - 'description' => '错误码', - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '请求id'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求的RequestID', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'result' => ['description' => '修改后的排序服务实体', '$ref' => '#/components/schemas/RankingSystem'], ], ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'title' => '修改排序服务', + 'summary' => '修改排序服务。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyRankingSystem'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyRankingSystem', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n ],\\n \\"headers\\": {\\n \\"X-Total-Count\\": 12\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', - 'title' => '获取日志列表', - 'summary' => '该接口用于获取指定实例的日志信息(近七日内)。', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": {\\n \\"Meta\\": {\\n \\"AutoDeploy\\": true,\\n \\"AutoDeployAuc\\": \\"0.3\\",\\n \\"Conf\\": \\"\\",\\n \\"PredictEngine\\": {\\n \\"ResourceId\\": \\"eas-oljkkdrggxhx7eizjd\\",\\n \\"Version\\": \\"1\\",\\n \\"ClusterId\\": \\"cn-shanghai\\"\\n },\\n \\"PredictEngineType\\": \\"EAS\\",\\n \\"ModelVersionName\\": \\"模型A_T1638964800000\\",\\n \\"FailMsg\\": \\"\\"\\n },\\n \\"ApplyStatus\\": \\"NOT_APPLIED\\",\\n \\"DeployStatus\\": \\"NOT_DEPLOYED\\",\\n \\"SceneIdList\\": [\\n 0\\n ],\\n \\"Name\\": \\"servicea\\",\\n \\"ModelTemplateId\\": \\"a-a-a\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', ], - 'ListMixCategories' => [ - 'path' => '/v2/openapi/configurations/mixCategories', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ModifyRule' => [ + 'path' => '/v2/openapi/instances/{instanceId}/rules/{ruleId}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18709', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', + 'operationType' => 'update', + 'abilityTreeCode' => '18724', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], + ], + 'parameters' => [ + [ + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], + ], + [ + 'name' => 'ruleId', + 'in' => 'path', + 'schema' => ['description' => '规则ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '13469'], ], ], - 'parameters' => [], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '返回结果', - 'type' => 'array', - 'items' => [ - 'description' => '查询结果'."\n", - 'type' => 'object', - 'properties' => [ - 'categories' => [ - 'description' => '类目', - 'type' => 'array', - 'items' => [ - 'description' => '类目', - 'type' => 'integer', - 'format' => 'int64', - 'example' => 'aaaa', - ], - ], - ], + 'description' => '返回详情结果。', + 'type' => 'object', + 'properties' => [ + 'ruleId' => ['description' => '规则ID。', 'type' => 'string', 'example' => '98493A14-D619-4E88-9F8D-108939817F9F'], + 'ruleMeta' => ['description' => '规则的具体信息。', 'type' => 'object', 'example' => 'xxx'], + 'gmtModified' => ['description' => '最后修改时间。', 'type' => 'string', 'example' => '2020-04-27T06:38:28.000Z'], + 'status' => ['description' => '规则状态:'."\n" + .'**DRAFT:** 草稿状态'."\n" + ."\n" + .'**EFFECTIVE:** 生效状态'."\n" + ."\n" + .'**PUBLISHING:**发布中状态'."\n" + ."\n" + .'**INEFFECTIVE:** 已失效状态'."\n" + ."\n" + .'**FAILED:**未生效状态', 'type' => 'string', 'example' => 'EFFECTIVE'], + 'gmtCreate' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2020-04-27T06:38:28.000Z'], ], ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => 'ED093A1D-1C56-57A2-B078-3C518F632F03', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'Success', - ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情。', 'type' => 'string', 'example' => 'An internal server error occurred'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"categories\\": [\\n 0\\n ]\\n }\\n ],\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"ED093A1D-1C56-57A2-B078-3C518F632F03\\",\\n \\"message\\": \\"Success\\"\\n}","type":"json"}]', - 'title' => 'ListMixCategories', - 'summary' => '查询类目列表。', - ], - 'ListOfflineStorages' => [ - 'summary' => '查询离线存储。', - 'path' => '/v2/openapi/instances/[instanceId]/offlineStorages', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => 'ModifyRule', + 'summary' => '修改规则。', + 'requestParamsDescription' => '```json'."\n" + .'// 修改选品规则'."\n" + .'{ "type":"SelectionRule",'."\n" + .' "ruleMeta":{'."\n" + .' "sceneId":"123",'."\n" + .' "ruleMetaType":"SELECTION",'."\n" + .' "selectionParams":['."\n" + .' {'."\n" + .' "selectType":"QUERY_ITEM_TYPE",'."\n" + .' "selectionOperation":"QUERY_VALUE_IN",'."\n" + .' "selectValue":"[\\"atrical\\",\\"image\\"]"'."\n" + .' }'."\n" + .' ]'."\n" + .' }'."\n" + .'}'."\n" + .'// 修改运营规则'."\n" + .'{'."\n" + .' "type":"OperationRule",'."\n" + .' "ruleMeta":{'."\n" + .' "ruleMetaType":"OPERATION",'."\n" + .' "sceneId":"123",'."\n" + .' "operationParams":['."\n" + .' {'."\n" + .' "operationType":"MIX",'."\n" + .' "settings":['."\n" + .' {'."\n" + .' "name":"image",'."\n" + .' "value":10'."\n" + .' }'."\n" + .' ]'."\n" + .' },'."\n" + .' {'."\n" + .' "operationType":"DIVERSIFY",'."\n" + .' "status":true,'."\n" + .' "diversifyType":"TYPE_SHOP",'."\n" + .' "categoryIndex":1,'."\n" + .' "window":2'."\n" + .' },'."\n" + .' {'."\n" + .' "operationType":"EXPOSURE",'."\n" + .' "exposureSettings":['."\n" + .' {'."\n" + .' "durationSeconds":1234000,'."\n" + .' "status":true,'."\n" + .' "exposureType":"TYPE_EXPOSE",'."\n" + .' "scenarioBased":true'."\n" + .' },'."\n" + .' {'."\n" + .' "durationSeconds":123400,'."\n" + .' "status":true,'."\n" + .' "exposureType":"TYPE_CLICK",'."\n" + .' "scenarioBased":true'."\n" + .' },'."\n" + .' {'."\n" + .' "durationSeconds":3000,'."\n" + .' "status":true,'."\n" + .' "exposureType":"TYPE_LOOP",'."\n" + .' "scenarioBased":false'."\n" + .' }'."\n" + .' ]'."\n" + .' }'."\n" + .' ]'."\n" + .' }'."\n" + .'}'."\n" + .'```', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyRule', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"ruleId\\": \\"98493A14-D619-4E88-9F8D-108939817F9F\\",\\n \\"ruleMeta\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"gmtModified\\": \\"2020-04-27T06:38:28.000Z\\",\\n \\"status\\": \\"EFFECTIVE\\",\\n \\"gmtCreate\\": \\"2020-04-27T06:38:28.000Z\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'ModifySample' => [ + 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '20401', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '117127', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'instanceId', - 'description' => 'instanceId', - 'type' => 'string', - 'format' => 'byte', - 'required' => true, - 'example' => 'airec-cn-xxx', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-shdjkgkeog'], + ], + [ + 'name' => 'sampleId', + 'in' => 'path', + 'schema' => ['title' => '样本id', 'description' => '样本ID。', 'type' => 'string', 'required' => true, 'example' => 'Sample1'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => ['description' => '请求Body参数。', 'type' => 'object', 'required' => false, 'example' => '{}'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'format' => 'byte', - 'example' => '6839AE7C-A984-48C1-AC17-331BAC6D97BC', - ], - 'result' => [ - 'title' => '结果列表', - 'description' => '结果列表', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'tableName' => [ - 'title' => '表名称', - 'description' => '表名称', - 'type' => 'string', - 'format' => 'byte', - 'example' => 'item', - ], - 'meta' => [ - 'title' => '元信息', - 'description' => '元信息', - 'type' => 'object', - ], - ], - ], - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['description' => '返回结果详情。', '$ref' => '#/components/schemas/Sample'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"6839AE7C-A984-48C1-AC17-331BAC6D97BC\\",\\n \\"result\\": [\\n {\\n \\"tableName\\": \\"item\\",\\n \\"meta\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ]\\n}","type":"json"}]', - 'title' => '查询离线存储', - ], - 'ListRuleConditions' => [ - 'path' => '/v2/openapi/instances/{instanceId}/rule-conditions', - 'methods' => [ - 'get', + 'title' => '修改样本配置', + 'summary' => '修改样本配置。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifySample'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifySample', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"Status\\": \\"Formatted\\",\\n \\"Meta\\": {\\n \\"AutoUpdate\\": true,\\n \\"AutoUpdateFrequency\\": 1673341140,\\n \\"ClonedId\\": \\"1638877561147\\",\\n \\"Config\\": {\\n \\"BhvTableSourceIds\\": [\\n \\"\\"\\n ],\\n \\"FeatureConfig\\": {\\n \\"ItemFeatures\\": \\"deress,red\\",\\n \\"UserFeatures\\": \\"man\\"\\n },\\n \\"LabelLogic\\": {\\n \\"BhvTimeWindow\\": 86400,\\n \\"NegativeBhvTypes\\": \\"click,expose\\",\\n \\"PositiveBhvTypes\\": \\"like\\"\\n },\\n \\"WeightLogicList\\": [\\n {\\n \\"Bhv\\": \\"click\\",\\n \\"Weight\\": \\"1\\"\\n }\\n ]\\n },\\n \\"ExtendParams\\": {\\n \\"LatestTaskStatus\\": 1,\\n \\"SampleCount\\": 0\\n },\\n \\"MetaType\\": \\"Sample\\",\\n \\"Name\\": \\"12345\\",\\n \\"StoreConfig\\": \\"projectName.tableName\\",\\n \\"Type\\": \\"System\\"\\n },\\n \\"GmtCreate\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"GmtModified\\": \\"2021-12-07T12:28:52.000Z\\",\\n \\"SampleId\\": \\"1638880131873\\"\\n }\\n}","type":"json"}]', + ], + 'ModifyScene' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18711', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '18725', + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], + ], + [ + 'name' => 'sceneId', + 'in' => 'path', + 'schema' => ['description' => '场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '返回详情结果', - 'type' => 'array', - 'items' => [ - 'description' => '返回详情结果', - 'type' => 'object', - 'properties' => [ - 'selectType' => [ - 'description' => '选品规则过滤条件类型', - 'type' => 'string', - 'example' => 'QUERY_ITEM_TYPE', - ], - 'selectValue' => [ - 'description' => '选品规则过滤条件具体数值'."\n", - 'type' => 'string', - 'example' => '[\\"image\\",\\"article\\",\\"video\\",\\"shortvideo\\",\\"item\\",\\"recipe\\",\\"audio\\"]', - ], - 'selectionOperation' => [ - 'description' => '选品规则过滤条件操作'."\n", - 'type' => 'string', - 'example' => 'QUERY_VALUE_IN', - ], - ], + 'description' => '返回结果详情。', + 'type' => 'object', + 'properties' => [ + 'sceneId' => ['description' => '场景ID。', 'type' => 'string', 'example' => 'test'], + 'gmtModified' => ['description' => '最后修改时间。', 'type' => 'string', 'example' => '2020-04-23T06:08:48.000Z'], + 'status' => ['description' => '场景状态:'."\n" + .'- **DRAFT**:唤醒,重新发布'."\n" + .'- **PUBLISHING** :发布'."\n" + .'- **RUNNING**:运行中'."\n" + .'- **FAILED**:发布失败'."\n" + .'- **FROZEN** :冻结', 'type' => 'string', 'example' => 'DRAFT'], + 'gmtCreate' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2020-04-23T06:08:48.000Z'], ], ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '请求id'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'success', - ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情。', 'type' => 'string', 'example' => 'An internal server error occurred'], ], ], ], @@ -17018,102 +11484,124 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"selectType\\": \\"QUERY_ITEM_TYPE\\",\\n \\"selectValue\\": \\"[\\\\\\\\\\\\\\"image\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"article\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"video\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"shortvideo\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"item\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"recipe\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"audio\\\\\\\\\\\\\\"]\\",\\n \\"selectionOperation\\": \\"QUERY_VALUE_IN\\"\\n }\\n ],\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', - 'title' => '查询实例具体的选品规则', - 'summary' => '查询实例具体的选品规则.。', - ], - 'ListRuleTasks' => [ - 'path' => '/v2/openapi/instances/{instanceId}/rule-tasks', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '修改场景信息', + 'summary' => '修改场景信息。', + 'description' => '如需使用场景管理功能,不建议使用API进行操作。请使用控制台中“场景管理”功能,使用详情见官方文档<props="china">:[通过选投策略配置,快速搭建推荐场景](https://help.aliyun.com/document_detail/171790.html?spm=a2c4g.11186623.6.677.1f6a3483tNyo2M)</props>', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyScene', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"sceneId\\": \\"test\\",\\n \\"gmtModified\\": \\"2020-04-23T06:08:48.000Z\\",\\n \\"status\\": \\"DRAFT\\",\\n \\"gmtCreate\\": \\"2020-04-23T06:08:48.000Z\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<Result>\\n <Status>RUNNING</Status>\\n <GmtCreate>2020-04-23T06:08:48.000Z</GmtCreate>\\n <GmtModified>2020-04-23T10:04:24.000Z</GmtModified>\\n <SceneId>123</SceneId>\\n <SceneMeta>\\n <SceneName>xxx</SceneName>\\n <Description>xxx</Description>\\n </SceneMeta>\\n</Result>\\n<RequestId>E6535761-3448-4D6E-A791-477531763F29</RequestId>","errorExample":""}]', + ], + 'OfflineFilteringAlgorithm' => [ + 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/actions/offline', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18713', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '18726', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例id', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'sceneId', - 'in' => 'query', - 'schema' => [ - 'description' => '场景id', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'testid', - ], + 'name' => 'algorithmId', + 'in' => 'path', + 'schema' => ['description' => '召回算法ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '返回详情结果'."\n", + 'description' => '召回表信息。', 'type' => 'object', 'properties' => [ - 'finishTime' => [ - 'description' => '完成时间', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1588240081', - ], - 'finishRate' => [ - 'description' => '完成率', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '50', + 'gmtModified' => ['description' => '最后更新时间,单位为UTC时间。', 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'status' => ['description' => '表示单签召回表的状态。 '."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Draft**:草稿。'."\n" + ."\n" + .'- **Running**:运行中。'."\n" + ."\n" + .'- **Offline**:已下线。'."\n" + ."\n" + .'- **Deleted**:已删除。', 'type' => 'string', 'example' => 'Init'], + 'gmtCreate' => ['description' => '创建时间的UTC时间。', 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z'], + 'algorithmId' => ['description' => '指定的召回ID。', 'type' => 'string', 'example' => 'abc'], + 'meta' => [ + 'description' => 'Meta源数据。', + 'type' => 'object', + 'properties' => [ + 'taskId' => ['description' => '任务ID。', 'type' => 'string', 'example' => 'taskId'], + 'metaType' => ['description' => '算法类型,当前只支持ODPS。', 'type' => 'string', 'example' => 'metaType'], + 'type' => ['description' => '数据源类型,当前只支持ODPS。', 'type' => 'string', 'example' => 'ODPS'], + 'extInfo' => [ + 'description' => '召回表类型包含内容。', + 'type' => 'object', + 'properties' => [ + 'kvSeparator' => ['description' => 'kv分隔符。', 'type' => 'string', 'example' => ':'], + 'itemSeparator' => ['description' => 'Item分隔符。', 'type' => 'string', 'example' => ','], + ], + ], + 'category' => ['description' => '召回类别。', 'type' => 'string', 'example' => '1_2'], + 'threshold' => [ + 'description' => 'Table的阈值信息。', + 'type' => 'object', + 'properties' => [ + 'sourceDataSizeThreshold' => ['description' => '源数据大小波动阈值。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'sourceDataRecordThreshold' => ['description' => '源数据条目数波动阈值。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'indexSizeThreshold' => ['description' => '索引大小波动阈值。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'indexLossThreshold' => ['description' => '索引大小波动阈值。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + ], + ], + 'tableName' => ['description' => 'ODPS召回表名称。', 'type' => 'string', 'example' => 'test_table'], + 'clusterId' => ['description' => '集群ID。', 'type' => 'string', 'example' => '244'], + 'cron' => ['description' => '定时调度任务Cron。', 'type' => 'string', 'example' => '* * 24 7 0'], + 'description' => ['description' => '描述。', 'type' => 'string', 'example' => 'test'], + 'projectName' => ['description' => 'ODPS中的ProjectName。', 'type' => 'string', 'example' => 'test'], + 'algorithmName' => ['description' => '算法名称。', 'type' => 'string', 'example' => 'test'], + 'cronEnabled' => ['description' => '是否开启定时任务。', 'type' => 'boolean', 'example' => 'true'], + ], ], ], ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求id'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3'], ], ], ], @@ -17121,349 +11609,172 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"finishTime\\": 1588240081,\\n \\"finishRate\\": 50\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>B352FBD9-4643-441E-80ED-699D47D7B6A3</RequestId>\\n<Result>\\n <FinishRate>50</FinishRate>\\n <FinishTime>1588240081</FinishTime>\\n</Result>","errorExample":""}]', - 'title' => '查询规则的任务状态', - 'summary' => '查询规则的任务状态。', - ], - 'ListSampleFormatConfigs' => [ - 'summary' => '获取样本格式化配置列表。', - 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}/format-configs', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '下线召回表', + 'summary' => '下线召回表。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:OfflineFilteringAlgorithm', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"gmtModified\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"status\\": \\"Init\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"algorithmId\\": \\"abc\\",\\n \\"meta\\": {\\n \\"taskId\\": \\"taskId\\",\\n \\"metaType\\": \\"metaType\\",\\n \\"type\\": \\"ODPS\\",\\n \\"extInfo\\": {\\n \\"kvSeparator\\": \\":\\",\\n \\"itemSeparator\\": \\",\\"\\n },\\n \\"category\\": \\"1_2\\",\\n \\"threshold\\": {\\n \\"sourceDataSizeThreshold\\": 1,\\n \\"sourceDataRecordThreshold\\": 1,\\n \\"indexSizeThreshold\\": 1,\\n \\"indexLossThreshold\\": 1\\n },\\n \\"tableName\\": \\"test_table\\",\\n \\"clusterId\\": \\"244\\",\\n \\"cron\\": \\"* * 24 7 0\\",\\n \\"description\\": \\"test\\",\\n \\"projectName\\": \\"test\\",\\n \\"algorithmName\\": \\"test\\",\\n \\"cronEnabled\\": true\\n }\\n },\\n \\"requestId\\": \\"7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'PublishFlowControlTask' => [ + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/actions/publish', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '117133', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '154377', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - 'title' => 'A short description of struct', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'sampleId', + 'name' => 'taskId', 'in' => 'path', - 'schema' => [ - 'description' => '样本id', - 'type' => 'string', - 'required' => true, - 'example' => '123', - 'title' => '样本id', - ], + 'schema' => ['description' => '流量调控任务ID。', 'type' => 'string', 'required' => false, 'example' => '1666669577221'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => 'EDF43C1F-99E4-431F-A7C0-8B260A5A792E', - 'title' => 'Id of the request', - ], - 'result' => [ - 'description' => '格式化配置列表', - 'type' => 'object', - 'example' => 'xxx', - 'title' => 'result', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'result' => ['description' => '返回参数。', 'type' => 'boolean', 'example' => 'true'], ], - 'title' => 'Schema of Response', + ], + ], + 500 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => ''], + 'code' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"requestId\\": \\"EDF43C1F-99E4-431F-A7C0-8B260A5A792E\\"\\n}","errorExample":""},{"type":"xml","example":"<result>\\n <meta>\\n <metaType>SampleFormatConfig</metaType>\\n <sampleId>111</sampleId>\\n <config>{\\"features\\":[{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":100000.0,\\"expression\\":\\"user:user_id\\",\\"feature_name\\":\\"user_id\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"user\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":100.0,\\"expression\\":\\"user:cms_segid\\",\\"feature_name\\":\\"cms_segid\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"user\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":100.0,\\"expression\\":\\"user:cms_group_id\\",\\"feature_name\\":\\"cms_group_id\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"user\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":10.0,\\"expression\\":\\"user:age_level\\",\\"feature_name\\":\\"age_level\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"user\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":10.0,\\"expression\\":\\"user:pvalue_level\\",\\"feature_name\\":\\"pvalue_level\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"user\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":10.0,\\"expression\\":\\"user:shopping_level\\",\\"feature_name\\":\\"shopping_level\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"user\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":10.0,\\"expression\\":\\"user:occupation\\",\\"feature_name\\":\\"occupation\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"user\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":10.0,\\"expression\\":\\"user:new_user_class_level\\",\\"feature_name\\":\\"new_user_class_level\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"user\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":100000.0,\\"expression\\":\\"item:adgroup_id\\",\\"feature_name\\":\\"adgroup_id\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"item\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":100000.0,\\"expression\\":\\"item:cate_id\\",\\"feature_name\\":\\"cate_id\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"item\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":100000.0,\\"expression\\":\\"item:campaign_id\\",\\"feature_name\\":\\"campaign_id\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"item\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":100000.0,\\"expression\\":\\"item:customer\\",\\"feature_name\\":\\"customer\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"item\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":100000.0,\\"expression\\":\\"item:brand\\",\\"feature_name\\":\\"brand\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"item\\"},{\\"feature_type\\":\\"raw_feature\\",\\"value_type\\":\\"Integer\\",\\"expression\\":\\"item:price\\",\\"feature_name\\":\\"price\\",\\"combiner\\":\\"mean\\",\\"group\\":\\"item\\"},{\\"feature_type\\":\\"id_feature\\",\\"value_type\\":\\"String\\",\\"hash_bucket_size\\":100000.0,\\"expression\\":\\"item:pid\\",\\"feature_name\\":\\"pid\\",\\"embedding_dim\\":16.0,\\"combiner\\":\\"mean\\",\\"group\\":\\"item\\"},{\\"feature_type\\":\\"id_feature\\",\\"hash_bucket_size\\":100000.0,\\"expression\\":\\"user:tag_category_list\\",\\"feature_name\\":\\"user_tag_cate\\",\\"group\\":\\"user\\",\\"is_multi\\":true},{\\"feature_type\\":\\"combo_feature\\",\\"hash_bucket_size\\":10.0,\\"expression\\":[\\"user:user_id\\",\\"user:occupation\\"],\\"feature_name\\":\\"combo__user_id_occupation\\",\\"embedding_dim\\":16.0,\\"group\\":\\"combo\\"},{\\"feature_type\\":\\"combo_feature\\",\\"hash_bucket_size\\":10.0,\\"expression\\":[\\"user:age_level\\",\\"item:customer\\"],\\"feature_name\\":\\"combo__age_level_customer\\",\\"embedding_dim\\":16.0,\\"group\\":\\"combo\\"},{\\"feature_type\\":\\"combo_feature\\",\\"hash_bucket_size\\":10.0,\\"expression\\":[\\"user:pvalue_level\\",\\"item:brand\\"],\\"feature_name\\":\\"combo__pvalue_level_brand\\",\\"embedding_dim\\":16.0,\\"group\\":\\"combo\\"}]}</config>\\n </meta>\\n <status/>\\n <gmtCreate>2021-12-07T08:58:19.000Z</gmtCreate>\\n <gmtModified>2021-12-07T08:58:19.000Z</gmtModified>\\n <sampleFormatConfigId>99D369F6-0A73-4247-9E9F-F693A16CD6AC</sampleFormatConfigId>\\n</result>\\n<requestId>1AEB0EBA-07EF-4C18-85FD-DC93B7A07DA2</requestId>","errorExample":""}]', - 'title' => '获取样本格式化配置列表', - ], - 'ListSceneItems' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/items', - 'methods' => [ - 'get', + 'title' => '发布流量调控任务', + 'summary' => '发布流量调控任务。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PublishFlowControlTask'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:PublishFlowControlTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": true\\n}","errorExample":""},{"type":"xml","example":"<PublishFlowControlTaskResponse>\\n <requestId>8F81A922-6C81-46D6-B78C-CC35E16B1691</requestId>\\n <result>true</result>\\n</PublishFlowControlTaskResponse>","errorExample":""}]', + ], + 'PublishRule' => [ + 'path' => '/v2/openapi/instances/{instanceId}/rules/{ruleId}/actions/publish', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18714', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - 'FEATUREairec5G3YBA', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '18727', + 'abilityTreeNodes' => ['FEATUREairecG8RBMT'], ], 'parameters' => [ [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'description' => '实例id'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], - ], - [ - 'name' => 'sceneId', + 'name' => 'ruleId', 'in' => 'path', - 'schema' => [ - 'description' => '场景id'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'testid', - ], - ], - [ - 'name' => 'operationRuleId', - 'in' => 'query', - 'schema' => [ - 'description' => '运营规则id'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '规则ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '98493A14-D619-4E88-9F8D-108939817F9F'], ], [ - 'name' => 'selectionRuleId', - 'in' => 'query', - 'schema' => [ - 'description' => '选品规则id'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1', - ], - ], - [ - 'name' => 'page', - 'in' => 'query', - 'schema' => [ - 'description' => '指定页码,默认为:1'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '1', - ], - ], - [ - 'name' => 'size', + 'name' => 'ruleType', 'in' => 'query', - 'schema' => [ - 'description' => '指定每页展示条数,默认为10,限制:[1-50]'."\n" - ."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '128', - 'minimum' => '0', - 'example' => '10', - ], + 'schema' => ['description' => '规则类型:'."\n" + .'**selection:**选品规则'."\n" + ."\n" + .'**operation:**运营规则'."\n" + ."\n" + .'**top:**置顶规则'."\n" + ."\n" + .'**fixed:**定坑规则', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'selection'], ], [ - 'name' => 'previewType', + 'name' => 'sceneId', 'in' => 'query', - 'schema' => [ - 'description' => '预览类型:'."\n" - ."\n" - .'PREVIEW_ITEM 单独预览选品规则预览结果'."\n" - ."\n" - .'PREVIEW_QUERY 预览整体配置结果', - 'type' => 'string', - 'required' => false, - 'example' => 'PREVIEW_ITEM', - ], + 'schema' => ['description' => '场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test'], ], [ - 'name' => 'queryCount', - 'in' => 'query', - 'schema' => [ - 'description' => '查询数量'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '20', - ], + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '返回详情结果'."\n" - ."\n", + 'description' => '返回结果详情。', 'type' => 'object', 'properties' => [ - 'total' => [ - 'description' => '统计', - 'type' => 'object', - 'properties' => [ - 'totalCount' => [ - 'description' => '实例中item总数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1000', - ], - 'sceneWeightItem' => [ - 'description' => '当前场景加权的item数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1000', - ], - 'sceneRecommendItem' => [ - 'description' => '当前场景下可推荐的item数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1000', - ], - 'weightItem' => [ - 'description' => '实例中加权的item数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1000', - ], - 'instanceRecommendItem' => [ - 'description' => '当前实例可推荐的item数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1000', - ], - ], - ], - 'detail' => [ - 'description' => '详情', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'title' => [ - 'description' => '标题', - 'type' => 'string', - 'example' => 'title', - ], - 'categoryPath' => [ - 'description' => '类目路径', - 'type' => 'string', - 'example' => '12_34', - ], - 'itemId' => [ - 'description' => 'item_id', - 'type' => 'string', - 'example' => '123', - ], - 'itemType' => [ - 'description' => 'item_type', - 'type' => 'string', - 'example' => 'video', - ], - 'status' => [ - 'description' => '是否可推荐,1为可推荐,0为不可推荐', - 'type' => 'string', - 'example' => '1', - ], - 'brandId' => [ - 'description' => '品牌id', - 'type' => 'string', - 'example' => '123', - ], - 'shopId' => [ - 'description' => '店铺id', - 'type' => 'string', - 'example' => '123', - ], - 'pubTime' => [ - 'description' => '发布时间', - 'type' => 'string', - 'example' => '1612687809', - ], - 'channel' => [ - 'description' => '频道', - 'type' => 'string', - 'example' => '娱乐', - ], - 'duration' => [ - 'description' => '停留时长', - 'type' => 'string', - 'example' => '300', - ], - 'author' => [ - 'description' => '作者', - 'type' => 'string', - 'example' => 'zhangsan', - ], - 'expireTime' => [ - 'description' => '失效时间', - 'type' => 'string', - 'example' => '1612687809', - ], - ], - ], - ], + 'ruleId' => ['description' => '规则ID。', 'type' => 'string', 'example' => '98493A14-D619-4E88-9F8D-108939817F9F'], ], ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求id'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情。', 'type' => 'string', 'example' => 'An internal server error occurred'], ], ], ], @@ -17471,56 +11782,58 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"total\\": {\\n \\"totalCount\\": 1000,\\n \\"sceneWeightItem\\": 1000,\\n \\"sceneRecommendItem\\": 1000,\\n \\"weightItem\\": 1000,\\n \\"instanceRecommendItem\\": 1000\\n },\\n \\"detail\\": [\\n {\\n \\"title\\": \\"title\\",\\n \\"categoryPath\\": \\"12_34\\",\\n \\"itemId\\": \\"123\\",\\n \\"itemType\\": \\"video\\",\\n \\"status\\": \\"1\\",\\n \\"brandId\\": \\"123\\",\\n \\"shopId\\": \\"123\\",\\n \\"pubTime\\": \\"1612687809\\",\\n \\"channel\\": \\"娱乐\\",\\n \\"duration\\": \\"300\\",\\n \\"author\\": \\"zhangsan\\",\\n \\"expireTime\\": \\"1612687809\\"\\n }\\n ]\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<Result>\\n <Total>\\n <InstanceRecommendItem>200</InstanceRecommendItem>\\n <SceneRecommendItem>50</SceneRecommendItem>\\n <WeightItem>10</WeightItem>\\n <SceneWeightItem>2217</SceneWeightItem>\\n <TotalCount>5000</TotalCount>\\n </Total>\\n <Detail>\\n <ItemId>15755228600501_15755228759463</ItemId>\\n <ItemType>item</ItemType>\\n <ExpireTime/>\\n <CategoryPath>1024_10003</CategoryPath>\\n <PubTime>1575523106</PubTime>\\n <BrandId>15692083252170</BrandId>\\n <Weight>1</Weight>\\n <ShopId/>\\n <Title>澜笛若慕洁面乳</Title>\\n <Status>1</Status>\\n <Duration>123123</Duration>\\n <Author>123123</Author>\\n <Channel>123123</Channel>\\n </Detail>\\n</Result>\\n<RequestId>6839AE7C-A984-48C1-AC17-331BAC6D97BC</RequestId>","errorExample":""}]', - 'title' => '获取预览结果', - 'summary' => '获取预览结果。', - 'description' => '如需使用场景管理功能,不建议使用API进行操作。请使用控制台中“场景管理”功能,使用详情见官方文档<props="china">:[通过选投策略配置,快速搭建推荐场景](https://help.aliyun.com/document_detail/171790.html?spm=a2c4g.11186623.6.677.1f6a3483tNyo2M)</props>', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ListSceneParameters' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dashboard/scene-parameters', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '发布规则', + 'summary' => '发布一个规则。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:PublishRule', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"ruleId\\": \\"98493A14-D619-4E88-9F8D-108939817F9F\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","type":"json"}]', + ], + 'PushDocument' => [ + 'path' => '/v2/openapi/instances/{instanceId}/tables/{tableName}/actions/bulk', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', - 'deprecated' => false, + 'operationType' => 'write', 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18715', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - 'FEATUREairec5G3YBA', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '18728', + 'abilityTreeNodes' => ['FEATUREairecY1ADIM'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => '智能推荐的实例 Id', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-test'], + ], + [ + 'name' => 'tableName', + 'in' => 'path', + 'schema' => ['description' => '行业的3张表,分别是用户表(user)、物品表(item)和行为表(behavior)', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'user'], ], ], 'responses' => [ @@ -17528,185 +11841,67 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '返回详情结果', - 'type' => 'object', - 'properties' => [ - 'traceId' => [ - 'description' => '渠道列表'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'trace_id', - 'type' => 'string', - 'example' => 'alibaba', - ], - ], - 'sceneId' => [ - 'description' => '场景列表'."\n" - ."\n", - 'type' => 'array', - 'items' => [ - 'description' => '场景ID', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '当前请求的RequestID。'."\n", - 'type' => 'string', - 'example' => 'A40E64C6-9E21-5E9C-B333-DD920AE5AB4A', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'success', - ], + 'result' => ['description' => 'true/false', 'type' => 'boolean', 'example' => 'true'], + 'code' => ['description' => '错误码', 'type' => 'string', 'example' => '0'], + 'requestId' => ['description' => '请求的RequestID', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"traceId\\": [\\n \\"alibaba\\"\\n ],\\n \\"sceneId\\": [\\n \\"test\\"\\n ]\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"A40E64C6-9E21-5E9C-B333-DD920AE5AB4A\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', - 'title' => '获取指定实例全量的渠道和场景信息列表', - 'summary' => '获取指定实例全量的渠道和场景信息列表。', - ], - 'ListUmengAppkeys' => [ - 'path' => '/v2/openapi/umeng/appkeys', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18717', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', + 'title' => '推送文档', + 'summary' => '向指定实例指定表推送文档。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '2000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PushDocument'], ], ], - 'parameters' => [], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'result' => [ - 'description' => '查询结果'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '返回详情结果', - 'type' => 'object', - 'properties' => [ - 'appkey' => [ - 'description' => 'appkey'."\n", - 'type' => 'string', - 'example' => '5ddcf39f57729e708b00000e', - ], - 'platform' => [ - 'description' => 'Android/ios', - 'type' => 'string', - 'example' => 'ios', - ], - 'name' => [ - 'description' => 'app名称', - 'type' => 'string', - 'example' => 'xxx', - ], - ], - ], - ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '请求的RequestID', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'success', - ], - ], - ], - ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:PushDocument', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": [\\n {\\n \\"appkey\\": \\"5ddcf39f57729e708b00000e\\",\\n \\"platform\\": \\"ios\\",\\n \\"name\\": \\"xxx\\"\\n }\\n ],\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', - 'title' => '获取友盟 appkey 列表信息', - 'summary' => '获取友盟appkey列表信息。', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": true,\\n \\"code\\": \\"0\\",\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"message\\": \\"success\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', ], - 'ListUserClusters' => [ - 'path' => '/v2/openapi/instances/{instanceId}/user-clusters', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'PushIntervention' => [ + 'path' => '/v2/openapi/instances/{instanceId}/actions/intervene', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', - 'deprecated' => false, + 'operationType' => 'write', 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18718', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '18729', + 'abilityTreeNodes' => ['FEATUREairecY1ADIM'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '指定的实例id', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-test'], ], ], 'responses' => [ @@ -17714,102 +11909,49 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '返回详情结果', - 'type' => 'array', - 'items' => [ - 'description' => '返回详情结果', - 'type' => 'object', - 'properties' => [ - 'gmtModified' => [ - 'description' => '最后修改时间的UTC时间', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'status' => [ - 'description' => '状态', - 'type' => 'string', - 'example' => '1', - ], - 'gmtCreate' => [ - 'description' => '创建时间的UTC时间', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'name' => [ - 'description' => '用户cluster名称', - 'type' => 'string', - 'example' => 'mycluster-for-airec', - ], - 'meta' => [ - 'description' => 'meta', - 'type' => 'object', - 'properties' => [ - 'metaType' => [ - 'description' => 'meta类型', - 'type' => 'string', - 'example' => 'UserCluster', - ], - 'description' => [ - 'description' => '描述信息', - 'type' => 'string', - 'example' => 'tst', - ], - ], - ], - ], - ], - ], - 'headers' => [ - 'description' => 'headers info', - 'type' => 'object', - 'properties' => [ - 'X-Total-Count' => [ - 'description' => '总数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - ], - ], - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '1E2CBBA8-C623-4FEE-BC84-9672E460CA39', - ], + 'result' => ['description' => 'result true/false', 'type' => 'boolean', 'example' => 'true'], + 'code' => ['description' => 'code', 'type' => 'string', 'example' => '1'], + 'requestId' => ['description' => '请求id', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'message' => ['description' => '返回消息', 'type' => 'string', 'example' => 'success'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"gmtModified\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"status\\": \\"1\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"name\\": \\"mycluster-for-airec\\",\\n \\"meta\\": {\\n \\"metaType\\": \\"UserCluster\\",\\n \\"description\\": \\"tst\\"\\n }\\n }\\n ],\\n \\"headers\\": {\\n \\"X-Total-Count\\": 1\\n },\\n \\"requestId\\": \\"1E2CBBA8-C623-4FEE-BC84-9672E460CA39\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '获取用户集群列表', - 'summary' => '列表显示当前的实例用户cluster。', + 'title' => 'PushIntervention', + 'summary' => '该接口用于向指定实例推送干预数据。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:PushIntervention', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": true,\\n \\"code\\": \\"1\\",\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"message\\": \\"success\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', ], 'QueryDataMessage' => [ 'path' => '/v2/openapi/instances/{instanceId}/tables/{table}/data-message', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -17820,207 +11962,110 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '18730', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], [ 'name' => 'startTime', 'in' => 'query', - 'schema' => [ - 'description' => '开始时间秒级时间戳'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], + 'schema' => ['description' => '开始时间秒级时间戳'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1586673466'], ], [ 'name' => 'endTime', 'in' => 'query', - 'schema' => [ - 'description' => '结束时间秒级时间戳', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], + 'schema' => ['description' => '结束时间秒级时间戳', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1586673466'], ], [ 'name' => 'table', 'in' => 'path', - 'schema' => [ - 'description' => '智能推荐表名(item/user)'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'item', - ], + 'schema' => ['description' => '智能推荐表名(item/user)'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'item'], ], [ 'name' => 'cmdType', 'in' => 'query', - 'schema' => [ - 'description' => 'update/delete/add 三选一'."\n" - ."\n", - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'update', - ], + 'schema' => ['description' => 'update/delete/add 三选一'."\n" + ."\n", 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'update'], ], [ 'name' => 'itemId', 'in' => 'query', - 'schema' => [ - 'description' => 'table 为 item 时必选'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '111', - ], + 'schema' => ['description' => 'table 为 item 时必选'."\n", 'type' => 'string', 'required' => false, 'example' => '111'], ], [ 'name' => 'itemType', 'in' => 'query', - 'schema' => [ - 'description' => 'table 为 item 时必选'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'video', - ], + 'schema' => ['description' => 'table 为 item 时必选'."\n", 'type' => 'string', 'required' => false, 'example' => 'video'], ], [ 'name' => 'userId', 'in' => 'query', - 'schema' => [ - 'description' => 'table 为 user 时必选'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '222', - ], + 'schema' => ['description' => 'table 为 user 时必选'."\n", 'type' => 'string', 'required' => false, 'example' => '222'], ], [ 'name' => 'userType', 'in' => 'query', - 'schema' => [ - 'description' => 'table 为 user 时必选'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'app', - ], + 'schema' => ['description' => 'table 为 user 时必选'."\n", 'type' => 'string', 'required' => false, 'example' => 'app'], ], [ 'name' => 'page', 'in' => 'query', - 'schema' => [ - 'description' => '默认为 1'."\n" - ."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '1', - ], + 'schema' => ['description' => '默认为 1'."\n" + ."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'example' => '1'], ], [ 'name' => 'size', 'in' => 'query', - 'schema' => [ - 'description' => '默认每页返回 20 条'."\n" - ."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '20', - ], + 'schema' => ['description' => '默认每页返回 20 条'."\n" + ."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'example' => '20'], ], [ 'name' => 'traceId', 'in' => 'query', - 'schema' => [ - 'description' => 'trace_id', - 'type' => 'string', - 'required' => false, - 'example' => 'Alibaba', - ], + 'schema' => ['description' => 'trace_id', 'type' => 'string', 'required' => false, 'example' => 'Alibaba'], ], [ 'name' => 'sceneId', 'in' => 'query', - 'schema' => [ - 'description' => '场景id', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], + 'schema' => ['description' => '场景id', 'type' => 'string', 'required' => false, 'example' => 'test'], ], [ 'name' => 'bhvType', 'in' => 'query', - 'schema' => [ - 'description' => ' '."\n" - .'expose 曝光'."\n" - ."\n" - .'click 点击'."\n" - ."\n" - .'like 点赞'."\n" - ."\n" - .'comment 评论'."\n" - ."\n\n" - .'collect 收藏'."\n" - ."\n" - .'stay 停留时长'."\n" - ."\n" - .'cart 加购'."\n" - ."\n" - .'buy 购买'."\n" - ."\n" - .'evaluate 评论', - 'type' => 'string', - 'required' => false, - 'example' => 'expose', - ], + 'schema' => ['description' => ' '."\n" + .'expose 曝光'."\n" + ."\n" + .'click 点击'."\n" + ."\n" + .'like 点赞'."\n" + ."\n" + .'comment 评论'."\n" + ."\n\n" + .'collect 收藏'."\n" + ."\n" + .'stay 停留时长'."\n" + ."\n" + .'cart 加购'."\n" + ."\n" + .'buy 购买'."\n" + ."\n" + .'evaluate 评论', 'type' => 'string', 'required' => false, 'example' => 'expose'], ], [ 'name' => 'messageSource', 'in' => 'query', - 'schema' => [ - 'description' => 'CONSOLE 控制台更新物品'."\n" - ."\n" - .'FEEDER SDK更新物品', - 'type' => 'string', - 'required' => false, - 'example' => 'CONSOLE', - ], + 'schema' => ['description' => 'CONSOLE 控制台更新物品'."\n" + ."\n" + .'FEEDER SDK更新物品', 'type' => 'string', 'required' => false, 'example' => 'CONSOLE'], ], [ 'name' => 'imei', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false, 'description' => ''], ], ], 'responses' => [ @@ -18028,57 +12073,53 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '查询结果'."\n", - 'type' => 'object', - 'example' => 'xxx', - ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求id'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'result' => ['description' => '查询结果'."\n", 'type' => 'object', 'example' => 'xxx'], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求id'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'An internal server error occurred'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>16B78383-2803-4964-9605-37B30C073B0E</RequestId>\\n<Result>\\n <TotalNum>20000</TotalNum>\\n <ReturnNum>1000</ReturnNum>\\n <Detail>\\n <UploadTimestamp>2019-09-09T16:00:00.000Z</UploadTimestamp>\\n <Cmd>update</Cmd>\\n <Content>\\n <ItemId>0</ItemId>\\n <ItemType>article</ItemType>\\n <Title>abc</Title>\\n </Content>\\n </Detail>\\n <Detail>\\n <UploadTimestamp>2019-09-09T16:00:00.000Z</UploadTimestamp>\\n <Cmd>add</Cmd>\\n <Content>\\n <ItemId>0</ItemId>\\n <ItemType>article</ItemType>\\n <Title>abc</Title>\\n </Content>\\n </Detail>\\n</Result>","errorExample":""}]', 'title' => '查询用户数据表中的更新消息', 'summary' => '用户数据表中的更新消息查询。', 'description' => '查询用户指定实例,指定数据表中的更新消息。', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:QueryDataMessage', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>16B78383-2803-4964-9605-37B30C073B0E</RequestId>\\n<Result>\\n <TotalNum>20000</TotalNum>\\n <ReturnNum>1000</ReturnNum>\\n <Detail>\\n <UploadTimestamp>2019-09-09T16:00:00.000Z</UploadTimestamp>\\n <Cmd>update</Cmd>\\n <Content>\\n <ItemId>0</ItemId>\\n <ItemType>article</ItemType>\\n <Title>abc</Title>\\n </Content>\\n </Detail>\\n <Detail>\\n <UploadTimestamp>2019-09-09T16:00:00.000Z</UploadTimestamp>\\n <Cmd>add</Cmd>\\n <Content>\\n <ItemId>0</ItemId>\\n <ItemType>article</ItemType>\\n <Title>abc</Title>\\n </Content>\\n </Detail>\\n</Result>","errorExample":""}]', ], 'QueryDataMessageStatistics' => [ 'path' => '/v2/openapi/instances/{instanceId}/tables/{table}/data-message-statistics', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -18089,179 +12130,96 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '18731', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], [ 'name' => 'startTime', 'in' => 'query', - 'schema' => [ - 'description' => '开始时间秒级时间戳'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '946656000', - 'example' => '1586673466', - ], + 'schema' => ['description' => '开始时间秒级时间戳'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '946656000', 'example' => '1586673466'], ], [ 'name' => 'endTime', 'in' => 'query', - 'schema' => [ - 'description' => '结束时间秒级时间戳'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '946656000', - 'example' => '1586673466', - ], + 'schema' => ['description' => '结束时间秒级时间戳'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '946656000', 'example' => '1586673466'], ], [ 'name' => 'table', 'in' => 'path', - 'schema' => [ - 'description' => '智能推荐表名(item/user)'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'item', - ], + 'schema' => ['description' => '智能推荐表名(item/user)'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'item'], ], [ 'name' => 'cmdType', 'in' => 'query', - 'schema' => [ - 'description' => 'update/delete/add 三选一'."\n", - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'update', - ], + 'schema' => ['description' => 'update/delete/add 三选一'."\n", 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'update'], ], [ 'name' => 'itemId', 'in' => 'query', - 'schema' => [ - 'description' => 'table 为 item 时必选'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '111', - ], + 'schema' => ['description' => 'table 为 item 时必选'."\n", 'type' => 'string', 'required' => false, 'example' => '111'], ], [ 'name' => 'itemType', 'in' => 'query', - 'schema' => [ - 'description' => 'table 为 item 时必选'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'video', - ], + 'schema' => ['description' => 'table 为 item 时必选'."\n", 'type' => 'string', 'required' => false, 'example' => 'video'], ], [ 'name' => 'userId', 'in' => 'query', - 'schema' => [ - 'description' => 'table 为 user 时必选'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '222', - ], + 'schema' => ['description' => 'table 为 user 时必选'."\n", 'type' => 'string', 'required' => false, 'example' => '222'], ], [ 'name' => 'userType', 'in' => 'query', - 'schema' => [ - 'description' => 'table 为 user 时必选'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'app', - ], + 'schema' => ['description' => 'table 为 user 时必选'."\n", 'type' => 'string', 'required' => false, 'example' => 'app'], ], [ 'name' => 'traceId', 'in' => 'query', - 'schema' => [ - 'description' => 'trace_id'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Alibaba', - ], + 'schema' => ['description' => 'trace_id'."\n", 'type' => 'string', 'required' => false, 'example' => 'Alibaba'], ], [ 'name' => 'sceneId', 'in' => 'query', - 'schema' => [ - 'description' => '场景id'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], + 'schema' => ['description' => '场景id'."\n", 'type' => 'string', 'required' => false, 'example' => 'test'], ], [ 'name' => 'bhvType', 'in' => 'query', - 'schema' => [ - 'description' => 'expose 曝光'."\n" - ."\n" - .'click 点击'."\n" - ."\n" - .'like 点赞'."\n" - ."\n" - .'comment 评论'."\n" - ."\n" - .'collect 收藏'."\n" - ."\n" - .'stay 停留时长'."\n" - ."\n" - .'cart 加购'."\n" - ."\n" - .'buy 购买'."\n" - ."\n" - .'evaluate 评论', - 'type' => 'string', - 'required' => false, - 'example' => 'expose ', - ], + 'schema' => ['description' => 'expose 曝光'."\n" + ."\n" + .'click 点击'."\n" + ."\n" + .'like 点赞'."\n" + ."\n" + .'comment 评论'."\n" + ."\n" + .'collect 收藏'."\n" + ."\n" + .'stay 停留时长'."\n" + ."\n" + .'cart 加购'."\n" + ."\n" + .'buy 购买'."\n" + ."\n" + .'evaluate 评论', 'type' => 'string', 'required' => false, 'example' => 'expose '], ], [ 'name' => 'messageSource', 'in' => 'query', - 'schema' => [ - 'description' => 'CONSOLE'."\n" - ."\n" - .'FEEDER', - 'type' => 'string', - 'required' => false, - 'example' => ' FEEDER', - ], + 'schema' => ['description' => 'CONSOLE'."\n" + ."\n" + .'FEEDER', 'type' => 'string', 'required' => false, 'example' => ' FEEDER'], ], [ 'name' => 'imei', 'in' => 'query', - 'schema' => [ - 'description' => '设备 imei', - 'type' => 'string', - 'required' => false, - 'example' => 'd41d8cd98f00b204e9800998ecf8427e', - ], + 'schema' => ['description' => '设备 imei', 'type' => 'string', 'required' => false, 'example' => 'd41d8cd98f00b204e9800998ecf8427e'], ], ], 'responses' => [ @@ -18269,57 +12227,53 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '查询结果'."\n", - 'type' => 'object', - 'example' => 'xxx', - ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求id'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'result' => ['description' => '查询结果'."\n", 'type' => 'object', 'example' => 'xxx'], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求id'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'An internal server error occurred'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>16B78383-2803-4964-9605-37B30C073B0E</RequestId>\\n<Result>\\n <UploadTimestamp>123456</UploadTimestamp>\\n <Number>100</Number>\\n</Result>\\n<Result>\\n <UploadTimestamp>123456</UploadTimestamp>\\n <Number>100</Number>\\n</Result>","errorExample":""}]', 'title' => '查询用户数据表中的更新消息统计数据', 'summary' => '用户数据表中的更新消息统计数据查询。', 'description' => '查询用户指定实例,指定数据表中的更新消息的统计数据。', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:QueryDataMessageStatistics', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>16B78383-2803-4964-9605-37B30C073B0E</RequestId>\\n<Result>\\n <UploadTimestamp>123456</UploadTimestamp>\\n <Number>100</Number>\\n</Result>\\n<Result>\\n <UploadTimestamp>123456</UploadTimestamp>\\n <Number>100</Number>\\n</Result>","errorExample":""}]', ], 'QueryExceptionHistory' => [ 'path' => '/v2/openapi/instances/{instanceId}/sync-reports/exception-history', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -18329,60 +12283,28 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '18732', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], [ 'name' => 'startTime', 'in' => 'query', - 'schema' => [ - 'description' => '开始时间秒级时间戳', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], + 'schema' => ['description' => '开始时间秒级时间戳', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1586673466'], ], [ 'name' => 'endTime', 'in' => 'query', - 'schema' => [ - 'description' => '结束时间秒级时间戳', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], + 'schema' => ['description' => '结束时间秒级时间戳', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1586673466'], ], [ 'name' => 'type', 'in' => 'query', - 'schema' => [ - 'description' => '必填 item|behavior|user', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'user', - ], + 'schema' => ['description' => '必填 item|behavior|user', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'user'], ], ], 'responses' => [ @@ -18390,52 +12312,49 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '查询结果'."\n", - 'type' => 'object', - ], - 'code' => [ - 'description' => '错误码', - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'successful', - ], + 'result' => ['description' => '查询结果'."\n", 'type' => 'object'], + 'code' => ['description' => '错误码', 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => 'Id of the request', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'successful'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"successful\\"\\n}","type":"json"}]', 'title' => '异常数据历史分段查询', 'summary' => '异常数据历史分段查询。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:QueryExceptionHistory', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"successful\\"\\n}","type":"json"}]', ], 'QueryRawData' => [ 'path' => '/v2/openapi/instances/{instanceId}/tables/{table}/raw-data', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -18446,80 +12365,43 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '18733', - 'abilityTreeNodes' => [ - 'FEATUREairecY1ADIM', - ], + 'abilityTreeNodes' => ['FEATUREairecY1ADIM'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], [ 'name' => 'table', 'in' => 'path', - 'schema' => [ - 'description' => '智能推荐表名(item/user)', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'item', - ], + 'schema' => ['description' => '智能推荐表名(item/user)', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'item'], ], [ 'name' => 'itemId', 'in' => 'query', - 'schema' => [ - 'description' => 'table 为 item 时必选', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => '112', - ], + 'schema' => ['description' => 'table 为 item 时必选', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '112'], ], [ 'name' => 'itemType', 'in' => 'query', - 'schema' => [ - 'description' => 'table 为 item 时必选', - 'type' => 'string', - 'required' => false, - 'example' => 'video', - ], + 'schema' => ['description' => 'table 为 item 时必选', 'type' => 'string', 'required' => false, 'example' => 'video'], ], [ 'name' => 'userId', 'in' => 'query', - 'schema' => [ - 'description' => 'table 为 user 时必选', - 'type' => 'string', - 'required' => false, - 'example' => '111', - ], + 'schema' => ['description' => 'table 为 user 时必选', 'type' => 'string', 'required' => false, 'example' => '111'], ], [ 'name' => 'userType', 'in' => 'query', - 'schema' => [ - 'description' => 'table 为 user 时必选', - 'type' => 'string', - 'required' => false, - 'example' => 'app', - ], + 'schema' => ['description' => 'table 为 user 时必选', 'type' => 'string', 'required' => false, 'example' => 'app'], ], [ 'name' => 'imei', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string'], ], ], 'responses' => [ @@ -18527,58 +12409,54 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '查询结果'."\n" - ."\n", - 'type' => 'object', - 'example' => 'xxx', - ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'Message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], - 'requestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], + 'result' => ['description' => '查询结果'."\n" + ."\n", 'type' => 'object', 'example' => 'xxx'], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => 'InternalServerError'], + 'Message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'An internal server error occurred'], + 'requestId' => ['description' => '请求id', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"code\\": \\"InternalServerError\\",\\n \\"Message\\": \\"An internal server error occurred\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>16B78383-2803-4964-9605-37B30C073B0E</RequestId>\\n<Result>\\n <Detail>\\n <ItemId>1243</ItemId>\\n <ItemType>article</ItemType>\\n <SceneId>1,2,3</SceneId>\\n <Xxx>Xxx</Xxx>\\n </Detail>\\n <Messages>\\n <UploadTimestamp>2019-09-09T16:00:00.000Z</UploadTimestamp>\\n <Cmd>update</Cmd>\\n <Content>\\n <ItemId>0</ItemId>\\n <ItemType>article</ItemType>\\n <Title>abc</Title>\\n </Content>\\n </Messages>\\n <Messages>\\n <UploadTimestamp>2019-09-09T16:00:00.000Z</UploadTimestamp>\\n <Cmd>add</Cmd>\\n <Content>\\n <ItemId>0</ItemId>\\n <ItemType>article</ItemType>\\n <Title>abc</Title>\\n </Content>\\n </Messages>\\n</Result>","errorExample":""}]', 'title' => '用户数据表中的原始数据查询', 'summary' => '用户数据表中的原始数据查询。', 'description' => '对当前实例进行特定表和主键的检索,返回结果供客户确认。', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:QueryRawData', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"Message\\": \\"An internal server error occurred\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>16B78383-2803-4964-9605-37B30C073B0E</RequestId>\\n<Result>\\n <Detail>\\n <ItemId>1243</ItemId>\\n <ItemType>article</ItemType>\\n <SceneId>1,2,3</SceneId>\\n <Xxx>Xxx</Xxx>\\n </Detail>\\n <Messages>\\n <UploadTimestamp>2019-09-09T16:00:00.000Z</UploadTimestamp>\\n <Cmd>update</Cmd>\\n <Content>\\n <ItemId>0</ItemId>\\n <ItemType>article</ItemType>\\n <Title>abc</Title>\\n </Content>\\n </Messages>\\n <Messages>\\n <UploadTimestamp>2019-09-09T16:00:00.000Z</UploadTimestamp>\\n <Cmd>add</Cmd>\\n <Content>\\n <ItemId>0</ItemId>\\n <ItemType>article</ItemType>\\n <Title>abc</Title>\\n </Content>\\n </Messages>\\n</Result>","errorExample":""}]', ], 'QuerySingleAggregationReport' => [ 'path' => '/v2/openapi/instances/{instanceId}/sync-reports/single-aggregation-report', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -18588,21 +12466,13 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '18734', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], ], 'responses' => [ @@ -18610,52 +12480,49 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '查询结果'."\n", - 'type' => 'object', - ], - 'code' => [ - 'description' => '错误码', - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '当前请求的RequestID', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情', - 'type' => 'string', - 'example' => 'successful', - ], + 'result' => ['description' => '查询结果'."\n", 'type' => 'object'], + 'code' => ['description' => '错误码', 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '当前请求的RequestID', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情', 'type' => 'string', 'example' => 'successful'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"successful\\"\\n}","type":"json"}]', 'title' => '单表聚合查询', 'summary' => '单表聚合查询(数据可能有修改)。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:QuerySingleAggregationReport', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"successful\\"\\n}","type":"json"}]', ], 'QuerySingleReport' => [ 'path' => '/v2/openapi/instances/{instanceId}/sync-reports/single-report', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -18665,37 +12532,24 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '18735', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], [ 'name' => 'reportType', 'in' => 'query', - 'schema' => [ - 'description' => '必填,单表报告类型:'."\n" - .'- typeItemValidScene'."\n" - .'- typeItemTag'."\n" - .'- typeItemTagScene'."\n" - .'- typeItemWeightScene'."\n" - .'- typeItemRawScene'."\n" - .'- typeItemExpireScene', - 'type' => 'string', - 'required' => true, - 'example' => 'typeItemTagScene', - ], + 'schema' => ['description' => '必填,单表报告类型:'."\n" + .'- typeItemValidScene'."\n" + .'- typeItemTag'."\n" + .'- typeItemTagScene'."\n" + .'- typeItemWeightScene'."\n" + .'- typeItemRawScene'."\n" + .'- typeItemExpireScene', 'type' => 'string', 'required' => true, 'example' => 'typeItemTagScene'], ], ], 'responses' => [ @@ -18703,54 +12557,50 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '查询结果'."\n" - ."\n", - 'type' => 'object', - 'example' => 'xxx', - ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'result' => ['description' => '查询结果'."\n" + ."\n", 'type' => 'object', 'example' => 'xxx'], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'An internal server error occurred'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>16B78383-2803-4964-9605-37B30C073B0E</RequestId>\\n<Result>\\n <ItemScene>1_0:1</ItemScene>\\n <ItemValidCount>1</ItemValidCount>\\n</Result>\\n<Result>\\n <ItemScene>1_0:0</ItemScene>\\n <ItemValidCount>2</ItemValidCount>\\n</Result>","errorExample":""}]', 'title' => 'QuerySingleReport', 'summary' => '单表维度分析查询(类型可能会增加)。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:QuerySingleReport', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>16B78383-2803-4964-9605-37B30C073B0E</RequestId>\\n<Result>\\n <ItemScene>1_0:1</ItemScene>\\n <ItemValidCount>1</ItemValidCount>\\n</Result>\\n<Result>\\n <ItemScene>1_0:0</ItemScene>\\n <ItemValidCount>2</ItemValidCount>\\n</Result>","errorExample":""}]', ], 'QuerySyncReportAggregation' => [ 'path' => '/v2/openapi/instances/{instanceId}/sync-reports/aggregation', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -18760,49 +12610,23 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '18736', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004'."\n", - ], + 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'."\n"], ], [ 'name' => 'startTime', 'in' => 'query', - 'schema' => [ - 'description' => '开始时间秒级时间戳', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], + 'schema' => ['description' => '开始时间秒级时间戳', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1586673466'], ], [ 'name' => 'endTime', 'in' => 'query', - 'schema' => [ - 'description' => '结束时间秒级时间戳'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], + 'schema' => ['description' => '结束时间秒级时间戳'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1586673466'], ], ], 'responses' => [ @@ -18810,56 +12634,124 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '查询结果'."\n", - 'type' => 'object', - 'example' => 'xxx', - ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '请求id'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'result' => ['description' => '查询结果'."\n", 'type' => 'object', 'example' => 'xxx'], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求id'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'An internal server error occurred'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>16B78383-2803-4964-9605-37B30C073B0E</RequestId>\\n<Result>\\n <Level>normal</Level>\\n <StartTime>1566489600</StartTime>\\n <EndTime>1566658800</EndTime>\\n <Detail>\\n <Level>normal</Level>\\n <TotalCount/>\\n <Type>behavior</Type>\\n <ErrorCount/>\\n <ErrorPercent/>\\n </Detail>\\n <Detail>\\n <Level>normal</Level>\\n <TotalCount/>\\n <Type>item</Type>\\n <ErrorCount/>\\n <ErrorPercent/>\\n </Detail>\\n <Detail>\\n <Level>normal</Level>\\n <TotalCount/>\\n <Type>user</Type>\\n <ErrorCount/>\\n <ErrorPercent/>\\n </Detail>\\n</Result>","errorExample":""}]', 'title' => '查询整体数据概览', 'summary' => '查询整体数据概览。', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:QuerySyncReportAggregation', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>16B78383-2803-4964-9605-37B30C073B0E</RequestId>\\n<Result>\\n <Level>normal</Level>\\n <StartTime>1566489600</StartTime>\\n <EndTime>1566658800</EndTime>\\n <Detail>\\n <Level>normal</Level>\\n <TotalCount/>\\n <Type>behavior</Type>\\n <ErrorCount/>\\n <ErrorPercent/>\\n </Detail>\\n <Detail>\\n <Level>normal</Level>\\n <TotalCount/>\\n <Type>item</Type>\\n <ErrorCount/>\\n <ErrorPercent/>\\n </Detail>\\n <Detail>\\n <Level>normal</Level>\\n <TotalCount/>\\n <Type>user</Type>\\n <ErrorCount/>\\n <ErrorPercent/>\\n </Detail>\\n</Result>","errorExample":""}]', ], - 'ListDataSource' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dataSources', - 'methods' => [ - 'get', + 'RebuildIndex' => [ + 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/actions/rebuild', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '18737', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], + ], + 'parameters' => [ + [ + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-test'], + ], + [ + 'name' => 'algorithmId', + 'in' => 'path', + 'schema' => ['description' => '算法ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '123'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果', + 'type' => 'object', + 'properties' => [ + 'result' => ['description' => '返回结果', 'type' => 'string', 'example' => 'true'], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + ], + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', + ], + ], + ], + 'title' => '重建索引', + 'summary' => '重建索引。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:RebuildIndex', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": \\"true\\",\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","type":"json"}]', + ], + 'Recommend' => [ + 'path' => '/v2/openapi/instances/{instanceId}/actions/recommend', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -18868,22 +12760,74 @@ 'operationType' => 'read', 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18701', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'abilityTreeCode' => '18738', + 'abilityTreeNodes' => ['FEATUREairecY1ADIM'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例id。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-test001'], + ], + [ + 'name' => 'sceneId', + 'in' => 'query', + 'schema' => ['description' => '物品被投放的场景ID', 'type' => 'string', 'required' => false, 'example' => 'test'], + ], + [ + 'name' => 'userId', + 'in' => 'query', + 'schema' => ['description' => '用户唯一ID', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '123'], + ], + [ + 'name' => 'ip', + 'in' => 'query', + 'schema' => ['description' => '用户最后登录的IP', 'type' => 'string', 'required' => false, 'example' => '192.168.1.1'], + ], + [ + 'name' => 'imei', + 'in' => 'query', + 'schema' => ['description' => '设备ID', 'type' => 'string', 'required' => false, 'example' => '06e1565409c9fc4887036b974421****'], + ], + [ + 'name' => 'returnCount', + 'in' => 'query', + 'schema' => ['description' => '返回结果条数(0-50之间)', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '10'], + ], + [ + 'name' => 'items', + 'in' => 'query', + 'schema' => ['description' => '用于相关推荐的item(限于相关推荐场景使用)', 'type' => 'string', 'required' => false, 'example' => '1001'], + ], + [ + 'name' => 'serviceType', + 'in' => 'query', + 'schema' => ['description' => '略', 'type' => 'string', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'userInfo', + 'in' => 'query', + 'schema' => ['description' => '略', 'type' => 'string', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'rankOpen', + 'in' => 'query', + 'schema' => ['description' => '召回排序阶段是否根据用户ID个性化排序', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + ], + [ + 'name' => 'recType', + 'in' => 'query', + 'schema' => ['description' => '推荐服务类型', 'type' => 'string', 'required' => false, 'example' => 'gul'], + ], + [ + 'name' => 'filter', + 'in' => 'query', + 'schema' => ['description' => '推荐过滤字符串', 'type' => 'string', 'required' => false, 'example' => 'eyJqb2luIjoiYW5kIiwiZmlsdGVycyI6W3siY29uZCI6ImNvbnRhaW4iLCJmaWVsZCI6InRhZ3MiLCJ2YWx1ZSI6IuWPjOS6uiJ9XX0.'], + ], + [ + 'name' => 'strategy', + 'in' => 'query', + 'schema' => ['description' => '如果需要使用坑位策略,请求参数内新增strategy="fixedSlot",此时系统将按照坑位配置返回推荐结果', 'type' => 'string', 'required' => false, 'example' => 'fixedSlot'], ], ], 'responses' => [ @@ -18892,174 +12836,97 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '数据源信息列表'."\n", + 'description' => '返回结果', 'type' => 'array', 'items' => [ + 'description' => '返回结果', 'type' => 'object', 'properties' => [ - 'gmtModified' => [ - 'description' => '最后修改数据源的UTC时间。'."\n", - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'gmtCreate' => [ - 'description' => '创建数据源的UTC时间。'."\n", - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'tableName' => [ - 'description' => '智能推荐的实例的表名。'."\n", - 'type' => 'string', - 'example' => 'behavior', - ], - 'meta' => [ - 'description' => '数据源配置参数'."\n", - 'type' => 'object', - 'properties' => [ - 'bucketName' => [ - 'description' => 'oss数据源的bucketName信息', - 'type' => 'string', - 'example' => 'airec', - ], - 'accessKeyId' => [ - 'description' => '有访问ODPS权限的accesskey ID。'."\n", - 'type' => 'string', - 'example' => 'xxx', - ], - 'type' => [ - 'description' => '数据源类型,当前只支持ODPS。'."\n", - 'type' => 'string', - 'example' => 'ODPS', - ], - 'partition' => [ - 'description' => 'ODPS Partition。例如:ds=20180102'."\n", - 'type' => 'string', - 'example' => 'ds=20181122', - ], - 'timestamp' => [ - 'description' => 'ODPS 毫秒数据时间戳。例如:1544112000000'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1544112000000', - ], - 'path' => [ - 'description' => 'oss数据源的path信息', - 'type' => 'string', - 'example' => 'oss://xxx.xxx', - ], - 'tableName' => [ - 'description' => 'ODPS的table name。', - 'type' => 'string', - 'example' => 'test_maxcompute', - ], - 'projectName' => [ - 'description' => 'ODPS 的project name。', - 'type' => 'string', - 'example' => 'openrec_gray', - ], - ], - ], + 'matchInfo' => ['description' => '不用关心,debug时可能用到', 'type' => 'string', 'example' => 'xxx'], + 'traceId' => ['description' => '回传日志时使用,回传日志时,trace_id=ali', 'type' => 'string', 'example' => 'ali'], + 'position' => ['description' => '物品在需要展示的位置,从0开始(注意:返回结果已经按照position排序,可以不用关注)', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'itemId' => ['description' => '物品ID', 'type' => 'string', 'example' => '123'], + 'itemType' => ['description' => '物品类型', 'type' => 'string', 'example' => 'item'], + 'traceInfo' => ['description' => '返回结果里traceInfo的值(注意:每个item的值均不一样,回传日志时,需要传对应的)', 'type' => 'string', 'example' => '"1007.62381.131491.100200300000000:bcb946ed-3f09-4e9b-bf4a-c19862f42231:792783::0:s101:::15:content___130788_stall:item:i2i_common_common:0.0205279946753756:null:null:1673258031504::context__recall_index=156,context__hour=17,context__trigger_num=2::C7EF99C9-6C55-5D45-A8D5-0754082E9DCF:hot_common,i2i_common_common,i2i_swing_common,hot_full:::::"'], + 'weight' => ['description' => '权重', 'type' => 'number', 'format' => 'float', 'example' => '1'], + 'flowWeight' => ['description' => '流控加权字段;=0未加权;>0加权;<0降权', 'type' => 'number', 'format' => 'double', 'example' => '0'], + 'message' => ['description' => '状态信息', 'type' => 'string', 'example' => 'Successful'], ], ], ], - 'code' => [ - 'description' => '错误码'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '当前请求的RequestID。'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '错误详情'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => '状态码', 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '请求ID', 'type' => 'string', 'example' => '04707E49-642A-4649-827A-F8EEB07D4C27'], + 'message' => ['description' => '状态信息', 'type' => 'string', 'example' => '"i2i_common_common;NotFound;1673254401;similar product/content of clicked ones;2023-01-09 16:53:21"'], ], + 'description' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"gmtModified\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"gmtCreate\\": \\"2018-12-07T02:24:26.000Z\\",\\n \\"tableName\\": \\"behavior\\",\\n \\"meta\\": {\\n \\"bucketName\\": \\"airec\\",\\n \\"accessKeyId\\": \\"xxx\\",\\n \\"type\\": \\"ODPS\\",\\n \\"partition\\": \\"ds=20181122\\",\\n \\"timestamp\\": 1544112000000,\\n \\"path\\": \\"oss://xxx.xxx\\",\\n \\"tableName\\": \\"test_maxcompute\\",\\n \\"projectName\\": \\"openrec_gray\\"\\n }\\n }\\n ],\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<GmtCreate>2018-12-07T02:24:26.000Z</GmtCreate>\\n<GmtModified>2018-12-07T02:24:26.000Z</GmtModified>\\n<TableName>item</TableName>\\n<Meta>\\n <Type>ODPS</Type>\\n <Timestamp>1544112000000</Timestamp>\\n <AccessKeyId>LTAIHhxxxxxxxxxx</AccessKeyId>\\n <ProjectName>openrec_gray</ProjectName>\\n <TableName>content_gul_item_autotest</TableName>\\n <Partition>ds=20181122</Partition>\\n</Meta>","errorExample":""}]', - 'title' => '获取指定实例的数据源列表', - 'summary' => '获取指定实例的数据源列表信息。', + 'title' => '智能推荐', + 'summary' => '该接口用于获取指定实例的推荐结果。', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'InitComputingResource' => [ - 'summary' => '初始化计算资源。', - 'path' => '/v2/openapi/instances/{instanceId}/computing-resources/actions/init', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:Recommend', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"matchInfo\\": \\"xxx\\",\\n \\"traceId\\": \\"ali\\",\\n \\"position\\": 1,\\n \\"itemId\\": \\"123\\",\\n \\"itemType\\": \\"item\\",\\n \\"traceInfo\\": \\"\\\\\\"1007.62381.131491.100200300000000:bcb946ed-3f09-4e9b-bf4a-c19862f42231:792783::0:s101:::15:content___130788_stall:item:i2i_common_common:0.0205279946753756:null:null:1673258031504::context__recall_index=156,context__hour=17,context__trigger_num=2::C7EF99C9-6C55-5D45-A8D5-0754082E9DCF:hot_common,i2i_common_common,i2i_swing_common,hot_full:::::\\\\\\"\\",\\n \\"weight\\": 1,\\n \\"flowWeight\\": 0,\\n \\"message\\": \\"Successful\\"\\n }\\n ],\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"04707E49-642A-4649-827A-F8EEB07D4C27\\",\\n \\"message\\": \\"\\\\\\"i2i_common_common;NotFound;1673254401;similar product/content of clicked ones;2023-01-09 16:53:21\\\\\\"\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>04707E49-642A-4649-827A-F8EEB07D4C27</RequestId>\\n<Result>\\n <ItemId>897068</ItemId>\\n <ItemType>article</ItemType>\\n <MatchType>emb_title2vec_common</MatchType>\\n <Weight>1</Weight>\\n <Title>极简主义的“有水蛋糕”,香软甜绵5个步骤搞定,给孩子收藏了</Title>\\n <SceneId>articleCommonRelated</SceneId>\\n <CategoryLevel>1</CategoryLevel>\\n <CategoryPath>none</CategoryPath>\\n <Tags>美食</Tags>\\n <PubTime>164</PubTime>\\n <ExpireTime>4102416000</ExpireTime>\\n <MatchScore>0.6191751956939697</MatchScore>\\n <RankScore>1</RankScore>\\n <InalScore>1</InalScore>\\n <TraceInfo>1007.19746.107647.100200300000000:c7bd13e3-371b-4276-b142-4c1a439f21a0:1:40000:0::::2:content___1729346806:image:cd:0.0545865490313237:0.027317269681932512:0.6218346196125295:::::::::::</TraceInfo>\\n</Result>\\n<Result>\\n <ItemId>897068</ItemId>\\n <ItemType>article</ItemType>\\n <MatchType>emb_title2vec_common</MatchType>\\n <Weight>1</Weight>\\n <Title>极简主义的“有水蛋糕”,香软甜绵5个步骤搞定,给孩子收藏了</Title>\\n <SceneId>articleCommonRelated</SceneId>\\n <CategoryLevel>1</CategoryLevel>\\n <CategoryPath>none</CategoryPath>\\n <Tags>美食</Tags>\\n <PubTime>164</PubTime>\\n <ExpireTime>4102416000</ExpireTime>\\n <MatchScore>0.6191751956939697</MatchScore>\\n <RankScore>1</RankScore>\\n <InalScore>1</InalScore>\\n <TraceInfo>1007.19746.107647.100200300000000:c7bd13e3-371b-4276-b142-4c1a439f21a0:1:40000:0::::2:content___1729346806:image:cd:0.0545865490313237:0.027317269681932512:0.6218346196125295:::::::::::</TraceInfo>\\n</Result>","errorExample":""}]', + ], + 'RefreshFeatureTable' => [ + 'path' => '/v2/openapi/instances/{instanceId}/feature-tables/{type}/{featureTableId}/actions/refresh', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', - 'abilityTreeCode' => '117128', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'abilityTreeCode' => '117112', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例id', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-test', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => 'A short description of struct', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-shdjkgkeog'], ], [ 'name' => 'type', - 'in' => 'query', - 'schema' => [ - 'title' => '计算资源类型', - 'description' => '资源类型,本期固定为:MAX_COMPUTE', - 'type' => 'string', - 'required' => false, - 'example' => '是', - ], + 'in' => 'path', + 'schema' => ['title' => '特征表类型', 'description' => '特征表类型', 'type' => 'string', 'required' => true, 'example' => 'ItemFeatureTable UserFeatureTable'], ], [ - 'name' => 'key', - 'in' => 'query', - 'schema' => [ - 'title' => '计算资源初始化参数', - 'description' => 'type=MAX_COMPUTE则为mc工作空间名称', - 'type' => 'string', - 'required' => false, - 'example' => 'MAX_COMPUTE', - ], + 'name' => 'featureTableId', + 'in' => 'path', + 'schema' => ['title' => '特征表id', 'description' => '特征表id', 'type' => 'string', 'required' => true], ], ], 'responses' => [ @@ -19069,117 +12936,112 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求id', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['$ref' => '#/components/schemas/FeatureTable', 'description' => ''], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","errorExample":""},{"type":"xml","example":"<requestId>829F38F6-E2D6-4109-90A6-888160BD16C2</requestId>\\n<result>true</result>","errorExample":""}]', - 'title' => '初始化计算资源', - ], - 'PushDocument' => [ - 'path' => '/v2/openapi/instances/{instanceId}/tables/{tableName}/actions/bulk', - 'methods' => [ - 'post', + 'title' => '刷新特征表', + 'summary' => '刷新特征表,根据特征表源更新特征表,刷新策略为以用户源表为准。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RefreshFeatureTable'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:RefreshFeatureTable', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"Status\\": \\"\\",\\n \\"Meta\\": {\\n \\"DataSourceId\\": \\"907648f5-abae-44fd-a4c4-525cc25947e9\\",\\n \\"FeatureList\\": [\\n {\\n \\"Comment\\": \\"com11\\",\\n \\"FeatureName\\": \\"fn11\\",\\n \\"FieldName\\": \\"fieldName11\\",\\n \\"Status\\": \\"NotApplied 未应用 Applied 已应用\\"\\n }\\n ],\\n \\"Internal\\": true,\\n \\"MetaType\\": \\"FeatureTable\\",\\n \\"Source\\": \\"test_project.test_table\\",\\n \\"UpdateFrequency\\": 86400\\n },\\n \\"FeatureTableId\\": \\"30E70118-FC7C-4438-9287-583CE47266A9\\",\\n \\"Type\\": \\"ItemFeatureTable 物品特征表 UserFeatureTable 用户特征表\\",\\n \\"GmtCreate\\": \\"2021-12-10T02:59:54.000Z\\",\\n \\"GmtModified\\": \\"2021-12-10T02:59:54.000Z\\"\\n }\\n}","type":"json"}]', + ], + 'RollbackRankingSystem' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}/actions/rollback', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18728', - 'abilityTreeNodes' => [ - 'FEATUREairecY1ADIM', - ], + 'operationType' => 'list', + 'abilityTreeCode' => '117180', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '智能推荐的实例 Id', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'tableName', + 'name' => 'name', 'in' => 'path', - 'schema' => [ - 'description' => '行业的3张表,分别是用户表(user)、物品表(item)和行为表(behavior)', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'user', - ], + 'schema' => ['title' => '排序服务名称', 'description' => '排序服务名称。', 'type' => 'string', 'required' => true, 'example' => 'service-a'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => ['description' => '请求Body参数。', 'type' => 'object', 'required' => false, 'example' => '{'."\n" + .' "operateId": "a-b-c"'."\n" + .'}'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'true/false', - 'type' => 'boolean', - 'example' => 'true', - ], - 'code' => [ - 'description' => '错误码', - 'type' => 'string', - 'example' => '0', - ], - 'requestId' => [ - 'description' => '请求的RequestID', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'message' => [ - 'description' => '返回信息', - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'result' => ['title' => 'result', 'description' => '返回结果。', 'type' => 'object', 'example' => '无'], ], ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'title' => '回滚排序服务', + 'summary' => '回滚排序服务。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RollbackRankingSystem'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:RollbackRankingSystem', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": true,\\n \\"code\\": \\"0\\",\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"message\\": \\"success\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '推送文档', - 'summary' => '向指定实例指定表推送文档。', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', ], - 'PushIntervention' => [ - 'path' => '/v2/openapi/instances/{instanceId}/actions/intervene', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'RunInstance' => [ + 'path' => '/v2/openapi/instances/{instanceId}/actions/import', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -19188,49 +13050,26 @@ 'operationType' => 'write', 'systemTags' => [ 'operationType' => 'update', - 'abilityTreeCode' => '18729', - 'abilityTreeNodes' => [ - 'FEATUREairecY1ADIM', - ], + 'abilityTreeCode' => '18739', + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-****'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'result true/false', - 'type' => 'boolean', - 'example' => 'true', - ], - 'code' => [ - 'description' => 'code', - 'type' => 'string', - 'example' => '1', - ], - 'requestId' => [ - 'description' => '请求id', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'message' => [ - 'description' => '返回消息', - 'type' => 'string', - 'example' => 'success', - ], + 'result' => ['description' => '是否成功创建数据集。'."\n", 'type' => 'boolean', 'example' => 'false'], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'An internal server error occurred'], ], ], ], @@ -19238,600 +13077,706 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": true,\\n \\"code\\": \\"1\\",\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"message\\": \\"success\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => 'PushIntervention', - 'summary' => '该接口用于向指定实例推送干预数据。', - ], - 'RebuildIndex' => [ - 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/actions/rebuild', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '运行实例', + 'summary' => '启动实例开始全量数据导入任务。', + 'description' => '启动实例全量数据导入,此时系统会创建一个数据集新版本。系统会从您的数据源中导入所有的全量数据到系统并训练。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:RunInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": false,\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>8F81A922-6C81-46D6-B78C-CC35E16B1691</RequestId>\\n<Result>true</Result>","errorExample":""}]', + ], + 'RunRankingModelTemplate' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-templates/{templateId}/actions/run', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', - 'abilityTreeCode' => '18737', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'abilityTreeCode' => '117149', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'airec-test'], ], [ - 'name' => 'algorithmId', + 'name' => 'templateId', 'in' => 'path', - 'schema' => [ - 'description' => '算法ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['title' => '模型模板ID', 'description' => '模型ID', 'type' => 'string', 'required' => true, 'example' => '123'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '返回结果', - 'type' => 'string', - 'example' => 'true', - ], - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '当前请求的RequestID', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'result' => ['title' => 'result', 'description' => '返回结果', 'type' => 'object', 'example' => 'xxx'], ], ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + ], + 'title' => '启动训练', + 'summary' => '运行排序模型模板', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RunRankingModelTemplate'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:RunRankingModelTemplate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": \\"true\\",\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","type":"json"}]', - 'title' => '重建索引', - 'summary' => '重建索引。', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","errorExample":""},{"type":"xml","example":"<requestId>829F38F6-E2D6-4109-90A6-888160BD16C2</requestId>","errorExample":""}]', ], - 'Recommend' => [ - 'path' => '/v2/openapi/instances/{instanceId}/actions/recommend', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'RunSampleFormatConfig' => [ + 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}/format-configs/actions/run', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18738', - 'abilityTreeNodes' => [ - 'FEATUREairecY1ADIM', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '117134', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test001', - ], + 'schema' => ['description' => '实例id', 'type' => 'string', 'required' => true, 'example' => 'airec-test'], ], [ - 'name' => 'sceneId', - 'in' => 'query', - 'schema' => [ - 'description' => '物品被投放的场景ID', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], + 'name' => 'sampleId', + 'in' => 'path', + 'schema' => ['description' => '样本id', 'type' => 'string', 'required' => true, 'example' => '123'], ], [ - 'name' => 'userId', + 'name' => 'mode', 'in' => 'query', - 'schema' => [ - 'description' => '用户唯一ID', - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['description' => '格式化模式'."\n" + .'Latest:采用最新的格式化配置(默认值)', 'type' => 'string', 'required' => false, 'example' => 'latest'], ], - [ - 'name' => 'ip', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => '用户最后登录的IP', - 'type' => 'string', - 'required' => false, - 'example' => '192.168.1.1', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => '实例id', 'type' => 'string', 'example' => 'airec-test'], + 'result' => ['description' => '格式化配置', 'type' => 'boolean', 'example' => 'true'], + ], + 'description' => '', ], ], + ], + 'title' => '触发样本格式化', + 'summary' => '触发样本格式化。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RunSampleFormatConfig'], + ], + ], + 'ramActions' => [ [ - 'name' => 'imei', - 'in' => 'query', - 'schema' => [ - 'description' => '设备ID', - 'type' => 'string', - 'required' => false, - 'example' => '06e1565409c9fc4887036b974421****', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:RunSampleFormatConfig', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], ], ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"airec-test\\",\\n \\"result\\": true\\n}","errorExample":""},{"type":"xml","example":"<result>true</result>\\n<requestId>90D6B8F5-FE97-4509-9AAB-367836C51818</requestId>","errorExample":""}]', + ], + 'StopDataSet' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dataSets/{versionId}/actions/stop', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'returnCount', - 'in' => 'query', - 'schema' => [ - 'description' => '返回结果条数(0-50之间)', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'docRequired' => true, - 'example' => '10', - ], + 'AK' => [], ], + ], + 'operationType' => 'write', + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '18740', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], + ], + 'parameters' => [ [ - 'name' => 'items', - 'in' => 'query', - 'schema' => [ - 'description' => '用于相关推荐的item(限于相关推荐场景使用)', - 'type' => 'string', - 'required' => false, - 'example' => '1001', - ], + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'serviceType', - 'in' => 'query', + 'name' => 'versionId', + 'in' => 'path', + 'schema' => ['description' => '版本号'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '20181023214546'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => '略', - 'type' => 'string', - 'required' => false, - 'example' => '1', + 'type' => 'object', + 'properties' => [ + 'result' => [ + 'description' => '数据集详情'."\n", + 'type' => 'object', + 'properties' => [ + 'versionId' => ['description' => '版本号'."\n", 'type' => 'string', 'example' => '20181023214546'], + 'state' => ['description' => '数据版本状态(Importing:导入中)'."\n", 'type' => 'string', 'example' => 'Importing'], + 'gmtModified' => ['description' => '最后修改数据源的时间。'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1544112000000'], + 'gmtCreate' => ['description' => '创建数据源的时间。'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1544112000000'], + 'instanceId' => ['description' => '实例ID。'."\n", 'type' => 'string', 'example' => 'airec-cn-o400whm78004'], + ], + ], + 'code' => ['description' => '错误码'."\n", 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求id'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误详情'."\n", 'type' => 'string', 'example' => 'An internal server error occurred'], + ], + 'description' => '', ], ], - [ - 'name' => 'userInfo', - 'in' => 'query', + '5XX' => [ 'schema' => [ - 'description' => '略', - 'type' => 'string', - 'required' => false, - 'example' => '1', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', ], ], - [ - 'name' => 'rankOpen', - 'in' => 'query', - 'schema' => [ - 'description' => '召回排序阶段是否根据用户ID个性化排序', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', + ], + 'title' => '停止数据集', + 'summary' => '停止指定实例的指定数据集版本。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:StopDataSet', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], ], ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"versionId\\": \\"20181023214546\\",\\n \\"state\\": \\"Importing\\",\\n \\"gmtModified\\": 1544112000000,\\n \\"gmtCreate\\": 1544112000000,\\n \\"instanceId\\": \\"airec-cn-o400whm78004\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>8F81A922-6C81-46D6-B78C-CC35E16B1691</RequestId>\\n<Result>\\n <InstanceId>airec-cn-xxxxx</InstanceId>\\n <VersionId>20181023214546</VersionId>\\n <State>Importing</State>\\n <GmtCreate>1537531932000</GmtCreate>\\n <GmtModified>1537531932000</GmtModified>\\n</Result>","errorExample":""}]', + ], + 'StopFlowControlTask' => [ + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/actions/stop', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'recType', - 'in' => 'query', - 'schema' => [ - 'description' => '推荐服务类型', - 'type' => 'string', - 'required' => false, - 'example' => 'gul', - ], + 'AK' => [], ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '154378', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], + ], + 'parameters' => [ [ - 'name' => 'filter', - 'in' => 'query', - 'schema' => [ - 'description' => '推荐过滤字符串', - 'type' => 'string', - 'required' => false, - 'example' => 'eyJqb2luIjoiYW5kIiwiZmlsdGVycyI6W3siY29uZCI6ImNvbnRhaW4iLCJmaWVsZCI6InRhZ3MiLCJ2YWx1ZSI6IuWPjOS6uiJ9XX0.', - ], + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'strategy', - 'in' => 'query', - 'schema' => [ - 'description' => '如果需要使用坑位策略,请求参数内新增strategy="fixedSlot",此时系统将按照坑位配置返回推荐结果', - 'type' => 'string', - 'required' => false, - 'example' => 'fixedSlot', - ], + 'name' => 'taskId', + 'in' => 'path', + 'schema' => ['description' => '流量调控任务ID。', 'type' => 'string', 'required' => false, 'example' => '1666854602398'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '返回结果', - 'type' => 'array', - 'items' => [ - 'description' => '返回结果', - 'type' => 'object', - 'properties' => [ - 'matchInfo' => [ - 'description' => '不用关心,debug时可能用到', - 'type' => 'string', - 'example' => 'xxx', - ], - 'traceId' => [ - 'description' => '回传日志时使用,回传日志时,trace_id=ali', - 'type' => 'string', - 'example' => 'ali', - ], - 'position' => [ - 'description' => '物品在需要展示的位置,从0开始(注意:返回结果已经按照position排序,可以不用关注)', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'itemId' => [ - 'description' => '物品ID', - 'type' => 'string', - 'example' => '123', - ], - 'itemType' => [ - 'description' => '物品类型', - 'type' => 'string', - 'example' => 'item', - ], - 'traceInfo' => [ - 'description' => '返回结果里traceInfo的值(注意:每个item的值均不一样,回传日志时,需要传对应的)', - 'type' => 'string', - 'example' => '"1007.62381.131491.100200300000000:bcb946ed-3f09-4e9b-bf4a-c19862f42231:792783::0:s101:::15:content___130788_stall:item:i2i_common_common:0.0205279946753756:null:null:1673258031504::context__recall_index=156,context__hour=17,context__trigger_num=2::C7EF99C9-6C55-5D45-A8D5-0754082E9DCF:hot_common,i2i_common_common,i2i_swing_common,hot_full:::::"', - ], - 'weight' => [ - 'description' => '权重', - 'type' => 'number', - 'format' => 'float', - 'example' => '1', - ], - 'flowWeight' => [ - 'description' => '流控加权字段;=0未加权;>0加权;<0降权', - 'type' => 'number', - 'format' => 'double', - 'example' => '0', - ], - 'message' => [ - 'description' => '状态信息', - 'type' => 'string', - 'example' => 'Successful', - ], - ], - ], - ], - 'code' => [ - 'description' => '状态码', - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '请求ID', - 'type' => 'string', - 'example' => '04707E49-642A-4649-827A-F8EEB07D4C27', - ], - 'message' => [ - 'description' => '状态信息', - 'type' => 'string', - 'example' => '"i2i_common_common;NotFound;1673254401;similar product/content of clicked ones;2023-01-09 16:53:21"', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'result' => ['description' => '返回参数。', 'type' => 'boolean', 'example' => 'true'], ], ], ], - '5XX' => [ + 500 => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], + 'code' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": [\\n {\\n \\"matchInfo\\": \\"xxx\\",\\n \\"traceId\\": \\"ali\\",\\n \\"position\\": 1,\\n \\"itemId\\": \\"123\\",\\n \\"itemType\\": \\"item\\",\\n \\"traceInfo\\": \\"\\\\\\"1007.62381.131491.100200300000000:bcb946ed-3f09-4e9b-bf4a-c19862f42231:792783::0:s101:::15:content___130788_stall:item:i2i_common_common:0.0205279946753756:null:null:1673258031504::context__recall_index=156,context__hour=17,context__trigger_num=2::C7EF99C9-6C55-5D45-A8D5-0754082E9DCF:hot_common,i2i_common_common,i2i_swing_common,hot_full:::::\\\\\\"\\",\\n \\"weight\\": 1,\\n \\"flowWeight\\": 0,\\n \\"message\\": \\"Successful\\"\\n }\\n ],\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"04707E49-642A-4649-827A-F8EEB07D4C27\\",\\n \\"message\\": \\"\\\\\\"i2i_common_common;NotFound;1673254401;similar product/content of clicked ones;2023-01-09 16:53:21\\\\\\"\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>04707E49-642A-4649-827A-F8EEB07D4C27</RequestId>\\n<Result>\\n <ItemId>897068</ItemId>\\n <ItemType>article</ItemType>\\n <MatchType>emb_title2vec_common</MatchType>\\n <Weight>1</Weight>\\n <Title>极简主义的“有水蛋糕”,香软甜绵5个步骤搞定,给孩子收藏了</Title>\\n <SceneId>articleCommonRelated</SceneId>\\n <CategoryLevel>1</CategoryLevel>\\n <CategoryPath>none</CategoryPath>\\n <Tags>美食</Tags>\\n <PubTime>164</PubTime>\\n <ExpireTime>4102416000</ExpireTime>\\n <MatchScore>0.6191751956939697</MatchScore>\\n <RankScore>1</RankScore>\\n <InalScore>1</InalScore>\\n <TraceInfo>1007.19746.107647.100200300000000:c7bd13e3-371b-4276-b142-4c1a439f21a0:1:40000:0::::2:content___1729346806:image:cd:0.0545865490313237:0.027317269681932512:0.6218346196125295:::::::::::</TraceInfo>\\n</Result>\\n<Result>\\n <ItemId>897068</ItemId>\\n <ItemType>article</ItemType>\\n <MatchType>emb_title2vec_common</MatchType>\\n <Weight>1</Weight>\\n <Title>极简主义的“有水蛋糕”,香软甜绵5个步骤搞定,给孩子收藏了</Title>\\n <SceneId>articleCommonRelated</SceneId>\\n <CategoryLevel>1</CategoryLevel>\\n <CategoryPath>none</CategoryPath>\\n <Tags>美食</Tags>\\n <PubTime>164</PubTime>\\n <ExpireTime>4102416000</ExpireTime>\\n <MatchScore>0.6191751956939697</MatchScore>\\n <RankScore>1</RankScore>\\n <InalScore>1</InalScore>\\n <TraceInfo>1007.19746.107647.100200300000000:c7bd13e3-371b-4276-b142-4c1a439f21a0:1:40000:0::::2:content___1729346806:image:cd:0.0545865490313237:0.027317269681932512:0.6218346196125295:::::::::::</TraceInfo>\\n</Result>","errorExample":""}]', - 'title' => '智能推荐', - 'summary' => '该接口用于获取指定实例的推荐结果。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'RefreshFeatureTable' => [ - 'summary' => '刷新特征表,根据特征表源更新特征表,刷新策略为以用户源表为准。', - 'path' => '/v2/openapi/instances/{instanceId}/feature-tables/{type}/{featureTableId}/actions/refresh', - 'methods' => [ - 'put', + 'title' => '结束流量调控任务', + 'summary' => '结束流量调控任务。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopFlowControlTask'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:StopFlowControlTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": true\\n}","errorExample":""},{"type":"xml","example":"<StopFlowControlTaskResponse>\\n <requestId>8F81A922-6C81-46D6-B78C-CC35E16B1691</requestId>\\n <result>true</result>\\n</StopFlowControlTaskResponse>","errorExample":""}]', + ], + 'UnLockIndexVersion' => [ + 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/actions/unlock', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', - 'abilityTreeCode' => '117112', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'abilityTreeCode' => '18741', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => 'A short description of struct', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-shdjkgkeog', - ], - ], - [ - 'name' => 'type', - 'in' => 'path', - 'schema' => [ - 'title' => '特征表类型', - 'description' => '特征表类型', - 'type' => 'string', - 'required' => true, - 'example' => 'ItemFeatureTable UserFeatureTable', - ], + 'schema' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-test'], ], [ - 'name' => 'featureTableId', + 'name' => 'algorithmId', 'in' => 'path', - 'schema' => [ - 'title' => '特征表id', - 'description' => '特征表id', - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['description' => '召回ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'abc'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'description' => '响应体', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], - 'result' => [ - '$ref' => '#/components/schemas/FeatureTable', - ], + 'result' => ['description' => '是否成功', 'type' => 'boolean', 'example' => 'true'], + 'requestId' => ['description' => '请求的RequestID', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], ], ], ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"Status\\": \\"\\",\\n \\"Meta\\": {\\n \\"DataSourceId\\": \\"907648f5-abae-44fd-a4c4-525cc25947e9\\",\\n \\"FeatureList\\": [\\n {\\n \\"Comment\\": \\"com11\\",\\n \\"FeatureName\\": \\"fn11\\",\\n \\"FieldName\\": \\"fieldName11\\",\\n \\"Status\\": \\"NotApplied 未应用 Applied 已应用\\"\\n }\\n ],\\n \\"Internal\\": true,\\n \\"MetaType\\": \\"FeatureTable\\",\\n \\"Source\\": \\"test_project.test_table\\",\\n \\"UpdateFrequency\\": 86400\\n },\\n \\"FeatureTableId\\": \\"30E70118-FC7C-4438-9287-583CE47266A9\\",\\n \\"Type\\": \\"ItemFeatureTable 物品特征表 UserFeatureTable 用户特征表\\",\\n \\"GmtCreate\\": \\"2021-12-10T02:59:54.000Z\\",\\n \\"GmtModified\\": \\"2021-12-10T02:59:54.000Z\\"\\n }\\n}","type":"json"}]', - 'title' => '刷新特征表', - ], - 'RunSampleFormatConfig' => [ - 'summary' => '触发样本格式化。', - 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}/format-configs/actions/run', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '解锁索引版本', + 'summary' => '解锁召回表的索引版本。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:UnLockIndexVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'UpdateExperimentBasicInfo' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments/{experimentId}/basic', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', - 'abilityTreeCode' => '117134', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'abilityTreeCode' => '18742', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例id', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - 'title' => 'A short description of struct', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'sampleId', + 'name' => 'sceneId', 'in' => 'path', - 'schema' => [ - 'description' => '样本id', - 'type' => 'string', - 'required' => true, - 'example' => '123', - 'title' => '样本id', - ], + 'schema' => ['description' => '场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'sceneId'], ], [ - 'name' => 'mode', - 'in' => 'query', - 'schema' => [ - 'description' => '格式化模式'."\n" - .'Latest:采用最新的格式化配置(默认值)', - 'type' => 'string', - 'required' => false, - 'example' => 'latest', - 'title' => '格式化模式', - ], + 'name' => 'experimentId', + 'in' => 'path', + 'schema' => ['description' => '实验ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '12345'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '实例id', - 'type' => 'string', - 'example' => 'airec-test', - 'title' => 'Id of the request', - ], 'result' => [ - 'description' => '格式化配置', - 'type' => 'boolean', - 'example' => 'true', - 'title' => 'result', + 'description' => '返回参数。', + 'type' => 'object', + 'properties' => [ + 'base' => ['description' => '分桶列表。', 'type' => 'boolean', 'example' => 'true'], + 'onlineTime' => ['description' => '实验上线时间。', 'type' => 'string', 'example' => '2020-11-11T09:47:43.000Z'], + 'offlineTime' => ['description' => '实验下线时间。', 'type' => 'string', 'example' => '2020-11-11T09:47:43.000Z'], + 'description' => ['description' => '实验备注。', 'type' => 'string', 'example' => 'demo1'], + 'status' => ['description' => '实验状态。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Init**:未上线。'."\n" + ."\n" + .'- **Online**:上线。'."\n" + ."\n" + .'- **Finish**:推全。'."\n" + ."\n" + .'- **Offline**:下线。', 'type' => 'string', 'example' => '1'], + 'name' => ['description' => '实验名称。', 'type' => 'string', 'example' => 'test'], + 'algorithms' => [ + 'description' => '实验参数列表。', + 'type' => 'array', + 'items' => [ + 'description' => '实验参数。', + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => '算法key。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **i2i**:i2i召回链路。'."\n" + ."\n" + .'- **u2x2i**:u2x2i召回链路。'."\n" + ."\n" + .'- **hot**:热门商品召回链路。'."\n" + ."\n" + .'- **new**:新品召回链路。'."\n" + ."\n" + .'- **embedding**:向量召回链路。'."\n" + ."\n" + .'- **mtorder**:召回链路优先级。'."\n" + ."\n" + .'- **rankservice**:排序服务。', 'type' => 'string', 'example' => 'I2I'], + 'config' => [ + 'description' => '子配置项列表。', + 'type' => 'array', + 'items' => [ + 'description' => '子配置项信息。', + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => '算法配置项key。', 'type' => 'string', 'example' => 'I2I'], + 'defaultValue' => ['description' => '算法配置项默认值。', 'type' => 'string', 'example' => 'true'], + 'experimentValue' => ['description' => '实验值。', 'type' => 'string', 'example' => '400'], + 'name' => ['description' => '子配置名称。', 'type' => 'string', 'example' => 'i2i召回链路'], + ], + ], + ], + 'defaultValue' => ['description' => '默认召回数量。', 'type' => 'string', 'example' => '400'], + 'type' => ['description' => '算法类别。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **SYSTEM**:系统默认类型。'."\n" + ."\n" + .'- **CUSTOM**:用户自定义类型。', 'type' => 'string', 'example' => 'SYSTEM'], + 'experimentValue' => ['description' => '实验定制值。', 'type' => 'string', 'example' => '400'], + 'hasConfig' => ['description' => '是否有子配置项。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **true**:是。'."\n" + ."\n" + .'- **false**:否。', 'type' => 'boolean', 'example' => 'false'], + 'category' => ['description' => '算法类目。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **RECALL**:召回。'."\n" + ."\n" + .'- **RANK**:排序。', 'type' => 'string', 'example' => '2'], + 'name' => ['description' => '实验名称。', 'type' => 'string', 'example' => 'test'], + ], + ], + ], + 'buckets' => [ + 'description' => '分桶列表。', + 'type' => 'array', + 'items' => ['description' => '分桶。', 'type' => 'string', 'example' => '["1","2","3"]'], + ], + 'experimentId' => ['description' => '实验ID。', 'type' => 'string', 'example' => '12345'], + ], ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B'], ], - 'title' => 'Schema of Response', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"airec-test\\"\\n}","errorExample":""},{"type":"xml","example":"<result>true</result>\\n<requestId>90D6B8F5-FE97-4509-9AAB-367836C51818</requestId>","errorExample":""}]', - 'title' => '触发样本格式化', - ], - 'UnLockIndexVersion' => [ - 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/actions/unlock', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '更新实验基本信息', + 'summary' => '更新实验基本信息。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:UpdateExperimentBasicInfo', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"base\\": true,\\n \\"onlineTime\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"offlineTime\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"description\\": \\"demo1\\",\\n \\"status\\": \\"1\\",\\n \\"name\\": \\"test\\",\\n \\"algorithms\\": [\\n {\\n \\"key\\": \\"I2I\\",\\n \\"config\\": [\\n {\\n \\"key\\": \\"I2I\\",\\n \\"defaultValue\\": \\"true\\",\\n \\"experimentValue\\": \\"400\\",\\n \\"name\\": \\"i2i召回链路\\"\\n }\\n ],\\n \\"defaultValue\\": \\"400\\",\\n \\"type\\": \\"SYSTEM\\",\\n \\"experimentValue\\": \\"400\\",\\n \\"hasConfig\\": false,\\n \\"category\\": \\"2\\",\\n \\"name\\": \\"test\\"\\n }\\n ],\\n \\"buckets\\": [\\n \\"[\\\\\\"1\\\\\\",\\\\\\"2\\\\\\",\\\\\\"3\\\\\\"]\\"\\n ],\\n \\"experimentId\\": \\"12345\\"\\n },\\n \\"requestId\\": \\"E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'UpdateExperimentConfig' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments/{experimentId}/config', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', - 'abilityTreeCode' => '18741', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'abilityTreeCode' => '18743', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'."\n"], ], [ - 'name' => 'algorithmId', + 'name' => 'sceneId', 'in' => 'path', - 'schema' => [ - 'description' => '召回ID', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'abc', - ], + 'schema' => ['description' => '场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'sceneId'], + ], + [ + 'name' => 'experimentId', + 'in' => 'path', + 'schema' => ['description' => '实验ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '12345'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '响应体', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '是否成功', - 'type' => 'boolean', - 'example' => 'true', - ], - 'requestId' => [ - 'description' => '请求的RequestID', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', + 'description' => '返回参数。', + 'type' => 'object', + 'properties' => [ + 'base' => ['description' => '是否为默认实验。', 'type' => 'boolean', 'example' => 'true'], + 'onlineTime' => ['description' => '实验上线时间。', 'type' => 'string', 'example' => '2020-12-07T06:47:30.000Z'], + 'offlineTime' => ['description' => '实验下线/推全时间。', 'type' => 'string', 'example' => '2020-12-07T06:47:30.000Z'], + 'description' => ['description' => '实验备注。', 'type' => 'string', 'example' => 'demo1'], + 'status' => ['description' => '实验状态。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Init**:未上线。'."\n" + ."\n" + .'- **Online**:上线。'."\n" + ."\n" + .'- **Finish**:推全。'."\n" + ."\n" + .'- **Offline**:下线。', 'type' => 'string', 'example' => 'Online'], + 'name' => ['description' => '实验名称。', 'type' => 'string', 'example' => 'I2I召回链路'], + 'algorithms' => [ + 'description' => '实验参数列表。', + 'type' => 'array', + 'items' => [ + 'description' => '实验参数。', + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => '算法key。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **I2I**:I2I召回链路。'."\n" + ."\n" + .'- **u2X2I**:U2X2I召回链路。'."\n" + ."\n" + .'- **hot**:热门商品召回链路。'."\n" + ."\n" + .'- **new**:新品召回链路。'."\n" + ."\n" + .'- **embedding**:向量召回链路。'."\n" + ."\n" + .'- **mtorder**:召回链路优先级。'."\n" + ."\n" + .'- **rankservice**:排序服务。', 'type' => 'string', 'example' => 'I2I'], + 'config' => [ + 'description' => '子配置项列表。', + 'type' => 'array', + 'items' => [ + 'description' => '子配置项信息。', + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => '算法配置项key。', 'type' => 'string', 'example' => 'I2I'], + 'defaultValue' => ['description' => '算法配置项默认值。', 'type' => 'string', 'example' => 'true'], + 'experimentValue' => ['description' => '实验值。', 'type' => 'string', 'example' => 'true'], + 'name' => ['description' => '子配置名称。', 'type' => 'string', 'example' => 'xxx'], + ], + ], + ], + 'defaultValue' => ['description' => '默认召回数量。', 'type' => 'string', 'example' => '400'], + 'type' => ['description' => '算法类别。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **SYSTEM**:系统默认类型。'."\n" + ."\n" + .'- **CUSTOM**:用户自定义类型。', 'type' => 'string', 'example' => 'SYSTEM'], + 'experimentValue' => ['description' => '实验值。', 'type' => 'string', 'example' => '300'], + 'hasConfig' => ['description' => '是否有子配置项。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **true**:是'."\n" + ."\n" + .'- **false**:否', 'type' => 'boolean', 'example' => 'true'], + 'category' => ['description' => '算法类目。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **RECALL**:召回。'."\n" + ."\n" + .'- **RANK**:排序。', 'type' => 'string', 'example' => 'RECALL'], + 'name' => ['description' => '实验名称。', 'type' => 'string', 'example' => 'xxx'], + ], + ], + ], + 'buckets' => [ + 'description' => '分桶列表,上线实验时该字段才生效。', + 'type' => 'array', + 'items' => ['description' => '分桶信息。', 'type' => 'string', 'example' => 'userid'], + ], + 'experimentId' => ['description' => '实验ID。', 'type' => 'string', 'example' => 'xxx'], + ], ], + 'requestId' => ['description' => '请求的ID。', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], ], ], ], @@ -19839,147 +13784,242 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => '解锁索引版本', - 'summary' => '解锁召回表的索引版本。', - ], - 'CreateDataDiagnoseTask' => [ - 'summary' => '创建数据诊断任务。', - 'path' => '/v2/openapi/instances/{instanceId}/data-diagnose-task', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '更新实验配置', + 'summary' => '更新一个实验配置信息。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:UpdateExperimentConfig', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"base\\": true,\\n \\"onlineTime\\": \\"2020-12-07T06:47:30.000Z\\",\\n \\"offlineTime\\": \\"2020-12-07T06:47:30.000Z\\",\\n \\"description\\": \\"demo1\\",\\n \\"status\\": \\"Online\\",\\n \\"name\\": \\"I2I召回链路\\",\\n \\"algorithms\\": [\\n {\\n \\"key\\": \\"I2I\\",\\n \\"config\\": [\\n {\\n \\"key\\": \\"I2I\\",\\n \\"defaultValue\\": \\"true\\",\\n \\"experimentValue\\": \\"true\\",\\n \\"name\\": \\"xxx\\"\\n }\\n ],\\n \\"defaultValue\\": \\"400\\",\\n \\"type\\": \\"SYSTEM\\",\\n \\"experimentValue\\": \\"300\\",\\n \\"hasConfig\\": true,\\n \\"category\\": \\"RECALL\\",\\n \\"name\\": \\"xxx\\"\\n }\\n ],\\n \\"buckets\\": [\\n \\"userid\\"\\n ],\\n \\"experimentId\\": \\"xxx\\"\\n },\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', + ], + 'UpdateExperimentStatus' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments/{experimentId}/status', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '138221', - 'abilityTreeNodes' => [ - 'FEATUREairecG8RBMT', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '18744', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-shdjkgkeog', - ], + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], + ], + [ + 'name' => 'sceneId', + 'in' => 'path', + 'schema' => ['description' => '场景ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'sceneId'], + ], + [ + 'name' => 'experimentId', + 'in' => 'path', + 'schema' => ['description' => '实验ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '123'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '返回内容', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '当前请求的RequestID', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], 'result' => [ - 'description' => '创建任务是否成功', - 'type' => 'boolean', - 'example' => 'true', + 'description' => '返回参数。', + 'type' => 'object', + 'properties' => [ + 'base' => ['description' => '是否为默认实验。', 'type' => 'boolean', 'example' => 'true'], + 'onlineTime' => ['description' => '实验上线时间。', 'type' => 'string', 'example' => '2020-11-11T09:47:43.000Z'], + 'offlineTime' => ['description' => '实验下线时间。', 'type' => 'string', 'example' => '2020-11-11T09:47:43.000Z'], + 'description' => ['description' => '实验备注。', 'type' => 'string', 'example' => 'xxx'], + 'status' => ['description' => '实验状态。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **Init**:未上线。'."\n" + ."\n" + .'- **Online**:上线。'."\n" + ."\n" + .'- **Finish**:推全。'."\n" + ."\n" + .'- **Offline**:下线。', 'type' => 'string', 'example' => 'init'], + 'name' => ['description' => '实验名称。', 'type' => 'string', 'example' => 'test'], + 'algorithms' => [ + 'description' => '实验参数列表。', + 'type' => 'array', + 'items' => [ + 'description' => '实验参数信息。', + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => '算法key。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **I2I**:I2I召回链路。'."\n" + ."\n" + .'- **u2X2I**:U2X2I召回链路。'."\n" + ."\n" + .'- **hot**:热门商品召回链路。'."\n" + ."\n" + .'- **new**:新品召回链路。'."\n" + ."\n" + .'- **embedding**:向量召回链路。'."\n" + ."\n" + .'- **mtorder**:召回链路优先级。'."\n" + ."\n" + .'- **rankservice**:排序服务。', 'type' => 'string', 'example' => 'hot'], + 'config' => [ + 'description' => '子配置项列表。', + 'type' => 'array', + 'items' => [ + 'description' => '子配置项信息。', + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => '算法配置项key。', 'type' => 'string', 'example' => 'hot'], + 'defaultValue' => ['description' => '算法配置项默认值。', 'type' => 'string', 'example' => 'xxx'], + 'experimentValue' => ['description' => '实验值。', 'type' => 'string', 'example' => 'xxx'], + 'name' => ['description' => '子配置名称。', 'type' => 'string', 'example' => 'xxx'], + ], + ], + ], + 'defaultValue' => ['description' => '默认召回数量。', 'type' => 'string', 'example' => 'swing'], + 'type' => ['description' => '算法类别。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **SYSTEM**:系统默认类型。'."\n" + ."\n" + .'- **CUSTOM**:用户自定义类型。', 'type' => 'string', 'example' => 'SYSTEM'], + 'experimentValue' => ['description' => '实验值。', 'type' => 'string', 'example' => 'xxx'], + 'hasConfig' => ['description' => '是否有子配置项。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **true**:是'."\n" + ."\n" + .'- **false**:否', 'type' => 'boolean', 'example' => 'false'], + 'category' => ['description' => '算法类目。'."\n" + ."\n" + .'取值:'."\n" + ."\n" + .'- **RECALL**:召回。'."\n" + ."\n" + .'- **RANK**:排序。', 'type' => 'string', 'example' => 'RECALL'], + 'name' => ['description' => '实验名称。', 'type' => 'string', 'example' => 'xxx'], + ], + ], + ], + 'buckets' => [ + 'description' => '分桶列表,上线实验时该字段才生效。', + 'type' => 'array', + 'items' => ['description' => '分桶信息。', 'type' => 'string', 'example' => '["1"、"2"、"3"]'], + ], + 'experimentId' => ['description' => '实验ID。', 'type' => 'string', 'example' => '123'], + ], ], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B'], ], ], ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'code' => ['type' => 'string', 'description' => ''], + 'requestId' => ['type' => 'string', 'description' => ''], + 'message' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": true\\n}","type":"json"}]', - 'title' => '创建数据诊断任务', - ], - 'CreateUmengToken' => [ - 'summary' => '创建友盟授权token', - 'path' => '/v2/openapi/umeng/token', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '更新实验状态', + 'summary' => '更新实验状态。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:UpdateExperimentStatus', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"base\\": true,\\n \\"onlineTime\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"offlineTime\\": \\"2020-11-11T09:47:43.000Z\\",\\n \\"description\\": \\"xxx\\",\\n \\"status\\": \\"init\\",\\n \\"name\\": \\"test\\",\\n \\"algorithms\\": [\\n {\\n \\"key\\": \\"hot\\",\\n \\"config\\": [\\n {\\n \\"key\\": \\"hot\\",\\n \\"defaultValue\\": \\"xxx\\",\\n \\"experimentValue\\": \\"xxx\\",\\n \\"name\\": \\"xxx\\"\\n }\\n ],\\n \\"defaultValue\\": \\"swing\\",\\n \\"type\\": \\"SYSTEM\\",\\n \\"experimentValue\\": \\"xxx\\",\\n \\"hasConfig\\": false,\\n \\"category\\": \\"RECALL\\",\\n \\"name\\": \\"xxx\\"\\n }\\n ],\\n \\"buckets\\": [\\n \\"[\\\\\\"1\\\\\\"、\\\\\\"2\\\\\\"、\\\\\\"3\\\\\\"]\\"\\n ],\\n \\"experimentId\\": \\"123\\"\\n },\\n \\"requestId\\": \\"E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateExperimentStatusResponse>\\n <result>\\n <experimentId>12345</experimentId>\\n <name>实验1</name>\\n <description>demo1</description>\\n <buckets>1</buckets>\\n <buckets>2</buckets>\\n <buckets>3</buckets>\\n <status>init</status>\\n <base>true</base>\\n <onlineTime>2020-11-11t09:47:43.000z</onlineTime>\\n <offlineTime/>\\n <algorithms>\\n <key>i2i</key>\\n <name>i2i召回链路</name>\\n <category>recall</category>\\n <type>system</type>\\n <defaultValue>true</defaultValue>\\n <experimentValue/>\\n <hasConfig>true</hasConfig>\\n <config>\\n <key>i2i-truncedquantity</key>\\n <name>截断数量</name>\\n <defaultValue>400</defaultValue>\\n <experimentValue>300</experimentValue>\\n </config>\\n <config>\\n <key>i2i-algo</key>\\n <name>i2i算法</name>\\n <defaultValue>swing;commoni2i;pcategory;scategory</defaultValue>\\n <experimentValue/>\\n </config>\\n </algorithms>\\n <algorithms>\\n <key>mtorder</key>\\n <name>召回链路优先级</name>\\n <type>system</type>\\n <category>recall</category>\\n <defaultValue>i2i;u2x2i;new;hot;embedding;embedding</defaultValue>\\n <experimentValue/>\\n <hasConfig>false</hasConfig>\\n </algorithms>\\n </result>\\n <requestId>e3d6fe3b-b7c2-43da-9a13-5ea837aced9b</requestId>\\n</UpdateExperimentStatusResponse>","errorExample":""}]', + ], + 'UpgradeInstance' => [ + 'path' => '/v2/openapi/instances/{instanceId}/actions/upgrade', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], 'operationType' => 'write', - 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '148531', - 'abilityTreeNodes' => [ - 'FEATUREairecY1ADIM', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '18745', + 'abilityTreeNodes' => ['FEATUREairecIDS0JZ', 'FEATUREairecDTVO6V', 'FEATUREairecDM7OX0'], ], 'parameters' => [ [ - 'name' => 'code', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => '实例ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ 'result' => [ - 'type' => 'boolean', - ], - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', + 'description' => '返回参数。', + 'type' => 'object', + 'properties' => [ + 'instanceId' => ['description' => '实例ID。'."\n", 'type' => 'string', 'example' => 'airec-cn-****'], + ], ], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => 'InternalServerError'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'An internal server error occurred'], ], ], ], @@ -19987,356 +14027,2367 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => ''], ], + 'description' => '', ], ], ], - 'responseDemo' => '', - ], - 'GetLatestDataDiagnoseTaskStatus' => [ - 'summary' => '获取最新诊断任务状态。', - 'path' => '/v2/openapi/instances/{instanceId}/data-diagnose-task/status', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '更新实例配额信息', + 'summary' => '更新指定实例配额(Quota)信息。', + 'description' => '更新指定实例配额 (Quota)信息。'."\n" + ."\n" + .'用户数限制为:最小值 1,000,000、最大值 10,000,000物品数限制为:最小值 1,000,000、最大值 10,000,000推荐请求QPS限制为:最小值 10、最大值 500。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:UpgradeInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": {\\n \\"instanceId\\": \\"airec-cn-****\\"\\n },\\n \\"code\\": \\"InternalServerError\\",\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\",\\n \\"message\\": \\"An internal server error occurred\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>90D6B8F5-FE97-4509-9AAB-367836C51818</RequestId>\\n<Result>\\n <InstanceId>airec-cn-xxxxxx</InstanceId>\\n</Result>","errorExample":""}]', + ], + 'ValidateInstance' => [ + 'path' => '/v2/openapi/instances/{instanceId}/actions/validate', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, + 'operationType' => 'write', 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '138222', - 'abilityTreeNodes' => [ - 'FEATUREairecG8RBMT', - ], + 'operationType' => 'none', + 'abilityTreeCode' => '18746', + 'abilityTreeNodes' => ['FEATUREairecIDS0JZ', 'FEATUREairecEDD4RN', 'FEATUREairecDTVO6V'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => 'A short description of struct', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-shdjkgkeog', - ], + 'schema' => ['description' => '实例ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'], ], ], 'responses' => [ 200 => [ + 'headers' => [], 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '返回结果', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '当前请求的RequestID', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], - 'result' => [ - 'description' => '创建的任务状态'."\n" - .'任务状态:'."\n" - ."\n" - .'- RUNNING 运行中'."\n" - .'- FAILURE 失败'."\n" - .'- SUCCESS 成功'."\n" - .'- NOTASK 没有任务', - 'type' => 'object', - 'example' => 'RUNNING', - ], + 'result' => ['description' => '返回参数。', 'type' => 'boolean', 'example' => 'true'], + 'code' => ['description' => '错误码。', 'type' => 'string', 'example' => '200'], + 'requestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '90D6B8F5-FE97-4509-9AAB-367836C51818'], + 'message' => ['description' => '错误信息。', 'type' => 'string', 'example' => 'success'], ], ], ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => ''], + ], + 'description' => '', + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","type":"json"}]', - 'title' => '获取最新诊断任务状态', - ], - 'ListDataDiagnoseReports' => [ - 'summary' => '获取数据诊断报告 (包括用户手动触发的诊断、每天产出的周期报告、数据启动时诊断的报告)。', - 'path' => '/v2/openapi/instances/{instanceId}/data-diagnose-reports', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => '校验指定实例有效性', + 'summary' => '校验指定实例信息的有效性。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'airec:ValidateInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": true,\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"90D6B8F5-FE97-4509-9AAB-367836C51818\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', + ], + 'VerifyRankingSystem' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}/actions/verify', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'list', - 'abilityTreeCode' => '138223', - 'abilityTreeNodes' => [ - 'FEATUREairecG8RBMT', - ], + 'operationType' => 'none', + 'abilityTreeCode' => '117171', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-shdjkgkeog', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => '实例ID。', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'taskCreateTime', - 'in' => 'query', - 'schema' => [ - 'description' => '创建任务的时间', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1566489600', - ], + 'name' => 'name', + 'in' => 'path', + 'schema' => ['title' => '排序服务名称', 'description' => '排序服务名称。', 'type' => 'string', 'required' => true, 'example' => 'service-a'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => ['description' => '请求Body参数。', 'type' => 'object', 'required' => false, 'example' => '{'."\n" + .' "userFeatures": "a:c,d:b",'."\n" + .' "itemFeatures": "a:1,b:2"'."\n" + .'}'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'description' => '返回参数。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], - 'result' => [ - 'description' => '返回结果', - 'type' => 'object', - 'example' => '{'."\n" - .' "todayTimeLimit":8,'."\n" - .' "totalCount":10,'."\n" - .' "reports":['."\n" - .' {'."\n" - .' "diagnoseLevel":"low | medium | high",'."\n" - .' "startTime":1566489600,'."\n" - .' "endTime":1566489600,'."\n" - .' "taskCreateTime":1566489600,'."\n" - .' "taskSource":"manual | cycle | firstRun",'."\n" - .' "total":{'."\n" - .' "itemCount":100,'."\n" - .' "userCount":100,'."\n" - .' "bhvCount":100'."\n" - .' },'."\n" - .' "details":['."\n" - .' {'."\n" - .' "key":"",'."\n" - .' "level":"error | warn | info",'."\n" - .' "errorCount":10,'."\n" - .' "errorPercent":10,'."\n" - .' "sampleEnabled":true;'."\n" - .' }'."\n" - .' ]'."\n" - .' },'."\n" - .' {'."\n" - .' "diagnoseLevel":"low | medium | high",'."\n" - .' "startTime":1566489600,'."\n" - .' "endTime":1566489600,'."\n" - .' "taskCreateTime":1566489600,'."\n" - .' "taskSource":"manual | cycle | firstRun",'."\n" - .' "total":{'."\n" - .' "itemCount":100,'."\n" - .' "userCount":100,'."\n" - .' "bhvCount":100'."\n" - .' },'."\n" - .' "details":['."\n" - .' {'."\n" - .' "key":"",'."\n" - .' "level":"error | warn | info",'."\n" - .' "errorCount":10,'."\n" - .' "errorPercent":10,'."\n" - .' "sampleEnabled":true;'."\n" - .' }'."\n" - .' ]'."\n" - .' }'."\n" - .' ]'."\n" - .'}', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'result' => ['title' => 'result', 'description' => '返回结果。', 'type' => 'string', 'example' => 'test'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","type":"json"}]', - 'title' => '获取数据诊断报告 ', + 'title' => '调试排序服务', + 'summary' => '调试排序服务。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VerifyRankingSystem'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'airec:VerifyRankingSystem', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": \\"test\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', ], - 'ListDataDiagnoseSampleDetails' => [ - 'summary' => '获取数据诊断报告抽样明细。', - 'path' => '/v2/openapi/instances/{instanceId}/data-diagnose-reports/sample-details', - 'methods' => [ - 'get', + ], + 'endpoints' => [ + ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'airec.cn-shanghai.aliyuncs.com', 'endpoint' => 'airec.cn-shanghai.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'airec.cn-shenzhen.aliyuncs.com', 'endpoint' => 'airec.cn-shenzhen.aliyuncs.com', 'vpc' => 'airec-vpc.cn-shenzhen.aliyuncs.com'], + ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'airec.cn-beijing.aliyuncs.com', 'endpoint' => 'airec.cn-beijing.aliyuncs.com', 'vpc' => 'airec-vpc.cn-beijing.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'airec.ap-southeast-1.aliyuncs.com', 'endpoint' => 'airec.ap-southeast-1.aliyuncs.com', 'vpc' => 'airec-vpc.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'airec.cn-hangzhou.aliyuncs.com', 'endpoint' => 'airec.cn-hangzhou.aliyuncs.com', 'vpc' => 'airec-vpc.cn-hangzhou.aliyuncs.com'], + ['regionId' => 'us-east-1', 'regionName' => '美国(弗吉尼亚)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'airec.us-east-1.aliyuncs.com', 'endpoint' => 'airec.us-east-1.aliyuncs.com', 'vpc' => 'airec-vpc.us-east-1.aliyuncs.com'], + ], + 'errorCodes' => [ + ['code' => 'CanNotModifyIndustry', 'message' => 'The industry information of the instance cannot be modified.', 'http_code' => 400, 'description' => '实例的行业信息不能修改。'], + ['code' => 'ChargeTypeError', 'message' => 'The instance billing method is invalid.', 'http_code' => 400, 'description' => '实例付费类型错误。'], + ['code' => 'CreateInstanceFail', 'message' => 'An error occurred while creating the instance.', 'http_code' => 500, 'description' => '创建实例失败。'], + ['code' => 'CurrentIndustryNotSupportThisScene', 'message' => 'The current industry does not support the specified scenario.', 'http_code' => 400, 'description' => '当前指定的行业信息不支持指定的场景。'], + ['code' => 'DataSetImportNotSuccess', 'message' => 'The dataset can be released online only when its data has been imported.', 'http_code' => 400, 'description' => '只有数据集数据导入成功才能发布上线。'], + ['code' => 'DataSetNewVersionForbidden', 'message' => 'A dataset is being imported. Wait until the existing dataset import task is completed before starting another import task.', 'http_code' => 400, 'description' => '有未完成的数据集导入任务,请先完成后才能启动新的数据导入任务。'], + ['code' => 'DataSetNotExist', 'message' => 'The specified dataset does not exist.', 'http_code' => 404, 'description' => '您指定的数据集不存在。'], + ['code' => 'DataSetRemoveForbidden', 'message' => 'The dataset cannot be deleted because it is still in use.', 'http_code' => 403, 'description' => '当前数据集在线上提供服务,禁止删除。'], + ['code' => 'DataSetStopForbidden', 'message' => 'You cannot stop a dataset in the current status.', 'http_code' => 403, 'description' => '当前数据集状态禁止停止。'], + ['code' => 'DataSetVersionNumExceeded', 'message' => 'The number of dataset versions has exceeded the system limit.', 'http_code' => 400, 'description' => '数据集版本个数超过系统限制。'], + ['code' => 'DataSourceCountIncorrect', 'message' => 'Currently, one table supports only one data source.', 'http_code' => 400, 'description' => '当前一张表只支持一个数据源。'], + ['code' => 'DataSourceTableNameIncorrect', 'message' => 'The specified table name is invalid.', 'http_code' => 400, 'description' => '指定的表名不正确。'], + ['code' => 'DataSourceUnavailable', 'message' => 'An error occurred while validating the data source.', 'http_code' => 400, 'description' => '数据源校验失败。'], + ['code' => 'DiversifyDependencyViolation.DataSetTrainingNotSucceed', 'message' => 'Asset categories can be created only if the data version passes the validation.', 'http_code' => 400, 'description' => '必须有成功的数据版本才能创建打散。'], + ['code' => 'DiversifyDependencyViolation.DataSourceImportNotSucceed', 'message' => 'Asset categories can be created only if the data version passes the validation.', 'http_code' => 400, 'description' => '必须有成功的数据版本才能创建打散。'], + ['code' => 'DiversifyNotFound', 'message' => 'The specified asset category does not exist.', 'http_code' => 404, 'description' => '您指定的打散不存在。'], + ['code' => 'DiversifyNumberExceeded', 'message' => 'The number of asset categories has exceeded the system limit.', 'http_code' => 400, 'description' => '打散配置个数超过系统限制。'], + ['code' => 'EmptyDocument', 'message' => 'The submitted document is empty.', 'http_code' => 400, 'description' => '您提交的文档为空。'], + ['code' => 'EmptyPurchasesInfo', 'message' => 'The order information is empty.', 'http_code' => 400, 'description' => '空订单。'], + ['code' => 'FetchDocumentBackendError', 'message' => 'An error occurred while accessing the backend service.', 'http_code' => 503, 'description' => '访问Feed服务失败。'], + ['code' => 'FetchQuotaError', 'message' => 'An error occurred while retrieving the quota information.', 'http_code' => 503, 'description' => '获取配额信息失败。'], + ['code' => 'InstanceExpiredOrInArrears', 'message' => 'The instance has expired or has stopped running due to overdue payment. Renew the instance and try again.', 'http_code' => 403, 'description' => '实例已过期或欠费停服,请您续费后再进行操作。'], + ['code' => 'InstanceFreezing', 'message' => 'The specified instance has been frozen because it has overdue bills.', 'http_code' => 403, 'description' => '您指定的实例已欠费冻结。'], + ['code' => 'InstanceNotExist', 'message' => 'The specified instance does not exist.', 'http_code' => 404, 'description' => '您指定的实例不存在。'], + ['code' => 'InternalServerError', 'message' => 'An internal server error occurred.', 'http_code' => 500, 'description' => '系统内部错误。'], + ['code' => 'InvalidDataSourceTimestamp', 'message' => 'The time when data starts to be replicated to MaxCompute is invalid. Modify the timestamp of the data source.', 'http_code' => 400, 'description' => '错误的ODPS时间戳,请修改数据源的时间戳。'], + ['code' => 'InvalidDataSourceType', 'message' => 'The data source type is invalid.', 'http_code' => 400, 'description' => '错误的数据源类型。'], + ['code' => 'InvalidIndustry', 'message' => 'The industry name is invalid.', 'http_code' => 400, 'description' => '错误的行业名称。'], + ['code' => 'InvalidQuota.InstanceId', 'message' => 'You must specify the instance ID.', 'http_code' => 400, 'description' => '未指定实例ID。'], + ['code' => 'InvalidQuota.ItemCount', 'message' => 'The specified number of documents of the item table has exceeded the system limit.', 'http_code' => 400, 'description' => '您指定的item表的文档数超过系统限制。'], + ['code' => 'InvalidQuota.QPS', 'message' => 'The value of QPS has exceeded the system limit.', 'http_code' => 400, 'description' => '您指定的QPS超过系统限制。'], + ['code' => 'InvalidQuota.UserCount', 'message' => 'The specified number of documents of the user table has exceeded the system limit.', 'http_code' => 400, 'description' => '您指定的user表的文档数超过系统限制。'], + ['code' => 'InvalidSchemaId', 'message' => 'The schema ID is invalid.', 'http_code' => 400, 'description' => '错误的schema ID。'], + ['code' => 'InvalidTableName', 'message' => 'The specified table name is invalid.', 'http_code' => 400, 'description' => '您指定的表名称不正确。'], + ['code' => 'MixDependencyViolation.DataSetTrainingNotSucceed', 'message' => 'Mix types can be created only if the data version passes the validation.', 'http_code' => 400, 'description' => '必须有成功的数据版本才能创建混排。'], + ['code' => 'MixDependencyViolation.DataSourceImportNotSucceed', 'message' => 'Mix types can be created only if the data version passes the validation.', 'http_code' => 400, 'description' => '必须有成功的数据版本才能创建混排。'], + ['code' => 'MixNotFound', 'message' => 'The specified asset mix does not exist.', 'http_code' => 404, 'description' => '您指定的混排不存在。'], + ['code' => 'MixNumberExceeded', 'message' => 'The number of asset mix types has exceeded the system limit.', 'http_code' => 400, 'description' => '混排配置个数超过系统限制。'], + ['code' => 'MustModifyQuota', 'message' => 'You must specify the quota.', 'http_code' => 400, 'description' => '修改的配额信息不能为空。'], + ['code' => 'MustSelectIndustry', 'message' => 'You must specify the industry.', 'http_code' => 400, 'description' => '行业信息必须指定。'], + ['code' => 'NameFormatError', 'message' => 'The instance name is invalid. The instance name must be 0 to 30 characters in length and can contain underscores (_) and hyphens (-). It must start with a letter, number, or Chinese character.', 'http_code' => 400, 'description' => '名称不符合规范,长度为0-30个字符,以大小字母,数字或中文开头,可包含“_”或“-”。'], + ['code' => 'NotExistIndustry', 'message' => 'The industry name does not exist.', 'http_code' => 400, 'description' => '没有此行业名称。'], + ['code' => 'QuotaItemCountValueIllegal', 'message' => 'The value of document quantity of the item table in the quota information is invalid.', 'http_code' => 400, 'description' => '配额信息item表文档数的值非法。'], + ['code' => 'QuotaQpsValueIllegal', 'message' => 'The value of QPS in quota information is invalid.', 'http_code' => 400, 'description' => '配额信息QPS值非法。'], + ['code' => 'QuotaUserCountValueIllegal', 'message' => 'The value of document quantity of the user table in the quota information is invalid.', 'http_code' => 400, 'description' => '配额信息user表文档数的值非法。'], + ['code' => 'RemoveInstanceFail', 'message' => 'An error occurred while deleting the instance.', 'http_code' => 500, 'description' => '删除实例失败。'], + ['code' => 'RequestBodyTooLarge', 'message' => 'The size of the request body that you submitted has exceeded the system limit.', 'http_code' => 413, 'description' => '您本次提交的body信息超过系统限制。'], + ['code' => 'RequestKnightError', 'message' => 'An error occurred while accessing the backend service.', 'http_code' => 503, 'description' => '访问后端服务失败。'], + ['code' => 'SceneNotExist', 'message' => 'The scene does not exist.', 'http_code' => 404, 'description' => '创景不存在。'], + ['code' => 'UnsupportedOrderType', 'message' => 'The order type is not supported.', 'http_code' => 400, 'description' => '不支持的订单类型。'], + ['code' => 'UnsupportedRefundType', 'message' => 'The refund type is not supported.', 'http_code' => 400, 'description' => '不支持的退款类型。'], + ['code' => 'UpdateInfoCanNotBeNull', 'message' => 'You must specify the data to be modified.', 'http_code' => 400, 'description' => '请指定要修改的信息。'], + ['code' => 'UpdateInfoContainIllegalProperties', 'message' => 'An attribute is invalid.', 'http_code' => 400, 'description' => '要修改的信息包含非法属性。'], + ['code' => 'UserNotLogin', 'message' => 'You have not logged on. Log on and try again.', 'http_code' => 401, 'description' => '当前用户未登录,请先登录。'], + ['code' => 'UserUnauthorized', 'message' => 'You are not authorized to perform this operation.', 'http_code' => 401, 'description' => '当前用户没有权限。'], + ['code' => 'ValidationError', 'message' => 'An error occurred while validating.', 'http_code' => 400, 'description' => '校验失败。'], + ], + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CloneSample'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListExtraDataSources'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopFlowControlTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetExtraDataSource'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'InitComputingResource'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFlowControlTaskItemReports'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteExtraDataSource'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFlowControlTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteSample'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListOfflineStorages'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetRankingSystemHistory'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifySample'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListRankingSystems'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateCustomSample'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFlowControlTaskItems'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListSamples'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetLatestDataDiagnoseTaskStatus'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'VerifyRankingSystem'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListRankingModelTemplates'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyFlowControlTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteRankingModelVersion'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyRankingSystem'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetRankingModelTemplate'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyFeatureTable'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListSampleFormatConfigs'], + ['threshold' => '2000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PushDocument'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateFlowControlTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteRankingModelTemplate'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PublishFlowControlTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDataDiagnoseReports'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFlowControlTaskReports'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RunSampleFormatConfig'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetRankingModelVersion'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteFlowControlTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListRankingSystemHistories'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateRankingSystem'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeCustomAnalysisTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFeatureTables'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateRankingModelTemplate'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateSampleFormatConfig'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFlowControlTaskInvalidItems'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RefreshFeatureTable'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFlowControlTaskReference'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RollbackRankingSystem'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetSample'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyRankingModelTemplate'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetRankingSystem'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyOfflineStorages'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateCustomAnalysisTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateExtraDataSource'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteRankingSystem'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RunRankingModelTemplate'], + ['threshold' => '1', 'countWindow' => 30, 'regionId' => '*', 'api' => 'CreateDataDiagnoseTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeployRankingSystem'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFlowControlTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GenerateSample'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListRankingModelVersions'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDataDiagnoseSampleDetails'], + ], + ], + 'ram' => [ + 'productCode' => 'AIRec', + 'productName' => '智能推荐 AIRec', + 'ramCodes' => ['airec'], + 'ramLevel' => '资源级', + 'ramConditions' => [], + 'ramActions' => [ + [ + 'apiName' => 'DescribeUserMetrics', + 'description' => '获取用户指标(转化率信息)', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeUserMetrics', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], ], - 'schemes' => [ - 'http', - 'https', + [ + 'apiName' => 'ModifyItems', + 'description' => '修改项目', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyItems', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'ListDashboardMetricsFlows', + 'description' => '查询指定实例的整理仪表盘流量数据', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListDashboardMetricsFlows', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], ], ], - 'consumes' => [ - 'application/json', + [ + 'apiName' => 'ListLogs', + 'description' => '获取日志列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListLogs', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], ], - 'produces' => [ - 'application/json', + [ + 'apiName' => 'ListUserClusters', + 'description' => '获取用户集群列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListUserCluster', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], ], - 'deprecated' => false, - 'systemTags' => [ + [ + 'apiName' => 'GetRankingSystemHistory', + 'description' => '查询排序服务操作记录', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:GetRankingSystemHistory', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'EnableExperiment', + 'description' => '启用实验', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:EnableExperiment', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'GetRankingSystem', + 'description' => '获取排序服务详情', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:GetRankingSystem', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeDefaultAlgorithms', + 'description' => '获取默认算法信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeDefaultAlgorithms', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListFilteringAlgorithms', + 'description' => '获取召回表列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListFilteringAlgorithms', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListDashboardDetailsFlows', + 'description' => '通过指定条件查询实例的细分流量指标', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListDashboardDetailsFlows', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'StopDataSet', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:StopDataSet', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListUmengAppkeys', + 'description' => '获取友盟 appkey 列表信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListUmengAppkeys', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateSampleFormatConfig', + 'description' => '创建样本格式化配置', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateSampleFormatConfig', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListRuleConditions', + 'description' => '查询实例具体的选品规则', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListRuleConditions', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListColdStartFeature', + 'description' => '获取冷启动特征配置', 'operationType' => 'list', - 'abilityTreeCode' => '139245', - 'abilityTreeNodes' => [ - 'FEATUREairecG8RBMT', + 'ramAction' => [ + 'action' => 'airec:ListColdStartFeature', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], ], ], - 'parameters' => [ - [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '实例id', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-shdjkgkeog', + [ + 'apiName' => 'QuerySingleAggregationReport', + 'description' => '单表聚合查询', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:QuerySingleAggregationReport', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], - [ - 'name' => 'taskCreateTime', - 'in' => 'query', - 'schema' => [ - 'description' => '毫秒时间戳, 诊断任务创建的时间。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1665936000000', + ], + [ + 'apiName' => 'GetLatestDataDiagnoseTaskStatus', + 'description' => '获取最新诊断任务状态', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:GetLatestDataDiagnoseTaskStatus', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], - [ - 'name' => 'startTime', - 'in' => 'query', - 'schema' => [ - 'description' => '秒级时间戳,查询的整点时间', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1665158400', + ], + [ + 'apiName' => 'DecribeRankingModel', + 'description' => '获取排序模型', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DecribeRankingModel', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'endTime', - 'in' => 'query', - 'schema' => [ - 'description' => '秒级时间戳,查询的整点时间', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1682179200', + ], + [ + 'apiName' => 'ModifyColdStartFeatureStatus', + 'description' => '修改冷启动特征状态,开启或关闭', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyColdStartFeatureStatus', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], - [ - 'name' => 'taskSource', - 'in' => 'query', - 'schema' => [ - 'description' => '任务类型:firstRun, manual, cycle', - 'type' => 'string', - 'required' => true, - 'example' => 'cycle', + ], + [ + 'apiName' => 'DescribeSyncReportOutliers', + 'description' => '获取实时数据报告异常明细', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeSyncReportOutliers', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], - [ - 'name' => 'key', - 'in' => 'query', - 'schema' => [ - 'description' => '诊断项', - 'type' => 'string', - 'required' => true, + ], + [ + 'apiName' => 'GetRankingModelTemplate', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:GetRankingModelTemplate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '返回结果', - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '当前请求的RequestID', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], - 'result' => [ - 'description' => '返回详情结果', - 'type' => 'object', - ], - ], + [ + 'apiName' => 'ListIndexVersions', + 'description' => '获取索引版本列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListIndexVersions', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'CreateCustomAnalysisTask', + 'description' => '创建自定义分析任务', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateCustomAnalysisTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeRule', + 'description' => '获取规则信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeRule', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ModifyFeatureTable', + 'description' => '修改特征表', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyFeatureTable', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ModifyFilteringAlgorithmMeta', + 'description' => 'ModifyFilteringAlgorithmMeta', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyFilteringAlgorithmMeta', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'CreateColdStartFeature', + 'description' => '创建冷启动特征配置', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateColdStartFeature', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateScene', + 'description' => '创建场景', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateScene', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ModifyRankingSystem', + 'description' => '修改排序服务', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyRankingSystem', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeRegions', + 'description' => '查询区域', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeRegions', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListScenes', + 'description' => '查询场景列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListScenes', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'QueryDataMessage', + 'description' => '查询用户数据表中的更新消息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:QueryDataMessage', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListAttributionConfig', + 'description' => '获取归因配置列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListAttributionConfig', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListDataSet', + 'description' => '获取数据集列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListDataSet', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeExperimentEnv', + 'description' => '获取实验环境', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeExperimentEnv', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeBaseExperiment', + 'description' => '获取基础实验', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeBaseExperiment', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'PushIntervention', + 'description' => 'PushIntervention', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:PushIntervention', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListDashboardDetails', + 'description' => 'ListDashboardDetails', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListDashboardDetails', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteRankingModel', + 'description' => '删除排名模型', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airec:DeleteRankingModel', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ModifyAttributionConfig', + 'description' => '修改归因配置', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyAttributionConfig', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'PushColdStartDocument', + 'description' => '向指定冷启动实例指定表推送文档', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:PushColdStartDocument', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListDashboardMetrics', + 'description' => 'ListDashboardMetrics', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListDashboardMetrics', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'CreateExtraDataSource', + 'description' => '创建数据源', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateExtraDataSource', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeSceneBucket', + 'description' => 'DescribeSceneBucket', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeSceneBucket', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'RunInstance', + 'description' => '运行实例', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:RunInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListExperiments', + 'description' => 'ListExperiments', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListExperiments', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'UpgradeInstance', + 'description' => '更新实例配额信息', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:UpgradeInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListRuleTasks', + 'description' => '查询规则的任务状态', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListRuleTasks', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListFlowControlTaskItemReports', + 'description' => '流量调控曝光排名物品/失效物品查询', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListFlowControlTaskItemReports', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'CloneSample', + 'description' => '复制创建样本', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CloneSample', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListRuleHistory', + 'description' => '', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListRuleHistory', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'RollbackRankingSystem', + 'description' => '回滚排序服务', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:RollbackRankingSystem', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeSyncReportDetail', + 'description' => '获取实时数据小时级别报告细节信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeSyncReportDetail', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteRankingModelVersion', + 'description' => '删除模型版本', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airec:DeleteRankingModelVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'QueryExceptionHistory', + 'description' => '异常数据历史分段查询', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:QueryExceptionHistory', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'StopFlowControlTask', + 'description' => '结束流量调控任务', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:StopFlowControlTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListFlowControlTaskReports', + 'description' => '流量调控任务曝光分析', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListFlowControlTaskReports', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'AttachIndexVersion', + 'description' => 'AttachIndexVersion', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:AttachIndexVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteExtraDataSource', + 'description' => '删除数据源', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airec:DeleteExtraDataSource', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'CreateCustomSample', + 'description' => '创建自定义样本', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateCustomSample', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ModifyColdStartFeature', + 'description' => '修改冷启动特征配置,只支持全量数据修改', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyColdStartFeature', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListRankingModelVersions', + 'description' => '获取排序模型版本', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListRankingModelVersions', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListFlowControlTaskInvalidItems', + 'description' => '查询失效物品清单', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListFlowControlTaskInvalidItems', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'CheckRankingModelReachable', + 'description' => '测试模型网络联通性', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'airec:CheckRankingModelReachable', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DescribeDataSetMessage', + 'description' => 'DescribeDataSetMessage', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeDataSetMessage', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'RunRankingModelTemplate', + 'description' => '启动训练', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:RunRankingModelTemplate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListInstanceTask', + 'description' => '查询指定实例的任务列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListInstanceTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DescribeExperimentEnvProgress', + 'description' => '获取实验环境进度', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeExperimentEnvProgress', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteRankingModelTemplate', + 'description' => '删除模型', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airec:DeleteRankingModelTemplate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ModifyRankingModelTemplate', + 'description' => '修改排序模型模板', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyRankingModelTemplate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ModifyDataSource', + 'description' => '修改指定实例的指定数据源信息', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyDataSource', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'CreateDataDiagnoseTask', + 'description' => '创建数据诊断任务', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateDataDiagnoseTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'UnLockIndexVersion', + 'description' => '解锁索引版本', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:UnLockIndexVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'PublishRule', + 'description' => '发布规则', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:PublishRule', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeSceneThroughput', + 'description' => '获取场景流量', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeSceneThroughput', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteFlowControlTask', + 'description' => '删除流量调控任务', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airec:DeleteFlowControlTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'QuerySyncReportAggregation', + 'description' => '查询整体数据概览', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:QuerySyncReportAggregation', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ColdStartRank', + 'description' => '获取指定冷启动实例的排序结果', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ColdStartRank', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteDataSet', + 'description' => '删除指定实例的指定数据集版本', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airec:DeleteDataSet', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListDataDiagnoseReports', + 'description' => '获取数据诊断报告 ', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListDataDiagnoseReports', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'CreateRule', + 'description' => '创建规则', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateRule', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListMixCategories', + 'description' => 'ListMixCategories', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListMixCategories', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetRankingModelVersion', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:GetRankingModelVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'RebuildIndex', + 'description' => '重建索引', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:RebuildIndex', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'RenewInstance', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:RenewInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DescribeQuota', + 'description' => '获取指定实例的配额信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeQuota', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'QueryDataMessageStatistics', + 'description' => '查询用户数据表中的更新消息统计数据', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:QueryDataMessageStatistics', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'CreateFilteringAlgorithm', + 'description' => '创建召回表', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateFilteringAlgorithm', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListFlowControlTaskItems', + 'description' => '流量调控预览', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListFlowControlTaskItems', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'RunSampleFormatConfig', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:RunSampleFormatConfig', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ModifySample', + 'description' => '修改样本配置', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifySample', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'UpdateExperimentBasicInfo', + 'description' => '更新实验基本信息', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:UpdateExperimentBasicInfo', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListRankingSystemHistories', + 'description' => '查询服务操作记录列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListRankingSystemHistories', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListFlowControlTaskReference', + 'description' => '流量调控参考数据', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListFlowControlTaskReference', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListRules', + 'description' => '获取规则列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListRules', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DowngradeInstance', + 'description' => '降低指定实例配额 (Quota)信息', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:DowngradeInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'UpdateExperimentStatus', + 'description' => '更新实验状态', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:UpdateExperimentStatus', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'QuerySingleReport', + 'description' => 'QuerySingleReport', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:QuerySingleReport', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DeployRankingSystem', + 'description' => '部署排序服务', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:DeployRankingSystem', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'PublishFlowControlTask', + 'description' => '发布流量调控任务', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:PublishFlowControlTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListOfflineStorages', + 'description' => '查询离线存储', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListOfflineStorages', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'OfflineFilteringAlgorithm', + 'description' => '下线召回表', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:OfflineFilteringAlgorithm', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'CreateRankingModelTemplate', + 'description' => '创建排序模型模板', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateRankingModelTemplate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateAttributionConfig', + 'description' => '创建归因配置', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateAttributionConfig', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ModifyRule', + 'description' => 'ModifyRule', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyRule', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'VerifyRankingSystem', + 'description' => '调试排序服务', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'airec:VerifyRankingSystem', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteRankingSystem', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airec:DeleteRankingSystem', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'PushDocument', + 'description' => '推送文档', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:PushDocument', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListColdStartMetricParameters', + 'description' => '获取指定冷启动实例全量的渠道列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListColdStartMetricParameters', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'InitComputingResource', + 'description' => '初始化计算资源', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:InitComputingResource', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListRankingModelTemplates', + 'description' => '查看排序模型模板列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListRankingModelTemplates', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeExperiment', + 'description' => 'DescribeExperiment', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeExperiment', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ModifyOfflineStorages', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyOfflineStorages', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListColdStartMetrics', + 'description' => '查询冷启动实例的指标数据', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListColdStartMetrics', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeFilteringAlgorithm', + 'description' => '获取召回表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeFilteringAlgorithm', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListDataDiagnoseSampleDetails', + 'description' => '获取数据诊断报告抽样明细', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListDataDiagnoseSampleDetails', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'GenerateSample', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:GenerateSample', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListInstance', + 'description' => '查询实例列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DescribeScene', + 'description' => '查询场景详情', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeScene', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ModifyRankingModel', + 'description' => '修改排名模型', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyRankingModel', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ModifyInstance', + 'description' => '修改实例', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListSceneParameters', + 'description' => '获取指定实例全量的渠道和场景信息列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListSceneParameters', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DeleteSample', + 'description' => '删除样本', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airec:DeleteSample', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ModifyFlowControlTask', + 'description' => '修改流量控制任务,目前只支持草稿态和发布失败状态的任务修改配置信息', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyFlowControlTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListItems', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListItems', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListFlowControlTask', + 'description' => '获取流量调控任务列表,按照创建时间倒序返回', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListFlowControlTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'CreateRankingModel', + 'description' => '创建排名模型', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateRankingModel', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ModifyScene', + 'description' => '修改场景信息', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyScene', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteExperiment', + 'description' => '删除实验', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airec:DeleteExperiment', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListRankingModels', + 'description' => '获取排名模型列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListRankingModels', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListSampleFormatConfigs', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListSampleFormatConfigs', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListExtraDataSources', + 'description' => '获取数据源', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListExtraDataSources', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteScene', + 'description' => '删除场景', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airec:DeleteScene', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeLatestTask', + 'description' => '获取最新任务', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeLatestTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListFeatureTables', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListFeatureTables', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'CreateRankingSystem', + 'description' => '创建排序服务', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateRankingSystem', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListSceneItems', + 'description' => '获取预览结果', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListSceneItems', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'QueryRawData', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:QueryRawData', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeCustomAnalysisTask', + 'description' => '查询指定实例的仪表盘自定义分析任务结果', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeCustomAnalysisTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'Recommend', + 'description' => '智能推荐', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:Recommend', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeInstance', + 'description' => '查询实例信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'CreateFlowControlTask', + 'description' => '创建流量调控任务', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateFlowControlTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'CreateInstance', + 'description' => '创建一个预付费实例', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateExperimentConfig', + 'description' => '更新实验配置', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:UpdateExperimentConfig', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'GetSample', + 'description' => '获取样本详情', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:GetSample', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ListDataSource', + 'description' => '获取指定实例的数据源列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListDataSource', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'GetFlowControlTask', + 'description' => '获取流量调控任务详情', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:GetFlowControlTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'RefreshFeatureTable', + 'description' => '刷新特征表', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:RefreshFeatureTable', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'ValidateInstance', + 'description' => '校验指定实例有效性', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'airec:ValidateInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'GetExtraDataSource', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:GetExtraDataSource', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'CreateUmengToken', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateUmengToken', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListRankingSystems', + 'description' => '获取排序服务列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListRankingSystems', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'CloneExperiment', + 'description' => '克隆实验', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CloneExperiment', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteFilteringAlgorithm', + 'description' => '删除召回表', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'airec:DeleteFilteringAlgorithm', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + 'apiName' => 'AttachDataset', + 'description' => '开启数据训练', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:AttachDataSet', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListSamples', + 'description' => '获取样本列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListSamples', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","type":"json"}]', - 'title' => '获取数据诊断报告抽样明细', - ], - ], - 'endpoints' => [ - [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'airec.cn-beijing.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'airec.cn-hangzhou.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'airec.cn-shanghai.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen', - 'endpoint' => 'airec.cn-shenzhen.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'airec.ap-southeast-1.aliyuncs.com', ], - [ - 'regionId' => 'us-east-1', - 'endpoint' => 'airec.us-east-1.aliyuncs.com', + 'resourceTypes' => [ + ['validationType' => 'always', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ['validationType' => 'always', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:umeng/*'], + ['validationType' => 'always', 'resourceType' => 'RankingModel', 'arn' => 'acs:airec:{#regionId}:{#accountId}:rankingmodel/{#RankingModelId}'], + ['validationType' => 'always', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:*'], + ['validationType' => 'always', 'resourceType' => 'Scene', 'arn' => 'acs:airec:{#regionId}:{#accountId}:scene/{#SceneId}'], + ['validationType' => 'always', 'resourceType' => 'Instance', 'arn' => 'acs:ramcode:{#regionId}:{#accountId}:instance/{#InstanceId}'], ], ], ]; |
