diff options
Diffstat (limited to 'data/en_us/airec/2020-11-26/api-docs.php')
| -rw-r--r-- | data/en_us/airec/2020-11-26/api-docs.php | 26046 |
1 files changed, 11817 insertions, 14229 deletions
diff --git a/data/en_us/airec/2020-11-26/api-docs.php b/data/en_us/airec/2020-11-26/api-docs.php index da9b724..5fe4f6e 100644 --- a/data/en_us/airec/2020-11-26/api-docs.php +++ b/data/en_us/airec/2020-11-26/api-docs.php @@ -1,1006 +1,477 @@ <?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' => 'Examples', + 'children' => ['ValidateInstance'], 'type' => 'directory', - 'children' => [ - 'CreateInstance', - 'ModifyInstance', - 'DescribeInstance', - 'ListInstance', - 'RunInstance', - 'UpgradeInstance', - 'ValidateInstance', - 'DowngradeInstance', - ], + 'title' => 'Instance', ], [ - 'id' => 156270, - 'title' => 'External Data Sources', + 'children' => ['DeleteExtraDataSource', 'ListExtraDataSources'], 'type' => 'directory', - 'children' => [ - 'CreateExtraDataSource', - 'DeleteExtraDataSource', - 'ListExtraDataSources', - ], + 'title' => 'External data source', ], [ - 'id' => 156273, - 'title' => 'Data Set', + 'children' => ['DescribeDataSetMessage'], 'type' => 'directory', - 'children' => [ - 'DeleteDataSet', - 'AttachDataset', - 'DescribeDataSetMessage', - 'ListDataSet', - ], + 'title' => 'Dataset', ], [ - 'id' => 156276, - 'title' => 'Experiment', + 'children' => ['EnableExperiment', 'UpdateExperimentConfig', 'DescribeBaseExperiment', 'DescribeExperiment', 'DescribeExperimentEnv', 'DescribeExperimentEnvProgress'], 'type' => 'directory', - 'children' => [ - 'DeleteExperiment', - 'EnableExperiment', - 'UpdateExperimentBasicInfo', - 'UpdateExperimentConfig', - 'UpdateExperimentStatus', - 'DescribeBaseExperiment', - 'DescribeExperiment', - 'DescribeExperimentEnv', - 'DescribeExperimentEnvProgress', - 'ListExperiments', - 'CloneExperiment', - ], + 'title' => 'Experiment', ], [ - 'id' => 174242, - 'title' => 'flow regulation', + 'children' => ['ListFlowControlTaskReports', 'ListFlowControlTaskInvalidItems', 'ListFlowControlTaskItems', 'ListFlowControlTask', 'ListFlowControlTaskItemReports', 'StopFlowControlTask', 'PublishFlowControlTask'], 'type' => 'directory', - 'children' => [ - 'ListFlowControlTaskReports', - 'ListFlowControlTaskInvalidItems', - 'ListFlowControlTaskItems', - 'CreateFlowControlTask', - 'GetFlowControlTask', - 'DeleteFlowControlTask', - 'ListFlowControlTask', - 'ListFlowControlTaskItemReports', - 'ListFlowControlTaskReference', - 'ModifyFlowControlTask', - 'StopFlowControlTask', - 'PublishFlowControlTask', - ], + 'title' => 'Traffic control', ], [ - 'id' => 156282, - 'title' => 'Recall Table', + 'children' => ['ModifyFilteringAlgorithmMeta', 'ListFilteringAlgorithms', 'OfflineFilteringAlgorithm'], 'type' => 'directory', - 'children' => [ - 'CreateFilteringAlgorithm', - 'DeleteFilteringAlgorithm', - 'ModifyFilteringAlgorithmMeta', - 'DescribeFilteringAlgorithm', - 'ListFilteringAlgorithms', - 'OfflineFilteringAlgorithm', - ], + 'title' => 'Recall table', ], [ - 'id' => 156289, - 'title' => 'sorting system', + 'children' => ['CreateRankingSystem', 'DeleteRankingSystem', 'GetRankingSystem', 'GetRankingSystemHistory', 'VerifyRankingSystem', 'RollbackRankingSystem'], 'type' => 'directory', - 'children' => [ - 'CreateRankingSystem', - 'DeleteRankingSystem', - 'ModifyRankingSystem', - 'GetRankingSystem', - 'GetRankingSystemHistory', - 'ListRankingSystems', - 'ListRankingSystemHistories', - 'DeployRankingSystem', - 'VerifyRankingSystem', - 'RollbackRankingSystem', - ], + 'title' => 'Ranking system', ], [ - 'id' => 156299, - 'title' => 'Sort Model Template', + 'children' => ['CreateRankingModelTemplate', 'DeleteRankingModelTemplate', 'GetRankingModelTemplate', 'RunRankingModelTemplate'], 'type' => 'directory', - 'children' => [ - 'CreateRankingModelTemplate', - 'DeleteRankingModelTemplate', - 'ModifyRankingModelTemplate', - 'GetRankingModelTemplate', - 'RunRankingModelTemplate', - ], + 'title' => 'Ranking model template', ], [ - 'id' => 156305, - 'title' => 'sorting model', + 'children' => ['CreateRankingModel', 'DeleteRankingModel', 'DeleteRankingModelVersion', 'ModifyRankingModel', 'ListRankingModels', 'ListRankingModelTemplates', 'GetRankingModelVersion'], 'type' => 'directory', - 'children' => [ - 'CreateRankingModel', - 'DeleteRankingModel', - 'DeleteRankingModelVersion', - 'ModifyRankingModel', - 'ListRankingModels', - 'ListRankingModelTemplates', - 'GetRankingModelVersion', - 'ListRankingModelVersions', - 'DecribeRankingModel', - 'CheckRankingModelReachable', - ], + 'title' => 'Ranking model', ], [ - 'id' => 156255, - 'title' => 'Rules', + 'children' => ['ModifyScene', 'DescribeScene'], 'type' => 'directory', - 'children' => [ - 'CreateRule', - 'ModifyRule', - 'ListRules', - 'DescribeRule', - 'PublishRule', - ], + 'title' => 'Scene', ], [ - 'id' => 156258, - 'title' => 'Scene', + 'children' => ['CreateCustomSample', 'CreateSampleFormatConfig', 'DeleteSample', 'ModifySample', 'ListSamples', 'GetSample', 'GenerateSample'], 'type' => 'directory', - 'children' => [ - 'CreateScene', - 'DeleteScene', - 'ModifyScene', - 'DescribeScene', - 'ListScenes', - ], + 'title' => 'Sample', ], [ - 'id' => 156320, - 'title' => 'Sample', - 'type' => 'directory', 'children' => [ - 'CreateCustomSample', - 'CreateSampleFormatConfig', - 'DeleteSample', - 'ModifySample', - 'ListSamples', - 'GetSample', - 'CloneSample', - 'GenerateSample', + 'CreateCustomAnalysisTask', 'AttachIndexVersion', 'ModifyFeatureTable', 'ModifyItems', 'StopDataSet', 'DescribeCustomAnalysisTask', 'DescribeLatestTask', 'DescribeSceneBucket', 'DescribeSceneThroughput', 'DescribeSyncReportDetail', 'DescribeSyncReportOutliers', 'GetExtraDataSource', 'ListDashboardDetails', 'ListDashboardDetailsFlows', 'ListDashboardMetrics', 'ListDashboardMetricsFlows', 'ListFeatureTables', 'ListIndexVersions', 'ListItems', 'ListLogs', + 'ListOfflineStorages', 'ListSampleFormatConfigs', 'ListSceneItems', 'ListSceneParameters', 'ListUmengAppkeys', 'ListUserClusters', 'QueryDataMessage', 'QueryDataMessageStatistics', 'QueryExceptionHistory', 'QueryRawData', 'QuerySingleAggregationReport', 'InitComputingResource', 'PushDocument', 'PushIntervention', 'RefreshFeatureTable', 'UnLockIndexVersion', 'CreateDataDiagnoseTask', 'CreateUmengToken', 'GetLatestDataDiagnoseTaskStatus', 'ListDataDiagnoseReports', + 'ListDataDiagnoseSampleDetails', ], + 'type' => 'directory', + 'title' => 'Other', ], [ - 'id' => 156251, - 'title' => 'Other', - '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', + 'AttachDataset', 'CheckRankingModelReachable', 'CloneExperiment', 'CloneSample', 'CreateExtraDataSource', 'CreateFilteringAlgorithm', 'CreateFlowControlTask', 'CreateInstance', 'CreateRule', 'CreateScene', 'DecribeRankingModel', 'DeleteDataSet', 'DeleteExperiment', 'DeleteFilteringAlgorithm', 'DeleteFlowControlTask', 'DeleteScene', 'DeployRankingSystem', 'DescribeDefaultAlgorithms', 'DescribeFilteringAlgorithm', 'DescribeInstance', + 'DescribeQuota', 'DescribeRegions', 'DescribeRule', 'DescribeUserMetrics', 'DowngradeInstance', 'GetFlowControlTask', 'ListDataSet', 'ListDataSource', 'ListExperiments', 'ListFlowControlTaskReference', 'ListInstance', 'ListInstanceTask', 'ListMixCategories', 'ListRankingModelVersions', 'ListRankingSystemHistories', 'ListRankingSystems', 'ListRuleConditions', 'ListRuleTasks', 'ListRules', 'ListScenes', + 'ModifyDataSource', 'ModifyFlowControlTask', 'ModifyInstance', 'ModifyOfflineStorages', 'ModifyRankingModelTemplate', 'ModifyRankingSystem', 'ModifyRule', 'PublishRule', 'QuerySingleReport', 'QuerySyncReportAggregation', 'RebuildIndex', 'Recommend', 'RunInstance', 'RunSampleFormatConfig', 'UpdateExperimentBasicInfo', 'UpdateExperimentStatus', 'UpgradeInstance', ], + 'title' => 'Others', + 'type' => 'directory', ], ], 'components' => [ 'schemas' => [ 'ExtraDataSource' => [ 'title' => '', - 'description' => '', - 'visibility' => 'public', + 'description' => 'Extra data source.', 'type' => 'object', 'properties' => [ - 'Status' => [ + 'Status' => ['title' => '', 'description' => 'The status.', 'type' => 'string', 'example' => 'Ready 待应用;Online 已应用;Failed失败', 'visibility' => 'Public', 'backendName' => 'status'], + 'Meta' => [ 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', + 'description' => 'The data source configuration parameters.', + 'type' => 'object', + 'properties' => [ + 'Internal' => ['title' => '', 'description' => 'Indicates whether it is a built-in data source.', 'type' => 'boolean', 'example' => 'true', 'visibility' => 'Public', 'backendName' => 'internal'], + 'MetaType' => ['title' => '', 'description' => 'The configuration type.', 'type' => 'string', 'required' => false, 'example' => 'ExtraDataSource', 'visibility' => 'Public', 'backendName' => 'metaType'], + 'ProjectName' => ['title' => '', 'description' => 'The name of the ODPS project.', 'type' => 'string', 'example' => 'test_project', 'visibility' => 'Public', 'backendName' => 'projectName'], + 'TableName' => ['title' => '', 'description' => 'The name of the ODPS table.', 'type' => 'string', 'example' => 'test_table', 'visibility' => 'Public', 'backendName' => 'tableName'], + 'Type' => ['title' => '', 'description' => 'The type of the data source. Currently, only ODPS is supported.', 'type' => 'string', 'example' => 'ODPS', 'visibility' => 'Public', 'backendName' => 'type'], + 'UpdateFrequency' => ['title' => '', 'description' => 'The update frequency.', 'type' => 'integer', 'format' => 'int64', 'example' => '86400', 'visibility' => 'Public', 'backendName' => 'updateFrequency'], + ], 'example' => '', - 'backendName' => 'status', + 'visibility' => 'Public', + 'backendName' => 'meta', ], + 'Type' => ['title' => '', 'description' => 'The type of the data source.', 'type' => 'string', 'example' => 'UserCustomDataSource\\ItemCustomDataSource\\'."\n" + .'BehaviorCustomDataSource\\'."\n" + .'SampleCustomDataSource', 'visibility' => 'Public', 'backendName' => 'type'], + 'GmtCreate' => ['title' => '', 'description' => 'The UTC time when the data source was created.', 'type' => 'string', 'example' => '2021-12-07T13:26:29.000Z', 'visibility' => 'Public', 'backendName' => 'gmtCreate'], + 'GmtModified' => ['title' => '', 'description' => 'The UTC time when the data source was last modified.', 'type' => 'string', 'example' => '2021-12-07T13:26:29.000Z', 'visibility' => 'Public', 'backendName' => 'gmtModified'], + 'DataSourceId' => ['title' => '', 'description' => 'The ID of the data source.', 'type' => 'string', 'example' => 'E01D574F-ABD0-4C55-A5E3-8D24FD8D42EA', 'visibility' => 'Public', 'backendName' => 'dataSouceId'], + ], + 'example' => '', + 'visibility' => 'Public', + ], + 'FeatureTable' => [ + 'title' => '特征表', + 'type' => 'object', + 'properties' => [ + 'Status' => ['title' => '状态', 'type' => 'string'], 'Meta' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', + 'title' => '配置信息', 'type' => 'object', 'properties' => [ - 'Internal' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'boolean', - 'example' => 'true', - 'backendName' => 'internal', - ], - 'MetaType' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'required' => false, - 'example' => 'ExtraDataSource', - 'backendName' => 'metaType', - ], - 'ProjectName' => [ - 'title' => 'ODPS project name。', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'test_project', - 'backendName' => 'projectName', - ], - 'TableName' => [ - 'title' => 'ODPS table name。', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'test_table', - 'backendName' => 'tableName', - ], - 'Type' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'ODPS', - 'backendName' => 'type', - ], - 'UpdateFrequency' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '86400', - 'backendName' => 'updateFrequency', + '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 已应用'], + ], + ], ], + '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'], ], - 'backendName' => 'meta', - ], - 'Type' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'UserCustomDataSource、ItemCustomDataSource、BehaviorCustomDataSource、SampleCustomDataSource', - 'backendName' => 'type', - ], - 'GmtCreate' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => '2021-12-07T13:26:29.000Z', - 'backendName' => 'gmtCreate', - ], - 'GmtModified' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => '2021-12-07T13:26:29.000Z', - 'backendName' => 'gmtModified', ], - 'DataSourceId' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'E01D574F-ABD0-4C55-A5E3-8D24FD8D42EA', - 'backendName' => 'dataSouceId', + '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'], + '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'], + ], ], + 'VersionNum' => ['title' => '版本数', 'type' => 'integer', 'format' => 'int64', 'example' => '3'], + 'TemplateId' => ['title' => '模型模板ID', 'type' => 'string', 'example' => 'a-a-a'], ], ], 'RankingModelVersion' => [ 'title' => '', - 'description' => '', - 'visibility' => 'public', + 'description' => 'Model version information.', 'type' => 'object', 'properties' => [ - 'Status' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'TRAINING', - 'backendName' => 'status', - ], - 'RunTime' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => '2021-12-08T20:00:00.0Z', - 'backendName' => 'runTime', - ], - 'RunLog' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'backendName' => 'runLog', - ], - 'TemplateName' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'Module-A', - 'backendName' => 'templateName', - ], + 'Status' => ['title' => '', 'description' => 'The training status.', 'type' => 'string', 'example' => 'TRAINING', 'visibility' => 'Public', 'backendName' => 'status'], + 'RunTime' => ['title' => '', 'description' => 'The training start time.', 'type' => 'string', 'example' => '2021-12-08T20:00:00.0Z', 'visibility' => 'Public', 'backendName' => 'runTime'], + 'RunLog' => ['title' => '', 'description' => 'The run log.', 'type' => 'string', 'example' => '', 'visibility' => 'Public', 'backendName' => 'runLog'], + 'TemplateName' => ['title' => '', 'description' => 'The model template name.', 'type' => 'string', 'example' => '模型A', 'visibility' => 'Public', 'backendName' => 'templateName'], 'RunResult' => [ 'title' => '', - 'description' => '', - 'visibility' => 'public', + 'description' => 'The run result.', 'type' => 'object', 'properties' => [ - 'AssessAuc' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => '0.3', - 'backendName' => 'assessAuc', - ], - 'AssessGauc' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => '0.3', - 'backendName' => 'assessGauc', - ], - 'AssessLoss' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => '0.3', - 'backendName' => 'assessLoss', - ], - 'TrainAuc' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => '0.3', - 'backendName' => 'trainAuc', - ], - 'TrainGauc' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => '0.3', - 'backendName' => 'trainGauc', - ], - 'TrainLoss' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => '0.3', - 'backendName' => 'trainLoss', - ], + 'AssessAuc' => ['title' => '', 'description' => 'The evaluation AUC.', 'type' => 'string', 'example' => '0.3', 'visibility' => 'Public', 'backendName' => 'assessAuc'], + 'AssessGauc' => ['title' => '', 'description' => 'The loss obtained during evaluation.', 'type' => 'string', 'example' => '0.3', 'visibility' => 'Public', 'backendName' => 'assessGauc'], + 'AssessLoss' => ['title' => '', 'description' => 'The Group Area Under the Curve (GAUC) for the evaluation.', 'type' => 'string', 'example' => '0.3', 'visibility' => 'Public', 'backendName' => 'assessLoss'], + 'TrainAuc' => ['title' => '', 'description' => 'The training AUC.', 'type' => 'string', 'example' => '0.3', 'visibility' => 'Public', 'backendName' => 'trainAuc'], + 'TrainGauc' => ['title' => '', 'description' => 'The training GAUC.', 'type' => 'string', 'example' => '0.3', 'visibility' => 'Public', 'backendName' => 'trainGauc'], + 'TrainLoss' => ['title' => '', 'description' => 'The training Loss.', 'type' => 'string', 'example' => '0.3', 'visibility' => 'Public', 'backendName' => 'trainLoss'], ], - 'backendName' => 'runResult', - ], - 'Name' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', 'example' => '', - 'backendName' => 'name', - ], - 'TemplateId' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'a-a-a', - 'backendName' => 'templateId', + 'visibility' => 'Public', + 'backendName' => 'runResult', ], + 'Name' => ['title' => '', 'description' => 'The version name.', 'type' => 'string', 'example' => '模型A_t1638964800000', 'visibility' => 'Public', 'backendName' => 'name'], + 'TemplateId' => ['title' => '', 'description' => 'The model template ID.', 'type' => 'string', 'example' => 'a-a-a', 'visibility' => 'Public', 'backendName' => 'templateId'], ], + 'example' => '', + 'visibility' => 'Public', ], 'RankingSystem' => [ 'title' => '', - 'description' => 'The ranking service.'."\n", - 'visibility' => 'public', + 'description' => 'The ranking service.', 'type' => 'object', 'properties' => [ 'Meta' => [ 'title' => '', - 'description' => 'The metadata of the ranking service.'."\n", - 'visibility' => 'public', + 'description' => 'The service metadata.', 'type' => 'object', 'properties' => [ - 'AutoDeploy' => [ - 'title' => '', - 'description' => 'Indicates whether the ranking service is automatically deployed.'."\n", - 'visibility' => 'public', - 'type' => 'boolean', - 'example' => 'true', - 'backendName' => 'autoDeploy', - ], - 'AutoDeployAuc' => [ - 'title' => '', - 'description' => 'The area under the curve (AUC) threshold for automatic deployment.'."\n", - 'visibility' => 'public', - 'type' => 'string', - 'example' => '0.3', - 'backendName' => 'autoDeployAuc', - ], - 'Conf' => [ - 'title' => '', - 'description' => 'The configuration file.'."\n", - 'visibility' => 'public', - 'type' => 'string', - 'backendName' => 'conf', - ], + 'AutoDeploy' => ['title' => '', 'description' => 'Specifies whether to automatically deploy the model.', 'type' => 'boolean', 'example' => 'true', 'visibility' => 'Public', 'backendName' => 'autoDeploy'], + 'AutoDeployAuc' => ['title' => '', 'description' => 'The AUC threshold for automatic deployment.', 'type' => 'string', 'example' => '0.3', 'visibility' => 'Public', 'backendName' => 'autoDeployAuc'], + 'Conf' => ['title' => '', 'description' => 'The configuration file.', 'type' => 'string', 'example' => '', 'visibility' => 'Public', 'backendName' => 'conf'], 'PredictEngine' => [ 'title' => '', - 'description' => 'The configurations of the prediction engine.'."\n", - 'visibility' => 'public', + 'description' => 'The prediction engine configuration.', 'type' => 'object', 'properties' => [ - 'ResourceId' => [ - 'title' => '', - 'description' => 'The ID of the resource for the prediction engine.'."\n", - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'eas-oljkkdrggxhx7eizjd', - 'backendName' => 'resourceId', - ], - 'Version' => [ - 'title' => '', - 'description' => 'The version of the prediction engine.'."\n", - 'visibility' => 'public', - 'type' => 'string', - 'example' => '1', - 'backendName' => 'version', - ], - 'ClusterId' => [ - 'title' => '', - 'description' => 'The cluster ID of the prediction engine.'."\n", - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'cn-shanghai', - 'backendName' => 'clusterId', - ], + 'ResourceId' => ['title' => '', 'description' => 'The resource ID of the prediction engine.', 'type' => 'string', 'example' => 'eas-oljkkdrggxhx7eizjd', 'visibility' => 'Public', 'backendName' => 'resourceId'], + 'Version' => ['title' => '', 'description' => 'The prediction engine version.', 'type' => 'string', 'example' => '1', 'visibility' => 'Public', 'backendName' => 'version'], + 'ClusterId' => ['title' => '', 'description' => 'The cluster ID of the prediction engine.', 'type' => 'string', 'example' => 'cn-shanghai', 'visibility' => 'Public', 'backendName' => 'clusterId'], ], + 'example' => '', + 'visibility' => 'Public', 'backendName' => 'predictEngine', ], - 'PredictEngineType' => [ - 'title' => '', - 'description' => 'The type of the prediction engine.'."\n", - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'EAS', - 'backendName' => 'predictEngineType', - ], - 'ModelVersionName' => [ - 'title' => '', - 'description' => 'The name of the model version.'."\n", - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'Model A_T1638964800000'."\n", - 'backendName' => 'modelVersionName', - ], - 'FailMsg' => [ - 'title' => '', - 'description' => 'The cause of the deployment failure.'."\n", - 'visibility' => 'public', - 'type' => 'string', - 'backendName' => 'failMsg', - ], + 'PredictEngineType' => ['title' => '', 'description' => 'The type of the prediction engine. For example, `EAS` stands for Elastic Algorithm Service.', 'type' => 'string', 'example' => 'EAS', 'visibility' => 'Public', 'backendName' => 'predictEngineType'], + 'ModelVersionName' => ['title' => '', 'description' => 'The model version name.', 'type' => 'string', 'example' => '模型A_T1638964800000', 'visibility' => 'Public', 'backendName' => 'modelVersionName'], + 'FailMsg' => ['title' => '', 'description' => 'The reason for a deployment failure.', 'type' => 'string', 'example' => '', 'visibility' => 'Public', 'backendName' => 'failMsg'], ], + 'example' => '', + 'visibility' => 'Public', 'backendName' => 'meta', ], - 'ApplyStatus' => [ - 'title' => '', - 'description' => 'The state of the service application.'."\n", - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'NOT_APPLIED', - 'backendName' => 'applyStatus', - ], - 'DeployStatus' => [ - 'title' => '', - 'description' => 'The state of the service deployment.'."\n", - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'NOT_DEPLOYED', - 'backendName' => 'deployStatus', - ], + 'ApplyStatus' => ['title' => '', 'description' => 'The application status.', 'type' => 'string', 'example' => 'NOT_APPLIED', 'visibility' => 'Public', 'backendName' => 'applyStatus'], + 'DeployStatus' => ['title' => '', 'description' => 'The deployment status.', 'type' => 'string', 'example' => 'NOT_DEPLOYED', 'visibility' => 'Public', 'backendName' => 'deployStatus'], 'SceneIdList' => [ 'title' => '', - 'description' => 'The scenes where the service is used.'."\n", - 'visibility' => 'public', + 'description' => 'A list of scene IDs.', 'type' => 'array', - 'items' => [ - 'visibility' => 'public', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '[1, 2, 3]', - 'extendType' => 'true', - ], + 'items' => ['type' => 'integer', 'format' => 'int64', 'example' => '[1, 2, 3]', 'description' => '', 'title' => '', 'visibility' => 'Public', 'extendType' => 'true'], + 'example' => '', + 'visibility' => 'Public', 'backendName' => 'sceneIdList', ], - 'Name' => [ - 'title' => '', - 'description' => 'The name of the ranking service.'."\n", - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'servicea', - 'backendName' => 'name', - ], - 'ModelTemplateId' => [ - 'title' => '', - 'description' => 'The ID of the model.'."\n", - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'a-a-a', - 'backendName' => 'modelTemplateId', - ], + 'Name' => ['title' => '', 'description' => 'The service name.', 'type' => 'string', 'example' => 'servicea', 'visibility' => 'Public', 'backendName' => 'name'], + 'ModelTemplateId' => ['title' => '', 'description' => 'The model template ID.', 'type' => 'string', 'example' => 'a-a-a', 'visibility' => 'Public', 'backendName' => 'modelTemplateId'], ], + 'example' => '', + 'visibility' => 'Public', ], 'RankingSystemHistory' => [ 'title' => '', - 'description' => '', - 'visibility' => 'public', + 'description' => 'Ranking service operation record', 'type' => 'object', 'properties' => [ 'Meta' => [ 'title' => '', - 'description' => '', - 'visibility' => 'public', + 'description' => 'Meta information', 'type' => 'object', 'properties' => [ - 'AutoDeploy' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'boolean', - 'example' => 'true', - 'backendName' => 'autoDeploy', - ], - 'AutoDeployAuc' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => '0.3', - 'backendName' => 'autoDeployAuc', - ], - 'Conf' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'backendName' => 'conf', - ], - 'ModelTemplateName' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => '', - 'backendName' => 'modelTemplateName', - ], + 'AutoDeploy' => ['title' => '', 'description' => 'Whether automatic deployment is enabled', 'type' => 'boolean', 'example' => 'true', 'visibility' => 'Public', 'backendName' => 'autoDeploy'], + 'AutoDeployAuc' => ['title' => '', 'description' => 'AUC threshold for automatic deployment', 'type' => 'string', 'example' => '0.3', 'visibility' => 'Public', 'backendName' => 'autoDeployAuc'], + 'Conf' => ['title' => '', 'description' => 'Configuration file', 'type' => 'string', 'example' => '', 'visibility' => 'Public', 'backendName' => 'conf'], + 'ModelTemplateName' => ['title' => '', 'description' => 'Model template name', 'type' => 'string', 'example' => '排序模型A', 'visibility' => 'Public', 'backendName' => 'modelTemplateName'], 'PredictEngine' => [ 'title' => '', - 'description' => '', - 'visibility' => 'public', + 'description' => 'Prediction engine information', 'type' => 'object', 'properties' => [ - 'ResourceId' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'eas-oljkkdrggxhx7eizjd', - 'backendName' => 'resourceId', - ], - 'Version' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => '1', - 'backendName' => 'version', - ], + 'ResourceId' => ['title' => '', 'description' => 'Prediction engine resource ID', 'type' => 'string', 'example' => 'eas-oljkkdrggxhx7eizjd', 'visibility' => 'Public', 'backendName' => 'resourceId'], + 'Version' => ['title' => '', 'description' => 'Prediction engine version', 'type' => 'string', 'example' => '1', 'visibility' => 'Public', 'backendName' => 'version'], ], + 'example' => '', + 'visibility' => 'Public', 'backendName' => 'predictEngine', ], - 'PredictEngineType' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'EAS', - 'backendName' => 'predictEngineType', - ], - 'PreviousOperateId' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'aaaa', - 'backendName' => 'previousOperateId', - ], + 'PredictEngineType' => ['title' => '', 'description' => 'Prediction engine type', 'type' => 'string', 'example' => 'EAS', 'visibility' => 'Public', 'backendName' => 'predictEngineType'], + 'PreviousOperateId' => ['title' => '', 'description' => 'ID of the previous operation record', 'type' => 'string', 'example' => 'aaaa', 'visibility' => 'Public', 'backendName' => 'previousOperateId'], ], + 'example' => '', + 'visibility' => 'Public', 'backendName' => 'meta', ], - 'OperateTime' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => '2021-12-06T03:01:41.217Z', - 'backendName' => 'operateTime', - ], - 'OperateId' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => '8AC865AF-37D6-42ED-AA9A-B60D8ECDF640', - 'backendName' => 'operateId', - ], - 'OperateType' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'CONF_CHANGE', - 'backendName' => 'operateType', - ], - 'Name' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'servicea', - 'backendName' => 'name', - ], + 'OperateTime' => ['title' => '', 'description' => 'Operation time', 'type' => 'string', 'example' => '2021-12-06T03:01:41.217Z', 'visibility' => 'Public', 'backendName' => 'operateTime'], + 'OperateId' => ['title' => '', 'description' => 'Operation ID', 'type' => 'string', 'example' => '8AC865AF-37D6-42ED-AA9A-B60D8ECDF640', 'visibility' => 'Public', 'backendName' => 'operateId'], + 'OperateType' => ['title' => '', 'description' => 'Operation type', 'type' => 'string', 'example' => 'CONF_CHANGE', 'visibility' => 'Public', 'backendName' => 'operateType'], + 'Name' => ['title' => '', 'description' => 'Service name', 'type' => 'string', 'example' => 'servicea', 'visibility' => 'Public', 'backendName' => 'name'], ], + 'example' => '', + 'visibility' => 'Public', ], 'Sample' => [ - 'title' => 'The time when the sample was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in Coordinated Universal Time (UTC).'."\n", - 'description' => 'The time when the sample was last modified. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed UTC.'."\n", - 'visibility' => 'public', + 'title' => '', + 'description' => 'The sample entity.', 'type' => 'object', 'properties' => [ - 'Status' => [ - 'title' => 'The ID of the sample.'."\n", - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'Formatted', - 'backendName' => 'status', - ], + 'Status' => ['title' => '', 'description' => 'The status of the sample.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **Unready**: The configuration is not complete.'."\n" + ."\n" + .'- **Ready**: The configuration is complete.'."\n" + ."\n" + .'- **Generating**: The sample is being generated.'."\n" + ."\n" + .'- **Success**: The sample is generated.'."\n" + ."\n" + .'- **Failed**: The sample failed to generate.'."\n" + ."\n" + .'- **Formatting**: The sample is being formatted.'."\n" + ."\n" + .'- **Formatted**: The sample is formatted.'."\n" + ."\n" + .'- **FormatFailed**: The sample failed to be formatted.'."\n" + ."\n" + .'- **Applied**: The sample is applied to the model.', 'type' => 'string', 'example' => 'Formatted', 'visibility' => 'Public', 'backendName' => 'status'], 'Meta' => [ 'title' => '', - 'description' => '', - 'visibility' => 'public', + 'description' => 'The configuration.', 'type' => 'object', 'properties' => [ - 'AutoUpdate' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'boolean', - 'example' => 'true', - 'backendName' => 'autoUpdate', - ], - 'AutoUpdateFrequency' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1673341140', - 'backendName' => 'autoUpdateFrequency', - ], - 'ClonedId' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => '1638877561147', - 'backendName' => 'clonedId', - ], + 'AutoUpdate' => ['title' => '', 'description' => 'Specifies whether to automatically update the sample configuration.', 'type' => 'boolean', 'example' => 'true', 'visibility' => 'Public', 'backendName' => 'autoUpdate'], + 'AutoUpdateFrequency' => ['title' => '', 'description' => 'The update frequency. The value is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1673341140', 'visibility' => 'Public', 'backendName' => 'autoUpdateFrequency'], + 'ClonedId' => ['title' => '', 'description' => 'The ID of the cloned sample.', 'type' => 'string', 'example' => '1638877561147', 'visibility' => 'Public', 'backendName' => 'clonedId'], 'Config' => [ 'title' => '', - 'description' => '', - 'visibility' => 'public', + 'description' => 'The details of the sample configuration.', 'type' => 'object', 'properties' => [ 'BhvTableSourceIds' => [ 'title' => '', - 'description' => '', - 'visibility' => 'public', + 'description' => 'A list of behavioral data sources.', 'type' => 'array', - 'items' => [ - 'visibility' => 'public', - 'type' => 'string', - 'extendType' => 'true', - ], + 'items' => ['description' => 'A behavioral data source.', 'type' => 'string', 'title' => '', 'example' => '', 'visibility' => 'Public', 'extendType' => 'true'], + 'example' => '', + 'visibility' => 'Public', 'backendName' => 'bhvTableSourceIds', ], 'FeatureConfig' => [ 'title' => '', - 'description' => '', - 'visibility' => 'public', + 'description' => 'The feature configuration.', 'type' => 'object', 'properties' => [ - 'ItemFeatures' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'deress,red', - 'backendName' => 'itemFeatures', - ], - 'UserFeatures' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'man', - 'backendName' => 'userFeatures', - ], + 'ItemFeatures' => ['title' => '', 'description' => 'The item features. Multiple features are supported. Separate multiple features with commas.', 'type' => 'string', 'example' => 'deress,red', 'visibility' => 'Public', 'backendName' => 'itemFeatures'], + 'UserFeatures' => ['title' => '', 'description' => 'The user features. Multiple features are supported. Separate multiple features with commas.', 'type' => 'string', 'example' => 'man', 'visibility' => 'Public', 'backendName' => 'userFeatures'], ], + 'example' => '', + 'visibility' => 'Public', 'backendName' => 'featureConfig', ], 'LabelLogic' => [ 'title' => '', - 'description' => '', - 'visibility' => 'public', + 'description' => 'The logic for sample labeling.', 'type' => 'object', 'properties' => [ - 'BhvTimeWindow' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '86400', - 'backendName' => 'bBhvTimeWindow', - ], - 'NegativeBhvTypes' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'click,expose', - 'backendName' => 'negativeBhvTypes', - ], - 'PositiveBhvTypes' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'like', - 'backendName' => 'positiveBhvTypes', - ], + 'BhvTimeWindow' => ['title' => '', 'description' => 'The time window, in seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '86400', 'visibility' => 'Public', 'backendName' => 'bBhvTimeWindow'], + 'NegativeBhvTypes' => ['title' => '', 'description' => 'The negative behaviors. Multiple behaviors are supported. Separate multiple behaviors with commas.', 'type' => 'string', 'example' => 'click,expose', 'visibility' => 'Public', 'backendName' => 'negativeBhvTypes'], + 'PositiveBhvTypes' => ['title' => '', 'description' => 'The positive behaviors. Multiple behaviors are supported. Separate multiple behaviors with commas.', 'type' => 'string', 'example' => 'like', 'visibility' => 'Public', 'backendName' => 'positiveBhvTypes'], ], + 'example' => '', + 'visibility' => 'Public', 'backendName' => 'labelLogic', ], 'WeightLogicList' => [ 'title' => '', - 'description' => '', - 'visibility' => 'public', + 'description' => 'The weight logic configuration.', 'type' => 'array', 'items' => [ - 'visibility' => 'public', + 'description' => 'The weight.', 'type' => 'object', 'properties' => [ - 'Bhv' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'click', - 'backendName' => 'bhv', - ], - 'Weight' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => '1', - 'backendName' => 'weight', - ], + 'Bhv' => ['title' => '', 'description' => 'The behavior type.', 'type' => 'string', 'example' => 'click', 'visibility' => 'Public', 'backendName' => 'bhv'], + 'Weight' => ['title' => '', 'description' => 'The weight. The value ranges from 1 to 100.', 'type' => 'string', 'example' => '1', 'visibility' => 'Public', 'backendName' => 'weight'], ], + 'title' => '', + 'example' => '', + 'visibility' => 'Public', 'extendType' => 'true', ], + 'example' => '', + 'visibility' => 'Public', 'backendName' => 'weightLogicList', ], ], + 'example' => '', + 'visibility' => 'Public', 'backendName' => 'config', ], 'ExtendParams' => [ 'title' => '', - 'description' => '', - 'visibility' => 'public', + 'description' => 'The extended parameters.', 'type' => 'object', 'properties' => [ - 'LatestTaskStatus' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - 'backendName' => 'latestTaskStatus', - ], - 'SampleCount' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - 'backendName' => 'sampleCount', - ], + 'LatestTaskStatus' => ['title' => '', 'description' => 'The status of the latest task.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **0**: No task.'."\n" + ."\n" + .'- **1**: Normal.'."\n" + ."\n" + .'- **2**: Abnormal.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'visibility' => 'Public', 'backendName' => 'latestTaskStatus'], + 'SampleCount' => ['title' => '', 'description' => 'The number of samples.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'visibility' => 'Public', 'backendName' => 'sampleCount'], ], + 'example' => '', + 'visibility' => 'Public', 'backendName' => 'extendParams', ], - 'MetaType' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'Sample', - 'backendName' => 'metaType', - ], - 'Name' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => '12345', - 'backendName' => 'name', - ], - 'StoreConfig' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'projectName.tableName', - 'backendName' => 'storeConfig', - ], - 'Type' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => 'System', - 'backendName' => 'type', - ], + 'MetaType' => ['title' => '', 'description' => 'The type of metadata.', 'type' => 'string', 'example' => 'Sample', 'visibility' => 'Public', 'backendName' => 'metaType'], + 'Name' => ['title' => '', 'description' => 'The name of the sample.', 'type' => 'string', 'example' => '12345', 'visibility' => 'Public', 'backendName' => 'name'], + 'StoreConfig' => ['title' => '', 'description' => 'The storage location.', 'type' => 'string', 'example' => 'projectName.tableName', 'visibility' => 'Public', 'backendName' => 'storeConfig'], + 'Type' => ['title' => '', 'description' => 'The type of the sample.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **Cloned**: A cloned sample.'."\n" + ."\n" + .'- **System**: A system-generated sample.'."\n" + ."\n" + .'- **Custom**: A custom sample.', 'type' => 'string', 'example' => 'System', 'visibility' => 'Public', 'backendName' => 'type'], ], + 'example' => '', + 'visibility' => 'Public', 'backendName' => 'meta', ], - 'GmtCreate' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => '2021-12-07T12:28:52.000Z', - 'backendName' => 'gmtCreate', - ], - 'GmtModified' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => '2021-12-07T12:28:52.000Z', - 'backendName' => 'gmtModified', - ], - 'SampleId' => [ - 'title' => '', - 'description' => '', - 'visibility' => 'public', - 'type' => 'string', - 'example' => '1638880131873', - 'backendName' => 'sampleId', - ], + 'GmtCreate' => ['title' => '', 'description' => 'The time when the sample was created. The time is in UTC.', 'type' => 'string', 'example' => '2021-12-07T12:28:52.000Z', 'visibility' => 'Public', 'backendName' => 'gmtCreate'], + 'GmtModified' => ['title' => '', 'description' => 'The time when the sample was last modified.', 'type' => 'string', 'example' => '2021-12-07T12:28:52.000Z', 'visibility' => 'Public', 'backendName' => 'gmtModified'], + 'SampleId' => ['title' => '', 'description' => 'The ID of the sample.', 'type' => 'string', 'example' => '1638880131873', 'visibility' => 'Public', 'backendName' => 'sampleId'], ], + 'example' => '', + 'visibility' => 'Public', ], ], ], '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' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****', 'title' => ''], + ], + [ + 'name' => 'versionId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the version.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '2018102321****', 'title' => ''], ], ], - 'parameters' => [], 'responses' => [ 200 => [ 'schema' => [ @@ -1008,97 +479,90 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => 'The returned results.'."\n", + 'description' => 'The details about the dataset.'."\n", 'type' => 'object', 'properties' => [ - 'instanceId' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'example' => 'airec-cn-xxxxx', - ], + 'versionId' => ['description' => 'The version number of the dataset.'."\n", 'type' => 'string', 'example' => '2018102321****', 'title' => ''], + 'state' => ['description' => 'The state for the dataset of the current version. Example: Importing. The value indicates that the dataset of the current version is being imported.'."\n", 'type' => 'string', 'example' => 'Importing', 'title' => ''], + 'gmtModified' => ['description' => 'The time when the data source was last modified.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '2018-12-07T02:24:26.000Z', 'title' => ''], + 'gmtCreate' => ['description' => 'The time when the data source was created.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '2018-12-06T06:14:01.000Z', 'title' => ''], + 'instanceId' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'example' => 'airec-cn-****', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => 'The error code.'."\n", 'type' => 'string', 'example' => 'InternalServerError', 'title' => ''], + 'requestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => 'F60021C4-57AF-5F46-9B3E-FCEF1C7A1459', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'An internal server error occurred', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'CreateInstance', - 'summary' => 'Creates an Artificial Intelligence Recommendation (AIRec) instance.', - 'requestParamsDescription' => '|Parameter|Type|Required|Description|'."\n" - .'|:---|:---|:---|:---|'."\n" - .'|type|String|Yes|The type of the instance. Valid values: Algorithm Configuration Edition and Industry Operation Edition.|'."\n" - .'|chargeType|String|Yes|The billing method of the instance. Valid values: PrePaid and PostPaid. PrePaid: the subscription billing method. If you set the value to PrePaid, make sure that your Alibaba Cloud account supports balance payment or credit payment. Otherwise, the system returns the InvalidPayMethod error message. If you set the value to PrePaid, you must also specify the paymentInfo parameter. PostPaid: the pay-as-you-go billing method. Currently, this method is not supported.|'."\n" - .'|quota|Map|Yes|The quotas that you want to apply for.|'."\n" - .'|userCount|Integer|Yes|The quota for the number of documents in the user table that you want to apply for. For more information about the limits on the quota, refer to the buy page.|'."\n" - .'|itemCount|Integer|Yes|The quota for the number of documents in the item table that you want to apply for. For more information about the limits on the quota, refer to the buy page.|'."\n" - .'|qps|Integer|Yes|The queries per second (QPS) quota for recommendation requests that you want to apply for. For more information about the limits on the quota, refer to the buy page.|'."\n" - .'|paymentInfo|Map|No|The billing information.|'."\n" - .'|duration|Integer|No|The billing cycle. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, and 12.|'."\n" - .'|pricingCycle|String|No|The unit of the billing cycle. Valid values: Month and Year.|'."\n" - .'|autoRenew|Boolean|No|Specifies whether to enable auto-renewal. Valid values: true and false.|', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ModifyInstance' => [ - 'path' => '/v2/openapi/instances/{instanceId}', - 'methods' => [ - 'put', + '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' => 'AttachDataset', + 'summary' => 'Uses a dataset of a specified version of a specified instance to provide online services.', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:AttachDataSet', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [], ], + ], + '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' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-xxxxxx', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-test'], + ], + [ + 'name' => 'algorithmId', + 'in' => 'path', + 'schema' => ['description' => 'The retrieval configuration ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '123'], + ], + [ + 'name' => 'versionId', + 'in' => 'path', + 'schema' => ['description' => 'The index version ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'v1'], ], ], 'responses' => [ @@ -1106,119 +570,56 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'The returned results.'."\n", - 'type' => 'object', - 'properties' => [ - 'regionId' => [ - 'description' => 'The region where the instance resides.'."\n", - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'type' => [ - 'description' => 'The type of the instance. Only the Standard edition is supported.'."\n", - 'type' => 'string', - 'example' => 'Standard', - ], - 'lockMode' => [ - 'description' => 'The lock mode of the instance. Valid values: Unlock, ManualLock, and LockByExpiration.'."\n", - 'type' => 'string', - 'example' => 'Unlock', - ], - 'expiredTime' => [ - 'description' => 'The time when the instance expires. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format.The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2019-01-06T16:00:00.000Z', - ], - 'status' => [ - 'description' => 'The state of the instance. Valid values: Initializing, Ready, and Running.'."\n", - 'type' => 'string', - 'example' => 'Running', - ], - 'gmtCreate' => [ - 'description' => 'The time when the instance was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2018-12-06T06:14:01.000Z', - ], - 'chargeType' => [ - 'description' => 'The billing method. Valid values: PrePaid and PostPaid. Only the PrePaid billing method is supported.'."\n", - 'type' => 'string', - 'example' => 'PrePaid', - ], - 'industry' => [ - 'description' => 'The type of the industry. Valid values: content, item, news, video, and sns.'."\n", - 'type' => 'string', - 'example' => 'news', - ], - 'commodityCode' => [ - 'description' => 'The commodity code of the recommended item.'."\n", - 'type' => 'string', - 'example' => 'airecpre', - ], - 'gmtModified' => [ - 'description' => 'The time when the instance was last modified. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2018-12-06T11:17:49.000Z', - ], - 'dataSetVersion' => [ - 'description' => 'The version of the dataset that provides online services.'."\n", - 'type' => 'string', - 'example' => '20181206170353', - ], - 'name' => [ - 'description' => 'The name of the instance.'."\n", - 'type' => 'string', - 'example' => 'Test instance'."\n", - ], - 'instanceId' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'example' => 'airec-cn-o400whm78004', - ], - ], - ], - 'code' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'result' => ['description' => 'Indicates whether the switch is successful.'."\n" + .'**TRUE**: Yes.'."\n" + .'**FALSE**: No.', 'type' => 'boolean', 'title' => '', 'example' => 'TRUE'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'E63A27A4-3411-4910-B7D5-12EEAC19389B'], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ModifyInstance', - 'summary' => 'Modifies the configurations of a specified instance.', - ], - 'DescribeInstance' => [ - 'path' => '/v2/openapi/instances/{instanceId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"E63A27A4-3411-4910-B7D5-12EEAC19389B\\"\\n}","type":"json"}]', + 'title' => 'AttachIndexVersion', + 'summary' => 'Brings a specified index version online.', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + 'CheckRankingModelReachable' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-models/{rankingModelId}/actions/check-connectivity', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1227,1117 +628,768 @@ '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' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-xxxxx', - ], + 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-7e22x6f75001', 'title' => ''], + ], + [ + 'name' => 'rankingModelId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the ranking model.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'rankingModelId', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'The returned results.'."\n", - 'type' => 'object', - 'properties' => [ - 'regionId' => [ - 'description' => 'The ID of the region where the instance resides.'."\n", - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'type' => [ - 'description' => 'The type of the instance. Only the Standard edition is supported.'."\n", - 'type' => 'string', - 'example' => 'Standard', - ], - 'lockMode' => [ - 'description' => 'The lock mode of the instance. Valid values: Unlock, ManualLock, and LockByExpiration.'."\n", - 'type' => 'string', - 'example' => 'Unlock', - ], - 'expiredTime' => [ - 'description' => 'The time when the instance expires. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2019-01-06T16:00:00.000Z', - ], - 'scene' => [ - 'description' => 'The name of the scene. Valid values: gul, rr, hot, and focus.'."\n", - 'type' => 'string', - 'example' => 'gul', - ], - 'status' => [ - 'description' => 'The state of the instance. Valid values: Initializing, Ready, and Running.'."\n", - 'type' => 'string', - 'example' => 'Running', - ], - 'gmtCreate' => [ - 'description' => 'The time when the instance was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2018-12-06T06:14:01.000Z', - ], - 'chargeType' => [ - 'description' => 'The billing method. Valid values: PrePaid and PostPaid. Only the PrePaid billing method is supported.'."\n", - 'type' => 'string', - 'example' => 'PrePaid', - ], - 'industry' => [ - 'description' => 'The type of the industry. Valid values: content, item, news, video, and sns.'."\n", - 'type' => 'string', - 'example' => 'news', - ], - 'commodityCode' => [ - 'description' => 'The commodity code of the recommended item.'."\n", - 'type' => 'string', - 'example' => 'airecpre', - ], - 'gmtModified' => [ - 'description' => 'The time when the instance was last modified. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2018-12-06T11:17:49.000Z', - ], - 'dataSetVersion' => [ - 'description' => 'The version of the dataset that provides online services.'."\n", - 'type' => 'string', - 'example' => '20181206170353', - ], - 'name' => [ - 'description' => 'The name of the instance.'."\n", - 'type' => 'string', - 'example' => 'Test instance'."\n", - ], - 'instanceId' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'example' => 'airec-cn-o400whm78004', - ], - ], - ], - 'code' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'result' => ['description' => 'The returned result.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'code' => ['description' => 'The HTTP status code.'."\n", 'type' => 'string', 'example' => '200', 'title' => ''], + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'An internal server error occurred', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'DescribeInstance', - 'summary' => 'Queries the details about an instance based on the instance ID.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ListInstance' => [ - 'path' => '/v2/openapi/instances', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'CheckRankingModelReachable', + 'summary' => 'Checks the network connectivity of a ranking model.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'airec:CheckRankingModelReachable', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + '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' => 'GET /openapi/instances?name=test&instanceId=abc&page=1&size=10', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '1', - ], - ], - [ - 'name' => 'size', - 'in' => 'query', - 'schema' => [ - 'description' => [ - [ - 'type' => 'json', - 'example' => '', - 'errorExample' => '', - ], - [ - 'type' => 'xml', - 'example' => '', - 'errorExample' => '', - ], - ], - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '10', - ], - ], - [ - 'name' => 'status', - 'in' => 'query', - 'schema' => [ - 'description' => ' ', - 'type' => 'string', - 'required' => false, - 'example' => 'Running', - ], + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****', 'title' => ''], ], [ - 'name' => 'name', - 'in' => 'query', - 'schema' => [ - 'description' => 'The number of the page to return. Default value: 1.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'The number of entries to return on each page. Valid values: 1 to 50. Default value: 10.'."\n", - ], + 'name' => 'sceneId', + 'in' => 'path', + 'schema' => ['description' => 'The scene ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'sceneId', 'title' => ''], ], [ - 'name' => 'expiredTime', + 'name' => 'dryRun', 'in' => 'query', - 'schema' => [ - 'description' => 'The state of the instance. Valid values: Running, Ready, Initializing, and Starting.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1608533404', - ], + 'schema' => ['description' => 'true: verifies experiment information. false (default): creates an experiment.'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''], ], [ - 'name' => 'instanceId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The name of the instance. Fuzzy match is supported.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Test instance'."\n", - ], + 'name' => 'experimentId', + 'in' => 'path', + 'schema' => ['description' => 'The experiment ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => 'The time when the instance expires. The value is a timestamp in seconds. Only instances whose expiration time is greater than the value of this parameter will be returned.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'regionId' => [ - 'description' => 'The instance ID. Fuzzy match is supported.'."\n", - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'type' => [ - 'description' => 'airec-cn-xxxxxx', - 'type' => 'string', - 'example' => 'Standard', - ], - 'lockMode' => [ - 'description' => 'The returned results.'."\n", - 'type' => 'string', - 'example' => 'Unlock', - ], - 'expiredTime' => [ - 'description' => 'The ID of the region where the instance resides.'."\n", - 'type' => 'string', - 'example' => '2019-01-06T16:00:00.000Z', - ], - 'status' => [ - 'description' => 'The type of the instance. Only the Standard edition is supported.'."\n", - 'type' => 'string', - 'example' => 'Running', - ], - 'gmtCreate' => [ - 'description' => 'The lock mode of the instance. Valid values: Unlock, ManualLock, and LockByExpiration.'."\n", - 'type' => 'string', - 'example' => '2018-12-06T06:14:01.000Z', - ], - 'chargeType' => [ - 'description' => 'The time when the instance expires. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => 'PrePaid', - ], - 'industry' => [ - 'description' => 'The state of the instance. Valid values: Initializing, Ready, and Running.'."\n", - 'type' => 'string', - 'example' => 'news', - ], - 'commodityCode' => [ - 'description' => 'The time when the instance was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => 'airecpre', - ], - 'gmtModified' => [ - 'description' => 'The billing method. Valid values: PrePaid and PostPaid. Only the PrePaid billing method is supported.'."\n", - 'type' => 'string', - 'example' => '2018-12-06T11:17:49.000Z', - ], - 'dataSetVersion' => [ - 'description' => 'The type of the industry. Valid values: content, item, news, video, and sns.'."\n", - 'type' => 'string', - 'example' => '20181206170353', - ], - 'name' => [ - 'description' => 'The commodity code of the instance.'."\n", - 'type' => 'string', - 'example' => 'The time when the instance was last modified. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.'."\n", - ], - 'instanceId' => [ - 'description' => 'The version of the dataset that provides online services.'."\n", - 'type' => 'string', - 'example' => 'The name of the instance.'."\n", + 'description' => 'The information about the experiment.'."\n", + 'type' => 'object', + 'properties' => [ + 'base' => ['description' => 'N/A'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'onlineTime' => ['description' => 'The time when the experiment was published.'."\n", 'type' => 'string', 'example' => '2020-11-11T09:47:43.000Z', 'title' => ''], + 'offlineTime' => ['description' => 'The time when the experiment was unpublished.'."\n", 'type' => 'string', 'example' => '2020-11-11T09:47:43.000Z', 'title' => ''], + 'description' => ['description' => 'The remarks.'."\n", 'type' => 'string', 'example' => 'xxx', 'title' => ''], + 'status' => ['description' => 'The experiment state.'."\n", 'type' => 'string', 'example' => 'Init', 'title' => ''], + 'name' => ['description' => 'The experiment name.'."\n", 'type' => 'string', 'example' => 'xxx', 'title' => ''], + 'algorithms' => [ + 'description' => 'The algorithm configurations.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'The information about the array object.'."\n", + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => 'The algorithm key. Valid values: I2I: the I2I filtering algorithm. u2X2I: the U2X2I filtering algorithm. hot: the filtering algorithm for popular items. new: the filtering algorithm for new items. embedding: the vector filtering algorithm. mtorder: the priority of the filtering algorithm. rankservice: the ranking service.'."\n", 'type' => 'string', 'example' => 'I2I', 'title' => ''], + 'config' => [ + 'description' => 'The child configuration items.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'The information about the array object.'."\n", + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => 'The algorithm key.'."\n", 'type' => 'string', 'example' => 'I2I-truncedquantity', 'title' => ''], + 'defaultValue' => ['description' => 'The default value of the algorithm.'."\n", 'type' => 'string', 'example' => '400', 'title' => ''], + 'experimentValue' => ['description' => 'The custom value of the algorithm.'."\n", 'type' => 'string', 'example' => 'swing;commoni2i;pcategory;scategory', 'title' => ''], + 'name' => ['description' => 'The algorithm name. (Note: If you use the default algorithm, the console obtains the algorithm name from Medusa. If you customize an algorithm for the experiment, the algorithm name is directly returned.)'."\n", 'type' => 'string', 'example' => 'I2I算法', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'defaultValue' => ['description' => 'The default value of the algorithm configuration item.'."\n", 'type' => 'string', 'example' => 'i2i;u2x2i;new;hot;embedding;embedding', 'title' => ''], + 'type' => ['description' => 'The algorithm type. Valid values: SYSTEM and CUSTOM.'."\n", 'type' => 'string', 'example' => 'SYSTEM', 'title' => ''], + 'experimentValue' => ['description' => 'The custom value of the algorithm configuration item.'."\n", 'type' => 'string', 'example' => '300', 'title' => ''], + 'hasConfig' => ['description' => 'Indicates whether child configuration items exist. Valid values: true and false.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'category' => ['description' => 'The algorithm category. Valid values: RECALL and RANK.'."\n", 'type' => 'string', 'example' => 'RECALL', 'title' => ''], + 'name' => ['description' => 'The algorithm name. (Note: If you use the default algorithm, the console obtains the algorithm name from Medusa. If you customize an algorithm for the experiment, the algorithm name is directly returned.)'."\n", 'type' => 'string', 'example' => 'name', 'title' => ''], + ], + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', + ], + 'buckets' => [ + 'description' => 'The buckets.'."\n", + 'type' => 'array', + 'items' => ['description' => 'The buckets.'."\n", 'type' => 'string', 'example' => '["1","2","3"]', 'title' => ''], + 'title' => '', + 'example' => '', ], + 'experimentId' => ['description' => 'The experiment ID.'."\n", 'type' => 'string', 'example' => '12345', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => 'airec-cn-o400whm78004', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'airec-cn-o400whm78004', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListInstance', - 'summary' => 'Queries the information of instances.', - 'description' => 'You can call this API operation to query the list of instances. The returned instances are ranked in descending order based on the values of GmtCreate. You can specify multiple request parameters. These request parameters can be used to filter query results. The request parameters that you specify have logical AND relations. Only the specified parameters can be used to filter query results.'."\n", + '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' => 'CloneExperiment', + 'summary' => 'Clones an experiment.', '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}'], + ], + ], + ], ], + ], + 'CloneSample' => [ + 'summary' => 'Clones a sample.', + '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' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-xxxxxxxx', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'example' => 'airec-cn-shdjkgkeog'], + ], + [ + 'name' => 'sampleId', + 'in' => 'path', + 'schema' => ['title' => '', 'description' => 'The sample ID.'."\n", 'type' => 'string', 'required' => true, 'example' => 'abc'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', + 'title' => '', + 'description' => 'The schema of the response parameters.'."\n", 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'Indicates whether a dataset was created.'."\n", - 'type' => 'boolean', - 'example' => 'false', - ], - 'code' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['title' => '', 'description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['description' => 'The returned result.'."\n", '$ref' => '#/components/schemas/Sample', 'title' => '', 'example' => ''], ], + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + '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":""}]', + 'title' => 'CloneSample', + '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' => 'All Resource', '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' => 'RunInstance', - 'summary' => 'Runs an instance to start a full data import task.', - 'description' => 'You can call this API operation to run an instance to start a full data import task. After you call this API operation, the system creates a dataset. Then, the system imports all data from your data sources into the dataset for data training.'."\n", - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', ], - 'UpgradeInstance' => [ - 'path' => '/v2/openapi/instances/{instanceId}/actions/upgrade', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateCustomAnalysisTask' => [ + 'summary' => 'Creates a custom analysis task.', + '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' => 'The query type.'."\n" + .'For example, **ITEM\\_CUSTOM** is a custom analysis of the item dimension.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'ITEM_CUSTOM'], + ], + [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-xxxxxx', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'airec-cn-xxx'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => '', + 'description' => 'The details of the returned result.', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'The returned results.'."\n", - 'type' => 'object', - 'properties' => [ - 'instanceId' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'example' => 'airec-cn-o400whm78004', - ], - ], - ], - 'code' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '16B78383-2803-4964-9605-37B30C073B0E'], + 'code' => ['description' => 'The return code.', 'type' => 'string', 'title' => '', 'example' => '200'], + 'message' => ['description' => 'The returned message.', 'type' => 'string', 'title' => '', 'example' => 'success'], + 'result' => ['description' => 'The ID of the created task.', 'type' => 'object', 'title' => '', 'example' => '123'], ], + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"16B78383-2803-4964-9605-37B30C073B0E\\",\\n \\"code\\": \\"200\\",\\n \\"message\\": \\"success\\",\\n \\"result\\": 123\\n}","type":"json"}]', + 'title' => 'CreateCustomAnalysisTask', + 'changeSet' => [], + 'translator' => 'manual', + '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' => 'UpgradeInstance', - 'summary' => 'Modifies the quotas of a specified instance.', - 'description' => 'You can call this operation to modify the quotas of a specified instance.'."\n" - ."\n" - .'The limits on the number of users: 1,000,000 to 10,000,000. The limits on the number of items: 1,000,000 to 10,000,000. The limits on the queries per second (QPS) for recommendation requests: 10 to 500.'."\n", - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', ], - 'ValidateInstance' => [ - 'path' => '/v2/openapi/instances/{instanceId}/actions/validate', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateCustomSample' => [ + 'summary' => 'Creates a custom sample.', + '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' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-xxx'], ], ], 'responses' => [ 200 => [ - 'headers' => [], 'schema' => [ + 'title' => '', + 'description' => 'The details of the result.', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '90D6B8F5-FE97-4509-9AAB-367836C51818', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], + 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['description' => 'The details of the result.', '$ref' => '#/components/schemas/Sample', 'title' => '', 'example' => ''], ], + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + '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"}]', + 'title' => 'CreateCustomSample', + 'changeSet' => [], + 'translator' => 'manual', + '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' => 'All Resource', 'arn' => '*'], ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": true,\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"90D6B8F5-FE97-4509-9AAB-367836C51818\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', - 'title' => 'ValidateInstance', - 'summary' => 'Verifies the validity of information about a specified instance.', ], - 'DowngradeInstance' => [ - 'path' => '/v2/openapi/instances/{instanceId}/actions/downgrade', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateDataDiagnoseTask' => [ + 'summary' => 'Creates a data diagnostic task.', + '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' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-xxxxxx', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-shdjkgkeog'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => '', + 'description' => 'The response.', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'Decreases the quotas of a specified instance.'."\n", - 'type' => 'object', - 'properties' => [ - 'instanceId' => [ - 'description' => 'The new quota must be less than the selected quota.'."\n" - ."\n" - .'The limits on the number of users: 1,000,000 to 10,000,000. The limits on the number of items: 1,000,000 to 10,000,000. The limits on the queries per second (QPS) of recommendation requests: 10 to 500.'."\n", - 'type' => 'string', - 'example' => 'airec-cn-o400whm78004', - ], - ], - ], - 'code' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The returned results.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['title' => '', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['description' => 'Indicates whether the task was successfully created.', 'type' => 'boolean', 'title' => '', 'example' => 'true'], ], + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": true\\n}","type":"json"}]', + 'title' => 'CreateDataDiagnoseTask', + 'changeSet' => [], + 'translator' => 'manual', + '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' => 'DowngradeInstance', - 'summary' => 'Decreases the quotas of a specified instance.', - 'description' => 'The returned results.'."\n", - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', ], 'CreateExtraDataSource' => [ 'summary' => 'Creates a data source.', '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' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-shdjkgkeog', - ], + 'schema' => ['title' => '', 'description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'example' => 'airec-cn-****'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', + 'title' => '', 'description' => 'The schema of response parameters.'."\n", 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], - 'result' => [ - 'description' => 'The returned result.'."\n", - '$ref' => '#/components/schemas/ExtraDataSource', - ], + 'requestId' => ['title' => '', 'description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['description' => 'The returned result.'."\n", '$ref' => '#/components/schemas/ExtraDataSource', 'title' => '', 'example' => ''], ], + 'example' => '', ], ], ], - '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"}]', + '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"}]', 'title' => 'CreateExtraDataSource', - ], - 'DeleteExtraDataSource' => [ - 'summary' => 'Deletes a data source.', - 'path' => '/v2/openapi/instances/{instanceId}/extra-data-sources/{type}/{dataSourceId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateExtraDataSource'], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '117109', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], - ], - 'parameters' => [ - [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-shdjkgkeog', - ], - ], + 'ramActions' => [ [ - 'name' => 'type', - 'in' => 'path', - 'schema' => [ - 'title' => '数据源类型', - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => '数据源类型 UserCustomDataSource ItemCustomDataSource BehaviorCustomDataSource SampleCustomDataSource', - ], - ], - [ - 'name' => 'dataSourceId', - 'in' => 'path', - 'schema' => [ - 'title' => '数据源id', - 'description' => '', - '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' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], - 'result' => [ - 'description' => '返回参数。', - '$ref' => '#/components/schemas/ExtraDataSource', - ], + '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、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', ], - 'ListExtraDataSources' => [ - 'summary' => 'Queries a list of MaxCompute data sources.', - 'path' => '/v2/openapi/instances/{instanceId}/extra-data-sources', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + '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' => 'get', - 'abilityTreeCode' => '117105', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '18665', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-shdjkgkeog', - ], + 'schema' => ['description' => 'The state of the filtering table.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****', 'title' => ''], ], [ - 'name' => 'type', + 'name' => 'dryRun', 'in' => 'query', - 'schema' => [ - 'title' => '根据数据源类型过滤', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'UserCustomDataSource ItemCustomDataSource BehaviorCustomDataSource SampleCustomDataSource', - ], + 'schema' => ['description' => 'xxx', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'true', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', + 'description' => 'The ID of the instance.'."\n", 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], 'result' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - '$ref' => '#/components/schemas/ExtraDataSource', + 'description' => 'Specifies whether to perform a dry run. Valid values: true: performs a dry run. false: performs a dry run and sends the request.'."\n", + 'type' => 'object', + 'properties' => [ + 'gmtModified' => ['description' => 'The fluctuation threshold for the data entries in the source table.'."\n", 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z', 'title' => ''], + 'status' => ['description' => 'The name of the filtering algorithm.'."\n", 'type' => 'string', 'example' => 'Running', 'title' => ''], + 'gmtCreate' => ['description' => 'The time when the filtering table was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in Coordinated Universal Time (UTC).'."\n", 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z', 'title' => ''], + 'algorithmId' => ['description' => 'The additional information.'."\n", 'type' => 'string', 'example' => 'abc', 'title' => ''], + 'meta' => [ + 'description' => 'The threshold.'."\n", + 'type' => 'object', + 'properties' => [ + 'type' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => 'ODPS', 'title' => ''], + 'extInfo' => ['description' => 'The name of the MaxCompute project.'."\n", 'type' => 'object', 'example' => '{}', 'title' => ''], + 'category' => ['description' => 'The response body.'."\n", 'type' => 'string', 'example' => '1_2', 'title' => ''], + 'threshold' => [ + 'description' => '0 0/12 0 * *"', + 'type' => 'object', + 'properties' => [ + 'sourceDataSizeThreshold' => ['description' => 'The fluctuation threshold for the loss of the index data.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'sourceDataRecordThreshold' => ['description' => 'The category of the filtering table.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'indexSizeThreshold' => ['description' => 'The fluctuation threshold for the size of the source table.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'indexLossThreshold' => ['description' => 'The time when the filtering table was modified.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'status' => ['description' => 'The CRON expression of the scheduled task. Example: 0 0/12 0 \\* \\*, which indicates that the task is scheduled at 00:00 and 12:00 every day.'."\n", 'type' => 'string', 'example' => 'Running', 'title' => ''], + 'gmtCreate' => ['description' => 'The information about the filtering table.'."\n", 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z', 'title' => ''], + 'tableName' => ['description' => 'The metadata of the filtering table.'."\n", 'type' => 'string', 'example' => 'table_test', 'title' => ''], + 'cron' => ['description' => 'The fluctuation threshold for the size of the index.'."\n", 'type' => 'string', 'example' => '0 0/12 0 * *', 'title' => ''], + 'description' => ['description' => 'The description of the filtering table.'."\n", 'type' => 'string', 'example' => 'xx', 'title' => ''], + 'gmtModified' => ['description' => 'Indicates whether the scheduled task is enabled.'."\n", 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z', 'title' => ''], + 'projectName' => ['description' => 'The ID of the filtering table.'."\n", 'type' => 'string', 'example' => 'testname', 'title' => ''], + 'algorithmName' => ['description' => 'The name of the filtering table.'."\n", 'type' => 'string', 'example' => 'algorithmTest', 'title' => ''], + 'cronEnabled' => ['description' => 'The time when the filtering table was last modified. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed UTC.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], ], + 'title' => '', + 'example' => '', ], + 'requestId' => ['description' => 'The type of the data source.'."\n", 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', 'title' => ''], ], + 'title' => '', + 'example' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListExtraDataSources', - ], - 'DeleteDataSet' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dataSets/{versionId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'CreateFilteringAlgorithm', + 'summary' => 'Creates a filtering table. After the filtering table is trained on Machine Learning Platform for AI (PAI), export it to MaxCompute and specify the information about the MaxCompute table in Artificial Intelligence Recommendation (AIRec).', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateFilteringAlgorithm', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'CreateFlowControlTask' => [ + 'summary' => 'Creates a throttling task.', + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '18671', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '154018', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'versionId', - 'in' => 'path', - 'schema' => [ - 'description' => 'The version number of the dataset.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '20181023214546', - ], + 'name' => 'dryRun', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether to perform only a dry run, without performing the actual request.'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', + 'title' => '', + 'description' => 'The response schema.'."\n", 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => 'The details about the dataset.'."\n", + 'description' => 'The returned result.'."\n", 'type' => 'object', 'properties' => [ - 'versionId' => [ - 'description' => 'The version number of the dataset.'."\n", - 'type' => 'string', - 'example' => '20181023214546', - ], - 'state' => [ - 'description' => 'The state for the dataset of the current version. Example: Importing. The value indicates that the dataset of the current version is being imported.'."\n", - 'type' => 'string', - 'example' => 'Importing', - ], - 'gmtModified' => [ - 'description' => 'The time when the data source was last modified.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1544112000000', - ], - 'gmtCreate' => [ - 'description' => 'The time when the data source was created.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1544112000000', - ], - 'instanceId' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'example' => 'airec-cn-o400whm78004', - ], + 'taskId' => ['description' => 'The task ID.'."\n", 'type' => 'string', 'example' => '1667297014460', 'title' => ''], + 'gmtModified' => ['description' => 'The time when the task was last modified. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in Coordinated Universal Time (UTC).'."\n", 'type' => 'string', 'example' => '2018-12-06T11:17:49.000Z', 'title' => ''], + 'status' => ['description' => 'The task state.'."\n", 'type' => 'string', 'example' => 'DRAFT', 'title' => ''], + 'gmtCreate' => ['description' => 'The time when the task was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.'."\n", 'type' => 'string', 'example' => '2020-04-27T06:38:28.000Z', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => 'The HTTP status code.'."\n", 'type' => 'string', 'example' => '200', 'title' => ''], + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'EDF43C1F-99E4-431F-A7C0-8B260A5A792E', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'An internal server error occurred', 'title' => ''], ], + 'example' => '', ], ], - '5XX' => [ + 500 => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'DeleteDataSet', - 'summary' => 'Deletes a dataset of a specified version for an instance.', - ], - 'AttachDataset' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dataSets/{versionId}/actions/current', - 'methods' => [ - 'post', + '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":"","errorExample":""}]', + 'title' => 'CreateFlowControlTask', + '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}'], + ], + ], + ], ], + ], + 'CreateInstance' => [ + 'path' => '/v2/openapi/instances', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18661', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], - ], - 'parameters' => [ - [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], - ], - [ - 'name' => 'versionId', - 'in' => 'path', - 'schema' => [ - 'description' => 'The ID of the version.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '20181023214546', - ], - ], + 'operationType' => 'create', + 'abilityTreeCode' => '18666', + 'abilityTreeNodes' => ['FEATUREairec5G3YBA'], ], + 'parameters' => [], 'responses' => [ 200 => [ 'schema' => [ @@ -2345,449 +1397,312 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => 'The details about the dataset.'."\n", + 'description' => 'The returned results.'."\n", 'type' => 'object', 'properties' => [ - 'versionId' => [ - 'description' => 'The version number of the dataset.'."\n", - 'type' => 'string', - 'example' => '20181023214546', - ], - 'state' => [ - 'description' => 'The state for the dataset of the current version. Example: Importing. The value indicates that the dataset of the current version is being imported.'."\n", - 'type' => 'string', - 'example' => 'Importing', - ], - 'gmtModified' => [ - 'description' => 'The time when the data source was last modified.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1544112000000', - ], - 'gmtCreate' => [ - 'description' => 'The time when the data source was created.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1544112000000', - ], - 'instanceId' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'example' => 'airec-cn-o400whm78004', - ], + 'instanceId' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'example' => 'airec-cn-****', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => 'The error code.'."\n", 'type' => 'string', 'example' => 'InternalServerError', 'title' => ''], + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'An internal server error occurred', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'AttachDataset', - 'summary' => 'Uses a dataset of a specified version of a specified instance to provide online services.', - ], - 'DescribeDataSetMessage' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dataSets/{versionId}/messages', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'CreateInstance', + 'summary' => 'Creates an Artificial Intelligence Recommendation (AIRec) instance.', + 'requestParamsDescription' => '|Parameter|Type|Required|Description|'."\n" + .'|:---|:---|:---|:---|'."\n" + .'|type|String|Yes|The type of the instance. Valid values: Algorithm Configuration Edition and Industry Operation Edition.|'."\n" + .'|chargeType|String|Yes|The billing method of the instance. Valid values: PrePaid and PostPaid. PrePaid: the subscription billing method. If you set the value to PrePaid, make sure that your Alibaba Cloud account supports balance payment or credit payment. Otherwise, the system returns the InvalidPayMethod error message. If you set the value to PrePaid, you must also specify the paymentInfo parameter. PostPaid: the pay-as-you-go billing method. Currently, this method is not supported.|'."\n" + .'|quota|Map|Yes|The quotas that you want to apply for.|'."\n" + .'|userCount|Integer|Yes|The quota for the number of documents in the user table that you want to apply for. For more information about the limits on the quota, refer to the buy page.|'."\n" + .'|itemCount|Integer|Yes|The quota for the number of documents in the item table that you want to apply for. For more information about the limits on the quota, refer to the buy page.|'."\n" + .'|qps|Integer|Yes|The queries per second (QPS) quota for recommendation requests that you want to apply for. For more information about the limits on the quota, refer to the buy page.|'."\n" + .'|paymentInfo|Map|No|The billing information.|'."\n" + .'|duration|Integer|No|The billing cycle. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, and 12.|'."\n" + .'|pricingCycle|String|No|The unit of the billing cycle. Valid values: Month and Year.|'."\n" + .'|autoRenew|Boolean|No|Specifies whether to enable auto-renewal. Valid values: true and false.|', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'CreateRankingModel' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-models', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', + 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18677', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '18667', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-****'], ], [ - 'name' => 'versionId', - 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], + 'name' => 'dryRun', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether to perform a dry run.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **true**: Checks the request parameters. The model is not created.'."\n" + ."\n" + .'- **false**: The default value. Creates the model after checking the parameters.', 'type' => 'boolean', 'required' => false, 'docRequired' => false, 'title' => '', 'example' => 'true'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - 'timestamp' => [ - 'description' => '', - 'type' => 'string', - 'example' => '20181211 17:27:44', - ], - 'errorLevel' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'warn', - ], - 'errorType' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - ], + 'description' => 'The returned data.', + 'type' => 'object', + 'properties' => [ + 'rankingModelId' => ['description' => 'The ID of the ranking model.', 'type' => 'string', 'title' => '', 'example' => 'testRankingId'], + 'gmtModified' => ['description' => 'The UTC time when the model was last modified.', 'type' => 'string', 'title' => '', 'example' => '2018-12-07T02:24:26.000Z'], + 'gmtCreate' => ['description' => 'The UTC time when the model was created.', 'type' => 'string', 'title' => '', 'example' => '2018-12-07T02:24:26.000Z'], + 'meta' => ['description' => 'The metadata of the model.', 'type' => 'object', 'title' => '', 'example' => 'map'], ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => 'The status code.', 'type' => 'string', 'title' => '', 'example' => '200'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'message' => ['description' => 'The error message.', 'type' => 'string', 'title' => '', 'example' => 'success'], ], + 'description' => 'The response parameters.', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'Queries the error details of data in a specified dataset version of a specified instance.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ListDataSet' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dataSets', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'CreateRankingModel', + 'summary' => 'Creates a ranking model.', + 'changeSet' => [], + 'translator' => 'manual', + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateRankingModel', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'CreateRankingModelTemplate' => [ + 'summary' => 'Creates a ranking model template.', + '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' => '18700', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '117139', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-****'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', + 'title' => '', + 'description' => 'The returned parameters.', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'The returned datasets.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'versionId' => [ - 'description' => 'The version number of the dataset.'."\n", - 'type' => 'string', - 'example' => '20181023214546', - ], - 'state' => [ - 'description' => 'The state for the dataset of the current version. Example: Importing. The value indicates that the dataset of the current version is being imported.'."\n", - 'type' => 'string', - 'example' => 'Importing', - ], - 'gmtModified' => [ - 'description' => 'The time when the data source was last modified.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1544112000000', - ], - 'gmtCreate' => [ - 'description' => 'The time when the data source was created.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1544112000000', - ], - 'instanceId' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'example' => 'airec-cn-o400whm78004', - ], - ], - ], - ], - 'code' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'result' => ['title' => '', 'description' => 'Information about the ranking model template.', '$ref' => '#/components/schemas/RankingModelTemplate', 'example' => ''], ], + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + ], + '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' => 'CreateRankingModelTemplate', + 'changeSet' => [], + 'translator' => 'manual', + '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' => 'All Resource', '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' => 'ListDataSet', - 'summary' => 'Queries datasets of a specified instance.', ], - 'DeleteExperiment' => [ - 'summary' => 'Deletes a test.', - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments/{experimentId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateRankingSystem' => [ + 'summary' => 'Creates a ranking service.', + 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '18672', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '117162', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The response body.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'Indicates whether the test was deleted. Valid values: true or false.'."\n", - ], - ], - [ - 'name' => 'sceneId', - 'in' => 'path', - 'schema' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], - ], - [ - 'name' => 'experimentId', - 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '12345', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'airec-test'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', + 'title' => '', + 'description' => 'The schema of the response.', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], + 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'result' => ['description' => 'The detailed result.', '$ref' => '#/components/schemas/RankingSystem', 'title' => '', 'example' => ''], ], + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + ], + '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' => 'CreateRankingSystem', + 'changeSet' => [], + 'translator' => 'manual', + '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' => 'All Resource', 'arn' => '*'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => 'DeleteExperiment', ], - 'EnableExperiment' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/actions/enable-experiment', - 'methods' => [ - 'post', - ], - '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' => 'update', - 'abilityTreeCode' => '18695', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '18668', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], - ], - [ - 'name' => 'sceneId', - 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], + 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****'."\n", 'title' => ''], ], ], 'responses' => [ @@ -2797,702 +1712,456 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '', - 'type' => 'boolean', + 'description' => 'The returned results.'."\n", + 'type' => 'object', + 'properties' => [ + 'ruleId' => ['description' => 'The rule ID.'."\n", 'type' => 'string', 'example' => '98493A14-D619-4E88-9F8D-108939817F9F', 'title' => ''], + 'gmtModified' => ['description' => 'The time when the rule was last modified.'."\n", 'type' => 'string', 'example' => '2020-04-27T06:38:28.000Z', 'title' => ''], + 'status' => ['description' => 'Indicates whether the rule is enabled. Valid values: true and false.'."\n", 'type' => 'string', 'example' => 'EFFECTIVE', 'title' => ''], + 'gmtCreate' => ['description' => 'The time when the rule was created.'."\n", 'type' => 'string', 'example' => '2020-04-27T06:38:28.000Z', 'title' => ''], + ], + 'title' => '', 'example' => '', ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B', - ], + 'code' => ['description' => 'The error code.'."\n", 'type' => 'string', 'example' => 'InternalServerError', 'title' => ''], + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'An internal server error occurred', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B\\"\\n}","type":"json"}]', - 'title' => 'EnableExperiment', - 'summary' => 'Enables the test feature.', - ], - 'UpdateExperimentBasicInfo' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments/{experimentId}/basic', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'CreateRule', + 'summary' => 'Creates a rule.', + '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}'], + ], + ], + ], ], + ], + 'CreateSampleFormatConfig' => [ + 'summary' => 'Creates a sample format configuration.', + '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' => '18742', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '117132', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'sceneId', + 'name' => 'sampleId', 'in' => 'path', - 'schema' => [ - 'description' => 'The scene ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'schema' => ['title' => '', 'description' => 'The sample ID.', 'type' => 'string', 'required' => true, 'example' => 'Sample1'], ], [ - 'name' => 'experimentId', - 'in' => 'path', - 'schema' => [ - 'description' => 'The experiment ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '12345', - ], + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => ['description' => 'The request body parameters.', 'type' => 'object', 'required' => false, 'title' => '', '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' => '', + 'description' => 'The details of the returned result.', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'The information about the experiment.'."\n", - 'type' => 'object', - 'properties' => [ - 'base' => [ - 'description' => 'Indicates whether the experiment uses default configurations.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'onlineTime' => [ - 'description' => 'The time when the experiment was published.'."\n", - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'offlineTime' => [ - 'description' => 'The time when the experiment was unpublished.'."\n", - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'description' => [ - 'description' => 'The description of the experiment.'."\n", - 'type' => 'string', - 'example' => 'demo1', - ], - 'status' => [ - 'description' => 'The status of the experiment.'."\n", - 'type' => 'string', - 'example' => '1', - ], - 'name' => [ - 'description' => 'The name of the experiment.'."\n", - 'type' => 'string', - 'example' => 'test', - ], - 'algorithms' => [ - 'description' => 'The parameters of the experiment.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => 'The key of the algorithm.'."\n", - 'type' => 'string', - 'example' => 'I2I', - ], - 'config' => [ - 'description' => 'The information about the child configuration item.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => 'The key of the algorithm configuration item.'."\n", - 'type' => 'string', - 'example' => 'I2I', - ], - 'defaultValue' => [ - 'description' => 'The default value of the algorithm configuration item.'."\n", - 'type' => 'string', - 'example' => 'true', - ], - 'experimentValue' => [ - 'description' => 'The custom value of the algorithm configuration item.'."\n", - 'type' => 'string', - 'example' => '400', - ], - 'name' => [ - 'description' => 'The name of the algorithm configuration item.'."\n", - 'type' => 'string', - 'example' => 'I2I filtering algorithm'."\n", - ], - ], - ], - ], - 'defaultValue' => [ - 'description' => 'The default value of the algorithm.'."\n", - 'type' => 'string', - 'example' => '400', - ], - 'type' => [ - 'description' => 'The type of the algorithm.'."\n", - 'type' => 'string', - 'example' => 'SYSTEM', - ], - 'experimentValue' => [ - 'description' => 'The custom value of the algorithm.'."\n", - 'type' => 'string', - 'example' => '400', - ], - 'hasConfig' => [ - 'description' => 'Indicates whether child configuration items exist. Valid values: true and false.'."\n", - 'type' => 'boolean', - 'example' => 'false', - ], - 'category' => [ - 'description' => 'The category of the algorithm.'."\n", - 'type' => 'string', - 'example' => '2', - ], - 'name' => [ - 'description' => 'The name of the experiment.'."\n", - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - ], - 'buckets' => [ - 'description' => 'The traffic buckets.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The information about the array object.'."\n", - 'type' => 'string', - 'example' => '["1","2","3"]', - ], - ], - 'experimentId' => [ - 'description' => 'The experiment ID.'."\n", - 'type' => 'string', - 'example' => '12345', - ], - ], - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B', - ], + 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['title' => '', 'description' => 'The details of the format configuration.', '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" + .'}'], ], + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + ], + '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' => 'CreateSampleFormatConfig', + 'responseParamsDescription' => '| Parameter | Type | Required | Description |'."\n" + .'| :--------------- | :------ | :------- | :-------------------------------------- |'."\n" + .'| meta | String | Yes | The meta source data. |'."\n" + .'| metaType | String | Yes | The fixed string `SampleFormatConfig`. |'."\n" + .'| sampleId | String | Yes | The sample ID. |'."\n" + .'| config | Object | Yes | The list of configurations. |'."\n" + .'| features | List | Yes | The configuration information. |'."\n" + .'| feature_type | String | Yes | The feature type. |'."\n" + .'| value_type | String | No | The return value type. |'."\n" + .'| hash_bucket_size | Integer | No | The hash bucket size. |'."\n" + .'| expression | String | No | The array of feature table field names. |'."\n" + .'| feature_name | String | No | The feature name. |'."\n" + .'| embedding_dim | Integer | No | The embedding dimension. |'."\n" + .'| combiner | String | No | The combiner name. |'."\n" + .'| group | String | No | The feature group name. |', + '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' => 'All Resource', 'arn' => '*'], ], ], ], ], - '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' => 'UpdateExperimentBasicInfo', - 'summary' => 'Updates the basic information about an experiment.', + 'translator' => 'manual', ], - 'UpdateExperimentConfig' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments/{experimentId}/config', - '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' => '18743', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '18669', + 'abilityTreeNodes' => ['FEATUREairecX63J28'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'sceneId', - 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], - ], - [ - 'name' => 'experimentId', - 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '12345', - ], + 'name' => 'dryRun', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether to perform a dry run.'."\n" + .'\\*\\*true:\\*\\* Checks whether the scenario ID exists.'."\n" + .'\\*\\*false:\\*\\* Creates the scenario. This is the default value.', 'type' => 'boolean', 'required' => false, 'docRequired' => true, 'title' => '', 'example' => 'false'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', + 'description' => 'The details of the returned result.', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '', + 'description' => 'The details of the returned result.', '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' => '', - 'type' => 'string', - 'example' => 'Online', - ], - 'name' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - 'algorithms' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'I2I', - ], - 'config' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => '', - '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' => '', - 'type' => 'string', - 'example' => 'SYSTEM', - ], - 'experimentValue' => [ - 'description' => '', - 'type' => 'string', - 'example' => '300', - ], - 'hasConfig' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - 'category' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'RECALL', - ], - 'name' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'xxx', - ], - ], - ], - ], - 'buckets' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'userid', - ], - ], - 'experimentId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'xxx', - ], + 'sceneId' => ['description' => 'The scenario ID.', 'type' => 'string', 'title' => '', 'example' => 'test'], + 'gmtModified' => ['description' => 'The time when the scenario was last modified.', 'type' => 'string', 'title' => '', 'example' => '2020-04-23T06:08:48.000Z'], + 'status' => ['description' => 'The status of the scenario:'."\n" + ."\n" + .'- **DRAFT**: The scenario is in a draft state and can be republished.'."\n" + ."\n" + .'- **PUBLISHING**: The scenario is being published.'."\n" + ."\n" + .'- **RUNNING**: The scenario is running.'."\n" + ."\n" + .'- **FAILED**: The scenario failed to be published.'."\n" + ."\n" + .'- **FROZEN**: The scenario is frozen.', 'type' => 'string', 'title' => '', 'example' => 'DRAFT'], + 'gmtCreate' => ['description' => 'The time when the scenario was created.', 'type' => 'string', 'title' => '', 'example' => '2020-04-23T06:08:48.000Z'], ], + 'title' => '', + 'example' => '', ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'InternalServerError'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'An internal server error occurred'], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'UpdateExperimentConfig', - 'summary' => 'Updates the configurations of a test.', - ], - 'UpdateExperimentStatus' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments/{experimentId}/status', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'CreateScene', + 'summary' => 'Verify the information for scenario creation.', + 'description' => 'You can use the Scenario Management feature in the console to manage scenarios. For more information, see <props="china">[Quickly build a recommendation scenario by configuring a delivery policy](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}'], + ], + ], + ], ], + 'translator' => 'machine', + ], + 'CreateUmengToken' => [ + 'summary' => 'Creates a Umeng authorization token.', + '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' => '18744', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '148531', + 'abilityTreeNodes' => ['FEATUREairecY1ADIM'], ], 'parameters' => [ [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], - ], - [ - 'name' => 'sceneId', - 'in' => 'path', - 'schema' => [ - 'description' => 'The scene ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], - ], - [ - 'name' => 'experimentId', - 'in' => 'path', - 'schema' => [ - 'description' => 'The experiment ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'name' => 'code', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true, 'description' => '', 'title' => '', 'example' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => 'The returned result.'."\n", 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'The returned result.'."\n", - 'type' => 'object', - 'properties' => [ - 'base' => [ - 'description' => 'Indicates whether the default configurations are used for the experiment.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'onlineTime' => [ - 'description' => 'The time when the experiment was published.'."\n", - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'offlineTime' => [ - 'description' => 'The time when the experiment was unpublished.'."\n", - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'description' => [ - 'description' => 'The remarks of the experiment.'."\n", - 'type' => 'string', - 'example' => 'xxx', - ], - 'status' => [ - 'description' => 'The experiment state. Valid values: init, online, finish, and offline.'."\n", - 'type' => 'string', - 'example' => 'init', - ], - 'name' => [ - 'description' => 'The experiment name.'."\n", - 'type' => 'string', - 'example' => 'test', - ], - 'algorithms' => [ - 'description' => 'The algorithm configurations.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The information about the array object.'."\n", - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => 'The algorithm key. Valid values: i2i: the I2I filtering algorithm. u2x2i: the U2X2I filtering algorithm. hot: the filtering algorithm for popular items. new: the filtering algorithm for new items. embedding: the vector filtering algorithm. mtorder: the priority of the filtering algorithm. rankservice: the ranking service.'."\n", - 'type' => 'string', - 'example' => 'hot', - ], - 'config' => [ - 'description' => 'The experiment configurations.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The information about the array object.'."\n", - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => 'The algorithm key. Valid values: i2i: the I2I filtering algorithm. u2x2i: the U2X2I filtering algorithm. hot: the filtering algorithm for popular items. new: the filtering algorithm for new items. embedding: the vector filtering algorithm. mtorder: the priority of the filtering algorithm. rankservice: the ranking service.'."\n", - 'type' => 'string', - 'example' => 'hot', - ], - 'defaultValue' => [ - 'description' => 'The default value of the algorithm. If you set key to i2i, hot, or new, the value of this parameter is true or false. If you set key to mtorder, the value of this parameter is a list of filtering algorithms ranked by priority.'."\n", - 'type' => 'string', - 'example' => 'xxx', - ], - 'experimentValue' => [ - 'description' => 'The custom value of the algorithm.'."\n", - 'type' => 'string', - 'example' => 'xxx', - ], - 'name' => [ - 'description' => 'The algorithm name. (Note: If you use the default algorithm, the console obtains the algorithm name from Medusa. If you customize an algorithm for the experiment, the algorithm name is directly returned.)'."\n", - 'type' => 'string', - 'example' => 'xxx', - ], - ], - ], - ], - 'defaultValue' => [ - 'description' => 'The default value of the algorithm configuration item.'."\n", - 'type' => 'string', - 'example' => 'swing', - ], - 'type' => [ - 'description' => 'The algorithm type. Valid values: SYSTEM and CUSTOM.'."\n", - 'type' => 'string', - 'example' => 'SYSTEM', - ], - 'experimentValue' => [ - 'description' => 'The custom value of the algorithm configuration item.'."\n", - 'type' => 'string', - 'example' => 'xxx', - ], - 'hasConfig' => [ - 'description' => 'Indicates whether child configuration items exist. Valid values: true and false.'."\n", - 'type' => 'boolean', - 'example' => 'false', - ], - 'category' => [ - 'description' => 'The algorithm category. Valid values: RECALL and RANK.'."\n", - 'type' => 'string', - 'example' => 'RECALL', - ], - 'name' => [ - 'description' => 'The algorithm name. (Note: If you use the default algorithm, the console obtains the algorithm name from Medusa. If you customize an algorithm for the experiment, the algorithm name is directly returned.)'."\n", - 'type' => 'string', - 'example' => 'xxx', - ], - ], - ], - ], - 'buckets' => [ - 'description' => 'The buckets. This parameter takes effect only when the experiment is published.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The buckets. The parameter value must be of the STRING type. This parameter takes effect only when the experiment is published.'."\n", - 'type' => 'string', - 'example' => '["1","2","3"]', - ], - ], - 'experimentId' => [ - 'description' => 'The experiment ID.'."\n", - 'type' => 'string', - 'example' => '123', - ], - ], - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B', - ], + 'result' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'UpdateExperimentStatus', - 'summary' => 'Updates the state of an experiment.', - ], - 'DescribeBaseExperiment' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/base-experiment', - 'methods' => [ - 'get', + 'changeSet' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": false,\\n \\"code\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"message\\": \\"\\"\\n}","type":"json"}]', + 'title' => 'CreateUmengToken', + 'translator' => 'manual', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateUmengToken', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'DecribeRankingModel' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-models/{rankingModelId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3502,251 +2171,105 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18676', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'abilityTreeCode' => '18670', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], + 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****', 'title' => ''], ], [ - 'name' => 'sceneId', + 'name' => 'rankingModelId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], + 'schema' => ['description' => 'The ID of the ranking model.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'testRankingId', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '', + 'description' => 'The returned results.'."\n", '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' => '', - 'type' => 'string', - 'example' => 'Init', - ], - 'name' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - 'algorithms' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'I2I', - ], - 'config' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => '', - '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' => '', - 'type' => 'string', - 'example' => 'SYSTEM', - ], - 'experimentValue' => [ - 'description' => '', - 'type' => 'string', - 'example' => '400', - ], - 'hasConfig' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'false', - ], - 'category' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'RECALL', - ], - 'name' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'xxx', - ], - ], - ], - ], - 'buckets' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'example' => '[1,2,3]', - ], - ], - 'experimentId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'xxx', - ], + 'rankingModelId' => ['description' => 'The ID of the ranking model.'."\n", 'type' => 'string', 'example' => 'testRankingId', 'title' => ''], + 'gmtModified' => ['description' => 'The time when the ranking model was last modified.'."\n", 'type' => 'string', 'example' => '2020-04-27T06:38:28.000Z', 'title' => ''], + 'gmtCreate' => ['description' => 'The time when the ranking model was created.'."\n", 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z', 'title' => ''], + 'meta' => ['description' => 'The metadata.'."\n", 'type' => 'object', 'title' => '', 'example' => ''], ], + 'title' => '', + 'example' => '', ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'A74E3FB7-406C-5CBB-833E-E49308B5DC05', - ], + 'code' => ['description' => 'The HTTP status code.'."\n", 'type' => 'string', 'example' => '200', 'title' => ''], + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'successful', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'DescribeBaseExperiment', - 'summary' => 'Queries the information of the base experiment.', - ], - 'DescribeExperiment' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments/{experimentId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'DecribeRankingModel', + 'summary' => 'Queries the information of a ranking model.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DecribeRankingModel', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + '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' => '18679', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '18671', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****', 'title' => ''], ], [ - 'name' => 'sceneId', + 'name' => 'versionId', 'in' => 'path', - 'schema' => [ - 'description' => 'The scene ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], - ], - [ - 'name' => 'experimentId', - 'in' => 'path', - 'schema' => [ - 'description' => 'The experiment ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '23245', - ], + 'schema' => ['description' => 'The version number of the dataset.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '2018102321****', 'title' => ''], ], ], 'responses' => [ @@ -3756,402 +2279,247 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => 'The returned results.'."\n", + 'description' => 'The details about the dataset.'."\n", 'type' => 'object', 'properties' => [ - 'base' => [ - 'description' => 'None'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'onlineTime' => [ - 'description' => 'The time when the experiment was published.'."\n", - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'offlineTime' => [ - 'description' => 'The time when the experiment was unpublished.'."\n", - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'description' => [ - 'description' => 'The description of the experiment.'."\n", - 'type' => 'string', - 'example' => 'xxx', - ], - 'status' => [ - 'description' => 'The state of the experiment.'."\n", - 'type' => 'string', - 'example' => '1', - ], - 'name' => [ - 'description' => 'The name of the experiment.'."\n", - 'type' => 'string', - 'example' => 'test', - ], - 'algorithms' => [ - 'description' => 'The parameters about the experiment.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => 'The key.'."\n", - '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' => 'None'."\n", - 'type' => 'string', - 'example' => 'true', - ], - 'type' => [ - 'description' => 'None'."\n", - 'type' => 'string', - 'example' => 'SYSTEM', - ], - 'experimentValue' => [ - 'description' => 'None'."\n", - 'type' => 'string', - 'example' => '', - ], - 'hasConfig' => [ - 'description' => 'None'."\n", - 'type' => 'boolean', - 'example' => 'false', - ], - 'category' => [ - 'description' => 'The category of the item.'."\n", - 'type' => 'string', - 'example' => '2', - ], - 'name' => [ - 'description' => 'The name of the experiment.'."\n", - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - ], - 'buckets' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'example' => '["1","2","3"]', - ], - ], - 'experimentId' => [ - 'description' => 'The experiment ID.'."\n", - 'type' => 'string', - 'example' => '12345', - ], + 'versionId' => ['description' => 'The version number of the dataset.'."\n", 'type' => 'string', 'example' => '2018102321****', 'title' => ''], + 'state' => ['description' => 'The state for the dataset of the current version. Example: Importing. The value indicates that the dataset of the current version is being imported.'."\n", 'type' => 'string', 'example' => 'Importing', 'title' => ''], + 'gmtModified' => ['description' => 'The time when the data source was last modified.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '2018-12-06T11:17:49.000Z', 'title' => ''], + 'gmtCreate' => ['description' => 'The time when the data source was created.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '2018-12-07T02:24:26.000Z', 'title' => ''], + 'instanceId' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'example' => 'airec-cn-o400whm78004', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B', - ], + 'code' => ['description' => 'The error code.'."\n", 'type' => 'string', 'example' => '200', 'title' => ''], + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'Queries the details about an experiment.', - ], - 'DescribeExperimentEnv' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiment-env', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'DeleteDataSet', + 'summary' => 'Deletes a dataset of a specified version for an instance.', + '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}'], + ], + ], + ], ], + ], + 'DeleteExperiment' => [ + 'summary' => 'Deletes an experiment.', + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments/{experimentId}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18680', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '18672', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-****'."\n"], ], [ 'name' => 'sceneId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], + 'schema' => ['description' => 'The scene ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'sceneId'], + ], + [ + 'name' => 'experimentId', + 'in' => 'path', + 'schema' => ['description' => 'The experiment ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '12345'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'bucketCount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'divideType' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'UID', - ], - ], - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], + 'result' => ['description' => 'The result of the request.', 'type' => 'boolean', 'title' => '', 'example' => 'true'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'DescribeExperimentEnv', - 'summary' => 'Queries the information of an experiment scene.', - ], - 'DescribeExperimentEnvProgress' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiment-progress', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","type":"json"}]', + 'title' => 'DeleteExperiment', + '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}'], + ], + ], + ], ], + 'translator' => 'manual', + ], + 'DeleteExtraDataSource' => [ + 'summary' => 'Deletes a data source.', + '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' => '18681', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '117109', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'sceneId', + 'name' => 'type', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], + 'schema' => ['title' => '', 'description' => 'The type of the data source.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **UserCustomDataSource**: The user data source.'."\n" + ."\n" + .'- **ItemCustomDataSource**: The item data source.'."\n" + ."\n" + .'- **BehaviorCustomDataSource**: The behavioral data source.', 'type' => 'string', 'required' => true, 'example' => 'UserCustomDataSource'], + ], + [ + 'name' => 'dataSourceId', + 'in' => 'path', + 'schema' => ['title' => '', 'description' => 'The data source ID.', 'type' => 'string', 'required' => true, 'example' => '123'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', + 'title' => '', + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'status' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - 'progress' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '', - ], - ], - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B', - ], + 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['description' => 'The response parameters.', '$ref' => '#/components/schemas/ExtraDataSource', 'title' => '', 'example' => ''], ], + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + ], + '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"}]', + 'title' => 'DeleteExtraDataSource', + 'changeSet' => [], + 'translator' => 'manual', + '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' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"status\\": \\"Processing\\",\\n \\"progress\\": 80\\n },\\n \\"requestId\\": \\"E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B\\"\\n}","type":"json"}]', - 'title' => 'DescribeExperimentEnvProgress', - 'summary' => 'Queries the status of a test in a scene.', ], - 'ListExperiments' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments', - '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' => '18702', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '18673', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], + 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****', 'title' => ''], ], [ - 'name' => 'sceneId', + 'name' => 'algorithmId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], + 'schema' => ['description' => 'The ID of the specified filtering table.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '1', 'title' => ''], ], ], 'responses' => [ @@ -4161,2922 +2529,1535 @@ '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' => '', - 'type' => 'string', - 'example' => 'init', - ], - 'name' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'test', - ], - 'buckets' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'example' => '[1,2,3]', + 'description' => 'The returned result.'."\n", + 'type' => 'object', + 'properties' => [ + 'gmtModified' => ['description' => 'The time when the filtering table was modified.'."\n", 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z', 'title' => ''], + 'status' => ['description' => 'The state of the filtering table. Valid values: Draft, Running, Offline, and Deleted.'."\n", 'type' => 'string', 'example' => 'Running', 'title' => ''], + 'gmtCreate' => ['description' => 'The time when the filtering table was created.'."\n", 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z', 'title' => ''], + 'algorithmId' => ['description' => 'The ID of the specified filtering table.'."\n", 'type' => 'string', 'example' => '123', 'title' => ''], + 'meta' => [ + 'description' => 'The metadata of the filtering table.'."\n", + 'type' => 'object', + 'properties' => [ + 'taskId' => ['description' => 'The ID of the task.'."\n", 'type' => 'string', 'example' => 'test01', 'title' => ''], + 'metaType' => ['description' => 'The type of the metadata.'."\n", 'type' => 'string', 'example' => 'odps', 'title' => ''], + 'type' => ['description' => 'The type of the data source. Only MaxCompute is supported.'."\n", 'type' => 'string', 'example' => 'ODPS', 'title' => ''], + 'extInfo' => [ + 'description' => 'The additional information.'."\n", + 'type' => 'object', + 'properties' => [ + 'kvSeparator' => ['description' => 'The delimiter that is used to separate keys and values.'."\n", 'type' => 'string', 'example' => ';', 'title' => ''], + 'itemSeparator' => ['description' => 'The delimiter that is used to separate items.'."\n", 'type' => 'string', 'example' => ';', 'title' => ''], + ], + 'title' => '', + 'example' => '', ], + 'category' => ['description' => 'The category of the filtering algorithm.'."\n", 'type' => 'string', 'example' => 'i2i', 'title' => ''], + 'threshold' => [ + 'description' => 'The threshold.'."\n", + 'type' => 'object', + 'properties' => [ + 'sourceDataSizeThreshold' => ['description' => 'The fluctuation threshold for the size of the source table.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'sourceDataRecordThreshold' => ['description' => 'The fluctuation threshold for the data entries in the source table.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'indexSizeThreshold' => ['description' => 'The fluctuation threshold for the size of the index.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'indexLossThreshold' => ['description' => 'The fluctuation threshold for the loss of the index data.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'tableName' => ['description' => 'The name of the table.'."\n", 'type' => 'string', 'example' => 'table01', 'title' => ''], + 'clusterId' => ['description' => 'The ID of the cluster.'."\n", 'type' => 'string', 'example' => '1001', 'title' => ''], + 'cron' => ['description' => 'The CRON expression of the scheduled task. Example: 0 0/12 0 \\* \\*. The value indicates that the task is scheduled at 00:00 and 12:00 every day.'."\n", 'type' => 'string', 'example' => '0 0/12 0 * *', 'title' => ''], + 'description' => ['description' => 'The description of the filtering table.'."\n", 'type' => 'string', 'example' => '训练任务', 'title' => ''], + 'projectName' => ['description' => 'The name of the project.'."\n", 'type' => 'string', 'example' => 'name01', 'title' => ''], + 'algorithmName' => ['description' => 'The name of the filtering algorithm.'."\n", 'type' => 'string', 'example' => 'user', 'title' => ''], + 'cronEnabled' => ['description' => 'N/A'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], - 'experimentId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '123', - ], + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B', - ], + 'requestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '936BE457-5D14-4DBD-85AE-176F7BA8D96D', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'Queries a list of tests. Only the basic information about the tests is displayed. The algorithm configurations are not displayed. The pagination feature is not supported.', + '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' => 'DeleteFilteringAlgorithm', + 'summary' => 'Deletes the configurations of a specified filtering table and the information about the related index table.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'CloneExperiment' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments/{experimentId}/actions/clone', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + '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}'], + ], + ], + ], ], + ], + 'DeleteFlowControlTask' => [ + 'summary' => 'Deletes a throttling task.', + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '18664', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '154373', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], - ], - [ - 'name' => 'sceneId', - 'in' => 'path', - 'schema' => [ - 'description' => 'The scene ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '1', - ], - ], - [ - 'name' => 'dryRun', - 'in' => 'query', - 'schema' => [ - 'description' => 'true: verifies experiment information. false (default): creates an experiment.'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['title' => '', 'description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'experimentId', + 'name' => 'taskId', 'in' => 'path', - 'schema' => [ - 'description' => 'The experiment ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['description' => 'The ID of the task.'."\n", 'type' => 'string', 'required' => false, 'example' => '1661506482', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => '', + 'description' => 'The schema of response parameters.'."\n", 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'The information about the experiment.'."\n", - 'type' => 'object', - 'properties' => [ - 'base' => [ - 'description' => 'N/A'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'onlineTime' => [ - 'description' => 'The time when the experiment was published.'."\n", - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'offlineTime' => [ - 'description' => 'The time when the experiment was unpublished.'."\n", - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'description' => [ - 'description' => 'The remarks.'."\n", - 'type' => 'string', - 'example' => 'xxx', - ], - 'status' => [ - 'description' => 'The experiment state.'."\n", - 'type' => 'string', - 'example' => 'Init', - ], - 'name' => [ - 'description' => 'The experiment name.'."\n", - 'type' => 'string', - 'example' => 'xxx', - ], - 'algorithms' => [ - 'description' => 'The algorithm configurations.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The information about the array object.'."\n", - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => 'The algorithm key. Valid values: I2I: the I2I filtering algorithm. u2X2I: the U2X2I filtering algorithm. hot: the filtering algorithm for popular items. new: the filtering algorithm for new items. embedding: the vector filtering algorithm. mtorder: the priority of the filtering algorithm. rankservice: the ranking service.'."\n", - 'type' => 'string', - 'example' => 'I2I', - ], - 'config' => [ - 'description' => 'The child configuration items.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The information about the array object.'."\n", - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => 'The algorithm key.'."\n", - 'type' => 'string', - 'example' => 'I2I-truncedquantity', - ], - 'defaultValue' => [ - 'description' => 'The default value of the algorithm.'."\n", - 'type' => 'string', - 'example' => '400', - ], - 'experimentValue' => [ - 'description' => 'The custom value of the algorithm.'."\n", - 'type' => 'string', - 'example' => 'swing;commoni2i;pcategory;scategory', - ], - 'name' => [ - 'description' => 'The algorithm name. (Note: If you use the default algorithm, the console obtains the algorithm name from Medusa. If you customize an algorithm for the experiment, the algorithm name is directly returned.)'."\n", - 'type' => 'string', - 'example' => '', - ], - ], - ], - ], - 'defaultValue' => [ - 'description' => 'The default value of the algorithm configuration item.'."\n", - 'type' => 'string', - 'example' => 'i2i;u2x2i;new;hot;embedding;embedding', - ], - 'type' => [ - 'description' => 'The algorithm type. Valid values: SYSTEM and CUSTOM.'."\n", - 'type' => 'string', - 'example' => 'SYSTEM', - ], - 'experimentValue' => [ - 'description' => 'The custom value of the algorithm configuration item.'."\n", - 'type' => 'string', - 'example' => '300', - ], - 'hasConfig' => [ - 'description' => 'Indicates whether child configuration items exist. Valid values: true and false.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'category' => [ - 'description' => 'The algorithm category. Valid values: RECALL and RANK.'."\n", - 'type' => 'string', - 'example' => 'RECALL', - ], - 'name' => [ - 'description' => 'The algorithm name. (Note: If you use the default algorithm, the console obtains the algorithm name from Medusa. If you customize an algorithm for the experiment, the algorithm name is directly returned.)'."\n", - 'type' => 'string', - 'example' => 'name', - ], - ], - ], - ], - 'buckets' => [ - 'description' => 'The buckets.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The buckets.'."\n", - 'type' => 'string', - 'example' => '["1","2","3"]', - ], - ], - 'experimentId' => [ - 'description' => 'The experiment ID.'."\n", - 'type' => 'string', - 'example' => '12345', - ], - ], - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B', - ], + 'requestId' => ['title' => '', 'description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '6E427B10-30FC-1873-922F-FC176D3398D4'], + 'result' => ['description' => 'Indicates whether the task was deleted. Valid values: true and false.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'example' => '', ], ], - '5XX' => [ + 500 => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'CloneExperiment', - 'summary' => 'Clones an experiment.', - 'extraInfo' => ' ', - ], - 'ListFlowControlTaskReports' => [ - 'summary' => '流量调控任务曝光分析', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/flowTaskReports', - 'methods' => [ - 'get', + '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' => 'DeleteFlowControlTask', + '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}'], + ], + ], + ], ], + ], + 'DeleteRankingModel' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-models/{rankingModelId}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'list', - 'abilityTreeCode' => '155143', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '18674', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-****'], ], [ - 'name' => 'taskId', + 'name' => 'rankingModelId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '1666697299358', - ], - ], - [ - 'name' => 'startTime', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '1666195200', - ], - ], - [ - 'name' => 'endTime', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '1668268800', - ], + 'schema' => ['description' => 'The ranking model ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'testRankingId'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '16B78383-2803-4964-9605-37B30C073B0E', - ], 'result' => [ - 'description' => '', + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'total' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'accTaskCtr' => [ - 'description' => '', - 'type' => 'number', - 'format' => 'double', - 'example' => '0.1', - ], - 'accTaskPv' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1000', - ], - 'accTotalCtr' => [ - 'description' => '', - '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', - ], - ], - ], - ], - ], - ], - ], + 'rankingModelId' => ['description' => 'The ranking model ID.', 'type' => 'string', 'title' => '', 'example' => 'testRankingId'], + 'meta' => ['description' => 'The metadata of the model.', 'type' => 'object', 'example' => '', 'title' => ''], ], + 'title' => '', + 'example' => '', ], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => '200'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D486768B-8BF8-4D80-B491-43DC3D0AF8AB'], + 'message' => ['description' => 'The error message.', 'type' => 'string', 'title' => '', 'example' => 'successful'], ], + 'description' => 'The response parameters.', + 'title' => '', + 'example' => '', ], ], - 500 => [ + '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListFlowControlTaskReports', - ], - 'ListFlowControlTaskInvalidItems' => [ - 'summary' => '查询失效物品 id_type', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/invalidItems', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'DeleteRankingModel', + 'summary' => 'Deletes a ranking model.', + '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}'], + ], + ], + ], ], + 'translator' => 'manual', + ], + 'DeleteRankingModelTemplate' => [ + 'summary' => 'You can delete a model.', + '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' => '156202', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '117145', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'taskId', + 'name' => 'templateId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '1661506482', - ], - ], - [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '[ { "itemId": "10", "itemType": "itemType" }, { "itemId": "10", "itemType": "itemType" } ]', - ], - 'required' => false, - ], + 'schema' => ['title' => '', 'description' => 'The ID of the ranking model template.', 'type' => 'string', 'required' => false, 'example' => 'testTemplateId'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', + 'title' => '', + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'result' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'invalidItems' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'itemId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '287723', - ], - 'itemType' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'video', - ], - ], - ], - ], - ], - ], - ], + 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'result' => ['description' => 'The response parameters.', '$ref' => '#/components/schemas/RankingModelTemplate', 'title' => '', 'example' => ''], ], + 'example' => '', ], ], ], - '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' => 'ListFlowControlTaskInvalidItems', - ], - 'ListFlowControlTaskItems' => [ - 'summary' => '流量调控预览', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/actions/items', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'DeleteRankingModelTemplate', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + 'DeleteRankingModelVersion' => [ + 'summary' => 'Deletes a model version.', + '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' => '155140', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '119230', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], + 'schema' => ['title' => '', 'description' => 'The ID of the instance.', 'type' => 'string', 'required' => true, 'example' => 'airec-test'], ], [ - 'name' => 'taskId', + 'name' => 'versionId', 'in' => 'path', - 'schema' => [ - 'description' => '', - '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' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => 'The ID of the version.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => '1'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', + 'title' => '', + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '', - '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' => '', - 'type' => 'string', - 'example' => '123', - ], - 'itemType' => [ - 'description' => '', - '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' => '', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], ], + 'example' => '', ], ], - 500 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'Code' => [ - 'type' => 'string', - ], - 'Message' => [ - 'type' => 'string', - ], - 'RequestId' => [ - 'type' => 'string', - ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","type":"json"}]', + 'title' => 'DeleteRankingModelVersion', + 'changeSet' => [], + 'translator' => 'manual', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteRankingModelVersion'], + ], + ], + '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\\": \\"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' => 'ListFlowControlTaskItems', ], - 'CreateFlowControlTask' => [ - 'summary' => 'Creates a throttling task.', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DeleteRankingSystem' => [ + 'summary' => 'Deletes a sorting service.', + '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' => 'create', - 'abilityTreeCode' => '154018', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '117181', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-2r42wuy7v002', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'airec-cn-****'], ], [ - 'name' => 'dryRun', - 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies whether to perform only a dry run, without performing the actual request.'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'name' => 'name', + 'in' => 'path', + 'schema' => ['description' => 'The name of the sorting service.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'service-a'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The response schema.'."\n", 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'The returned result.'."\n", - 'type' => 'object', - 'properties' => [ - 'taskId' => [ - 'description' => 'The task ID.'."\n", - 'type' => 'string', - 'example' => '1667297014460', - ], - 'gmtModified' => [ - 'description' => 'The time when the task was last modified. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in Coordinated Universal Time (UTC).'."\n", - 'type' => 'string', - 'example' => '2018-12-06T11:17:49.000Z', - ], - 'status' => [ - 'description' => 'The task state.'."\n", - 'type' => 'string', - 'example' => 'DRAFT', - ], - 'gmtCreate' => [ - 'description' => 'The time when the task was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2020-04-27T06:38:28.000Z', - ], - ], - ], - 'code' => [ - 'description' => 'The HTTP status code.'."\n", - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => 'EDF43C1F-99E4-431F-A7C0-8B260A5A792E', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['type' => 'string', 'title' => '', 'description' => 'The request ID.', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'result' => ['$ref' => '#/components/schemas/RankingSystem', 'description' => 'The returned result.', 'title' => '', 'example' => ''], ], + 'title' => '', + 'description' => 'The returned parameters.', + 'example' => '', ], ], - 500 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + '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' => 'DeleteRankingSystem', + '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 \\"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' => 'CreateFlowControlTask', + 'translator' => 'manual', ], - 'GetFlowControlTask' => [ - 'summary' => 'Obtains the details of a throttling task.', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DeleteSample' => [ + 'summary' => 'Deletes a sample.', + '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' => 'get', - 'abilityTreeCode' => '155268', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '117130', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-wwo30psnd001', - ], + 'schema' => ['title' => '', 'description' => 'The ID of the instance.', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-shdjkgkeog'], ], [ - 'name' => 'taskId', + 'name' => 'sampleId', 'in' => 'path', - 'schema' => [ - 'description' => 'The task ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1667979619806', - ], + 'schema' => ['title' => '', 'description' => 'The ID of the sample.', 'type' => 'string', 'required' => true, 'example' => 'Sample1'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => '', + 'description' => 'The details of the returned result.', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'result' => [ - 'description' => 'The returned result.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The information about the array object.'."\n", - 'type' => 'object', - 'properties' => [ - 'gmtCreate' => [ - 'description' => 'The time when the task was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in Coordinated Universal Time (UTC).'."\n", - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'gmtModified' => [ - 'description' => 'The time when the data source was last modified. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2020-04-23T06:08:48.000Z', - ], - 'meta' => [ - 'description' => 'The metadata of the task.'."\n", - 'type' => 'object', - 'properties' => [ - 'description' => [ - 'description' => 'The task description.'."\n", - 'type' => 'string', - 'example' => 'xx', - ], - 'endTime' => [ - 'description' => 'The end time. The value is a timestamp in seconds.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1656518399', - ], - 'metaType' => [ - 'description' => 'The metadata type.'."\n", - 'type' => 'string', - 'example' => 'FlowControlTask', - ], - 'sceneIds' => [ - 'description' => 'The scene IDs.'."\n", - 'type' => 'string', - 'example' => '1,2,3', - ], - 'selectionParams' => [ - 'description' => 'The parameters specified for the item selection rule.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The information about the array object.'."\n", - 'type' => 'object', - 'properties' => [ - 'selectType' => [ - 'description' => 'The type of the filtering condition for the item selection rule.'."\n", - 'type' => 'string', - 'example' => 'QUERY_PUB_TIME', - ], - 'selectValue' => [ - 'description' => 'The value of the filtering condition for the item selection rule.'."\n", - 'type' => 'string', - 'example' => '10000', - ], - 'selectionOperation' => [ - 'description' => 'The operation on the filtering condition for the item selection rule.'."\n", - 'type' => 'string', - 'example' => 'OPERATOR_HIGHER', - ], - ], - ], - ], - 'startTime' => [ - 'description' => 'The start time. The value is a timestamp in seconds.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1640739600', - ], - 'target' => [ - 'description' => 'The exposure settings.'."\n", - 'type' => 'object', - 'properties' => [ - 'type' => [ - 'description' => 'EXPOSE_PERCENT: daily exposure percentage. EXPOSE_COUNT: total number of exposures.'."\n", - 'type' => 'string', - 'example' => 'EXPOSE_PERCENT', - ], - 'value' => [ - 'description' => 'The exposure value.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '20', - ], - ], - ], - 'taskName' => [ - 'description' => 'The task name.'."\n", - 'type' => 'string', - 'example' => '', - ], - ], - ], - 'status' => [ - 'description' => 'The task state. Valid values: DRAFT, READY, RUNNING, ENDED, and AUTO_END. The value AUTO_END is not used.'."\n", - 'type' => 'string', - 'example' => 'DRAFT', - ], - 'taskId' => [ - 'description' => 'The task ID.'."\n", - 'type' => 'string', - 'example' => '1666854602398', - ], - ], - ], - ], + 'requestId' => ['title' => '', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['description' => 'The details of the returned result.', '$ref' => '#/components/schemas/Sample', 'title' => '', 'example' => ''], ], + 'example' => '', ], ], - 500 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + '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"}]', + 'title' => 'DeleteSample', + 'changeSet' => [], + 'translator' => 'manual', + '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' => '[{"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' => 'GetFlowControlTask', ], - 'DeleteFlowControlTask' => [ - 'summary' => 'Deletes a throttling task.', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}', - 'methods' => [ - 'delete', - ], - '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' => 'delete', - 'abilityTreeCode' => '154373', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeCode' => '18675', + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-7e22x6f75001', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'taskId', + 'name' => 'sceneId', 'in' => 'path', - 'schema' => [ - 'description' => 'The ID of the task.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1661506482', - ], + 'schema' => ['description' => 'The scenario ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'testid'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The schema of response parameters.'."\n", + 'description' => 'The details of the result.', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '6E427B10-30FC-1873-922F-FC176D3398D4', - ], 'result' => [ - 'description' => 'Indicates whether the task was deleted. Valid values: true and false.'."\n", - 'type' => 'boolean', - 'example' => 'true', + 'description' => 'The details of the result.', + 'type' => 'object', + 'properties' => [ + 'sceneId' => ['description' => 'The scenario ID.', 'type' => 'string', 'title' => '', 'example' => 'test'], + ], + 'title' => '', + 'example' => '', ], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'InternalServerError'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'An internal server error occurred'], ], + 'title' => '', + 'example' => '', ], ], - 500 => [ + '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], - 'code' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'DeleteFlowControlTask', - ], - 'ListFlowControlTask' => [ - 'summary' => '查询流控任务列表', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'DeleteScene', + 'summary' => 'Deletes a scenario.', + 'description' => 'Do not call this API operation to manage scenarios. Instead, use the Scenario Management feature in the console. For more information, see <props="china">[Quickly build a recommendation scenario by configuring a delivery policy](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}'], + ], + ], + ], ], + 'translator' => 'machine', + ], + 'DeployRankingSystem' => [ + 'summary' => 'Deploys or redeploys a ranking service. For a ranking service that has been deployed, you need to redeploy the service if you modify the configurations of the service.', + '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' => 'list', - 'abilityTreeCode' => '155267', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '117176', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], - ], - [ - 'name' => 'taskId', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '1661506482', - ], - ], - [ - 'name' => 'status', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'DRAFT', - ], + 'schema' => ['title' => '', 'description' => 'The name of the ranking service.'."\n", 'type' => 'string', 'required' => false, 'example' => 'airec-test'], ], [ - 'name' => 'page', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'name' => 'name', + 'in' => 'path', + 'schema' => ['title' => '', 'description' => 'The configuration that you want to modify.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test'], ], [ - 'name' => 'size', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => ['description' => 'The schema of the response parameters.'."\n", '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" + .' }', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', + 'title' => '', + 'description' => 'The ID of the request.'."\n", 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '6E427B10-30FC-1873-922F-FC176D3398D4', - ], - 'result' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'gmtCreate' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2022-08-06T06:14:01.000Z', - ], - 'gmtModified' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2022-08-06T06:14:01.000Z', - ], - 'meta' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'description' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - 'endTime' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1621267200', - ], - 'metaType' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'metaType', - ], - 'sceneIds' => [ - 'description' => '', - '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' => '', - 'type' => 'string', - 'example' => 'EXPOSE_PERCENT', - ], - 'value' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '50', - ], - ], - ], - 'taskName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'testtaskname', - ], - ], - ], - 'status' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'DRAFT', - ], - 'TaskId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '1661506482', - ], - ], - ], - ], + 'requestId' => ['title' => '', 'description' => 'The returned result.'."\n", 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'result' => ['title' => '', 'description' => '__null__', 'type' => 'object', 'example' => 'xxx'], ], + 'example' => '', ], ], - 500 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + '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' => 'DeployRankingSystem', + '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\\": [\\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' => 'ListFlowControlTask', ], - 'ListFlowControlTaskItemReports' => [ - 'summary' => '流量调控曝光排名物品/失效物品查询', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/itemReports', - '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' => '155145', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18676', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-****'], ], [ - 'name' => 'taskId', + 'name' => 'sceneId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '1666854493104', - ], - ], - [ - 'name' => 'selectTimeType', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'yesterDay', - ], - ], - [ - 'name' => 'selectType', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'invalidItem', - ], - ], - [ - 'name' => 'count', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '5', - ], + 'schema' => ['description' => 'The scene ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'sceneId'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'D486768B-8BF8-4D80-B491-43DC3D0AF8AB', - ], 'result' => [ - 'description' => '', + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'detail' => [ - 'description' => '', + 'base' => ['description' => 'Indicates whether the experiment is the default experiment.', 'type' => 'boolean', 'title' => '', 'example' => 'true'], + 'onlineTime' => ['description' => 'The time when the experiment was published.', 'type' => 'string', 'title' => '', 'example' => '2020-12-07T06:47:30.000Z'], + 'offlineTime' => ['description' => 'The time when the experiment was unpublished or fully rolled out.', 'type' => 'string', 'title' => '', 'example' => '2020-12-07T06:47:30.000Z'], + 'description' => ['description' => 'The description of the experiment.', 'type' => 'string', 'title' => '', 'example' => 'xxx'], + 'status' => ['description' => 'The status of the experiment.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **Init**: The experiment is not published.'."\n" + ."\n" + .'- **Online**: The experiment is published.'."\n" + ."\n" + .'- **Finish**: The experiment is fully rolled out.'."\n" + ."\n" + .'- **Offline**: The experiment is unpublished.', 'type' => 'string', 'title' => '', 'example' => 'Init'], + 'name' => ['description' => 'The name of the experiment.', 'type' => 'string', 'title' => '', 'example' => '测试实验'], + 'algorithms' => [ + 'description' => 'A list of experiment parameters.', 'type' => 'array', 'items' => [ - 'description' => '', + 'description' => 'The information about an experiment parameter.', 'type' => 'object', 'properties' => [ - 'taskId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '1666669577221', - ], - 'itemId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '123', - ], - 'itemType' => [ - 'description' => '', - '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', + 'key' => ['description' => 'The key of the algorithm.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **I2I**: The I2I retrieval endpoint.'."\n" + ."\n" + .'- **u2X2I**: The U2X2I retrieval endpoint.'."\n" + ."\n" + .'- **hot**: The hot items retrieval endpoint.'."\n" + ."\n" + .'- **new**: The new items retrieval endpoint.'."\n" + ."\n" + .'- **embedding**: The vector retrieval endpoint.'."\n" + ."\n" + .'- **mtorder**: The priority of the retrieval endpoint.'."\n" + ."\n" + .'- **rankservice**: The sorting service.', 'type' => 'string', 'title' => '', 'example' => 'I2I'], + 'config' => [ + 'description' => 'A list of child configuration items.', + 'type' => 'array', + 'items' => [ + 'description' => 'The information about a child configuration item.', + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => 'The key of the algorithm configuration item.', 'type' => 'string', 'title' => '', 'example' => 'I2I'], + 'defaultValue' => ['description' => 'The default value of the algorithm configuration item.', 'type' => 'string', 'title' => '', 'example' => 'true'], + 'experimentValue' => ['description' => 'The experiment value.', 'type' => 'string', 'title' => '', 'example' => '400'], + 'name' => ['description' => 'The name of the child configuration item.', 'type' => 'string', 'title' => '', 'example' => 'xxx'], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], + 'defaultValue' => ['description' => 'The default number of items to retrieve.', 'type' => 'string', 'title' => '', 'example' => 'true'], + 'type' => ['description' => 'The category of the algorithm.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **SYSTEM**: The default system type.'."\n" + ."\n" + .'- **CUSTOM**: The custom user-defined type.', 'type' => 'string', 'title' => '', 'example' => 'SYSTEM'], + 'experimentValue' => ['description' => 'The experiment value.', 'type' => 'string', 'title' => '', 'example' => '400'], + 'hasConfig' => ['description' => 'Indicates whether a child configuration item exists.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **true**: Yes'."\n" + ."\n" + .'- **false**: No', 'type' => 'boolean', 'title' => '', 'example' => 'false'], + 'category' => ['description' => 'The category of the algorithm.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **RECALL**: Retrieval.'."\n" + ."\n" + .'- **RANK**: Sorting.', 'type' => 'string', 'title' => '', 'example' => 'RECALL'], + 'name' => ['description' => 'The name of the experiment.', 'type' => 'string', 'title' => '', 'example' => 'xxx'], ], + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', + ], + 'buckets' => [ + 'description' => 'A list of buckets. This parameter takes effect only when the experiment is published.', + 'type' => 'array', + 'items' => ['description' => 'The information about a bucket.', 'type' => 'string', 'title' => '', 'example' => '[1,2,3]'], + 'title' => '', + 'example' => '', ], + 'experimentId' => ['description' => 'The experiment ID.', 'type' => 'string', 'title' => '', 'example' => 'xxx'], ], + 'title' => '', + 'example' => '', ], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'A74E3FB7-406C-5CBB-833E-E49308B5DC05'], ], + 'title' => '', + 'example' => '', ], ], - 500 => [ + '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], - 'code' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListFlowControlTaskItemReports', - ], - 'ListFlowControlTaskReference' => [ - 'summary' => 'Queries reference data for throttling.', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/reference', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'DescribeBaseExperiment', + 'summary' => 'Retrieves the base experiment.', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + 'DescribeCustomAnalysisTask' => [ + 'summary' => 'Queries the results of a custom analysis task for a specified instance.', + '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' => '155137', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '36674', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-7mz2wuyd2001', - ], + 'schema' => ['description' => '', 'type' => 'string', 'required' => true, 'title' => '', 'example' => ''], + ], + [ + 'name' => 'type', + 'in' => 'query', + 'schema' => ['description' => '', 'type' => 'string', 'required' => true, 'title' => '', 'example' => ''], ], [ 'name' => 'taskId', 'in' => 'path', - 'schema' => [ - 'description' => 'The ID of the task.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1666670046687', - ], + 'schema' => ['description' => '', 'type' => 'string', 'required' => true, 'title' => '', 'example' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => 'The returned results.'."\n", 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'The returned results.'."\n", - 'type' => 'object', - 'properties' => [ - 'last7PvPercent' => [ - 'description' => 'The average exposure rate of the item pool in the last seven days.'."\n", - 'type' => 'number', - 'format' => 'double', - 'example' => '0.1', - ], - 'last7ScenePv' => [ - 'description' => 'The average number of exposures for the items in the selected scene in the last seven days.'."\n", - 'type' => 'number', - 'format' => 'double', - 'example' => '10', - ], - 'last7TaskPv' => [ - 'description' => 'The average number of exposures for the item pool in the selected scene in the last seven days.'."\n", - 'type' => 'number', - 'format' => 'double', - 'example' => '10', - ], - 'lastPvPercent' => [ - 'description' => 'The exposure rate of the item pool yesterday.'."\n", - 'type' => 'number', - 'format' => 'double', - 'example' => '0.1', - ], - 'lastScenePv' => [ - 'description' => 'The total number of exposures for the items in the selected scene yesterday.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], - 'lastTaskPv' => [ - 'description' => 'The number of exposures for the item pool in the selected scene yesterday.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], - 'referenceId' => [ - 'description' => 'The ID of the reference data.'."\n", - 'type' => 'string', - 'example' => '421351235918', - ], - ], - ], - 'requestId' => [ - 'description' => 'The ID of the request. The value is unique for each request. This helps troubleshoot issues later.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], + 'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => ''], + 'result' => ['description' => '', 'type' => 'object', 'title' => '', 'example' => ''], + 'code' => ['description' => '', 'type' => 'string', 'title' => '', 'example' => ''], + 'message' => ['description' => '', 'type' => 'string', 'title' => '', 'example' => ''], ], + 'title' => '', + 'description' => 'The data returned.', + 'example' => '', ], ], - 500 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"code\\": \\"\\",\\n \\"message\\": \\"\\"\\n}","type":"json"}]', + 'title' => 'DescribeCustomAnalysisTask', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DescribeCustomAnalysisTask'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeCustomAnalysisTask', + '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":""}]', - 'title' => 'ListFlowControlTaskReference', + 'translator' => 'manual', ], - 'ModifyFlowControlTask' => [ - 'summary' => 'Modifies a throttling task.', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DescribeDataSetMessage' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dataSets/{versionId}/messages', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, + 'operationType' => 'read', 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '154309', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18677', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-zvp2tu7dz007', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-****'], ], [ - 'name' => 'taskId', + 'name' => 'versionId', 'in' => 'path', - 'schema' => [ - 'description' => 'The ID of the task.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1667297014460', - ], + 'schema' => ['description' => 'The version ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '2018102321****'], ], - [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The request body.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'TaskName' => [ - 'description' => 'The name of the task.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'testname', - ], - 'description' => [ - 'description' => 'The description of the task.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Description'."\n", - ], - 'endTime' => [ - 'description' => 'The end time. The value is a timestamp in seconds.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1639519200', - ], - 'metaType' => [ - 'description' => 'The type of the metadata.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'FlowControlTask', - ], - 'sceneIds' => [ - 'description' => 'The ID of the scene.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'all,sy101', - ], - 'selectionParams' => [ - 'description' => 'The parameters specified for the item selection rule.'."\n", + 'result' => [ + 'description' => 'The response parameters.', 'type' => 'array', 'items' => [ - 'description' => '', + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'selectType' => [ - 'description' => 'The type of the filtering condition for the item selection rule.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'invalidItem', - ], - 'selectValue' => [ - 'description' => 'The number of filtering conditions for the item selection rule.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '20', - ], - 'selectionOperation' => [ - 'description' => 'The operation on the filtering condition for the item selection rule.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'OPERATOR_HIGHER', - ], - ], - 'required' => false, - ], - 'required' => false, - ], - 'startTime' => [ - 'description' => 'The start time. The value is a timestamp in seconds.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1638460800', - ], - 'target' => [ - 'description' => 'The settings for item exposure.'."\n", - 'type' => 'object', - 'properties' => [ - 'type' => [ - 'description' => 'The type of the exposure.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'EXPOSE_PERCENT', - ], - 'value' => [ - 'description' => 'The number of exposures.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '50', + 'message' => ['description' => 'The details of the data diagnosis error.', 'type' => 'string', 'title' => '', 'example' => 'item商品表合法率0.36,可被采纳数据(符合规范)较少。会影响预热期推荐效果。请检查数据,补充相关字段信息,重新导入。建议优化。'], + 'timestamp' => ['description' => 'The time when the data diagnosis error occurred.', 'type' => 'string', 'title' => '', 'example' => '20181211 17:27:44'], + 'errorLevel' => ['description' => 'The level of the data diagnosis error.', 'type' => 'string', 'title' => '', 'example' => 'warn'], + 'errorType' => ['description' => 'The type of the data diagnosis error.', 'type' => 'string', 'title' => '', 'example' => '合法率'], ], + 'title' => '', + 'example' => '', ], - 'required' => false, + 'title' => '', + 'example' => '', ], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'InternalServerError'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error message.', 'type' => 'string', 'title' => '', 'example' => 'An internal server error occurred'], ], - 'required' => false, + 'title' => '', + 'example' => '', ], ], - ], - 'responses' => [ - 200 => [ + '5XX' => [ 'schema' => [ - 'description' => 'The returned result.'."\n", 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => 'The ID of the request. The value is unique for each request. This facilitates troubleshooting.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'result' => [ - 'description' => 'The returned result.'."\n", - 'type' => 'object', - 'properties' => [ - 'gmtCreate' => [ - 'description' => 'The time when the task was created.'."\n", - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'gmtModified' => [ - 'description' => 'The time when the task was modified.'."\n", - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'meta' => [ - 'description' => 'The metadata.'."\n", - 'type' => 'object', - 'properties' => [ - 'description' => [ - 'description' => 'The description of the task.'."\n", - 'type' => 'string', - 'example' => 'tst', - ], - 'endTime' => [ - 'description' => 'The end time. The value is a timestamp in seconds.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1656518399', - ], - 'metaType' => [ - 'description' => 'The type of the metadata.'."\n", - 'type' => 'string', - 'example' => 'FlowControlTask', - ], - 'sceneIds' => [ - 'description' => 'The IDs of scenes.'."\n", - 'type' => 'string', - 'example' => '1,2,3', - ], - 'selectionParams' => [ - 'description' => 'The parameters specified for the item selection rule.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The information about the array object.'."\n", - 'type' => 'object', - 'properties' => [ - 'selectType' => [ - 'description' => 'The type of the filtering condition for the item selection rule.'."\n", - 'type' => 'string', - 'example' => 'QUERY_PUB_TIME', - ], - 'selectValue' => [ - 'description' => 'The number of filtering conditions for the item selection rule.'."\n", - 'type' => 'string', - 'example' => '10000', - ], - 'selectionOperation' => [ - 'description' => 'The operation on the filtering condition for the item selection rule.'."\n", - 'type' => 'string', - 'example' => 'OPERATOR_HIGHER', - ], - ], - ], - ], - 'startTime' => [ - 'description' => 'The start time. The value is a timestamp in seconds.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1640739600', - ], - 'target' => [ - 'description' => 'The settings for item exposure.'."\n", - 'type' => 'object', - 'properties' => [ - 'type' => [ - 'description' => 'The type of the exposure.'."\n", - 'type' => 'string', - 'example' => 'EXPOSE_PERCENT', - ], - 'value' => [ - 'description' => 'The number of exposures.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '20', - ], - ], - ], - 'taskName' => [ - 'description' => 'The name of the task.'."\n", - 'type' => 'string', - 'example' => 'Active user test'."\n", - ], - ], - ], - 'status' => [ - 'description' => 'The state of the task.'."\n", - 'type' => 'string', - 'example' => 'DRAFT', - ], - 'TaskId' => [ - 'description' => 'The ID of the task.'."\n", - 'type' => 'string', - 'example' => '1661506482', - ], - ], - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], - 500 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'DescribeDataSetMessage', + 'summary' => 'Queries the details of data errors for a specific dataset version in a specific instance.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'translator' => 'manual', + '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 \\"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' => 'ModifyFlowControlTask', ], - 'StopFlowControlTask' => [ - 'summary' => '停止流调任务接口', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/actions/stop', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + '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' => 'update', - 'abilityTreeCode' => '154378', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18678', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-xxxxxx', 'title' => ''], ], [ - 'name' => 'taskId', + 'name' => 'sceneId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '1666854602398', - ], + 'schema' => ['description' => 'The scene ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], 'result' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', + 'description' => 'The returned result.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'The information about the array object.'."\n", + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => 'The algorithm key. Valid values: i2i: the I2I filtering algorithm. u2x2i: the U2X2I filtering algorithm. hot: the filtering algorithm for popular items. new: the filtering algorithm for new items. embedding: the vector filtering algorithm. mtorder: the priority of the filtering algorithm. rankservice: the ranking service.'."\n", 'type' => 'string', 'example' => 'I2I', 'title' => ''], + 'config' => [ + 'description' => 'The information about the child configuration item.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'The information about the array object.'."\n", + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => 'The key of the algorithm configuration item.'."\n", 'type' => 'string', 'example' => 'I2I-truncedquantity', 'title' => ''], + 'defaultValue' => ['description' => 'The default value of the algorithm configuration item.'."\n", 'type' => 'string', 'example' => 'swing;commoni2i;pcategory;scategory', 'title' => ''], + 'experimentValue' => ['description' => 'The custom value of the algorithm configuration item.'."\n", 'type' => 'string', 'example' => '300', 'title' => ''], + 'name' => ['description' => 'The name of the algorithm configuration item. (Note: If you use the default algorithm, the console obtains the algorithm name from Medusa. If you customize an algorithm for the experiment, the algorithm name is directly returned.)'."\n", 'type' => 'string', 'example' => 'I2I算法', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'defaultValue' => ['description' => 'The default value of the algorithm. If you set key to i2i, hot, or new, the value of this parameter is true or false. If you set key to mtorder, the value of this parameter is a list of filtering algorithms ranked by priority.'."\n", 'type' => 'string', 'example' => 'true', 'title' => ''], + 'type' => ['description' => 'The algorithm type. Valid values: SYSTEM and CUSTOM.'."\n", 'type' => 'string', 'example' => 'SYSTEM', 'title' => ''], + 'experimentValue' => ['description' => 'The custom value of the algorithm.'."\n", 'type' => 'string', 'example' => '300', 'title' => ''], + 'hasConfig' => ['description' => 'Indicates whether child configuration items exist. Valid values: true and false.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'category' => ['description' => 'The algorithm category. Valid values: RECALL and RANK.'."\n", 'type' => 'string', 'example' => 'RECALL', 'title' => ''], + 'name' => ['description' => 'The algorithm name. (Note: If you use the default algorithm, the console obtains the algorithm name from Medusa. If you customize an algorithm for the experiment, the algorithm name is directly returned.)'."\n", 'type' => 'string', 'example' => 'xxx', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'F60021C4-57AF-5F46-9B3E-FCEF1C7A1459', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], - 500 => [ + '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], - 'code' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], - ], - ], - ], - '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' => 'StopFlowControlTask', - ], - 'PublishFlowControlTask' => [ - 'summary' => '发布流调任务接口', - 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/actions/publish', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '154377', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], - ], - 'parameters' => [ - [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-cn-****', - ], - ], - [ - 'name' => 'taskId', - 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '1666669577221', + 'title' => '', + 'example' => '', ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'result' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - ], - ], - ], - 500 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], - 'code' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + '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' => 'DescribeDefaultAlgorithms', + 'summary' => 'Queries the information of default algorithms.', + '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' => '[{"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' => 'PublishFlowControlTask', ], - 'CreateFilteringAlgorithm' => [ - 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DescribeExperiment' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments/{experimentId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '18665', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18679', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The state of the filtering table.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'xxx', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-****'], ], [ - 'name' => 'dryRun', - 'in' => 'query', - 'schema' => [ - 'description' => 'xxx', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'true', - ], + 'name' => 'sceneId', + 'in' => 'path', + 'schema' => ['description' => 'The scenario ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'sceneId'], + ], + [ + 'name' => 'experimentId', + 'in' => 'path', + 'schema' => ['description' => 'The experiment ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '23245'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => 'The ID of the instance.'."\n", + 'description' => 'The returned parameters.', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => 'Specifies whether to perform a dry run. Valid values: true: performs a dry run. false: performs a dry run and sends the request.'."\n", + 'description' => 'The returned parameters.', 'type' => 'object', 'properties' => [ - 'gmtModified' => [ - 'description' => 'The fluctuation threshold for the data entries in the source table.'."\n", - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'status' => [ - 'description' => 'The name of the filtering algorithm.'."\n", - 'type' => 'string', - 'example' => 'Running', - ], - 'gmtCreate' => [ - 'description' => 'The time when the filtering table was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in Coordinated Universal Time (UTC).'."\n", - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'algorithmId' => [ - 'description' => 'The additional information.'."\n", - 'type' => 'string', - 'example' => 'abc', - ], - 'meta' => [ - 'description' => 'The threshold.'."\n", - 'type' => 'object', - 'properties' => [ - 'type' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'ODPS', - ], - 'extInfo' => [ - 'description' => 'The name of the MaxCompute project.'."\n", - 'type' => 'object', - 'example' => '{}', - ], - 'category' => [ - 'description' => 'The response body.'."\n", - 'type' => 'string', - 'example' => '1_2', - ], - 'threshold' => [ - 'description' => '0 0/12 0 * *"', - 'type' => 'object', - 'properties' => [ - 'sourceDataSizeThreshold' => [ - 'description' => 'The fluctuation threshold for the loss of the index data.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'sourceDataRecordThreshold' => [ - 'description' => 'The category of the filtering table.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'indexSizeThreshold' => [ - 'description' => 'The fluctuation threshold for the size of the source table.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'indexLossThreshold' => [ - 'description' => 'The time when the filtering table was modified.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', + 'base' => ['description' => 'Indicates whether the experiment is the default experiment.', 'type' => 'boolean', 'title' => '', 'example' => 'true'], + 'onlineTime' => ['description' => 'The time when the experiment went online.', 'type' => 'string', 'title' => '', 'example' => '2020-11-11T09:47:43.000Z'], + 'offlineTime' => ['description' => 'The time when the experiment went offline.', 'type' => 'string', 'title' => '', 'example' => '2020-11-11T09:47:43.000Z'], + 'description' => ['description' => 'The description of the experiment.', 'type' => 'string', 'title' => '', 'example' => 'xxx'], + 'status' => ['description' => 'The status of the experiment.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **Init**: The experiment is not published.'."\n" + ."\n" + .'- **Online**: The experiment is online.'."\n" + ."\n" + .'- **Finish**: The experiment is fully rolled out.'."\n" + ."\n" + .'- **Offline**: The experiment is offline.', 'type' => 'string', 'title' => '', 'example' => '1'], + 'name' => ['description' => 'The name of the experiment.', 'type' => 'string', 'title' => '', 'example' => 'test'], + 'algorithms' => [ + 'description' => 'The list of experiment parameters.', + 'type' => 'array', + 'items' => [ + 'description' => 'The information about the experiment parameters.', + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => 'The key of the algorithm.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **I2I**: The item-to-item (I2I) retrieval ingest endpoint.'."\n" + ."\n" + .'- **u2X2I**: The user-to-X-to-item (U2X2I) retrieval ingest endpoint.'."\n" + ."\n" + .'- **hot**: The hot item retrieval ingest endpoint.'."\n" + ."\n" + .'- **new**: The new item retrieval ingest endpoint.'."\n" + ."\n" + .'- **embedding**: The vector retrieval ingest endpoint.'."\n" + ."\n" + .'- **mtorder**: The priority of the retrieval ingest endpoint.'."\n" + ."\n" + .'- **rankservice**: The sorting service.', 'type' => 'string', 'title' => '', 'example' => 'I2I'], + 'config' => [ + 'description' => 'The list of child configuration items.', + 'type' => 'array', + 'items' => [ + 'description' => 'The information about the child configuration item.', + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => 'The key of the algorithm configuration item.', 'type' => 'string', 'title' => '', 'example' => 'I2I'], + 'defaultValue' => ['description' => 'The default value of the algorithm configuration item.', 'type' => 'string', 'title' => '', 'example' => 'true'], + 'experimentValue' => ['description' => 'The experiment value.', 'type' => 'string', 'title' => '', 'example' => '400'], + 'name' => ['description' => 'The name of the child configuration.', 'type' => 'string', 'title' => '', 'example' => 'xxx'], + ], + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], + 'defaultValue' => ['description' => 'The default number of items to retrieve.', 'type' => 'string', 'title' => '', 'example' => 'true'], + 'type' => ['description' => 'The algorithm type.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **SYSTEM**: The default system type.'."\n" + ."\n" + .'- **CUSTOM**: A custom type.', 'type' => 'string', 'title' => '', 'example' => 'SYSTEM'], + 'experimentValue' => ['description' => 'The experiment value.', 'type' => 'string', 'title' => '', 'example' => '空'], + 'hasConfig' => ['description' => 'Indicates whether a child configuration item exists.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **true**: Yes'."\n" + ."\n" + .'- **false**: No', 'type' => 'boolean', 'title' => '', 'example' => 'false'], + 'category' => ['description' => 'The algorithm category.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **RECALL**: Retrieval.'."\n" + ."\n" + .'- **RANK**: Sorting.', 'type' => 'string', 'title' => '', 'example' => '2'], + 'name' => ['description' => 'The name of the experiment.', 'type' => 'string', 'title' => '', 'example' => 'test'], ], - 'status' => [ - 'description' => 'The CRON expression of the scheduled task. Example: 0 0/12 0 \\* \\*, which indicates that the task is scheduled at 00:00 and 12:00 every day.'."\n", - 'type' => 'string', - 'example' => 'Running', - ], - 'gmtCreate' => [ - 'description' => 'The information about the filtering table.'."\n", - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'tableName' => [ - 'description' => 'The metadata of the filtering table.'."\n", - 'type' => 'string', - 'example' => 'table_test', - ], - 'cron' => [ - 'description' => 'The fluctuation threshold for the size of the index.'."\n", - 'type' => 'string', - 'example' => '0 0/12 0 * *', - ], - 'description' => [ - 'description' => 'The description of the filtering table.'."\n", - 'type' => 'string', - 'example' => 'xx', - ], - 'gmtModified' => [ - 'description' => 'Indicates whether the scheduled task is enabled.'."\n", - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'projectName' => [ - 'description' => 'The ID of the filtering table.'."\n", - 'type' => 'string', - 'example' => 'testname', - ], - 'algorithmName' => [ - 'description' => 'The name of the filtering table.'."\n", - 'type' => 'string', - 'example' => 'algorithmTest', - ], - 'cronEnabled' => [ - 'description' => 'The time when the filtering table was last modified. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed UTC.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', + ], + 'buckets' => [ + 'description' => 'The list of buckets. This field takes effect only when the experiment is online.', + 'type' => 'array', + 'items' => ['description' => 'The bucketing information.', 'type' => 'string', 'title' => '', 'example' => '["1","2","3"]'], + 'title' => '', + 'example' => '', ], + 'experimentId' => ['description' => 'The experiment ID.', 'type' => 'string', 'title' => '', 'example' => '12345'], ], + 'title' => '', + 'example' => '', ], - 'requestId' => [ - 'description' => 'The type of the data source.'."\n", - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B'], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'CreateFilteringAlgorithm', - 'summary' => 'Creates a filtering table. After the filtering table is trained on Machine Learning Platform for AI (PAI), export it to MaxCompute and specify the information about the MaxCompute table in Artificial Intelligence Recommendation (AIRec).', - ], - 'DeleteFilteringAlgorithm' => [ - 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'DescribeExperiment', + 'summary' => 'Queries the details of an experiment.', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + 'DescribeExperimentEnv' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiment-env', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '18673', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18680', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-****'], ], [ - 'name' => 'algorithmId', + 'name' => 'sceneId', 'in' => 'path', - 'schema' => [ - 'description' => 'The ID of the specified filtering table.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '1', - ], + 'schema' => ['description' => 'The scenario ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'sceneId'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => 'The returned result.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'gmtModified' => [ - 'description' => 'The time when the filtering table was modified.'."\n", - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'status' => [ - 'description' => 'The state of the filtering table. Valid values: Draft, Running, Offline, and Deleted.'."\n", - 'type' => 'string', - 'example' => 'Running', - ], - 'gmtCreate' => [ - 'description' => 'The time when the filtering table was created.'."\n", - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'algorithmId' => [ - 'description' => 'The ID of the specified filtering table.'."\n", - 'type' => 'string', - 'example' => '123', - ], - 'meta' => [ - 'description' => 'The metadata of the filtering table.'."\n", - 'type' => 'object', - 'properties' => [ - 'taskId' => [ - 'description' => 'The ID of the task.'."\n", - 'type' => 'string', - 'example' => 'test01', - ], - 'metaType' => [ - 'description' => 'The type of the metadata.'."\n", - 'type' => 'string', - 'example' => 'odps', - ], - 'type' => [ - 'description' => 'The type of the data source. Only MaxCompute is supported.'."\n", - 'type' => 'string', - 'example' => 'ODPS', - ], - 'extInfo' => [ - 'description' => 'The additional information.'."\n", - 'type' => 'object', - 'properties' => [ - 'kvSeparator' => [ - 'description' => 'The delimiter that is used to separate keys and values.'."\n", - 'type' => 'string', - 'example' => ';', - ], - 'itemSeparator' => [ - 'description' => 'The delimiter that is used to separate items.'."\n", - 'type' => 'string', - 'example' => ';', - ], - ], - ], - 'category' => [ - 'description' => 'The category of the filtering algorithm.'."\n", - 'type' => 'string', - 'example' => 'i2i', - ], - 'threshold' => [ - 'description' => 'The threshold.'."\n", - 'type' => 'object', - 'properties' => [ - 'sourceDataSizeThreshold' => [ - 'description' => 'The fluctuation threshold for the size of the source table.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'sourceDataRecordThreshold' => [ - 'description' => 'The fluctuation threshold for the data entries in the source table.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'indexSizeThreshold' => [ - 'description' => 'The fluctuation threshold for the size of the index.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'indexLossThreshold' => [ - 'description' => 'The fluctuation threshold for the loss of the index data.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - ], - ], - 'tableName' => [ - 'description' => 'The name of the table.'."\n", - 'type' => 'string', - 'example' => 'table01', - ], - 'clusterId' => [ - 'description' => 'The ID of the cluster.'."\n", - 'type' => 'string', - 'example' => '1001', - ], - 'cron' => [ - 'description' => 'The CRON expression of the scheduled task. Example: 0 0/12 0 \\* \\*. The value indicates that the task is scheduled at 00:00 and 12:00 every day.'."\n", - 'type' => 'string', - 'example' => '0 0/12 0 * *', - ], - 'description' => [ - 'description' => 'The description of the filtering table.'."\n", - 'type' => 'string', - 'example' => 'Training task'."\n", - ], - 'projectName' => [ - 'description' => 'The name of the project.'."\n", - 'type' => 'string', - 'example' => 'name01', - ], - 'algorithmName' => [ - 'description' => 'The name of the filtering algorithm.'."\n", - 'type' => 'string', - 'example' => 'user', - ], - 'cronEnabled' => [ - 'description' => 'N/A'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - ], - ], + 'bucketCount' => ['description' => 'The number of buckets.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '10'], + 'divideType' => ['description' => 'The bucketing method. Valid values: UID and International Mobile Equipment Identity (IMEI).', 'type' => 'string', 'title' => '', 'example' => 'UID'], ], + 'title' => '', + 'example' => '', ], - 'requestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '936BE457-5D14-4DBD-85AE-176F7BA8D96D', - ], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'DeleteFilteringAlgorithm', - 'summary' => 'Deletes the configurations of a specified filtering table and the information about the related index table.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ModifyFilteringAlgorithmMeta' => [ - 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/meta', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"bucketCount\\": 10,\\n \\"divideType\\": \\"UID\\"\\n },\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","type":"json"}]', + 'title' => 'DescribeExperimentEnv', + 'summary' => 'Queries information about an experiment scenario.', + '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}'], + ], + ], + ], ], + 'translator' => 'manual', + ], + 'DescribeExperimentEnvProgress' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiment-progress', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18720', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18681', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'Indicates whether the scheduled task is enabled.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'The request ID.'."\n", - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-****'], ], [ - 'name' => 'algorithmId', + 'name' => 'sceneId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], + 'schema' => ['description' => 'The scenario ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'sceneId'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', + 'description' => 'The data returned.', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '', + 'description' => 'The data returned.', 'type' => 'object', 'properties' => [ - 'gmtModified' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'status' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'Running', - ], - 'gmtCreate' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'algorithmId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'abc', - ], - 'meta' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'taskId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'taskId', - ], - 'metaType' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'metaType', - ], - 'type' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ODPS', - ], - 'extInfo' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'kvSeparator' => [ - 'description' => '', - 'type' => 'string', - 'example' => ':', - ], - 'itemSeparator' => [ - 'description' => '', - 'type' => 'string', - 'example' => ',', - ], - ], - ], - 'category' => [ - 'description' => '', - 'type' => 'string', - 'example' => '1_2', - ], - 'threshold' => [ - 'description' => '', - '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' => '', - 'type' => 'string', - 'example' => 'test_table', - ], - 'clusterId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '244', - ], - 'cron' => [ - 'description' => '', - 'type' => 'string', - 'example' => '* * 24 7 0', - ], - 'description' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'test', - ], - 'projectName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'test', - ], - 'algorithmName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'test', - ], - 'cronEnabled' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => '', - ], - ], - ], + 'status' => ['description' => 'The activation status.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **NotOpen**: The scenario is not activated.'."\n" + ."\n" + .'- **Processing**: The scenario is being activated.'."\n" + ."\n" + .'- **Running**: The scenario is running.', 'type' => 'string', 'title' => '', 'example' => 'Processing'], + 'progress' => ['description' => 'The progress of the task. The value ranges from 0 to 100. A value of 100 indicates that the task is complete.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '80'], ], + 'title' => '', + 'example' => '', ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3', - ], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B'], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": {\\n \\"status\\": \\"Processing\\",\\n \\"progress\\": 80\\n },\\n \\"requestId\\": \\"E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B\\"\\n}","type":"json"}]', + 'title' => 'DescribeExperimentEnvProgress', + 'summary' => 'Queries the activation status of an experiment scenario.', + 'changeSet' => [], + 'translator' => 'manual', + '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' => '[{"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' => 'Modifies configurations of a filtering table.', - 'description' => 'The name of the filtering algorithm.'."\n", ], 'DescribeFilteringAlgorithm' => [ 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -7087,32 +4068,18 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '18682', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The name of the filtering algorithm.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'The additional information.'."\n", - ], + 'schema' => ['description' => 'The name of the filtering algorithm.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****', 'title' => ''], ], [ 'name' => 'algorithmId', 'in' => 'path', - 'schema' => [ - 'description' => 'The delimiter that is used to separate items.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'abc', - ], + 'schema' => ['description' => 'The delimiter that is used to separate items.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'abc', 'title' => ''], ], ], 'responses' => [ @@ -7125,173 +4092,100 @@ 'description' => 'The ID of the request.'."\n", 'type' => 'object', 'properties' => [ - 'gmtModified' => [ - 'description' => 'The name of the project.'."\n", - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'status' => [ - 'description' => 'N/A'."\n", - 'type' => 'string', - 'example' => 'The threshold for the loss of the index data.'."\n", - ], - 'gmtCreate' => [ - 'description' => 'The category of the filtering table.'."\n", - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'algorithmId' => [ - 'description' => 'The fluctuation threshold for the size of the source table.'."\n", - 'type' => 'string', - 'example' => 'abc', - ], + 'gmtModified' => ['description' => 'The name of the project.'."\n", 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z', 'title' => ''], + 'status' => ['description' => 'N/A'."\n", 'type' => 'string', 'example' => 'Draft', 'title' => ''], + 'gmtCreate' => ['description' => 'The category of the filtering table.'."\n", 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z', 'title' => ''], + 'algorithmId' => ['description' => 'The fluctuation threshold for the size of the source table.'."\n", 'type' => 'string', 'example' => 'abc', 'title' => ''], 'meta' => [ 'description' => 'The time when the filtering table was modified.'."\n", 'type' => 'object', 'properties' => [ - 'taskId' => [ - 'description' => 'The CRON expression of the scheduled task.'."\n", - 'type' => 'string', - 'example' => 'taskId', - ], - 'metaType' => [ - 'description' => 'The information about the filtering table.'."\n", - 'type' => 'string', - 'example' => 'metaType', - ], - 'type' => [ - 'description' => 'The metadata of the filtering table.'."\n", - 'type' => 'string', - 'example' => 'ODPS', - ], + 'taskId' => ['description' => 'The CRON expression of the scheduled task.'."\n", 'type' => 'string', 'example' => 'taskId', 'title' => ''], + 'metaType' => ['description' => 'The information about the filtering table.'."\n", 'type' => 'string', 'example' => 'metaType', 'title' => ''], + 'type' => ['description' => 'The metadata of the filtering table.'."\n", 'type' => 'string', 'example' => 'ODPS', 'title' => ''], 'extInfo' => [ 'description' => 'The ID of the task.'."\n", 'type' => 'object', 'properties' => [ - 'kvSeparator' => [ - 'description' => 'The fluctuation threshold for the size of the index.'."\n", - 'type' => 'string', - 'example' => ':', - ], - 'itemSeparator' => [ - 'description' => 'The description of the filtering table.'."\n", - 'type' => 'string', - 'example' => ',', - ], + 'kvSeparator' => ['description' => 'The fluctuation threshold for the size of the index.'."\n", 'type' => 'string', 'example' => ':', 'title' => ''], + 'itemSeparator' => ['description' => 'The description of the filtering table.'."\n", 'type' => 'string', 'example' => ',', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'category' => [ - 'description' => 'Indicates whether the scheduled task is enabled.'."\n", - 'type' => 'string', - 'example' => '1_2', - ], + 'category' => ['description' => 'Indicates whether the scheduled task is enabled.'."\n", 'type' => 'string', 'example' => '1_2', 'title' => ''], 'threshold' => [ 'description' => 'The ID of the filtering table.'."\n", 'type' => 'object', 'properties' => [ - 'sourceDataSizeThreshold' => [ - 'description' => 'The name of the filtering table.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'sourceDataRecordThreshold' => [ - 'description' => 'The type of the data source.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'indexSizeThreshold' => [ - 'description' => 'Queries specific configuration information about a filtering table based on the ID of the filtering table.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'indexLossThreshold' => [ - 'description' => 'The ID of the specified instance.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], + 'sourceDataSizeThreshold' => ['description' => 'The name of the filtering table.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'sourceDataRecordThreshold' => ['description' => 'The type of the data source.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'indexSizeThreshold' => ['description' => 'Queries specific configuration information about a filtering table based on the ID of the filtering table.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'indexLossThreshold' => ['description' => 'The ID of the specified instance.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'tableName' => [ - 'description' => 'The ID of the specified filtering table.'."\n", - 'type' => 'string', - 'example' => 'test_table', - ], - 'clusterId' => [ - 'description' => 'N/A'."\n", - 'type' => 'string', - 'example' => '244', - ], - 'cron' => [ - 'description' => 'The information about the filtering table.'."\n", - 'type' => 'string', - 'example' => '* * 24 7 0', - ], - 'description' => [ - 'description' => 'The time when the filtering table was modified.'."\n", - 'type' => 'string', - 'example' => 'test', - ], - 'projectName' => [ - 'description' => 'The status of the filtering table.'."\n", - 'type' => 'string', - 'example' => 'test', - ], - 'algorithmName' => [ - 'description' => 'The time when the filtering table was created.'."\n", - 'type' => 'string', - 'example' => 'test', - ], - 'cronEnabled' => [ - 'description' => 'The ID of the filtering table.'."\n", - 'type' => 'boolean', - 'example' => 'Y', - ], + 'tableName' => ['description' => 'The ID of the specified filtering table.'."\n", 'type' => 'string', 'example' => 'test_table', 'title' => ''], + 'clusterId' => ['description' => 'N/A'."\n", 'type' => 'string', 'example' => '244', 'title' => ''], + 'cron' => ['description' => 'The information about the filtering table.'."\n", 'type' => 'string', 'example' => '* * 24 7 0', 'title' => ''], + 'description' => ['description' => 'The time when the filtering table was modified.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''], + 'projectName' => ['description' => 'The status of the filtering table.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''], + 'algorithmName' => ['description' => 'The time when the filtering table was created.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''], + 'cronEnabled' => ['description' => 'The ID of the filtering table.'."\n", 'type' => 'boolean', 'example' => 'Y', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], - 'requestId' => [ - 'description' => 'The metadata of the filtering table.'."\n", - 'type' => 'string', - 'example' => '7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3', - ], + 'requestId' => ['description' => 'The metadata of the filtering table.'."\n", 'type' => 'string', 'example' => '7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], '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' => 'DescribeFilteringAlgorithm', 'summary' => 'Queries the configurations of a filtering table based on the ID of the filtering table.', - ], - 'ListFilteringAlgorithms' => [ - 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + '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}'], + ], + ], + ], ], + ], + 'DescribeInstance' => [ + 'path' => '/v2/openapi/instances/{instanceId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -7301,68 +4195,14 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18703', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'abilityTreeCode' => '18683', + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], - ], - [ - 'name' => 'status', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'Running', - ], - ], - [ - 'name' => 'algorithmId', - 'in' => 'query', - 'schema' => [ - 'description' => '', - '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', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'docRequired' => false, - 'example' => '1', - ], + 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****', 'title' => ''], ], ], 'responses' => [ @@ -7372,1736 +4212,1117 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'gmtModified' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'status' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'Running', - ], - 'gmtCreate' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'algorithmId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '123', - ], - 'meta' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'taskId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '123', - ], - 'metaType' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ODPS', - ], - 'type' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'odps', - ], - 'extInfo' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'kvSeparator' => [ - 'description' => '', - 'type' => 'string', - 'example' => ':', - ], - 'itemSeparator' => [ - 'description' => '', - 'type' => 'string', - 'example' => ',', - ], - ], - ], - 'category' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'odps', - ], - 'threshold' => [ - 'description' => '', - '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' => '', - 'type' => 'string', - 'example' => 'item', - ], - 'clusterId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '123', - ], - 'cron' => [ - 'description' => '', - 'type' => 'string', - 'example' => '0 0/12 0 * *', - ], - 'description' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'test', - ], - 'projectName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'airec123', - ], - 'algorithmName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'test', - ], - 'cronEnabled' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - ], - ], - ], - ], - ], - 'headers' => [ - 'description' => '', + 'description' => 'The returned results.'."\n", 'type' => 'object', 'properties' => [ - 'X-Total-Count' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '12', - ], + 'regionId' => ['description' => 'The ID of the region where the instance resides.'."\n", 'type' => 'string', 'example' => 'cn-beijing', 'title' => ''], + 'type' => ['description' => 'The type of the instance. Only the Standard edition is supported.'."\n", 'type' => 'string', 'example' => 'Standard', 'title' => ''], + 'lockMode' => ['description' => 'The lock mode of the instance. Valid values: Unlock, ManualLock, and LockByExpiration.'."\n", 'type' => 'string', 'example' => 'Unlock', 'title' => ''], + 'expiredTime' => ['description' => 'The time when the instance expires. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.'."\n", 'type' => 'string', 'example' => '2019-01-06T16:00:00.000Z', 'title' => ''], + 'scene' => ['description' => 'The name of the scene. Valid values: gul, rr, hot, and focus.'."\n", 'type' => 'string', 'example' => 'gul', 'title' => ''], + 'status' => ['description' => 'The state of the instance. Valid values: Initializing, Ready, and Running.'."\n", 'type' => 'string', 'example' => 'Running', 'title' => ''], + 'gmtCreate' => ['description' => 'The time when the instance was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.'."\n", 'type' => 'string', 'example' => '2018-12-06T06:14:01.000Z', 'title' => ''], + 'chargeType' => ['description' => 'The billing method. Valid values: PrePaid and PostPaid. Only the PrePaid billing method is supported.'."\n", 'type' => 'string', 'example' => 'PrePaid', 'title' => ''], + 'industry' => ['description' => 'The type of the industry. Valid values: content, item, news, video, and sns.'."\n", 'type' => 'string', 'example' => 'news', 'title' => ''], + 'commodityCode' => ['description' => 'The commodity code of the recommended item.'."\n", 'type' => 'string', 'example' => 'airecpre', 'title' => ''], + 'gmtModified' => ['description' => 'The time when the instance was last modified. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.'."\n", 'type' => 'string', 'example' => '2018-12-06T11:17:49.000Z', 'title' => ''], + 'dataSetVersion' => ['description' => 'The version of the dataset that provides online services.'."\n", 'type' => 'string', 'example' => '20181206170353', 'title' => ''], + 'name' => ['description' => 'The name of the instance.'."\n", 'type' => 'string', 'example' => '实例1', 'title' => ''], + 'instanceId' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'example' => 'airec-cn-****', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3', - ], + 'code' => ['description' => 'The error code.'."\n", 'type' => 'string', 'example' => 'InternalServerError', 'title' => ''], + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'An internal server error occurred', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListFilteringAlgorithms', - 'summary' => 'Queries the information about all filtering tables.', + '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' => 'DescribeInstance', + 'summary' => 'Queries the details about an instance based on the instance ID.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'OfflineFilteringAlgorithm' => [ - 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/actions/offline', - 'methods' => [ - 'post', - ], - '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}'], + ], + ], + ], ], + ], + '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' => '18726', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18684', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-test'], ], [ 'name' => 'algorithmId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The specified recall ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '123'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', + 'description' => 'The response body.', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'gmtModified' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'status' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'Init', - ], - 'gmtCreate' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'algorithmId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'abc', - ], - 'meta' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'taskId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'taskId', - ], - 'metaType' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'metaType', - ], - 'type' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ODPS', - ], - 'extInfo' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'kvSeparator' => [ - 'description' => '', - 'type' => 'string', - 'example' => ':', - ], - 'itemSeparator' => [ - 'description' => '', - 'type' => 'string', - 'example' => ',', - ], - ], - ], - 'category' => [ - 'description' => '', - 'type' => 'string', - 'example' => '1_2', - ], - 'threshold' => [ - 'description' => '', - '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' => '', - 'type' => 'string', - 'example' => 'test_table', - ], - 'clusterId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '244', - ], - 'cron' => [ - 'description' => '', - 'type' => 'string', - 'example' => '* * 24 7 0', - ], - 'description' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'test', - ], - 'projectName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'test', - ], - 'algorithmName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'test', - ], - 'cronEnabled' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => '', - ], - ], + 'description' => 'The recall table information.', + 'type' => 'array', + 'items' => [ + 'description' => 'The recall table information.', + 'type' => 'object', + 'properties' => [ + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => '400'], + 'switchedTime' => ['description' => 'The time when the index switch was completed. The time is in UTC.', 'type' => 'string', 'title' => '', 'example' => '2020-11-08T02:00:00Z'], + 'rollbackEnabled' => ['description' => 'Indicates whether a rollback is possible.', 'type' => 'boolean', 'title' => '', 'example' => 'true'], + 'message' => ['description' => 'The error message.', 'type' => 'string', 'title' => '', 'example' => 'xxx'], + 'flowType' => ['description' => 'The task type. Valid values: Auto, Manual, and Rollback.', 'type' => 'string', 'title' => '', 'example' => 'Manual'], + 'costSeconds' => ['description' => 'The time it took to build the index, in seconds.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '50'], + 'builtTime' => ['description' => 'The time when the index build started. The time is in UTC.', 'type' => 'string', 'title' => '', 'example' => '2020-11-08T02:00:00Z'], + 'versionId' => ['description' => 'The version number of the index. The backend generates this number.', 'type' => 'string', 'title' => '', 'example' => '20102010211'], + 'size' => ['description' => 'The size of the index build.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '2938475566'], + 'status' => ['description' => 'For an index, valid values include the following:'."\n" + ."\n" + .'- failed'."\n" + ."\n" + .'- online'."\n" + ."\n" + .'- offline'."\n" + ."\n" + .'For a full task, valid values include the following:'."\n" + ."\n" + .'- pending'."\n" + ."\n" + .'- success'."\n" + ."\n" + .'- failed'."\n" + ."\n" + .'etc.', 'type' => 'string', 'title' => '', 'example' => 'pending'], + 'progress' => ['description' => 'The progress as a percentage. For example: 80.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '80'], ], + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3', - ], + 'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], - ], - ], - ], - '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' => 'OfflineFilteringAlgorithm', - 'summary' => 'Unpublishes a filtering table.', - ], - 'CreateRankingSystem' => [ - 'summary' => 'Creates a ranking service.', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '117162', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], - ], - 'parameters' => [ - [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', + 'title' => '', + 'example' => '', ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'result' => [ - 'description' => '', - '$ref' => '#/components/schemas/RankingSystem', - ], + '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' => 'DescribeLatestTask', + 'summary' => 'Retrieves the most recent build task.', + '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' => '[{"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' => 'CreateRankingSystem', + 'translator' => 'manual', ], - 'DeleteRankingSystem' => [ - 'summary' => 'Deletes a ranking service.', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DescribeQuota' => [ + 'path' => '/v2/openapi/instances/{instanceId}/quota', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'deprecated' => false, + 'operationType' => 'read', 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '117181', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18685', + 'abilityTreeNodes' => ['FEATUREairecDM7OX0', 'FEATUREairecEDD4RN', 'FEATUREairecIDS0JZ', 'FEATUREairecDTVO6V'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - 'title' => 'A short description of struct', - ], - ], - [ - 'name' => 'name', - 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - 'title' => '排序服务名称', - ], + 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - ], 'result' => [ - '$ref' => '#/components/schemas/RankingSystem', + 'description' => 'The quotas of the instance.'."\n", + 'type' => 'object', + 'properties' => [ + 'itemCountUsed' => ['description' => 'The number of items that are used in the item table.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '100', 'title' => ''], + 'itemCount' => ['description' => 'The number of documents in the item table. Valid values:'."\n" + ."\n" + .'1000000 to 10000000.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '100', 'title' => ''], + 'userCount' => ['description' => 'The number of documents in the user table. Valid values:'."\n" + ."\n" + .'1000000 to 10000000.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '100', 'title' => ''], + 'userCountUsed' => ['description' => 'The number of users that are used in the user table.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '100', 'title' => ''], + 'qps' => ['description' => 'The queries per second (QPS). Valid values:'."\n" + ."\n" + .'10 to 500.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'currentQps' => ['description' => 'The current QPS.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + ], + 'title' => '', + 'example' => '', ], + 'code' => ['description' => 'The error code.'."\n", 'type' => 'string', 'example' => '200', 'title' => ''], + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], - ], - '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' => 'DeleteRankingSystem', - ], - 'ModifyRankingSystem' => [ - 'summary' => 'Modifies a ranking service.', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '117165', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], - ], - 'parameters' => [ - [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - ], - ], - [ - 'name' => 'name', - 'in' => 'path', - 'schema' => [ - 'title' => '排序服务', - 'description' => 'The name of the ranking service.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => '"service-a', - ], - ], - [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', + '5XX' => [ 'schema' => [ - 'description' => 'The configurations that you want to modify.'."\n", 'type' => 'object', - 'required' => false, - 'example' => '{}', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The schema of response parameters.'."\n", - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'result' => [ - 'description' => 'The ranking service that was modified.'."\n", - '$ref' => '#/components/schemas/RankingSystem', - ], + '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' => 'DescribeQuota', + 'summary' => 'Queries the quotas of an instance based on a specified instance 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' => '[{"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' => 'ModifyRankingSystem', ], - 'GetRankingSystem' => [ - 'summary' => 'Queries the information of a ranking service.', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DescribeRegions' => [ + 'path' => '/v2/openapi/configurations/regions', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, + 'operationType' => 'read', 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '117168', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'abilityTreeCode' => '18686', + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-test', - ], - ], - [ - 'name' => 'name', - 'in' => 'path', - 'schema' => [ - 'title' => '排序服务名称', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'test-service', - ], + 'name' => 'acceptLanguage', + 'in' => 'query', + 'schema' => ['description' => 'The language of the response. Default value: zh-cn.'."\n", 'type' => 'string', 'required' => false, 'example' => 'zh-cn', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], 'result' => [ - 'description' => '', - '$ref' => '#/components/schemas/RankingSystem', + 'description' => 'The returned result.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'The information about the array object.'."\n", + 'type' => 'object', + 'properties' => [ + 'regionId' => ['description' => 'The region ID of the instance.'."\n", 'type' => 'string', 'example' => 'cn-beijing', 'title' => ''], + 'endpoint' => ['description' => 'The endpoint.'."\n", 'type' => 'string', 'example' => '47.109.94.218', 'title' => ''], + 'status' => ['description' => 'The instance state. Valid values: NotOpen, Processing, and Running.'."\n", 'type' => 'string', 'example' => 'Running', 'title' => ''], + 'localName' => ['description' => 'The region name.'."\n", 'type' => 'string', 'example' => 'xxx', 'title' => ''], + 'consoleUrl' => ['description' => 'The console URL.'."\n", 'type' => 'string', 'example' => 'xxx', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], + 'code' => ['description' => 'The HTTP status code.'."\n", 'type' => 'string', 'example' => '200', 'title' => ''], + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '16B78383-2803-4964-9605-37B30C073B0E', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'successful', 'title' => ''], ], - ], - ], - ], - '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' => 'GetRankingSystem', - ], - 'GetRankingSystemHistory' => [ - 'summary' => 'Queries an operation record for a ranking service.', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}/histories/{operateId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '117155', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], - ], - 'parameters' => [ - [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - ], - ], - [ - 'name' => 'name', - 'in' => 'path', - 'schema' => [ - 'title' => '排序服务名称', - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'service-a', + 'title' => '', + 'example' => '', ], ], - [ - 'name' => 'operateId', - 'in' => 'path', + '5XX' => [ 'schema' => [ - 'title' => '操作记录id', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'u-s-a', + 'title' => '', + 'example' => '', ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'result' => [ - 'description' => '', - '$ref' => '#/components/schemas/RankingSystemHistory', - ], + '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' => 'DescribeRegions', + 'summary' => 'Queries available Alibaba Cloud regions.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DescribeRegions', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], ], - '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' => 'GetRankingSystemHistory', ], - 'ListRankingSystems' => [ - 'summary' => 'Queries a list of ranking services.', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DescribeRule' => [ + 'path' => '/v2/openapi/instances/{instanceId}/rules/{ruleId}', + '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' => '18687', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => 'Queries the list of ranking services.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'airec-test', - ], + 'schema' => ['description' => 'The ID of the rule.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004', 'title' => ''], ], [ - 'name' => 'name', - 'in' => 'query', - 'schema' => [ - 'title' => '排序服务名称', - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'service-a', - ], - ], - [ - 'name' => 'deployStatus', - 'in' => 'query', - 'schema' => [ - 'title' => '查询部署状态', - 'description' => 'The name of the ranking service.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'NOT_DEPLOYED', - ], + 'name' => 'ruleId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the scene.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '98493A14-D619-4E88-9F8D-108939817F9F', 'title' => ''], ], [ - 'name' => 'page', + 'name' => 'sceneId', 'in' => 'query', - 'schema' => [ - 'title' => '分页,页码', - 'description' => 'The state of the deployment. Valid values: NOT_DEPLOYED: The ranking service is not deployed. DEPLOY_SUCCESS: The ranking service is deployed.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => 'The type of the rule.'."\n" + ."\n" + .'Valid values: selection and operation.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'scenetest', 'title' => ''], ], [ - 'name' => 'size', + 'name' => 'ruleType', 'in' => 'query', - 'schema' => [ - 'title' => '分页,大小', - 'description' => 'The number of the page to return.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => 'The returned result.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'selection', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The number of entries to return on each page.'."\n", 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => 'The schema of the response parameters.'."\n", - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], 'result' => [ - 'title' => 'result', - 'description' => 'The ID of the request.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The returned result.'."\n", - '$ref' => '#/components/schemas/RankingSystem', + 'description' => 'The ID of the rule.'."\n", + 'type' => 'object', + 'properties' => [ + 'ruleId' => ['description' => 'The time when the rule was last modified.'."\n", 'type' => 'string', 'example' => '98493A14-D619-4E88-9F8D-108939817F9F', 'title' => ''], + 'gmtModified' => ['description' => 'The state of the rule.'."\n", 'type' => 'string', 'example' => '2020-04-27T06:38:28.000Z', 'title' => ''], + 'status' => ['description' => 'The time when the rule was created.'."\n", 'type' => 'string', 'example' => 'DRAFT', 'title' => ''], + 'gmtCreate' => ['description' => 'The error code.'."\n", 'type' => 'string', 'example' => '2020-04-27T06:38:28.000Z', 'title' => ''], ], + 'title' => '', + 'example' => '', ], + 'code' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => 'InternalServerError', 'title' => ''], + 'requestId' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], + 'message' => ['description' => '__null__', 'type' => 'string', 'example' => 'An internal server error occurred', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListRankingSystems', - ], - 'ListRankingSystemHistories' => [ - 'summary' => 'Queries operation records for a ranking service.', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}/histories', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'DescribeRule', + 'summary' => 'Queries detailed information about a rule.', + '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}'], + ], + ], + ], ], + ], + 'DescribeScene' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '117159', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'abilityTreeCode' => '18688', + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => 'The name of the ranking service.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'name', + 'name' => 'sceneId', 'in' => 'path', - 'schema' => [ - 'title' => '排序服务名称', - 'description' => 'The type of the operation. Valid values: CONF_CHANGE: configuration changes. DEPLOY_CHANGE: changes in deployment methods.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'service-a', - ], - ], - [ - 'name' => 'operateType', - 'in' => 'query', - 'schema' => [ - 'title' => '操作类型', - 'description' => 'The number of the page to return.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'CONF_CHANGE', - ], - ], - [ - 'name' => 'page', - 'in' => 'query', - 'schema' => [ - 'title' => '分页,页码', - 'description' => 'The number of entries to return on each page.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], - ], - [ - 'name' => 'size', - 'in' => 'query', - 'schema' => [ - 'title' => '分页,大小', - 'description' => 'The schema of the response parameters.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => 'The scenario ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'testid'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The ID of the request.'."\n", + 'description' => 'The details of the scenario.', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => 'The returned result.'."\n", - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], 'result' => [ - 'title' => 'result', - 'description' => 'The response body.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '__null__', - '$ref' => '#/components/schemas/RankingSystemHistory', + 'description' => 'The details of the scenario.', + 'type' => 'object', + 'properties' => [ + 'sceneId' => ['description' => 'The scenario ID.', 'type' => 'string', 'title' => '', 'example' => 'test'], + 'gmtModified' => ['description' => 'The time when the scenario was last modified.', 'type' => 'string', 'title' => '', 'example' => '2020-04-23T06:08:48.000Z'], + 'status' => ['description' => 'The status of the scenario:'."\n" + ."\n" + .'- **DRAFT**: The scenario is a draft that can be published or republished.'."\n" + ."\n" + .'- **PUBLISHING**: The scenario is being published.'."\n" + ."\n" + .'- **RUNNING**: The scenario is running.'."\n" + ."\n" + .'- **FAILED**: The scenario failed to be published.'."\n" + ."\n" + .'- **FROZEN**: The scenario is frozen.', 'type' => 'string', 'title' => '', 'example' => 'DRAFT'], + 'gmtCreate' => ['description' => 'The time when the scenario was created.', 'type' => 'string', 'title' => '', 'example' => '2020-04-23T06:08:48.000Z'], ], + 'title' => '', + 'example' => '', ], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'InternalServerError'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'An internal server error occurred'], ], + 'title' => '', + 'example' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListRankingSystemHistories', - ], - 'DeployRankingSystem' => [ - 'summary' => 'Deploys or redeploys a ranking service. For a ranking service that has been deployed, you need to redeploy the service if you modify the configurations of the service.', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}/actions/deploy', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'DescribeScene', + 'summary' => 'Queries the details of a scenario.', + 'description' => 'We recommend that you use the Scenario Management feature in the console to manage scenarios. Calling API operations for this purpose is not recommended. For more information, see <props="china">[Use selection and delivery policies to quickly build a recommendation scenario](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}'], + ], + ], + ], ], + 'translator' => 'manual', + ], + 'DescribeSceneBucket' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiment-bucket', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '117176', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18689', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => 'The name of the ranking service.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'airec-test', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-test'], ], [ - 'name' => 'name', + 'name' => 'sceneId', 'in' => 'path', - 'schema' => [ - 'title' => '排序服务名称', - 'description' => 'The configuration that you want to modify.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'description' => 'The schema of the response parameters.'."\n", - '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' => ['description' => 'The scene ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'test'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The ID of the request.'."\n", 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => 'The returned result.'."\n", - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], 'result' => [ - 'title' => 'result', - 'description' => '__null__', + 'description' => 'The result of the request.', 'type' => 'object', - 'example' => 'xxx', + 'properties' => [ + 'num' => ['description' => 'The total number of buckets.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '2'], + 'inUse' => ['description' => 'The bucket numbers that are used by A/B tests. The remaining buckets are used by the default experiment.', 'type' => 'string', 'title' => '', 'example' => '1'], + 'detail' => ['description' => 'The details.', 'type' => 'object', 'title' => '', 'example' => 'xxx'], + ], + 'title' => '', + 'example' => '', ], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B'], ], - ], - ], - ], - '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' => 'DeployRankingSystem', - ], - 'VerifyRankingSystem' => [ - 'summary' => '调试排序服务。', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}/actions/verify', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '117171', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], - ], - 'parameters' => [ - [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-****', - ], - ], - [ - 'name' => 'name', - 'in' => 'path', - 'schema' => [ - 'title' => '排序服务名称', - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'service-a', + 'title' => '', + 'example' => '', ], ], - [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', + '5XX' => [ 'schema' => [ - 'description' => '', 'type' => 'object', - 'required' => false, - 'example' => '{'."\n" - .' "userFeatures": "a:c,d:b",'."\n" - .' "itemFeatures": "a:1,b:2"'."\n" - .'}', + 'properties' => [ + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'result' => [ - 'title' => 'result', - 'description' => '', - 'type' => 'string', - 'example' => 'test', - ], + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'DescribeSceneBucket', + 'summary' => 'Queries the experiment bucket distribution in a scenario.', + 'changeSet' => [], + 'translator' => 'manual', + '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 \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": \\"test\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => 'VerifyRankingSystem', ], - 'RollbackRankingSystem' => [ - 'summary' => '回滚某个排序服务', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}/actions/rollback', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + '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' => 'list', - 'abilityTreeCode' => '117180', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18690', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-****', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', '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' => '{'."\n" - .' "operateId": "a-b-c"'."\n" - .'}', - ], + 'schema' => ['description' => 'The scenario ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'testid'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], 'result' => [ - 'title' => 'result', - 'description' => '', + 'description' => 'The returned results.', 'type' => 'object', + 'properties' => [ + 'pvCount' => ['description' => 'The number of page views (PVs).', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '123'], + ], + 'title' => '', 'example' => '', ], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'InternalServerError'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'An internal server error occurred'], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], - ], - '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' => 'RollbackRankingSystem', - ], - 'CreateRankingModelTemplate' => [ - 'summary' => '创建排序模型模板配置', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-templates', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '117139', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], - ], - 'parameters' => [ - [ - 'name' => 'instanceId', - 'in' => 'path', + '5XX' => [ 'schema' => [ - 'title' => 'A short description of struct', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-****', + 'title' => '', + 'example' => '', ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'result' => [ - 'title' => '排序模型模板信息', - 'description' => '', - '$ref' => '#/components/schemas/RankingModelTemplate', - ], + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'DescribeSceneThroughput', + 'summary' => 'Queries the traffic of a scenario.', + 'description' => 'To manage scenarios, use the Scenario Management feature in the console instead of calling this operation. For more information, see <props="china">[Use delivery policies to quickly build recommendation scenarios](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' => '[{"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' => 'CreateRankingModelTemplate', + 'translator' => 'manual', ], - 'DeleteRankingModelTemplate' => [ - 'summary' => 'Deletes a ranking model.', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-templates/{templateId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + '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' => 'delete', - 'abilityTreeCode' => '117145', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18691', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-test', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'templateId', - 'in' => 'path', - 'schema' => [ - 'title' => '排序模型模板ID', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'a-a-a', - ], + 'name' => 'startTime', + 'in' => 'query', + 'schema' => ['description' => 'The start time as a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'title' => '', 'example' => '1586673466'], + ], + [ + 'name' => 'endTime', + 'in' => 'query', + 'schema' => ['description' => 'The end time as a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'title' => '', 'example' => '1586673466'], + ], + [ + 'name' => 'type', + 'in' => 'query', + 'schema' => ['description' => 'The table type. Valid values: \\`behavior\\`, \\`item\\`, and \\`user\\`.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'behavior'], + ], + [ + 'name' => 'levelType', + 'in' => 'query', + 'schema' => ['description' => 'The severity level. Valid values: \\`error\\`, \\`warn\\`, and \\`info\\`.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'error'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], 'result' => [ - 'description' => '', - '$ref' => '#/components/schemas/RankingModelTemplate', + 'description' => 'The details of the result.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'historyData' => [ + 'description' => 'A list of percentages of abnormal historical data records.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'errorPercent' => ['description' => 'The percentage of abnormal data records in the specified time period.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '84.6'], + 'startTime' => ['description' => 'The start time as a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1586673466'], + 'endTime' => ['description' => 'The end time as a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1586673466'], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'sampleDisplay' => ['description' => 'Indicates whether to display sample data.', 'type' => 'boolean', 'title' => '', 'example' => 'true'], + 'type' => ['description' => 'For example, the \\`bhv\\_time\\` of a real-time behavior record is invalid.', 'type' => 'string', 'title' => '', 'example' => 'bhvTimeBehavior'], + 'errorCount' => ['description' => 'The number of errors.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '246165'], + 'errorPercent' => ['description' => 'The percentage of abnormal records.', 'type' => 'number', 'format' => 'float', 'title' => '', 'example' => '84.6'], + 'defaultDisplay' => ['description' => 'Indicates whether the data is displayed by default.', 'type' => 'boolean', 'title' => '', 'example' => 'false'], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'InternalServerError'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'An internal server error occurred'], ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'DeleteRankingModelTemplate', - ], - 'ModifyRankingModelTemplate' => [ - 'summary' => 'Modifies a ranking model.', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-templates/{templateId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'DescribeSyncReportDetail', + 'summary' => 'Retrieves the details of hourly real-time data reports.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + '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' => 'update', - 'abilityTreeCode' => '117144', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18692', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-test'], ], [ - 'name' => 'templateId', - 'in' => 'path', - 'schema' => [ - 'title' => '排序模型模板ID', - 'description' => 'The ID of the ranking model.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'a-a-a', - ], + 'name' => 'startTime', + 'in' => 'query', + 'schema' => ['description' => 'The start time. This is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'title' => '', 'example' => '1586673466'], ], [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'description' => 'The request body.'."\n", - 'type' => 'object', - 'required' => false, - 'example' => '{}', - ], + 'name' => 'key', + 'in' => 'query', + 'schema' => ['description' => 'itemBhv'."\n" + .'Indicates whether the item ID from the real-time behavior record exists in the item database.'."\n" + .'userBhv'."\n" + .'Indicates whether the user ID from the real-time behavior record exists in the user database.'."\n" + .'bhvTypeBhv'."\n" + .'Indicates whether the bhv\\_type value from the real-time behavior record is valid.'."\n" + .'traceIdBhv'."\n" + .'Indicates whether the trace\\_id value from the real-time behavior record is valid.'."\n" + .'traceInfoBhv'."\n" + .'Indicates whether the trace\\_info value from the real-time behavior record is valid.'."\n" + .'itemItem'."\n" + .'Indicates whether the item ID in the update record is valid.'."\n" + .'userUser'."\n" + .'Indicates whether the user ID in the update record is valid.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'itemBhv'], + ], + [ + 'name' => 'type', + 'in' => 'query', + 'schema' => ['description' => 'The name of the data table. Valid values: behavior, item, and user.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'hehavoir'], + ], + [ + 'name' => 'endTime', + 'in' => 'query', + 'schema' => ['description' => 'The end time. This is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'title' => '', 'example' => '1586673466'], + ], + [ + 'name' => 'levelType', + 'in' => 'query', + 'schema' => ['description' => 'The level of the outlier. Valid values: error, warn, and info.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'error'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The schema of the response parameters.'."\n", 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'result' => [ - 'description' => 'The information about the ranking model.'."\n", - '$ref' => '#/components/schemas/RankingModelTemplate', - ], + 'result' => ['description' => 'The result details.', 'type' => 'object', 'example' => '', 'title' => ''], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => '200'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'success'], ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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', - ], - 'GetRankingModelTemplate' => [ - 'summary' => 'Queries the configuration details of a ranking model.', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-templates/{templateId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'DescribeSyncReportOutliers', + 'summary' => 'Retrieves outlier details from a real-time data sync report.', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + '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' => '117142', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'abilityTreeCode' => '18693', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-test', - 'title' => 'A short description of struct', - ], + 'name' => 'startTime', + 'in' => 'query', + 'schema' => ['description' => 'The start time. The value is a timestamp in seconds.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1567152000', 'title' => ''], ], [ - 'name' => 'templateId', + 'name' => 'endTime', + 'in' => 'query', + 'schema' => ['description' => 'The end time. The value is a timestamp in seconds.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1658110530', 'title' => ''], + ], + [ + 'name' => 'metricType', + 'in' => 'query', + 'schema' => ['description' => 'The type of the user metric that you want to query. Valid values: pvCtr and uvCtr.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'pvCtr', 'title' => ''], + ], + [ + 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '123', - 'title' => '模型模板ID', - ], + 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - ], 'result' => [ - '$ref' => '#/components/schemas/RankingModelTemplate', + 'description' => 'The returned results.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'sceneId' => ['description' => 'The scene ID.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''], + 'dataPoints' => [ + 'description' => 'The returned metrics.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'val' => ['description' => 'The value of the corresponding metric.'."\n", 'type' => 'number', 'format' => 'float', 'example' => '84.6', 'title' => ''], + 'startTime' => ['description' => 'The start time. The value is a timestamp in seconds.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1567152000', 'title' => ''], + 'endTime' => ['description' => 'The end time. The value is a timestamp in seconds.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1567152000', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], + 'code' => ['description' => 'The error code.'."\n", 'type' => 'string', 'example' => '200', 'title' => ''], + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''], ], - ], - ], - ], - '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' => 'GetRankingModelTemplate', - ], - 'RunRankingModelTemplate' => [ - 'summary' => 'Runs a ranking model.', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-templates/{templateId}/actions/run', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '117149', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], - ], - 'parameters' => [ - [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', + 'title' => '', + 'example' => '', ], ], - [ - 'name' => 'templateId', - 'in' => 'path', + '5XX' => [ 'schema' => [ - 'title' => '模型模板ID', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => '123', + 'title' => '', + 'example' => '', ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'result' => [ - 'title' => 'result', - 'description' => '', - 'type' => 'object', - 'example' => 'xxx', - ], + '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' => 'DescribeUserMetrics', + 'summary' => 'Queries user metrics related to the conversion rate.', + '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' => '[{"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' => 'RunRankingModelTemplate', ], - 'CreateRankingModel' => [ - 'path' => '/v2/openapi/instances/{instanceId}/ranking-models', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DowngradeInstance' => [ + 'path' => '/v2/openapi/instances/{instanceId}/actions/downgrade', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], 'operationType' => 'write', - 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '18667', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '18694', + 'abilityTreeNodes' => ['FEATUREairecIDS0JZ', 'FEATUREairecDTVO6V'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], - ], - [ - 'name' => 'dryRun', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'boolean', - 'required' => false, - 'docRequired' => false, - 'example' => 'true', - ], + 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****', 'title' => ''], ], ], 'responses' => [ @@ -9110,73 +5331,66 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '', + 'description' => 'Decreases the quotas of a specified instance.'."\n", 'type' => 'object', 'properties' => [ - 'rankingModelId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ranktest', - ], - 'gmtModified' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'gmtCreate' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'meta' => [ - 'description' => '', - 'type' => 'object', - 'example' => 'map', - ], + 'instanceId' => ['description' => 'The new quota must be less than the selected quota.'."\n" + ."\n" + .'The limits on the number of users: 1,000,000 to 10,000,000. The limits on the number of items: 1,000,000 to 10,000,000. The limits on the queries per second (QPS) of recommendation requests: 10 to 500.'."\n", 'type' => 'string', 'example' => 'airec-cn-****', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'success', - ], + 'code' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'example' => 'InternalServerError', 'title' => ''], + 'requestId' => ['description' => 'The returned results.'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], + 'message' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'example' => 'An internal server error occurred', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'CreateRankingModel', - 'summary' => 'Creates a ranking model.', - ], - 'DeleteRankingModel' => [ - 'path' => '/v2/openapi/instances/{instanceId}/ranking-models/{rankingModelId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'DowngradeInstance', + 'summary' => 'Decreases the quotas of a specified instance.', + 'description' => 'The returned results.'."\n", + '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}'], + ], + ], + ], ], + ], + 'EnableExperiment' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/actions/enable-experiment', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -9185,207 +5399,175 @@ 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '18674', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '18695', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-****'], ], [ - 'name' => 'rankingModelId', + 'name' => 'sceneId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'xxx', - ], + 'schema' => ['description' => 'The scenario ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'sceneId'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => 'The data returned.', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'rankingModelId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - 'meta' => [ - 'description' => 'meta', - 'type' => 'object', - 'example' => '', - ], - ], - ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'D486768B-8BF8-4D80-B491-43DC3D0AF8AB', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], + 'result' => ['description' => 'The response data.', 'type' => 'boolean', 'title' => '', 'example' => 'True'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B'], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'DeleteRankingModel', - 'summary' => 'Deletes a ranking model.', - ], - 'DeleteRankingModelVersion' => [ - 'summary' => 'Deletes a version of a ranking model.', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-versions/{versionId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B\\"\\n}","type":"json"}]', + 'title' => 'EnableExperiment', + 'summary' => 'Enables an experiment.', + '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}'], + ], + ], + ], ], + 'translator' => 'manual', + ], + 'GenerateSample' => [ + 'summary' => 'Generates a sample. This operation is applicable only to samples created by replication.', + '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' => 'delete', - 'abilityTreeCode' => '119230', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '117131', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'airec-cn-xxx'], ], [ - 'name' => 'versionId', + 'name' => 'sampleId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => '1', - ], + 'schema' => ['description' => 'The sample ID.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'Sample'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], + 'requestId' => ['type' => 'string', 'title' => '', 'description' => 'The request ID.', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['$ref' => '#/components/schemas/Sample', 'description' => 'The returned result.', 'title' => '', 'example' => ''], ], + 'title' => '', + 'description' => 'The details of the returned result.', + 'example' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => 'DeleteRankingModelVersion', - ], - 'ModifyRankingModel' => [ - 'path' => '/v2/openapi/instances/{instanceId}/ranking-models/{rankingModelId}', - 'methods' => [ - 'put', + '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"}]', + 'title' => 'GenerateSample', + '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}'], + ], + ], + ], ], + 'translator' => 'manual', + ], + 'GetExtraDataSource' => [ + 'summary' => 'Retrieves the details of an extra data source.', + 'path' => '/v2/openapi/instances/{instanceId}/extra-data-sources/{type}/{dataSourceId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18723', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '117108', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The time when the ranking model was modified.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'airec-test', 'title' => ''], ], [ - 'name' => 'rankingModelId', + 'name' => 'type', 'in' => 'path', - 'schema' => [ - 'description' => 'The time when the ranking model was created.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test1234', - ], + 'schema' => ['description' => 'The type of the data source. Valid values:'."\n" + .'UserCustomDataSource'."\n" + .'ItemCustomDataSource'."\n" + .'BehaviorCustomDataSource'."\n" + .'SampleCustomDataSource', 'type' => 'string', 'required' => true, 'example' => 'UserCustomDataSource', 'title' => ''], + ], + [ + 'name' => 'dataSourceId', + 'in' => 'path', + 'schema' => ['description' => 'The data source ID.', 'type' => 'string', 'required' => true, 'example' => '123', 'title' => ''], ], ], 'responses' => [ @@ -9393,135 +5575,69 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'The data source of the filtering table. Only MaxCompute tables are supported.'."\n", - 'type' => 'object', - 'properties' => [ - 'rankingModelId' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'test1234', - ], - 'gmtModified' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'gmtCreate' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'meta' => [ - 'description' => '__null__', - 'type' => 'object', - 'example' => '{}', - ], - ], - ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '1', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', 'description' => '', 'title' => ''], + 'result' => ['$ref' => '#/components/schemas/ExtraDataSource', 'description' => '', 'title' => '', 'example' => ''], ], + 'title' => '', + 'description' => '', + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + '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"}]', + 'title' => 'GetExtraDataSource', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'translator' => 'manual', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetExtraDataSource'], + ], + ], + '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 \\"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' => 'ModifyRankingModel', - 'summary' => 'Modifies the information about a ranking model.', ], - 'ListRankingModels' => [ - 'path' => '/v2/openapi/instances/{instanceId}/ranking-models', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetFlowControlTask' => [ + 'summary' => 'Obtains the details of a throttling task.', + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18710', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'abilityTreeCode' => '155268', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test001', - ], - ], - [ - 'name' => 'rankingModelId', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'xxx', - ], - ], - [ - 'name' => 'page', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '1', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'size', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '', - ], + 'name' => 'taskId', + 'in' => 'path', + 'schema' => ['description' => 'The task ID.'."\n", 'type' => 'string', 'required' => false, 'example' => '1667979619806', 'title' => ''], ], ], 'responses' => [ @@ -9529,848 +5645,602 @@ 'schema' => [ 'type' => 'object', 'properties' => [ + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', 'title' => ''], 'result' => [ - 'description' => '', + 'description' => 'The returned result.'."\n", 'type' => 'array', 'items' => [ - 'description' => '', + 'description' => 'The information about the array object.'."\n", 'type' => 'object', 'properties' => [ - 'rankingModelId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '123', - ], - 'gmtModified' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2020-11-11T09:47:43.000Z', - ], - 'gmtCreate' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], + 'gmtCreate' => ['description' => 'The time when the task was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in Coordinated Universal Time (UTC).'."\n", 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z', 'title' => ''], + 'gmtModified' => ['description' => 'The time when the data source was last modified. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.'."\n", 'type' => 'string', 'example' => '2020-04-23T06:08:48.000Z', 'title' => ''], 'meta' => [ - 'description' => '', + 'description' => 'The metadata of the task.'."\n", 'type' => 'object', + 'properties' => [ + 'description' => ['description' => 'The task description.'."\n", 'type' => 'string', 'example' => '用于首页推荐物品调控。', 'title' => ''], + 'endTime' => ['description' => 'The end time. The value is a timestamp in seconds.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1656518399', 'title' => ''], + 'metaType' => ['description' => 'The metadata type.'."\n", 'type' => 'string', 'example' => 'FlowControlTask', 'title' => ''], + 'sceneIds' => ['description' => 'The scene IDs.'."\n", 'type' => 'string', 'example' => '1,2,3', 'title' => ''], + 'selectionParams' => [ + 'description' => 'The parameters specified for the item selection rule.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'The information about the array object.'."\n", + 'type' => 'object', + 'properties' => [ + 'selectType' => ['description' => 'The type of the filtering condition for the item selection rule.'."\n", 'type' => 'string', 'example' => 'QUERY_PUB_TIME', 'title' => ''], + 'selectValue' => ['description' => 'The value of the filtering condition for the item selection rule.'."\n", 'type' => 'string', 'example' => '10000', 'title' => ''], + 'selectionOperation' => ['description' => 'The operation on the filtering condition for the item selection rule.'."\n", 'type' => 'string', 'example' => 'OPERATOR_HIGHER', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'startTime' => ['description' => 'The start time. The value is a timestamp in seconds.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1640739600', 'title' => ''], + 'target' => [ + 'description' => 'The exposure settings.'."\n", + 'type' => 'object', + 'properties' => [ + 'type' => ['description' => 'EXPOSE_PERCENT: daily exposure percentage. EXPOSE_COUNT: total number of exposures.'."\n", 'type' => 'string', 'example' => 'EXPOSE_PERCENT', 'title' => ''], + 'value' => ['description' => 'The exposure value.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '20', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'taskName' => ['description' => 'The task name.'."\n", 'type' => 'string', 'example' => '曝光任务', 'title' => ''], + ], + 'title' => '', 'example' => '', ], + 'status' => ['description' => 'The task state. Valid values: DRAFT, READY, RUNNING, ENDED, and AUTO_END. The value AUTO_END is not used.'."\n", 'type' => 'string', 'example' => 'DRAFT', 'title' => ''], + 'taskId' => ['description' => 'The task ID.'."\n", 'type' => 'string', 'example' => '1666854602398', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2D898E45-B97A-4245-B590-6D0AFEAF626B', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', + 'title' => '', 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], - '5XX' => [ + 500 => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListRankingModels', - 'summary' => 'Queries a list of ranking models.', - ], - 'ListRankingModelTemplates' => [ - 'summary' => 'Queries the templates of a ranking model. The returned templates are sorted in reverse chronological order based on the time when the templates were created.', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-templates', - 'methods' => [ - 'get', + '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' => 'GetFlowControlTask', + '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}'], + ], + ], + ], ], + ], + 'GetLatestDataDiagnoseTaskStatus' => [ + 'summary' => 'Retrieves the status of the latest diagnostic task.', + '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' => 'get', - 'abilityTreeCode' => '117146', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'abilityTreeCode' => '138222', + 'abilityTreeNodes' => ['FEATUREairecG8RBMT'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'airec-test', - 'title' => 'A short description of struct', - ], - ], - [ - 'name' => 'page', - 'in' => 'query', - 'schema' => [ - 'description' => 'The number of the page to return.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - 'title' => '分页,页码', - ], - ], - [ - 'name' => 'size', - 'in' => 'query', - 'schema' => [ - 'description' => 'The number of entries to return on each page.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - 'title' => '分页,大小', - ], + 'schema' => ['title' => '', 'description' => 'A short description of struct', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-shdjkgkeog'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', + 'title' => '', + 'description' => 'The response.', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - ], - 'result' => [ - 'title' => 'result', - 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/RankingModelTemplate', - ], - ], + 'requestId' => ['title' => '', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['description' => 'The status of the task. Valid values:'."\n" + ."\n" + .'- RUNNING: The task is running.'."\n" + ."\n" + .'- FAILURE: The task failed.'."\n" + ."\n" + .'- SUCCESS: The task is successful.'."\n" + ."\n" + .'- NOTASK: No task exists.', 'type' => 'object', 'title' => '', 'example' => 'RUNNING'], ], + 'example' => '', ], ], ], - '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' => 'ListRankingModelTemplates', - ], - 'GetRankingModelVersion' => [ - 'summary' => 'Queries the details of a ranking model version. Evaluation results and training results are included in the details.', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-versions/{versionId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","type":"json"}]', + 'title' => 'GetLatestDataDiagnoseTaskStatus', + 'changeSet' => [], + 'translator' => 'manual', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetLatestDataDiagnoseTaskStatus'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:GetLatestDataDiagnoseTaskStatus', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + ], + 'GetRankingModelTemplate' => [ + 'summary' => 'Queries the details of a ranking model configuration.', + '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' => 'get', - 'abilityTreeCode' => '117152', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'abilityTreeCode' => '117142', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - 'title' => 'A short description of struct', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'airec-cn-****'], ], [ - 'name' => 'versionId', + 'name' => 'templateId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => '123', - 'title' => '模型版本ID', - ], + 'schema' => ['description' => 'The ranking model template ID.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'testTemplateId'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - ], - 'result' => [ - '$ref' => '#/components/schemas/RankingModelVersion', - ], + 'requestId' => ['type' => 'string', 'title' => '', 'description' => 'The request ID.', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'result' => ['$ref' => '#/components/schemas/RankingModelTemplate', 'description' => 'The response parameters.', 'title' => '', 'example' => ''], ], + 'title' => '', + 'description' => 'The response parameters.', + 'example' => '', ], ], ], - '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' => 'GetRankingModelVersion', - ], - 'ListRankingModelVersions' => [ - 'summary' => 'Queries a list of versions for a ranking model.', - 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-versions', - 'methods' => [ - 'get', + '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' => 'GetRankingModelTemplate', + '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}'], + ], + ], + ], ], + 'translator' => 'machine', + ], + 'GetRankingModelVersion' => [ + 'summary' => 'Retrieves the details of a ranking model version, including its evaluation and training results.', + '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' => 'get', - 'abilityTreeCode' => '117151', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'abilityTreeCode' => '117152', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - ], - ], - [ - 'name' => 'templateId', - 'in' => 'query', - 'schema' => [ - 'title' => '模型模板ID', - 'description' => 'The ranking model ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'a-a-a', - ], - ], - [ - 'name' => 'page', - 'in' => 'query', - 'schema' => [ - 'title' => '分页,页码', - 'description' => 'The number of the page to return.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'airec-cn-****'], ], [ - 'name' => 'size', - 'in' => 'query', - 'schema' => [ - 'title' => '分页,大小', - 'description' => 'The number of entries to return on each page.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '10', - ], - ], - [ - 'name' => 'status', - 'in' => 'query', - 'schema' => [ - 'title' => '版本状态', - 'description' => 'The state of the version. Valid values: DRAFT: The version is in the draft state. EFFECTIVE: The version is effective. PUBLISHING: The version is being published. INEFFECTIVE: The version has expired. FAILED: The version has not taken effect.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'TRAINING', - ], + 'name' => 'versionId', + 'in' => 'path', + 'schema' => ['description' => 'The model version ID.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => '1'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The response schema.'."\n", 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'result' => [ - 'title' => 'map', - 'description' => 'The returned result.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The version of the ranking model.'."\n", - '$ref' => '#/components/schemas/RankingModelVersion', - ], - ], + 'requestId' => ['type' => 'string', 'title' => '', 'description' => 'The request ID.', 'example' => '90EF57C6-CC92-55D0-BA35-892DF9337EAB'], + 'result' => ['$ref' => '#/components/schemas/RankingModelVersion', 'description' => 'The ranking model.', 'title' => '', 'example' => ''], ], + 'title' => '', + 'description' => 'The response parameters.', + 'example' => '', ], ], ], - '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' => 'ListRankingModelVersions', - ], - 'DecribeRankingModel' => [ - 'path' => '/v2/openapi/instances/{instanceId}/ranking-models/{rankingModelId}', - 'methods' => [ - 'get', + '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' => 'GetRankingModelVersion', + '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}'], + ], + ], + ], ], + 'translator' => 'manual', + ], + 'GetRankingSystem' => [ + 'summary' => 'Retrieves the details of a sorting service.', + 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18670', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'abilityTreeCode' => '117168', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => false, 'example' => 'airec-test'], ], [ - 'name' => 'rankingModelId', + 'name' => 'name', 'in' => 'path', - 'schema' => [ - 'description' => 'The ID of the ranking model.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'ranktest', - ], + 'schema' => ['title' => '', 'description' => 'The service name.', 'type' => 'string', 'required' => false, 'example' => 'test-service'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => '', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'The returned results.'."\n", - 'type' => 'object', - 'properties' => [ - 'rankingModelId' => [ - 'description' => 'The ID of the ranking model.'."\n", - 'type' => 'string', - 'example' => 'ranktest', - ], - 'gmtModified' => [ - 'description' => 'The time when the ranking model was last modified.'."\n", - 'type' => 'string', - 'example' => '2020-04-27T06:38:28.000Z', - ], - 'gmtCreate' => [ - 'description' => 'The time when the ranking model was created.'."\n", - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'meta' => [ - 'description' => 'The metadata.'."\n", - 'type' => 'object', - ], - ], - ], - 'code' => [ - 'description' => 'The HTTP status code.'."\n", - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'xxx', - ], + 'requestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'result' => ['description' => 'The response entity.', '$ref' => '#/components/schemas/RankingSystem', 'title' => '', 'example' => ''], ], + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + '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' => 'GetRankingSystem', + 'description' => '***', + 'changeSet' => [], + 'translator' => 'manual', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetRankingSystem'], + ], + ], + '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 \\"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' => 'DecribeRankingModel', - 'summary' => 'Queries the information of a ranking model.', ], - 'CheckRankingModelReachable' => [ - 'path' => '/v2/openapi/instances/{instanceId}/ranking-models/{rankingModelId}/actions/check-connectivity', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetRankingSystemHistory' => [ + 'summary' => 'Queries a sorting service for its operation records.', + 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}/histories/{operateId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '18663', - 'abilityTreeNodes' => [ - 'FEATUREairecY1ADIM', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '117155', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-7e22x6f75001', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'airec-test'], ], [ - 'name' => 'rankingModelId', + 'name' => 'name', 'in' => 'path', - 'schema' => [ - 'description' => 'The ID of the ranking model.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'rankingModelId', - ], + 'schema' => ['title' => '', 'description' => 'The name of the sorting service.', 'type' => 'string', 'required' => true, 'example' => 'service-a'], + ], + [ + 'name' => 'operateId', + 'in' => 'path', + 'schema' => ['title' => '', 'description' => 'The ID of the operation record.', 'type' => 'string', 'required' => true, 'example' => 'u-s-a'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => '', + 'description' => 'The schema of the response.', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'The returned result.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'code' => [ - 'description' => 'The HTTP status code.'."\n", - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'result' => ['description' => 'The data returned.', '$ref' => '#/components/schemas/RankingSystemHistory', 'title' => '', 'example' => ''], ], + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'GetRankingSystemHistory', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetRankingSystemHistory'], + ], + ], + '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 \\"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' => 'CheckRankingModelReachable', - 'summary' => 'Checks the network connectivity of a ranking model.', + 'translator' => 'manual', ], - 'CreateRule' => [ - 'path' => '/v2/openapi/instances/{instanceId}/rules', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetSample' => [ + 'summary' => 'Retrieves the details of a sample.', + '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' => '18668', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '117125', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'airec-cn-shdjkgkeog'], + ], + [ + 'name' => 'sampleId', + 'in' => 'path', + 'schema' => ['description' => 'The sample ID.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => '123'], + ], + [ + 'name' => 'withExtendParmas', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether to return extended parameters.'."\n" + ."\n" + .'- **true**: Extended parameters are returned.'."\n" + ."\n" + .'- **false**: Extended parameters are not returned.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => 'false'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'The returned results.'."\n", - 'type' => 'object', - 'properties' => [ - 'ruleId' => [ - 'description' => 'The rule ID.'."\n", - 'type' => 'string', - 'example' => '98493A14-D619-4E88-9F8D-108939817F9F', - ], - 'gmtModified' => [ - 'description' => 'The time when the rule was last modified.'."\n", - 'type' => 'string', - 'example' => '2020-04-27T06:38:28.000Z', - ], - 'status' => [ - 'description' => 'Indicates whether the rule is enabled. Valid values: true and false.'."\n", - 'type' => 'string', - 'example' => 'true', - ], - 'gmtCreate' => [ - 'description' => 'The time when the rule was created.'."\n", - 'type' => 'string', - 'example' => '2020-04-27T06:38:28.000Z', - ], - ], - ], - 'code' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['type' => 'string', 'title' => '', 'description' => 'The request ID.', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['$ref' => '#/components/schemas/Sample', 'description' => 'The sample entity.', 'title' => '', 'example' => ''], ], + 'title' => '', + 'description' => 'The details of the result.', + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + '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"}]', + 'title' => 'GetSample', + '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 \\"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' => 'CreateRule', - 'summary' => 'Creates a rule.', + 'extraInfo' => ' ', + 'translator' => 'manual', ], - 'ModifyRule' => [ - 'path' => '/v2/openapi/instances/{instanceId}/rules/{ruleId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'InitComputingResource' => [ + 'summary' => 'Initializes a computing resource.', + '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' => 'update', - 'abilityTreeCode' => '18724', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeCode' => '117128', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['title' => '', 'description' => 'The ID of the instance.', 'type' => 'string', 'required' => false, 'example' => 'airec-test'], ], [ - 'name' => 'ruleId', - 'in' => 'path', - 'schema' => [ - 'description' => 'The ID of the rule.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'xxx', - ], + 'name' => 'type', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The type of the computing resource. The value must be MAX\\_COMPUTE.', 'type' => 'string', 'required' => false, 'example' => '是'], + ], + [ + 'name' => 'key', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The name of the MaxCompute workspace. This parameter is required when type is set to MAX\\_COMPUTE.', 'type' => 'string', 'required' => false, 'example' => 'MAX_COMPUTE'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => '', + 'description' => 'The response body.', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'The returned result.'."\n", - 'type' => 'object', - 'properties' => [ - 'ruleId' => [ - 'description' => 'The ID of the rule.'."\n", - 'type' => 'string', - 'example' => '98493A14-D619-4E88-9F8D-108939817F9F', - ], - 'ruleMeta' => [ - 'description' => 'The specific information about the rule.'."\n", - 'type' => 'object', - 'example' => 'xxx', - ], - 'gmtModified' => [ - 'description' => 'The time when the rule was last modified.'."\n", - 'type' => 'string', - 'example' => '2020-04-27T06:38:28.000Z', - ], - 'status' => [ - 'description' => 'Indicates whether the rule is enabled. Valid values: true and false.'."\n", - 'type' => 'string', - 'example' => 'true', - ], - 'gmtCreate' => [ - 'description' => 'The time when the rule was created.'."\n", - 'type' => 'string', - 'example' => '2020-04-27T06:38:28.000Z', - ], - ], - ], - 'code' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['title' => '', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], ], + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","type":"json"}]', + 'title' => 'InitComputingResource', + 'changeSet' => [], + 'translator' => 'manual', + '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' => '[{"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' => 'Modifies a rule.', - 'requestParamsDescription' => '```json'."\n" - .'// Modify an item selection rule.'."\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" - .'// Modify an operations rule.'."\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" - .'```'."\n", - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', ], - 'ListRules' => [ - 'path' => '/v2/openapi/instances/{instanceId}/rules', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListDashboardDetails' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dashboard/details', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -10380,107 +6250,61 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18712', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeCode' => '18696', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'sceneId', + 'name' => 'startTime', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The start time. This is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'title' => '', 'example' => '1588521600'], ], [ - 'name' => 'ruleType', + 'name' => 'endTime', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'selection', - ], + 'schema' => ['description' => 'The end time. This is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'title' => '', 'example' => '1588521600'], ], [ - 'name' => 'status', + 'name' => 'traceIds', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'EFFECTIVE', - ], + 'schema' => ['description' => 'The trace ID. This must be consistent with the data specifications.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'Alibaba'], ], [ - 'name' => 'page', + 'name' => 'sceneIds', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'docRequired' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '1', - ], + 'schema' => ['description' => 'The scene ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'test'], ], [ - 'name' => 'size', + 'name' => 'metricType', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '10', - ], + 'schema' => ['description' => 'The metric to query. This is an enumeration.'."\n" + ."\n" + .'USER\\_ACTION\\_PV\\_COUNT: The total traffic volume in page views (PVs).'."\n" + ."\n" + .'USER\\_ACTION\\_UV\\_COUNT: The total traffic volume in unique visitors (UVs).'."\n" + ."\n" + .'USER\\_ACTION\\_PV\\_RATIO: The traffic conversion rate.'."\n" + ."\n" + .'USER\\_ACTION\\_UV\\_RATIO: The traffic per capita.'."\n" + ."\n" + .'USER\\_PV\\_STAY: The average stay duration per user. This applies to content-based scenarios.'."\n" + ."\n" + .'USER\\_UV\\_STAY: The average stay duration per visit. This applies to content-based scenarios.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'xxx'], ], [ - 'name' => 'startTime', + 'name' => 'experimentIds', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'maximum' => '4102444800', - 'minimum' => '1546300800', - 'example' => '1567584765', - ], + 'schema' => ['description' => 'A list of experiment IDs. Set this parameter to \\`all\\` to query the overall effect at the scene level. The default value is \\`all\\`.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'all'], ], [ - 'name' => 'endTime', + 'name' => 'matchTypes', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1567584765', - ], + 'schema' => ['description' => 'A list of match types.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'hot,emb,u2x2i,hilp,new,'], ], ], 'responses' => [ @@ -10489,79 +6313,71 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '', + 'description' => 'The details of the specified metric.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'ruleId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '98493A14-D619-4E88-9F8D-108939817F9F', - ], - 'gmtModified' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2020-04-27T06:38:28.000Z', - ], - 'status' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'true', - ], - 'gmtCreate' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2020-04-27T06:38:28.000Z', + 'traceId' => ['description' => 'The trace ID.', 'type' => 'string', 'title' => '', 'example' => 'Alibaba'], + 'sceneId' => ['description' => 'The scene ID.', 'type' => 'string', 'title' => '', 'example' => 'test'], + 'metricRes' => [ + 'description' => 'The metric results.', + 'type' => 'object', + 'properties' => [ + 'total' => ['description' => 'The statistics.', 'type' => 'object', 'title' => '', 'example' => 'xxx'], + 'detail' => ['description' => 'The details.', 'type' => 'object', 'title' => '', 'example' => 'xxx'], + ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '', - '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', - ], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'InternalServerError'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'An internal server error occurred'], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], + '5XX' => [], ], - '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' => 'ListRules', - 'summary' => 'Queries a list of rules.', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ListDashboardDetails', + 'summary' => 'Queries detailed metrics for a specified instance.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeRule' => [ - 'path' => '/v2/openapi/instances/{instanceId}/rules/{ruleId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + 'ListDashboardDetailsFlows' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dashboard/details/flows', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -10571,57 +6387,56 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18687', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'abilityTreeCode' => '18697', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The ID of the rule.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'ruleId', - 'in' => 'path', - 'schema' => [ - 'description' => 'The ID of the scene.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'xxx', - ], + 'name' => 'startTime', + 'in' => 'query', + 'schema' => ['description' => 'The UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'title' => '', 'example' => '1588521600'], ], [ - 'name' => 'sceneId', + 'name' => 'endTime', 'in' => 'query', - 'schema' => [ - 'description' => 'The type of the rule.'."\n" - ."\n" - .'Valid values: selection and operation.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'xxx', - ], + 'schema' => ['description' => 'The UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'title' => '', 'example' => '1588521600'], ], [ - 'name' => 'ruleType', + 'name' => 'traceIds', 'in' => 'query', - 'schema' => [ - 'description' => 'The returned result.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'selection', - ], + 'schema' => ['description' => 'The trace ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'Alibaba'], + ], + [ + 'name' => 'sceneIds', + 'in' => 'query', + 'schema' => ['description' => 'The scene ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'test'], + ], + [ + 'name' => 'metricType', + 'in' => 'query', + 'schema' => ['description' => 'The metric to query. Valid values:'."\n" + ."\n" + .'USER\\_ACTION\\_PV\\_COUNT: The total number of page views (PVs).'."\n" + ."\n" + .'USER\\_ACTION\\_UV\\_COUNT: The total number of unique visitors (UVs).'."\n" + ."\n" + .'USER\\_ACTION\\_PV\\_RATIO: The traffic conversion rate.'."\n" + ."\n" + .'USER\\_ACTION\\_UV\\_RATIO: The traffic per capita.'."\n" + ."\n" + .'USER\\_PV\\_STAY: The dwell time per capita. This metric is for content-based scenarios.'."\n" + ."\n" + .'USER\\_UV\\_STAY: The dwell time per visit. This metric is for content-based scenarios.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'USERACTIONUV_COUNT'], + ], + [ + 'name' => 'experimentIds', + 'in' => 'query', + 'schema' => ['description' => 'A list of experiment IDs. Set this parameter to \\`all\\` to query the overall data at the scene level. The default value is \\`all\\`.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'all'], ], ], 'responses' => [ @@ -10630,134 +6445,145 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => 'The ID of the rule.'."\n", + 'description' => 'The details of the specified metric.', 'type' => 'object', 'properties' => [ - 'ruleId' => [ - 'description' => 'The time when the rule was last modified.'."\n", - 'type' => 'string', - 'example' => '98493A14-D619-4E88-9F8D-108939817F9F', - ], - 'gmtModified' => [ - 'description' => 'The state of the rule.'."\n", - 'type' => 'string', - 'example' => '2020-04-27T06:38:28.000Z', - ], - 'status' => [ - 'description' => 'The time when the rule was created.'."\n", - 'type' => 'string', - 'example' => 'DRAFT', - ], - 'gmtCreate' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => '2020-04-27T06:38:28.000Z', + 'metricType' => ['description' => 'The metric to query. Valid values:'."\n" + ."\n" + .'USER\\_ACTION\\_PV\\_COUNT: The total number of page views (PVs).'."\n" + ."\n" + .'USER\\_ACTION\\_UV\\_COUNT: The total number of unique visitors (UVs).'."\n" + ."\n" + .'USER\\_ACTION\\_PV\\_RATIO: The traffic conversion rate.'."\n" + ."\n" + .'USER\\_ACTION\\_UV\\_RATIO: The traffic per capita.'."\n" + ."\n" + .'USER\\_PV\\_STAY: The dwell time per capita. This metric is for content-based scenarios.'."\n" + ."\n" + .'USER\\_UV\\_STAY: The dwell time per visit. This metric is for content-based scenarios.', 'type' => 'string', 'title' => '', 'example' => 'USERACTIONUV_COUNT'], + 'metricData' => [ + 'description' => 'The metric results.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'traceId' => ['description' => 'The trace ID.', 'type' => 'string', 'title' => '', 'example' => 'Alibaba'], + 'sceneId' => ['description' => 'The scene ID.', 'type' => 'string', 'title' => '', 'example' => 'test'], + 'metricRes' => ['description' => 'The metric result.', 'type' => 'object', 'title' => '', 'example' => 'xxx'], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '__null__', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'InternalServerError'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'An internal server error occurred'], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'DescribeRule', - 'summary' => 'Queries detailed information about a rule.', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ListDashboardDetailsFlows', + 'summary' => 'Queries the traffic metrics details for a specified instance.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'PublishRule' => [ - 'path' => '/v2/openapi/instances/{instanceId}/rules/{ruleId}/actions/publish', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + 'ListDashboardMetrics' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dashboard/metrics', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18727', - 'abilityTreeNodes' => [ - 'FEATUREairecG8RBMT', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18698', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ - 'name' => 'ruleId', + 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The rule ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '98493A14-D619-4E88-9F8D-108939817F9F', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'ruleType', + 'name' => 'startTime', 'in' => 'query', - 'schema' => [ - 'description' => 'The type of the rule. Example: selection and operation.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'selection', - ], + 'schema' => ['description' => 'The start time. This is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'title' => '', 'example' => '1586673466'], ], [ - 'name' => 'sceneId', + 'name' => 'endTime', 'in' => 'query', - 'schema' => [ - 'description' => 'The scene ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The end time. This is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '1586673466'], ], [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'name' => 'metricType', + 'in' => 'query', + 'schema' => ['description' => 'The metric type. Valid values:'."\n" + ."\n" + .'USER\\_ACTION\\_PV\\_COUNT: Total page views (PVs).'."\n" + ."\n" + .'USER\\_ACTION\\_UV\\_COUNT: Total unique visitors (UVs).'."\n" + ."\n" + .'USER\\_ACTION\\_PV\\_RATIO: Traffic conversion rate.'."\n" + ."\n" + .'USER\\_ACTION\\_UV\\_RATIO: Per capita traffic.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'title' => '', 'example' => '指标类型'."\n" + ."\n" + .'USERACTIONPV_COUNT'], + ], + [ + 'name' => 'metricView', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false, 'description' => 'The dimension of the query. This parameter is used with \\`metricQuery\\`. The default value is \\`USER\\`. Valid values are \\`USER\\` (the user dimension) and \\`ITEM\\` (the item dimension).', 'title' => '', 'example' => 'ITEM'], + ], + [ + 'name' => 'metricQuery', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false, 'description' => 'The query condition. The format is k1:v1;k2:v2.', 'title' => '', 'example' => 'dimension:ITEM_TYPE;behaviorType:expose'], ], ], 'responses' => [ @@ -10766,573 +6592,407 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => 'The returned result.'."\n", - 'type' => 'object', - 'properties' => [ - 'ruleId' => [ - 'description' => 'The rule ID.'."\n", - 'type' => 'string', - 'example' => '98493A14-D619-4E88-9F8D-108939817F9F', + 'description' => 'The statistical results.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'total' => ['description' => 'The summary of statistics.', 'type' => 'object', 'title' => '', 'example' => 'xxx'], + 'detail' => [ + 'description' => 'The details.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'val' => ['description' => 'The specific value.', 'type' => 'string', 'title' => '', 'example' => '13'], + 'startTime' => ['description' => 'A UNIX timestamp in seconds.', 'type' => 'string', 'title' => '', 'example' => '1586673466'], + 'endTime' => ['description' => 'A UNIX timestamp in seconds.', 'type' => 'string', 'title' => '', 'example' => '1586673466'], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'InternalServerError'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'An internal server error occurred'], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + '5XX' => [], + ], + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ListDashboardMetrics', + 'summary' => 'Queries the dashboard metrics for a specified instance.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'translator' => 'manual', + '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 \\"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' => 'PublishRule', - 'summary' => 'Publishes a rule.', ], - 'CreateScene' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes', - 'methods' => [ - 'post', - ], - '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' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '18669', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18699', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'POST openapi/instances/{instanceId}/scenes?dryRun=false', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'dryRun', + 'name' => 'startTime', 'in' => 'query', - 'schema' => [ - 'description' => [ - [ - 'type' => 'json', - 'example' => '{'."\r\n" - .' "sceneId":"123",'."\r\n" - .' "sceneMeta":{'."\r\n" - .' "sceneName":"sceneTest",'."\r\n" - .' "description":"xxx"'."\r\n" - .' }'."\r\n" - .'}', - 'errorExample' => '', - ], - [ - 'type' => 'xml', - 'example' => '<sceneId>123</sceneId>'."\n" - .'<sceneMeta>'."\n" - .' <sceneName>sceneTest</sceneName>'."\n" - .' <description>xxx</description>'."\n" - .'</sceneMeta>', - 'errorExample' => '', - ], - ], - 'type' => 'boolean', - 'required' => false, - 'docRequired' => true, - 'example' => 'false', - ], + 'schema' => ['description' => 'The UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'title' => '', 'example' => '1586673466'], + ], + [ + 'name' => 'endTime', + 'in' => 'query', + 'schema' => ['description' => 'The UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'title' => '', 'example' => '1586673466'], + ], + [ + 'name' => 'metricType', + 'in' => 'query', + 'schema' => ['description' => 'The metric type.'."\n" + ."\n" + .'USER\\_ACTION\\_PV\\_COUNT: The total number of page views (PVs).'."\n" + ."\n" + .'USER\\_ACTION\\_UV\\_COUNT: The total number of unique visitors (UVs).'."\n" + ."\n" + .'USER\\_ACTION\\_PV\\_RATIO: The traffic conversion rate.'."\n" + ."\n" + .'USER\\_ACTION\\_UV\\_RATIO: The traffic per capita.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'USERACTIONPV_COUNT'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'object', - 'properties' => [ - 'sceneId' => [ - 'description' => 'Specifies whether to perform a dry run. Valid values: true: performs a dry run. false: performs a dry run and sends the request. Default value: false'."\n", - 'type' => 'string', - 'example' => 'test', - ], - 'gmtModified' => [ - 'description' => 'The returned results.'."\n", - 'type' => 'string', - 'example' => '2020-04-23T06:08:48.000Z', - ], - 'status' => [ - 'description' => 'The ID of the scene.'."\n", - 'type' => 'string', - 'example' => 'DRAFT', - ], - 'gmtCreate' => [ - 'description' => 'The time when the scene was last modified.'."\n", - 'type' => 'string', - 'example' => '2020-04-23T06:08:48.000Z', + 'description' => 'The statistics.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'metricType' => ['description' => 'The metric type.', 'type' => 'string', 'title' => '', 'example' => 'xxx'], + 'metricData' => ['description' => 'The metric data.', 'type' => 'object', 'title' => '', 'example' => 'xxx'], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => 'The state of the scene. Valid values: DRAFT, PUBLISHING, and FROZEN'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The time when the scene was created.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'InternalServerError'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'An internal server error occurred'], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'CreateScene', - 'summary' => 'Verifies the information that you specified for creating a scene.', - 'description' => 'We recommend that you do not call an API operation to manage scenes. We recommend that you go to the Scenario Building page in the Artificial Intelligence Recommendation (AIRec) console to manage scenes.', - ], - 'DeleteScene' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ListDashboardMetricsFlows', + 'summary' => 'Queries the traffic data of a specified instance from the dashboard.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + 'ListDataDiagnoseReports' => [ + 'summary' => 'Retrieves data diagnostic reports. These reports include manually triggered diagnostics, daily reports, and reports generated at data startup.', + 'path' => '/v2/openapi/instances/{instanceId}/data-diagnose-reports', + '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' => '138223', + 'abilityTreeNodes' => ['FEATUREairecG8RBMT'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'DELETE openapi/instances/{instanceId}/scenes/{sceneId}', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-shdjkgkeog'], ], [ - 'name' => 'sceneId', - 'in' => 'path', - 'schema' => [ - 'description' => [ - [ - 'type' => 'json', - 'example' => '{'."\n" - .' "RequestId": "8F81A922-6C81-46D6-B78C-CC35E16B1691",'."\n" - .' "Result": {'."\n" - .' "InstanceId": "airec-yunchu-test",'."\n" - .' "SceneId": 1234,'."\n" - .' "Id": 901,'."\n" - .' "Type": "Scene",'."\n" - .' "Status": "",'."\n" - .' "GmtCreate": 1587435971000,'."\n" - .' "GmtModified": 1587435971000,'."\n" - .' "SceneMeta": {'."\n" - .' "Description": "this is a test scene",'."\n" - .' "SceneName": "aaa",'."\n" - .' "Metric": {'."\n" - .' "Weekly": 123,'."\n" - .' "Daily": 12334,'."\n" - .' "PvCtr": 123'."\n" - .' }'."\n" - .' }'."\n" - .' }'."\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' => '', - ], - ], - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'testid', - ], + 'name' => 'taskCreateTime', + 'in' => 'query', + 'schema' => ['description' => 'The time when the task was created.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'title' => '', 'example' => '1566489600'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', + 'title' => '', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'object', - 'properties' => [ - 'sceneId' => [ - 'description' => 'The scene ID.'."\n", - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - 'code' => [ - 'description' => 'The returned result.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The scene ID.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['description' => 'The result.', 'type' => 'object', 'title' => '', '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" + .'}'], ], + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","type":"json"}]', + 'title' => 'ListDataDiagnoseReports', + 'changeSet' => [], + 'translator' => 'manual', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDataDiagnoseReports'], + ], + ], + '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' => '[{"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' => 'DeleteScene', - 'summary' => 'Deletes a scene.', - 'description' => 'We recommend that you do not call an API operation to manage scenes. We recommend that you go to the Scenario Building page in the Artificial Intelligence Recommendation (AIRec) console to manage scenes.', ], - 'ModifyScene' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListDataDiagnoseSampleDetails' => [ + 'summary' => 'Retrieves the sample details of a data diagnostic report.', + 'path' => '/v2/openapi/instances/{instanceId}/data-diagnose-reports/sample-details', + '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' => '139245', + 'abilityTreeNodes' => ['FEATUREairecG8RBMT'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'PUT openapi/instances/{instanceId}/scenes/{sceneId}', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-shdjkgkeog'], ], [ - 'name' => 'sceneId', - 'in' => 'path', - 'schema' => [ - 'description' => [ - [ - 'type' => 'json', - 'example' => '{'."\r\n" - .' "Result": {'."\r\n" - .' "Status": "RUNNING",'."\r\n" - .' "GmtCreate": "2020-04-23T06:08:48.000Z",'."\r\n" - .' "GmtModified": "2020-04-23T10:04:24.000Z",'."\r\n" - .' "SceneId": "123",'."\r\n" - .' "SceneMeta": {'."\r\n" - .' "SceneName": "xxx",'."\r\n" - .' "Description": "xxx"'."\r\n" - .' }'."\r\n" - .' },'."\r\n" - .' "RequestId": "E6535761-3448-4D6E-A791-477531763F29"'."\r\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' => '', - ], - ], - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'name' => 'taskCreateTime', + 'in' => 'query', + 'schema' => ['description' => 'The time when the diagnostic task was created. This is a timestamp in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'title' => '', 'example' => '1665936000000'], + ], + [ + 'name' => 'startTime', + 'in' => 'query', + 'schema' => ['description' => 'The start time of the query. This is a UNIX timestamp that is accurate to the second.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'title' => '', 'example' => '1665158400'], + ], + [ + 'name' => 'endTime', + 'in' => 'query', + 'schema' => ['description' => 'The end time of the query. This is a UNIX timestamp that is accurate to the second.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'title' => '', 'example' => '1682179200'], + ], + [ + 'name' => 'taskSource', + 'in' => 'query', + 'schema' => ['description' => 'The task type. Valid values: firstRun, manual, and cycle.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cycle'], + ], + [ + 'name' => 'key', + 'in' => 'query', + 'schema' => ['description' => 'The diagnostic item.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', + 'title' => '', + 'description' => 'The response.', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'object', - 'properties' => [ - 'sceneId' => [ - 'description' => 'The scene ID.'."\n", - 'type' => 'string', - 'example' => 'test', - ], - 'gmtModified' => [ - 'description' => 'The returned results.'."\n", - 'type' => 'string', - 'example' => '2020-04-23T06:08:48.000Z', - ], - 'status' => [ - 'description' => 'The scene ID.'."\n", - 'type' => 'string', - 'example' => 'DRAFT', - ], - 'gmtCreate' => [ - 'description' => 'The time when the scene was last modified.'."\n", - 'type' => 'string', - 'example' => '2020-04-23T06:08:48.000Z', - ], - ], - ], - 'code' => [ - 'description' => 'The state of the scene. Valid values: DRAFT: The scene is to be published. PUBLISHING: The scene is being published. FROZEN: The scene is frozen.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The time when the scene was created.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['title' => '', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['description' => 'The detailed results.', 'type' => 'object', 'title' => '', 'example' => ''], ], + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","type":"json"}]', + 'title' => 'ListDataDiagnoseSampleDetails', + 'changeSet' => [], + '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' => '[{"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' => 'ModifyScene', - 'summary' => 'Modifies the information about a scene.', - 'description' => 'We recommend that you do not call an API operation to manage scenes. We recommend that you go to the Scenario Building page in the Artificial Intelligence Recommendation (AIRec) console to manage scenes.', - ], - 'DescribeScene' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'translator' => 'manual', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDataDiagnoseSampleDetails'], + ], ], + ], + 'ListDataSet' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dataSets', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', - 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18688', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - 'FEATUREairec5G3YBA', - ], + 'abilityTreeCode' => '18700', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'GET /openapi/instances/{airec-xxxx}/scenes/{sceneId}', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], - ], - [ - 'name' => 'sceneId', - 'in' => 'path', - 'schema' => [ - 'description' => [ - [ - 'type' => 'json', - 'example' => '{'."\n" - .' "Result": {'."\n" - .' "Status": "DRAFT",'."\n" - .' "GmtCreate": "2020-04-23T06:08:48.000Z",'."\n" - .' "GmtModified": "2020-04-23T06:08:48.000Z",'."\n" - .' "SceneId": 123,'."\n" - .' "SceneMeta": {'."\n" - .' "SceneName": "sceneTest",'."\n" - .' "Description": "xxx",'."\n" - .' "Metric": {'."\n" - .' "PvCtr": 32,'."\n" - .' "Daily": 32,'."\n" - .' "Weekly": 32'."\n" - .' }'."\n" - .' }'."\n" - .' },'."\n" - .' "RequestId": "76E2C51D-A2D7-4775-9FD8-2AB84B2A0CEF"'."\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' => '', - ], - ], - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'testid', - ], + 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****', 'title' => ''], ], ], 'responses' => [ @@ -11342,1481 +7002,1745 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'object', - 'properties' => [ - 'sceneId' => [ - 'description' => 'The scene ID.'."\n", - 'type' => 'string', - 'example' => 'test', - ], - 'gmtModified' => [ - 'description' => 'The details about the scene.'."\n", - 'type' => 'string', - 'example' => '2020-04-23T06:08:48.000Z', - ], - 'status' => [ - 'description' => 'The scene ID.'."\n", - 'type' => 'string', - 'example' => 'DRAFT', - ], - 'gmtCreate' => [ - 'description' => 'The time when the scene was last modified.'."\n", - 'type' => 'string', - 'example' => '2020-04-23T06:08:48.000Z', + 'description' => 'The returned datasets.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'versionId' => ['description' => 'The version number of the dataset.'."\n", 'type' => 'string', 'example' => '2018102321****', 'title' => ''], + 'state' => ['description' => 'The state for the dataset of the current version. Example: Importing. The value indicates that the dataset of the current version is being imported.'."\n", 'type' => 'string', 'example' => 'Importing', 'title' => ''], + 'gmtModified' => ['description' => 'The time when the data source was last modified.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '2020-11-11T09:47:43.000Z', 'title' => ''], + 'gmtCreate' => ['description' => 'The time when the data source was created.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '2018-12-07T02:24:26.000Z', 'title' => ''], + 'instanceId' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'example' => 'airec-cn-o400whm78004', 'title' => ''], ], + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => 'The status of the scene.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The time when the scene was created.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => 'The error code.'."\n", 'type' => 'string', 'example' => '200', 'title' => ''], + 'requestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'DescribeScene', - 'summary' => 'Queries the details about a specified scene.', - 'description' => 'We recommend that you do not call an API operation to manage scenes. We recommend that you go to the Scenario Building page in the Artificial Intelligence Recommendation (AIRec) console to manage scenes.', - ], - 'ListScenes' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'ListDataSet', + 'summary' => 'Queries datasets of a specified instance.', + '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}'], + ], + ], + ], ], + ], + 'ListDataSource' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dataSources', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', - 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18716', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - 'FEATUREairec5G3YBA', - ], + 'abilityTreeCode' => '18701', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'GET /openapi/instances/{airec-xxxx}/scenes', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], - ], - [ - 'name' => 'status', - 'in' => 'query', - 'schema' => [ - 'description' => [ - [ - 'errorExample' => '', - 'example' => '{'."\n" - .' "Result":['."\n" - .' {'."\n" - .' "Status":"DRAFT",'."\n" - .' "GmtCreate":"2020-04-23T06:08:48.000Z",'."\n" - .' "GmtModified":"2020-04-23T06:08:48.000Z",'."\n" - .' "SceneId":"123",'."\n" - .' "SceneMeta":{'."\n" - .' "SceneName":"sceneTest",'."\n" - .' "Description":"xxx",'."\n" - .' "Metric":{'."\n" - .' "PvCtr":"32",'."\n" - .' "Daily":"32",'."\n" - .' "Weekly":"32"'."\n" - .' }'."\n" - .' }'."\n" - .' }'."\n" - .' ],'."\n" - .' "RequestId":"0D532E4F-899E-4A59-96B8-C7843A286A53"'."\n" - .'}', - 'type' => 'json', - ], - [ - 'errorExample' => '', - '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>', - 'type' => 'xml', - ], - ], - 'type' => 'string', - 'required' => false, - 'example' => '1', - ], - ], - [ - 'name' => 'sceneId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - [ - 'name' => 'page', - 'in' => 'query', - 'schema' => [ - 'description' => 'Specifies whether the item can be recommended.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '1', - ], - ], - [ - 'name' => 'size', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the scene.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '10', - ], + 'schema' => ['description' => 'The ID of the instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-o400whm78004'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => 'The number of the page to return. Default value: 1.'."\n", + 'description' => 'A list of data sources.', 'type' => 'array', 'items' => [ - 'description' => '', 'type' => 'object', 'properties' => [ - 'sceneId' => [ - 'description' => 'The number of entries to return on each page. Valid values: 1 to 50. Default value: 10.'."\n", - 'type' => 'string', - 'example' => 'test', - ], - 'gmtModified' => [ - 'description' => 'The returned result.'."\n", - 'type' => 'string', - 'example' => '2020-04-23T06:08:48.000Z', - ], - 'status' => [ - 'description' => 'The ID of the scene.'."\n", - 'type' => 'string', - 'example' => '1', - ], - 'gmtCreate' => [ - 'description' => 'The time when the scene was last modified.'."\n", - 'type' => 'string', - 'example' => '2020-04-23T06:08:48.000Z', + 'gmtModified' => ['description' => 'The Coordinated Universal Time (UTC) when the data source was last modified.', 'type' => 'string', 'title' => '', 'example' => '2018-12-07T02:24:26.000Z'], + 'gmtCreate' => ['description' => 'The UTC time when the data source was created.', 'type' => 'string', 'title' => '', 'example' => '2018-12-07T02:24:26.000Z'], + 'tableName' => ['description' => 'The name of the table in the Artificial Intelligence Recommendation (AIRec) instance.', 'type' => 'string', 'title' => '', 'example' => 'behavior'], + 'meta' => [ + 'description' => 'The configuration parameters of the data source.', + 'type' => 'object', + 'properties' => [ + 'bucketName' => ['description' => 'The name of the Object Storage Service (OSS) bucket.', 'type' => 'string', 'title' => '', 'example' => 'airec'], + 'accessKeyId' => ['description' => 'The AccessKey ID that has permissions to access ODPS.', 'type' => 'string', 'title' => '', 'example' => 'xxx'], + 'type' => ['description' => 'The type of the data source. Only ODPS is supported.', 'type' => 'string', 'title' => '', 'example' => 'ODPS'], + 'partition' => ['description' => 'The ODPS partition. For example: ds=20180102', 'type' => 'string', 'title' => '', 'example' => 'ds=20181122'], + 'timestamp' => ['description' => 'The data timestamp for ODPS, in milliseconds. For example: 1544112000000', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1544112000000'], + 'path' => ['description' => 'The path of the OSS data source.', 'type' => 'string', 'title' => '', 'example' => 'oss://xxx.xxx'], + 'tableName' => ['description' => 'The name of the ODPS table.', 'type' => 'string', 'title' => '', 'example' => 'test_maxcompute'], + 'projectName' => ['description' => 'The name of the ODPS project.', 'type' => 'string', 'title' => '', 'example' => 'openrec_gray'], + ], + 'title' => '', + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => 'Indicates whether the item can be recommended.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The time when the scene was created.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'InternalServerError'], + 'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'An internal server error occurred'], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListScenes', - 'summary' => 'Queries scenes of a specified instance.', - 'description' => 'We recommend that you do not call an API operation to manage scenes. Go to the Scenario Building page in the AIRec console to manage scenes.', - ], - 'CreateCustomSample' => [ - 'summary' => '创建自定义样本。', - 'path' => '/v2/openapi/instances/{instanceId}/samples', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ListDataSource', + 'summary' => 'Retrieves a list of data sources for a specified instance.', + '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}'], + ], + ], + ], ], + 'translator' => 'manual', + ], + 'ListExperiments' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments', + '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' => '18702', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-xxx', - ], + 'schema' => ['description' => 'The ID of the instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-****'], + ], + [ + 'name' => 'sceneId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the scenario.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'sceneId'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], 'result' => [ - 'description' => '', - '$ref' => '#/components/schemas/Sample', + 'description' => 'The data returned.', + 'type' => 'array', + 'items' => [ + 'description' => 'The parameters returned in the response.', + 'type' => 'object', + 'properties' => [ + 'base' => ['description' => 'Indicates whether the experiment is the default experiment.', 'type' => 'boolean', 'title' => '', 'example' => 'true'], + 'onlineTime' => ['description' => 'The time when the experiment went online.', 'type' => 'string', 'title' => '', 'example' => '2020-12-07T06:47:30.000Z'], + 'offlineTime' => ['description' => 'The time when the experiment went offline.', 'type' => 'string', 'title' => '', 'example' => '2020-12-07T06:47:30.000Z'], + 'description' => ['description' => 'The description of the experiment.', 'type' => 'string', 'title' => '', 'example' => 'xxx'], + 'status' => ['description' => 'The status of the experiment.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **Init**: The experiment is not online.'."\n" + ."\n" + .'- **Online**: The experiment is online.'."\n" + ."\n" + .'- **Finish**: The experiment is fully rolled out.'."\n" + ."\n" + .'- **Offline**: The experiment is offline.', 'type' => 'string', 'title' => '', 'example' => 'init'], + 'name' => ['description' => 'The name of the experiment.', 'type' => 'string', 'title' => '', 'example' => 'test'], + 'buckets' => [ + 'description' => 'The list of buckets. This parameter is valid only when the experiment is online.', + 'type' => 'array', + 'items' => ['description' => 'The bucket information.', 'type' => 'string', 'title' => '', 'example' => '[1,2,3]'], + 'title' => '', + 'example' => '', + ], + 'experimentId' => ['description' => 'The ID of the experiment.', 'type' => 'string', 'title' => '', 'example' => '123'], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], + 'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B'], ], + 'title' => '', + 'example' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'CreateCustomSample', - ], - 'CreateSampleFormatConfig' => [ - 'summary' => 'Configures sample formatting.', - 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}/format-configs', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ListExperiments', + 'summary' => 'Lists experiments and returns only their basic information, not their algorithm configurations. Paging is not supported.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + 'ListExtraDataSources' => [ + 'summary' => 'Lists the data sources for features and samples.', + 'path' => '/v2/openapi/instances/{instanceId}/extra-data-sources', + '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' => '117132', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '117105', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-shdjkgkeog', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'sampleId', - 'in' => 'path', - 'schema' => [ - 'title' => '样本id', - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => '', - ], - ], - [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'description' => '', - 'type' => 'object', - 'required' => false, - 'example' => '', - ], + 'name' => 'type', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The type of the data source.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **UserCustomDataSource**: A user data source.'."\n" + ."\n" + .'- **ItemCustomDataSource**: An item data source.'."\n" + ."\n" + .'- **BehaviorCustomDataSource**: A behavioral data source.', 'type' => 'string', 'required' => false, 'example' => 'UserCustomDataSource'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', + 'title' => '', + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], + 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], 'result' => [ - 'title' => 'result', - 'description' => '', - 'type' => 'object', - 'example' => 'result', + 'description' => 'The response parameters.', + 'type' => 'array', + 'items' => ['description' => 'The list of data sources.', '$ref' => '#/components/schemas/ExtraDataSource', 'title' => '', 'example' => ''], + 'title' => '', + 'example' => '', ], ], + 'example' => '', + ], + ], + ], + '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"}]', + 'title' => 'ListExtraDataSources', + 'changeSet' => [], + 'translator' => 'manual', + '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' => '[{"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' => 'CreateSampleFormatConfig', ], - 'DeleteSample' => [ - 'summary' => '删除样本', - 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListFeatureTables' => [ + 'summary' => 'Retrieves a list of feature tables.', + 'path' => '/v2/openapi/instances/{instanceId}/feature-tables', + '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' => '117130', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '117113', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-shdjkgkeog', - ], + 'schema' => ['description' => 'The feature table ID.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'airec-cn-shdjkgkeog'], ], [ - 'name' => 'sampleId', - 'in' => 'path', - 'schema' => [ - 'title' => '样本id', - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'Sample1', - ], + 'name' => 'type', + 'in' => 'query', + 'schema' => ['description' => 'The type of the feature table.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'ItemFeatureTable UserFeatureTable'], + ], + [ + 'name' => 'updateFrequency', + 'in' => 'query', + 'schema' => ['description' => 'The update frequency of the feature.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '1'], + ], + [ + 'name' => 'dataSourceId', + 'in' => 'query', + 'schema' => ['description' => 'The data source ID.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '123'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], + 'requestId' => ['type' => 'string', 'title' => '', 'description' => 'The request ID.', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], 'result' => [ - 'description' => '', - '$ref' => '#/components/schemas/Sample', + 'type' => 'array', + 'items' => ['$ref' => '#/components/schemas/FeatureTable', 'description' => 'The result.', 'title' => '', 'example' => ''], + 'example' => 'result', + 'title' => '', + 'description' => 'The array of results.', ], ], + 'title' => '', + 'description' => 'The response details.', + 'example' => '', ], ], ], - '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' => 'DeleteSample', - ], - 'ModifySample' => [ - 'summary' => 'Modifies the configuration of a sample.', - 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}', - 'methods' => [ - 'put', + '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' => 'ListFeatureTables', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFeatureTables'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListFeatureTables', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'extraInfo' => ' ', + 'translator' => 'manual', + ], + 'ListFilteringAlgorithms' => [ + 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '117127', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18703', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - 'title' => 'A short description of struct', - ], + 'schema' => ['description' => 'The ID of the instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-****'], ], [ - 'name' => 'sampleId', - 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => '123', - 'title' => '样本id', - ], + 'name' => 'status', + 'in' => 'query', + 'schema' => ['description' => 'The status of the recall table.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **Draft**: The recall table is a draft.'."\n" + ."\n" + .'- **Running**: The recall table is running.'."\n" + ."\n" + .'- **Offline**: The recall table is offline.'."\n" + ."\n" + .'- **Deleted**: The recall table is deleted.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'title' => '', 'example' => 'Running'], ], [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'description' => '', - 'type' => 'object', - 'required' => false, - 'example' => 'xxx', - ], + 'name' => 'algorithmId', + 'in' => 'query', + 'schema' => ['description' => 'The ID of the recall table.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'title' => '', 'example' => '123'], + ], + [ + 'name' => 'page', + 'in' => 'query', + 'schema' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'title' => '', 'example' => '1'], + ], + [ + 'name' => 'size', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries in the recall table.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'title' => '', 'example' => '1'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], 'result' => [ - '$ref' => '#/components/schemas/Sample', + 'description' => 'The parameters returned in the response.', + 'type' => 'array', + 'items' => [ + 'description' => 'The information about the recall table.', + 'type' => 'object', + 'properties' => [ + 'gmtModified' => ['description' => 'The time when the table was last updated. The time is in UTC.', 'type' => 'string', 'title' => '', 'example' => '2018-12-07T02:24:26.000Z'], + 'status' => ['description' => 'The status of the recall table.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **Draft**: The recall table is a draft.'."\n" + ."\n" + .'- **Running**: The recall table is running.'."\n" + ."\n" + .'- **Offline**: The recall table is offline.'."\n" + ."\n" + .'- **Deleted**: The recall table is deleted.', 'type' => 'string', 'title' => '', 'example' => 'Running'], + 'gmtCreate' => ['description' => 'The time when the table was created. The time is in UTC.', 'type' => 'string', 'title' => '', 'example' => '2018-12-07T02:24:26.000Z'], + 'algorithmId' => ['description' => 'The ID of the recall table.', 'type' => 'string', 'title' => '', 'example' => '123'], + 'meta' => [ + 'description' => 'The metadata of the recall table.', + 'type' => 'object', + 'properties' => [ + 'taskId' => ['description' => 'The task ID.', 'type' => 'string', 'title' => '', 'example' => '123'], + 'metaType' => ['description' => 'The type of the algorithm. Only ODPS is supported.', 'type' => 'string', 'title' => '', 'example' => 'ODPS'], + 'type' => ['description' => 'The type of the data source. Only ODPS is supported.', 'type' => 'string', 'title' => '', 'example' => 'odps'], + 'extInfo' => [ + 'description' => 'The content of the recall table.', + 'type' => 'object', + 'properties' => [ + 'kvSeparator' => ['description' => 'The key-value separator.', 'type' => 'string', 'title' => '', 'example' => ':'], + 'itemSeparator' => ['description' => 'The item separator.', 'type' => 'string', 'title' => '', 'example' => ','], + ], + 'title' => '', + 'example' => '', + ], + 'category' => ['description' => 'The recall category.', 'type' => 'string', 'title' => '', 'example' => 'odps'], + 'threshold' => [ + 'description' => 'The threshold settings for the table.', + 'type' => 'object', + 'properties' => [ + 'sourceDataSizeThreshold' => ['description' => 'The fluctuation threshold for the source data size.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'], + 'sourceDataRecordThreshold' => ['description' => 'The fluctuation threshold for the number of source data records.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'], + 'indexSizeThreshold' => ['description' => 'The threshold for the index size.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'], + 'indexLossThreshold' => ['description' => 'The threshold for index loss.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'], + ], + 'title' => '', + 'example' => '', + ], + 'tableName' => ['description' => 'The name of the ODPS recall table.', 'type' => 'string', 'title' => '', 'example' => 'item'], + 'clusterId' => ['description' => 'The cluster ID.', 'type' => 'string', 'title' => '', 'example' => '123'], + 'cron' => ['description' => 'The cron expression for the scheduled task.', 'type' => 'string', 'title' => '', 'example' => '0 0/12 0 * *'], + 'description' => ['description' => 'The description.', 'type' => 'string', 'title' => '', 'example' => 'test'], + 'projectName' => ['description' => 'The project name in ODPS.', 'type' => 'string', 'title' => '', 'example' => 'airec123'], + 'algorithmName' => ['description' => 'The algorithm name.', 'type' => 'string', 'title' => '', 'example' => 'test'], + 'cronEnabled' => ['description' => 'Specifies whether the scheduled task is enabled.', 'type' => 'boolean', 'title' => '', 'example' => 'true'], + ], + 'title' => '', + 'example' => '', + ], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], + 'headers' => [ + 'description' => 'The header information.', + 'type' => 'object', + 'properties' => [ + 'X-Total-Count' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '12'], + ], + 'title' => '', + 'example' => '', + ], + 'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3'], + ], + 'title' => '', + 'example' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ModifySample', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ListFilteringAlgorithms', + 'summary' => 'Lists information about all recall tables.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ListSamples' => [ - 'summary' => 'Queries a list of samples.', - 'path' => '/v2/openapi/instances/{instanceId}/samples', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + 'ListFlowControlTask' => [ + 'summary' => 'Lists flow control tasks.', + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks', + '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' => '117124', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'list', + 'abilityTreeCode' => '155267', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-shdjkgkeog', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'sampleId', + 'name' => 'taskId', 'in' => 'query', - 'schema' => [ - 'title' => '样本id', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'Sample1', - ], + 'schema' => ['description' => 'The flow control task ID.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '1661506482'], + ], + [ + 'name' => 'status', + 'in' => 'query', + 'schema' => ['description' => 'The task status.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **DRAFT**: The task is a draft.'."\n" + ."\n" + .'- **READY**: The task is ready to take effect.'."\n" + ."\n" + .'- **RUNNING**: The task is running.'."\n" + ."\n" + .'- **ENDED**: The task has ended.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'DRAFT'], ], [ 'name' => 'page', 'in' => 'query', - 'schema' => [ - 'title' => '分页,页码', - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '1'], ], [ 'name' => 'size', 'in' => 'query', - 'schema' => [ - 'title' => '分页,大小', - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => 'The number of entries to return on each page. Default value: 10. Valid values: 1 to 50.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '10'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', + 'description' => 'The returned parameters.', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '6E427B10-30FC-1873-922F-FC176D3398D4'], 'result' => [ - 'title' => 'result', - 'description' => '', + 'description' => 'The returned parameters.', 'type' => 'array', 'items' => [ - 'description' => '', - '$ref' => '#/components/schemas/Sample', + 'description' => 'The returned parameters.', + 'type' => 'object', + 'properties' => [ + 'gmtCreate' => ['description' => 'The time when the task was created. The time is in UTC.', 'type' => 'string', 'title' => '', 'example' => '2022-08-06T06:14:01.000Z'], + 'gmtModified' => ['description' => 'The time when the task was last modified. The time is in UTC.', 'type' => 'string', 'title' => '', 'example' => '2022-08-06T06:14:01.000Z'], + 'meta' => [ + 'description' => 'The metadata of the flow control task.', + 'type' => 'object', + 'properties' => [ + 'description' => ['description' => 'The description of the flow control task.', 'type' => 'string', 'title' => '', 'example' => '这是一个测试任务'], + 'endTime' => ['description' => 'The end time. This is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1621267200'], + 'metaType' => ['description' => 'The type of the metadata. The value is fixed to FlowControlTask.', 'type' => 'string', 'title' => '', 'example' => 'metaType'], + 'sceneIds' => ['description' => 'The scenario IDs. You can specify multiple IDs. Separate them with commas (,).', 'type' => 'string', 'title' => '', 'example' => '1,2,3'], + 'selectionParams' => [ + 'description' => 'The list of parameters for the item selection rule.', + 'type' => 'array', + 'items' => [ + 'description' => 'The parameters for the item selection rule.', + 'type' => 'object', + 'properties' => [ + 'selectType' => ['description' => 'The type of the filter condition for the item selection rule.', 'type' => 'string', 'title' => '', 'example' => 'selectType'], + 'selectValue' => ['description' => 'The value of the filter condition for the item selection rule.', 'type' => 'string', 'title' => '', 'example' => 'selectValue'], + 'selectionOperation' => ['description' => 'The operation of the filter condition for the item selection rule.', 'type' => 'string', 'title' => '', 'example' => 'selectionOperation'], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'startTime' => ['description' => 'The start time. This is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1621267200'], + 'target' => [ + 'description' => 'The exposure configuration.', + 'type' => 'object', + 'properties' => [ + 'type' => ['description' => 'The exposure type.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **EXPOSE\\_PERCENT**: The daily exposure percentage.'."\n" + ."\n" + .'- **EXPOSE\\_COUNT**: The total number of exposures.', 'type' => 'string', 'title' => '', 'example' => 'EXPOSE_PERCENT'], + 'value' => ['description' => 'The exposure value.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '50'], + ], + 'title' => '', + 'example' => '', + ], + 'taskName' => ['description' => 'The name of the flow control task.', 'type' => 'string', 'title' => '', 'example' => 'testtaskname'], + ], + 'title' => '', + 'example' => '', + ], + 'status' => ['description' => 'The task status.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **DRAFT**: The task is a draft.'."\n" + ."\n" + .'- **READY**: The task is ready to take effect.'."\n" + ."\n" + .'- **RUNNING**: The task is running.'."\n" + ."\n" + .'- **ENDED**: The task has ended.', 'type' => 'string', 'title' => '', 'example' => 'DRAFT'], + 'TaskId' => ['description' => 'The flow control task ID.', 'type' => 'string', 'title' => '', 'example' => '1661506482'], + ], + 'title' => '', + 'example' => '', ], - 'example' => 'result', + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', + ], + ], + 500 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListSamples', - ], - 'GetSample' => [ - 'summary' => 'Queries the information of a sample.', - 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ListFlowControlTask', + 'changeSet' => [], + 'translator' => 'manual', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFlowControlTask'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListFlowControlTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + ], + 'ListFlowControlTaskInvalidItems' => [ + 'summary' => 'Queries the checklist of invalid items for a traffic control task and returns the item ID (ItemId) and item type (ItemType) for each invalid item.', + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/invalidItems', + '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' => '117125', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'operationType' => 'list', + 'abilityTreeCode' => '156202', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test001', - 'title' => 'A short description of struct', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'sampleId', + 'name' => 'taskId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'xxx', - 'title' => '样本id', - ], + 'schema' => ['description' => 'The ID of the traffic control task.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '1661506482'], ], [ - 'name' => 'withExtendParmas', - 'in' => 'query', + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'description' => '', - 'type' => 'boolean', + 'description' => 'The request body parameters.', + 'type' => 'array', + 'items' => ['description' => 'A JSON object that contains the item ID and item type.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '[ { "itemId": "10", "itemType": "itemType" }, { "itemId": "10", "itemType": "itemType" } ]'], 'required' => false, - 'example' => 'true', - 'title' => '是否携带扩展参数', + 'title' => '', + 'example' => '', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], 'result' => [ - '$ref' => '#/components/schemas/Sample', + 'description' => 'The response parameters.', + 'type' => 'array', + 'items' => [ + 'description' => 'The response parameters.', + 'type' => 'object', + 'properties' => [ + 'invalidItems' => [ + 'description' => 'The checklist of invalid items, including their item IDs and item types.', + 'type' => 'array', + 'items' => [ + 'description' => 'An invalid item.', + 'type' => 'object', + 'properties' => [ + 'itemId' => ['description' => 'The item ID.', 'type' => 'string', 'title' => '', 'example' => '287723'], + 'itemType' => ['description' => 'The item type.', 'type' => 'string', 'title' => '', 'example' => 'video'], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], ], ], - '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' => 'GetSample', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'CloneSample' => [ - 'summary' => 'Clones a sample.', - 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}/actions/clone', - 'methods' => [ - 'put', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ListFlowControlTaskInvalidItems', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFlowControlTaskInvalidItems'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListFlowControlTaskInvalidItems', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + 'translator' => 'manual', + ], + 'ListFlowControlTaskItemReports' => [ + 'summary' => 'Queries a traffic control task to retrieve its highest-exposure items or invalid items.', + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/itemReports', + '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' => 'list', + 'abilityTreeCode' => '155145', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-shdjkgkeog', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'sampleId', + 'name' => 'taskId', 'in' => 'path', - 'schema' => [ - 'title' => '样本id', - 'description' => 'The sample ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'abc', - ], + 'schema' => ['description' => 'The ID of the traffic control task.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '1666854493104'], + ], + [ + 'name' => 'selectTimeType', + 'in' => 'query', + 'schema' => ['description' => 'The time range to query. If selectType is set to invalidItem, only yesterDay is supported.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **yesterDay**: Yesterday.'."\n" + ."\n" + .'- **lastSevenDays**: The last 7 days.'."\n" + ."\n" + .'- **lastFifteenDays**: The last 15 days.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'yesterDay'], + ], + [ + 'name' => 'selectType', + 'in' => 'query', + 'schema' => ['description' => 'The type of data to query.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **topExposeItem**: Items with the highest exposure.'."\n" + ."\n" + .'- **invalidItem**: Invalid items.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'invalidItem'], + ], + [ + 'name' => 'count', + 'in' => 'query', + 'schema' => ['description' => 'The number of items to query. The default value is 10.'."\n" + .'If selectType is topExposeItem, this parameter specifies the number of top items.'."\n" + .'If selectType is invalidItem, this parameter specifies the number of invalid items.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '5'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The schema of the response parameters.'."\n", + 'description' => 'The returned parameters.', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'D486768B-8BF8-4D80-B491-43DC3D0AF8AB'], 'result' => [ - 'description' => 'The returned result.'."\n", - '$ref' => '#/components/schemas/Sample', + 'description' => 'The returned parameters.', + 'type' => 'object', + 'properties' => [ + 'detail' => [ + 'description' => 'The list of data.', + 'type' => 'array', + 'items' => [ + 'description' => 'The data.', + 'type' => 'object', + 'properties' => [ + 'taskId' => ['description' => 'The ID of the traffic control task.', 'type' => 'string', 'title' => '', 'example' => '1666669577221'], + 'itemId' => ['description' => 'The item ID.', 'type' => 'string', 'title' => '', 'example' => '123'], + 'itemType' => ['description' => 'The item type.', 'type' => 'string', 'title' => '', 'example' => 'video'], + 'taskRank' => ['description' => 'The exposure ranking for the day.', 'type' => 'string', 'title' => '', 'example' => '12'], + 'itemPv' => ['description' => 'The number of exposures of the item for the day.', 'type' => 'string', 'title' => '', 'example' => '100'], + 'taskPv' => ['description' => 'The number of exposures of the task for the day.', 'type' => 'string', 'title' => '', 'example' => '50'], + 'pvPercent' => ['description' => 'The percentage of exposures of the item for the day.', 'type' => 'string', 'title' => '', 'example' => '10.12'], + 'itemClick' => ['description' => 'The number of clicks on the item for the day.', 'type' => 'string', 'title' => '', 'example' => '100'], + 'taskClick' => ['description' => 'The number of clicks for the task for the day.', 'type' => 'string', 'title' => '', 'example' => '100'], + 'clickPercent' => ['description' => 'The percentage of clicks on the item for the day.', 'type' => 'string', 'title' => '', 'example' => '1.23'], + 'itemCtr' => ['description' => 'The click-through rate (CTR) of the item for the day.', 'type' => 'string', 'title' => '', 'example' => '2.34'], + 'taskCtr' => ['description' => 'The CTR of the task for the day.', 'type' => 'string', 'title' => '', 'example' => '1.23'], + 'accTaskRank' => ['description' => 'The cumulative exposure ranking.', 'type' => 'string', 'title' => '', 'example' => '10'], + 'accItemPv' => ['description' => 'The cumulative number of exposures of the item.', 'type' => 'string', 'title' => '', 'example' => '500'], + 'accTaskPv' => ['description' => 'The cumulative number of exposures of the task.', 'type' => 'string', 'title' => '', 'example' => '200'], + 'accPvPercent' => ['description' => 'The cumulative percentage of exposures of the item.', 'type' => 'string', 'title' => '', 'example' => '20.12'], + 'accItemClick' => ['description' => 'The cumulative number of clicks on the item.', 'type' => 'string', 'title' => '', 'example' => '1000'], + 'accTaskClick' => ['description' => 'The cumulative number of clicks for the task.', 'type' => 'string', 'title' => '', 'example' => '600'], + 'accClickPercent' => ['description' => 'The cumulative percentage of clicks on the item.', 'type' => 'string', 'title' => '', 'example' => '3.24'], + 'accItemCtr' => ['description' => 'The cumulative CTR of the item.', 'type' => 'string', 'title' => '', 'example' => '4.56'], + 'accTaskCtr' => ['description' => 'The cumulative CTR of the task.', 'type' => 'string', 'title' => '', 'example' => '3.22'], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', + ], + ], + 500 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'CloneSample', - ], - 'GenerateSample' => [ - 'summary' => 'Generates a cloned sample.', - 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}/actions/generate', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ListFlowControlTaskItemReports', + 'changeSet' => [], + 'translator' => 'manual', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFlowControlTaskItemReports'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListFlowControlTaskItemReports', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + ], + 'ListFlowControlTaskItems' => [ + 'summary' => 'Previews the items in a traffic control task.', + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/actions/items', + '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' => 'list', + 'abilityTreeCode' => '155140', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - 'title' => 'A short description of struct', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'sampleId', + 'name' => 'taskId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => '123', - 'title' => '样本id', - ], + 'schema' => ['description' => 'The ID of the traffic control task.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '1667369058068'], + ], + [ + 'name' => 'page', + 'in' => 'query', + 'schema' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '1'], + ], + [ + 'name' => 'size', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries to return on each page for a paged query. The maximum value is 500.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'title' => '', 'example' => '10'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', + 'description' => 'The returned parameters.', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], 'result' => [ - '$ref' => '#/components/schemas/Sample', + 'description' => 'The result.', + 'type' => 'object', + 'properties' => [ + 'totalCount' => ['description' => 'The total number of items.', 'type' => 'string', 'title' => '', 'example' => '1'], + 'validCount' => ['description' => 'The number of valid items.', 'type' => 'string', 'title' => '', 'example' => '1'], + 'detail' => [ + 'description' => 'The list of items.', + 'type' => 'array', + 'items' => [ + 'description' => 'The item information.', + 'type' => 'object', + 'properties' => [ + 'author' => ['description' => 'The author.', 'type' => 'string', 'title' => '', 'example' => 'zhangsan'], + 'duration' => ['description' => 'The duration.', 'type' => 'string', 'title' => '', 'example' => '18'], + 'itemId' => ['description' => 'The item ID.', 'type' => 'string', 'title' => '', 'example' => '123'], + 'itemType' => ['description' => 'The item type.', 'type' => 'string', 'title' => '', 'example' => 'video'], + 'expireTime' => ['description' => 'The expiration time.', 'type' => 'string', 'title' => '', 'example' => '1612687809'], + 'categoryPath' => ['description' => 'The category path.', 'type' => 'string', 'title' => '', 'example' => '12_34'], + 'pubTime' => ['description' => 'The publication time.', 'type' => 'string', 'title' => '', 'example' => '1661931487'], + 'lastModifyTime' => ['description' => 'The last modification time.', 'type' => 'string', 'title' => '', 'example' => '1662346558'], + 'channel' => ['description' => 'The channel.', 'type' => 'string', 'title' => '', 'example' => 'news'], + 'weight' => ['description' => 'The weight.', 'type' => 'string', 'title' => '', 'example' => '10'], + 'title' => ['description' => 'The title.', 'type' => 'string', 'title' => '', 'example' => 'test'], + 'status' => ['description' => 'The item status.', 'type' => 'string', 'title' => '', 'example' => '1'], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], ], - ], - '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' => 'GenerateSample', - ], - 'CreateCustomAnalysisTask' => [ - 'summary' => 'Creates a custom analysis task.', - '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' => 'create', - 'abilityTreeCode' => '36672', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], - ], - 'parameters' => [ - [ - 'name' => 'type', - 'in' => 'query', + 500 => [ 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'Code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'Message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'RequestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'ITEM_CUSTOM', + 'title' => '', + 'example' => '', ], ], - [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'description' => '16B78383-2803-4964-9605-37B30C073B0E', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - ], + ], + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ListFlowControlTaskItems', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFlowControlTaskItems'], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '16B78383-2803-4964-9605-37B30C073B0E', - ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '200', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'success', - ], - 'result' => [ - 'description' => '', - 'type' => 'object', - 'example' => '123', - ], + '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\\": \\"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' => 'CreateCustomAnalysisTask', + 'translator' => 'manual', ], - 'AttachIndexVersion' => [ - 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/index-versions/{versionId}/actions/attach', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListFlowControlTaskReference' => [ + 'summary' => 'Queries reference data for throttling.', + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/reference', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18662', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'operationType' => 'list', + 'abilityTreeCode' => '155137', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****', 'title' => ''], ], [ - 'name' => 'algorithmId', + 'name' => 'taskId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], - ], - [ - 'name' => 'versionId', - 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'v1', - ], + 'schema' => ['description' => 'The ID of the task.'."\n", 'type' => 'string', 'required' => false, 'example' => '1666670046687', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => 'The returned results.'."\n", 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'E63A27A4-3411-4910-B7D5-12EEAC19389B', + 'description' => 'The returned results.'."\n", + 'type' => 'object', + 'properties' => [ + 'last7PvPercent' => ['description' => 'The average exposure rate of the item pool in the last seven days.'."\n", 'type' => 'number', 'format' => 'double', 'example' => '0.1', 'title' => ''], + 'last7ScenePv' => ['description' => 'The average number of exposures for the items in the selected scene in the last seven days.'."\n", 'type' => 'number', 'format' => 'double', 'example' => '10', 'title' => ''], + 'last7TaskPv' => ['description' => 'The average number of exposures for the item pool in the selected scene in the last seven days.'."\n", 'type' => 'number', 'format' => 'double', 'example' => '10', 'title' => ''], + 'lastPvPercent' => ['description' => 'The exposure rate of the item pool yesterday.'."\n", 'type' => 'number', 'format' => 'double', 'example' => '0.1', 'title' => ''], + 'lastScenePv' => ['description' => 'The total number of exposures for the items in the selected scene yesterday.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '10', 'title' => ''], + 'lastTaskPv' => ['description' => 'The number of exposures for the item pool in the selected scene yesterday.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '10', 'title' => ''], + 'referenceId' => ['description' => 'The ID of the reference data.'."\n", 'type' => 'string', 'example' => '421351235918', 'title' => ''], + ], + 'title' => '', + 'example' => '', ], + 'requestId' => ['description' => 'The ID of the request. The value is unique for each request. This helps troubleshoot issues later.'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], - '5XX' => [ + 500 => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"E63A27A4-3411-4910-B7D5-12EEAC19389B\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => 'AttachIndexVersion', - 'summary' => 'Applies an index of a specified version to the online environment.', - ], - 'ModifyDataSource' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dataSources/{tableName}', - 'methods' => [ - 'put', + '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' => 'ListFlowControlTaskReference', + '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}'], + ], + ], + ], ], + ], + 'ListFlowControlTaskReports' => [ + 'summary' => 'Lists exposure reports for traffic control tasks.', + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/flowTaskReports', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18719', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'operationType' => 'list', + 'abilityTreeCode' => '155143', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'tableName', + 'name' => 'taskId', 'in' => 'path', - 'schema' => [ - 'description' => 'The name of the table.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'behavior', - ], + 'schema' => ['description' => 'The ID of the traffic control task.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '1666697299358'], + ], + [ + 'name' => 'startTime', + 'in' => 'query', + 'schema' => ['description' => 'The start timestamp for the query, in seconds. The format is YYYYMMDD. If you do not specify this parameter, data is queried from the task\'s start time to the previous day (t-1).', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '1666195200'], + ], + [ + 'name' => 'endTime', + 'in' => 'query', + 'schema' => ['description' => 'The end timestamp for the query, in seconds. The format is YYYYMMDD. The latest possible end time is the previous day (t-1).', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '1668268800'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '16B78383-2803-4964-9605-37B30C073B0E'], 'result' => [ - 'description' => 'The details about the data source.'."\n", + 'description' => 'The returned data.', 'type' => 'object', 'properties' => [ - 'gmtModified' => [ - 'description' => 'The time when the data source was last modified. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'gmtCreate' => [ - 'description' => 'The time when the data source was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'tableName' => [ - 'description' => 'The name of the table.'."\n", - 'type' => 'string', - 'example' => 'behavior', - ], - 'meta' => [ - 'description' => 'The parameters of the data source.'."\n", + 'total' => [ + 'description' => 'The metric statistics.', 'type' => 'object', 'properties' => [ - 'bucketName' => [ - 'description' => 'The name of the Object Storage Service (OSS) bucket.'."\n", - 'type' => 'string', - 'example' => 'airec', - ], - 'accessKeyId' => [ - 'description' => 'The AccessKey ID of the Alibaba Cloud account.'."\n", - 'type' => 'string', - 'example' => 'xxx', - ], - 'type' => [ - 'description' => 'The type of the data source. Only MaxCompute is supported.'."\n", - 'type' => 'string', - 'example' => 'ODPS', - ], - 'partition' => [ - 'description' => 'The partition in the MaxCompute table.'."\n", - 'type' => 'string', - 'example' => 'ds=20181122', - ], - 'timestamp' => [ - 'description' => 'The timestamp. The value must be accurate to the millisecond.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1544112000000', - ], - 'path' => [ - 'description' => 'The path of the OSS data source.'."\n", - 'type' => 'string', - 'example' => 'oss://xxx.xxx', - ], - 'tableName' => [ - 'description' => 'The name of the MaxCompute table.'."\n", - 'type' => 'string', - 'example' => 'test_maxcompute', - ], - 'projectName' => [ - 'description' => 'The name of the MaxCompute project.'."\n", - 'type' => 'string', - 'example' => 'openrec_gray', + 'accTaskCtr' => ['description' => 'The click-through rate (CTR) of the task.', 'type' => 'number', 'format' => 'double', 'title' => '', 'example' => '0.1'], + 'accTaskPv' => ['description' => 'The page views (PVs) of the task.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1000'], + 'accTotalCtr' => ['description' => 'The CTR of the scenario.', 'type' => 'number', 'format' => 'double', 'title' => '', 'example' => '0.2'], + 'InvalidPercent' => ['description' => 'The percentage of invalid items.', 'type' => 'number', 'format' => 'double', 'title' => '', 'example' => '0.3'], + ], + 'title' => '', + 'example' => '', + ], + 'metrics' => [ + 'description' => 'A list of metrics.', + 'type' => 'array', + 'items' => [ + 'description' => 'The details of the metric.', + 'type' => 'object', + 'properties' => [ + 'type' => ['description' => 'The type of the metric.', 'type' => 'string', 'title' => '', 'example' => 'taskPv'], + 'details' => [ + 'description' => 'A list of data points.', + 'type' => 'array', + 'items' => [ + 'description' => 'The metric.', + 'type' => 'object', + 'properties' => [ + 'val' => ['description' => 'The value of the metric.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '0'], + 'endTime' => ['description' => 'The end time of the metric. This is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1664035200'], + 'startTime' => ['description' => 'The start time of the metric. This is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1664000452'], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], ], + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], - ], - 'code' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], ], - '5XX' => [ + 500 => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ModifyDataSource', - 'summary' => 'Modifies the information of a single data source in a table of a specified instance.', - ], - 'ModifyFeatureTable' => [ - 'summary' => 'Modifies a feature table.', - 'path' => '/v2/openapi/instances/{instanceId}/feature-tables/{type}/{featureTableId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ListFlowControlTaskReports', + 'changeSet' => [], + 'translator' => 'manual', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListFlowControlTaskReports'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'airec:ListFlowControlTaskReports', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + ], + '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' => 'update', - 'abilityTreeCode' => '117111', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18704', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - ], - ], - [ - 'name' => 'type', - 'in' => 'path', - 'schema' => [ - 'title' => '特征表类型', - 'description' => 'PUT /v2/openapi/instances/{instanceId}/feature-tables/{type}/{featureTableId}'."\n" - ."\n\n" - .'{'."\n" - .' '."\n" - .' "metaType":"FeatureTable",'."\n" - .' "featureList":['."\n" - .' {'."\n" - .' "featureName":"fn11",'."\n" - .' "fieldName":"fieldName11",'."\n" - .' "comment":"com11"'."\n" - .' },'."\n" - .' {'."\n" - .' "featureName":"fn22",'."\n" - .' "fieldName":"fieldName22",'."\n" - .' "comment":"com2222"'."\n" - .' }'."\n" - .' ]'."\n" - .' }'."\n" - .'}', - 'type' => 'string', - 'required' => true, - 'example' => 'UserFeatureTable', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-test'], ], [ - 'name' => 'featureTableId', + 'name' => 'algorithmId', 'in' => 'path', - 'schema' => [ - 'title' => '特征表id', - 'description' => 'The type of the feature table.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => '123', - ], + 'schema' => ['description' => 'The specified table ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'abc'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'ModifyFeatureTable', + 'description' => 'The response body.', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => 'Modifies a feature table.', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], 'result' => [ - '$ref' => '#/components/schemas/FeatureTable', + 'description' => 'The recall table information.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'abc'], + 'switchedTime' => ['description' => 'The time when the index switch was completed. The time is in UTC.', 'type' => 'string', 'title' => '', 'example' => '2020-11-08T02:00:00Z'], + 'rollbackEnabled' => ['description' => 'Indicates whether the version can be rolled back.', 'type' => 'boolean', 'title' => '', 'example' => 'true'], + 'message' => ['description' => 'The error message.', 'type' => 'string', 'title' => '', 'example' => 'xxx'], + 'flowType' => ['description' => 'The task type. Valid values: Auto, Manual, and Rollback.', 'type' => 'string', 'title' => '', 'example' => 'Auto'], + 'costSeconds' => ['description' => 'The time it took to build the index, in seconds.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '600'], + 'builtTime' => ['description' => 'The time when the index build started. The time is in UTC.', 'type' => 'string', 'title' => '', 'example' => '2020-11-08T02:00:00Z'], + 'versionId' => ['description' => 'The version number of the index version. This is generated by the backend.', 'type' => 'string', 'title' => '', 'example' => '2020112301'], + 'size' => ['description' => 'The size of the index build.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '300922211'], + 'status' => ['description' => 'The status of the index version. Valid values include the following:'."\n" + ."\n" + .'- failed: The task failed or the index is invalid.'."\n" + ."\n" + .'- `online`: The index is in effect.'."\n" + ."\n" + .'- `offline`: The index is expired.'."\n" + ."\n" + .'Full task:'."\n" + ."\n" + .'- Pending'."\n" + ."\n" + .'- Success'."\n" + ."\n" + .'- Failed'."\n" + ."\n" + .'etc.', 'type' => 'string', 'title' => '', 'example' => 'abc'], + 'progress' => ['description' => 'The progress percentage. For example: 80.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '80'], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], + 'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], ], + 'title' => '', + 'example' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ModifyFeatureTable', - ], - 'ModifyItems' => [ - 'path' => '/v2/openapi/instances/{instanceId}/items', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ListIndexVersions', + 'summary' => 'Lists the index versions for a specified instance and recall table. This operation returns up to 10 entries, including three switchable versions. Pagination and filtering are not supported.', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + 'ListInstance' => [ + 'path' => '/v2/openapi/instances', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18722', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18705', + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ + 'name' => 'page', + 'in' => 'query', + 'schema' => ['description' => 'The page number. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'title' => '', 'example' => '1'], + ], + [ + 'name' => 'size', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries to return on each page. Default value: 10. Valid values: 1 to 50.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'title' => '', 'example' => '10'], + ], + [ + 'name' => 'status', + 'in' => 'query', + 'schema' => ['description' => 'The running status of the instances to filter.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **Initializing**: The instance is being initialized.'."\n" + ."\n" + .'- **Ready**: The instance is ready for data import.'."\n" + ."\n" + .'- **Running**: The instance is running.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'Running'], + ], + [ + 'name' => 'name', + 'in' => 'query', + 'schema' => ['description' => 'The name of the instances to filter. Fuzzy matching is supported.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '实例1'], + ], + [ + 'name' => 'expiredTime', + 'in' => 'query', + 'schema' => ['description' => 'A UNIX timestamp in seconds. Use this parameter to filter for instances that are about to expire. Specify a time that is later than the current time. Expired instances are not included in the results.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '1608533404'], + ], + [ 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'in' => 'query', + 'schema' => ['description' => 'The ID of the instances to filter. Fuzzy matching is supported.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'airec-cn-****'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', + 'description' => 'The parameters that are returned.', + 'type' => 'array', + 'items' => [ + 'description' => 'The returned parameters.', + 'type' => 'object', + 'properties' => [ + 'regionId' => ['description' => 'The region ID of the instance.', 'type' => 'string', 'title' => '', 'example' => 'cn-beijing'], + 'type' => ['description' => 'The type of the instance.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **Algorithm\\_configuration**: Algorithm Configuration Edition.'."\n" + ."\n" + .'- **Industry\\_operation**: Industry Operation Edition.'."\n" + ."\n" + .'- **Cold\\_start**: Cold Start Edition.', 'type' => 'string', 'title' => '', 'example' => 'Standard'], + 'lockMode' => ['description' => 'The lock status of the instance.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **Unlock**: Not locked.'."\n" + ."\n" + .'- **ManualLock**: Manually locked.'."\n" + ."\n" + .'- **LockByExpiration**: Locked due to an overdue payment.', 'type' => 'string', 'title' => '', 'example' => 'Unlock'], + 'expiredTime' => ['description' => 'The expiration time of the instance. The time is in UTC.', 'type' => 'string', 'title' => '', 'example' => '2019-01-06T16:00:00.000Z'], + 'status' => ['description' => 'The running status of the instance.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **Initializing**: The instance is being initialized.'."\n" + ."\n" + .'- **Ready**: The instance is ready for data import.'."\n" + ."\n" + .'- **Running**: The instance is running.', 'type' => 'string', 'title' => '', 'example' => 'Running'], + 'gmtCreate' => ['description' => 'The creation time of the instance. The time is in UTC.', 'type' => 'string', 'title' => '', 'example' => '2018-12-06T06:14:01.000Z'], + 'chargeType' => ['description' => 'The billing method of the instance.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **PREPAY**: Subscription.'."\n" + ."\n" + .'- **POSTPAY**: Pay-as-you-go.', 'type' => 'string', 'title' => '', 'example' => 'PrePaid'], + 'industry' => ['description' => 'The industry type of the instance.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **content**: Content-based.'."\n" + ."\n" + .'- **item**: E-commerce.'."\n" + ."\n" + .'- **news**: News.', 'type' => 'string', 'title' => '', 'example' => 'news'], + 'commodityCode' => ['description' => 'The commodity code for the Airec service.', 'type' => 'string', 'title' => '', 'example' => 'airecpre'], + 'gmtModified' => ['description' => 'The last update time of the instance. The time is in UTC.', 'type' => 'string', 'title' => '', 'example' => '2018-12-06T11:17:49.000Z'], + 'dataSetVersion' => ['description' => 'The dataset version used by the online service.', 'type' => 'string', 'title' => '', 'example' => '20181206170353'], + 'name' => ['description' => 'The name of the instance.', 'type' => 'string', 'title' => '', 'example' => '实例1'], + 'instanceId' => ['description' => 'The ID of the instance.', 'type' => 'string', 'title' => '', 'example' => 'airec-cn-****'], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], + 'code' => ['description' => 'The error code returned if the request fails.', 'type' => 'string', 'title' => '', 'example' => 'InternalServerError'], + 'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error message returned if the request fails.', 'type' => 'string', 'title' => '', 'example' => 'An internal server error occurred'], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\"\\n}","type":"json"}]', - 'title' => 'ModifyItems', - 'summary' => 'Performs a batch operation on an item pool.', - ], - 'ModifyOfflineStorages' => [ - 'summary' => 'Modifies the offline storage configurations of an instance. You need to modify three tables at the same time.', - 'path' => '/v2/openapi/instances/[instanceId]/offlineStorages', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ListInstance', + 'summary' => 'Queries the details of one or more instances.', + 'description' => 'This operation returns a list of instances sorted by creation time (GmtCreate) in descending order. The request parameters are used as filters and are combined with a logical AND. Empty parameters are not used for filtering.', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'translator' => 'manual', + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListInstance', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + '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' => 'update', - 'abilityTreeCode' => '20403', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18706', + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test-xxx', - 'title' => '实例id', - 'format' => 'byte', - ], + 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004', 'title' => ''], ], ], 'responses' => [ @@ -12824,71 +8748,126 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '7F176EE8-51DA-4B4D-8FFE-04448CD7A171', - 'title' => 'Id of the request', - 'format' => 'byte', - ], 'result' => [ - 'description' => 'The returned result.'."\n", - 'type' => 'boolean', - 'example' => 'true', - 'title' => '是否成功', + 'description' => 'The progress of the task that is running on the instance.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'subProgressInfos' => [ + 'description' => 'The information about the progress of subtasks.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'type' => ['description' => 'The type of subtasks.'."\n", 'type' => 'string', 'example' => 'DATA_PROCESS', 'title' => ''], + 'detail' => ['description' => 'The detailed description of subtasks.'."\n", 'type' => 'string', 'example' => 'data import progress info', 'title' => ''], + 'totalNum' => ['description' => 'The total number of subtasks.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '11', 'title' => ''], + 'finishedNum' => ['description' => 'The number of completed subtasks.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''], + 'progress' => ['description' => 'The progress of subtasks.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'totalProgress' => ['description' => 'The overall progress of the current task.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '50', 'title' => ''], + 'name' => ['description' => 'The name of the step. Example: DATA_IMPORT. The value indicates that data is being imported.'."\n", 'type' => 'string', 'example' => '启动任务', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], + 'code' => ['description' => 'The error code.'."\n", 'type' => 'string', 'example' => '200', 'title' => ''], + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'successful', 'title' => ''], ], - 'title' => 'Schema of Response', + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ModifyOfflineStorages', - ], - 'StopDataSet' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dataSets/{versionId}/actions/stop', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'ListInstanceTask', + 'summary' => 'Queries all asynchronous tasks of a specified instance by using the instance ID.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListInstanceTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'ListItems' => [ + 'path' => '/v2/openapi/instances/{instanceId}/items/actions/list', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '18740', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '18707', + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-test'], ], [ - 'name' => 'versionId', - 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '20181023214546', - ], + 'name' => 'strategyUsed', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'required' => false, 'description' => 'The default value is false. Set this parameter to true to use the logic for pinning items to the top or to a fixed position. If you set this parameter to true, you must also specify sceneId in the request body.', 'title' => '', 'example' => 'false'], + ], + [ + 'name' => 'withInvalidDetail', + 'in' => 'query', + 'schema' => ['type' => 'boolean', 'required' => false, 'description' => 'Specifies whether to include InvalidDetail in the response for pinning or fixed-position logic. This parameter is used for queries of the itemId:itemType type.', 'title' => '', 'example' => 'false'], + ], + [ + 'name' => 'page', + 'in' => 'query', + 'schema' => ['description' => 'The page number. The default value is 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'title' => '', 'example' => '1'], + ], + [ + 'name' => 'size', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries per page. The default value is 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '1000', 'minimum' => '1', 'title' => '', 'example' => '10'], ], ], 'responses' => [ @@ -12897,134 +8876,140 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '', + 'description' => 'The result of the request.', 'type' => 'object', 'properties' => [ - 'versionId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '20181023214546', - ], - 'state' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'Importing', - ], - 'gmtModified' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1544112000000', - ], - 'gmtCreate' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1544112000000', + 'total' => [ + 'description' => 'The statistics.', + 'type' => 'object', + 'properties' => [ + 'sceneWeightItem' => ['description' => 'The number of items weighted by scenario.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '10'], + 'totalCount' => ['description' => 'The total number of items.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '5000'], + 'queryCount' => ['description' => 'The number of items returned in the query.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '3000'], + 'sceneRecommendItem' => ['description' => 'The number of recommendable items in the scenario.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '200'], + 'weightItem' => ['description' => 'The number of weighted items.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '10'], + 'instanceRecommendItem' => ['description' => 'The number of recommendable items in the instance.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '200'], + ], + 'title' => '', + 'example' => '', ], - 'instanceId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'airec-cn-o400whm78004', + 'detail' => [ + 'description' => 'The details of the items.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'title' => ['description' => 'The title.', 'type' => 'string', 'title' => '', 'example' => 'test'], + 'categoryPath' => ['description' => 'The category path.', 'type' => 'string', 'title' => '', 'example' => '1_2'], + 'itemId' => ['description' => 'The item ID. This field corresponds to the itemId field in the data specification.', 'type' => 'string', 'title' => '', 'example' => '123'], + 'itemType' => ['description' => 'The item type. This field corresponds to the itemType field in the data specification.', 'type' => 'string', 'title' => '', 'example' => 'item'], + 'status' => ['description' => 'Indicates whether the item is recommendable.', 'type' => 'string', 'title' => '', 'example' => '1'], + 'brandId' => ['description' => 'The brand ID.', 'type' => 'string', 'title' => '', 'example' => '1'], + 'shopId' => ['description' => 'The shop ID.', 'type' => 'string', 'title' => '', 'example' => '1'], + 'pubTime' => ['description' => 'The publishing time.', 'type' => 'string', 'title' => '', 'example' => '1647998107012'], + 'channel' => ['description' => 'The channel.', 'type' => 'string', 'title' => '', 'example' => 'news'], + 'duration' => ['description' => 'The duration.', 'type' => 'string', 'title' => '', 'example' => '30'], + 'author' => ['description' => 'The author.', 'type' => 'string', 'title' => '', 'example' => 'abc'], + 'expireTime' => ['description' => 'The expiration time.', 'type' => 'string', 'title' => '', 'example' => '1647998107012'], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '6839AE7C-A984-48C1-AC17-331BAC6D97BC'], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'StopDataSet', - 'summary' => 'Stops a dataset of a specified version for a specified instance.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'DescribeCustomAnalysisTask' => [ - 'summary' => 'Queries the result of a custom analysis task for a specified instance. The result is displayed on the dashboard of the instance.', - 'path' => '/v2/openapi/instances/{instanceId}/dashboard/custom-analysis-tasks/{taskId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ListItems', + 'summary' => 'Lists the items in the item pool of an instance.', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + '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' => '36674', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeCode' => '18708', + 'abilityTreeNodes' => ['FEATUREairecY1ADIM'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'type', + 'name' => 'queryParams', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'ITEM_CUSTOM', - ], + 'schema' => ['description' => 'The query conditions. Format: key1:value1;key2:value. For example: requestId:xxxx;requestUri:xxx.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'key1:value1;key2:value'], ], [ - 'name' => 'taskId', - 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => '123', - ], + 'name' => 'startTime', + 'in' => 'query', + 'schema' => ['description' => 'The start time. This is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '2147483647', 'minimum' => '1565193600', 'title' => '', 'example' => '1586673466'], + ], + [ + 'name' => 'endTime', + 'in' => 'query', + 'schema' => ['description' => 'The end time. This is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'maximum' => '2147483647', 'minimum' => '1565193600', 'title' => '', 'example' => '1678155766'], + ], + [ + 'name' => 'page', + 'in' => 'query', + 'schema' => ['description' => 'The page number. The default value is 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'title' => '', 'example' => '1'], + ], + [ + 'name' => 'size', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries to return on each page. The default value is 10. The valid range is 1 to 50.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '1000', 'minimum' => '1', 'title' => '', 'example' => '20'], ], ], 'responses' => [ @@ -13032,44 +9017,69 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '16B78383-2803-4964-9605-37B30C073B0E', - 'title' => 'Id of the request', - ], 'result' => [ - 'description' => '', - 'type' => 'object', - 'example' => 'xxx', - ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'xxx', + 'description' => 'The query results.', + 'type' => 'array', + 'items' => ['description' => 'The query results.', 'type' => 'object', 'example' => '', 'title' => ''], + 'title' => '', + 'example' => '', ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'xxx', + 'headers' => [ + 'description' => 'The header information.', + 'type' => 'object', + 'properties' => [ + 'X-Total-Count' => ['description' => 'The total number of results.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '12'], + ], + 'title' => '', + 'example' => '', ], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => '200'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'success'], ], - 'title' => 'Schema of Response', + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"code\\": \\"\\",\\n \\"message\\": \\"\\"\\n}","type":"json"}]', - 'title' => 'DescribeCustomAnalysisTask', - ], - 'DescribeDefaultAlgorithms' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/default-algorithms', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'ListLogs', + 'summary' => 'Queries the logs of a specified instance from the last seven days.', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + 'ListMixCategories' => [ + 'path' => '/v2/openapi/configurations/mixCategories', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -13079,35 +9089,10 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18678', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], - ], - 'parameters' => [ - [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-xxxxxx', - ], - ], - [ - 'name' => 'sceneId', - 'in' => 'path', - 'schema' => [ - 'description' => 'The scene ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], - ], + 'abilityTreeCode' => '18709', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], + 'parameters' => [], 'responses' => [ 200 => [ 'schema' => [ @@ -13117,292 +9102,175 @@ 'description' => 'The returned result.'."\n", 'type' => 'array', 'items' => [ - 'description' => 'The information about the array object.'."\n", + 'description' => 'The query result.'."\n", 'type' => 'object', 'properties' => [ - 'key' => [ - 'description' => 'The algorithm key. Valid values: i2i: the I2I filtering algorithm. u2x2i: the U2X2I filtering algorithm. hot: the filtering algorithm for popular items. new: the filtering algorithm for new items. embedding: the vector filtering algorithm. mtorder: the priority of the filtering algorithm. rankservice: the ranking service.'."\n", - 'type' => 'string', - 'example' => 'I2I', - ], - 'config' => [ - 'description' => 'The information about the child configuration item.'."\n", + 'categories' => [ + 'description' => 'The content type.'."\n", 'type' => 'array', - 'items' => [ - 'description' => 'The information about the array object.'."\n", - 'type' => 'object', - 'properties' => [ - 'key' => [ - 'description' => 'The key of the algorithm configuration item.'."\n", - 'type' => 'string', - 'example' => 'I2I-truncedquantity', - ], - 'defaultValue' => [ - 'description' => 'The default value of the algorithm configuration item.'."\n", - 'type' => 'string', - 'example' => 'swing;commoni2i;pcategory;scategory', - ], - 'experimentValue' => [ - 'description' => 'The custom value of the algorithm configuration item.'."\n", - 'type' => 'string', - 'example' => '300', - ], - 'name' => [ - 'description' => 'The name of the algorithm configuration item. (Note: If you use the default algorithm, the console obtains the algorithm name from Medusa. If you customize an algorithm for the experiment, the algorithm name is directly returned.)'."\n", - 'type' => 'string', - 'example' => '', - ], - ], - ], - ], - 'defaultValue' => [ - 'description' => 'The default value of the algorithm. If you set key to i2i, hot, or new, the value of this parameter is true or false. If you set key to mtorder, the value of this parameter is a list of filtering algorithms ranked by priority.'."\n", - 'type' => 'string', - 'example' => 'true', - ], - 'type' => [ - 'description' => 'The algorithm type. Valid values: SYSTEM and CUSTOM.'."\n", - 'type' => 'string', - 'example' => 'SYSTEM', - ], - 'experimentValue' => [ - 'description' => 'The custom value of the algorithm.'."\n", - 'type' => 'string', - 'example' => '300', - ], - 'hasConfig' => [ - 'description' => 'Indicates whether child configuration items exist. Valid values: true and false.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'category' => [ - 'description' => 'The algorithm category. Valid values: RECALL and RANK.'."\n", - 'type' => 'string', - 'example' => 'RECALL', - ], - 'name' => [ - 'description' => 'The algorithm name. (Note: If you use the default algorithm, the console obtains the algorithm name from Medusa. If you customize an algorithm for the experiment, the algorithm name is directly returned.)'."\n", - 'type' => 'string', - 'example' => 'xxx', + 'items' => ['description' => 'The content type.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => 'aaaa', 'title' => ''], + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => 'F60021C4-57AF-5F46-9B3E-FCEF1C7A1459', - ], + 'code' => ['description' => 'The HTTP status code.'."\n", 'type' => 'string', 'example' => '200', 'title' => ''], + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'ED093A1D-1C56-57A2-B078-3C518F632F03', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'Success', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'DescribeDefaultAlgorithms', - 'summary' => 'Queries the information of default algorithms.', - ], - 'DescribeLatestTask' => [ - 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/tasks/latest', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'Queries the content types supported in the diversity rule configurations of an instance.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListMixCategories', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + ], + 'ListOfflineStorages' => [ + 'summary' => 'Queries a list of offline storages.', + 'path' => '/v2/openapi/instances/[instanceId]/offlineStorages', + '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' => '20401', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], - ], - [ - 'name' => 'algorithmId', - 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'format' => 'byte', 'required' => true, 'example' => 'airec-cn-xxx'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', + 'title' => '', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ + 'requestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'format' => 'byte', 'example' => '6839AE7C-A984-48C1-AC17-331BAC6D97BC'], 'result' => [ - 'description' => '', + 'title' => '', + 'description' => 'The list of results.', 'type' => 'array', 'items' => [ - 'description' => '', 'type' => 'object', 'properties' => [ - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '400', - ], - 'switchedTime' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2020-11-08T02:00:00Z', - ], - 'rollbackEnabled' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'xxx', - ], - 'flowType' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'Manual', - ], - 'costSeconds' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '50', - ], - 'builtTime' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2020-11-08T02:00:00Z', - ], - 'versionId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '20102010211', - ], - 'size' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2938475566', - ], - 'status' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'pending', - ], - 'progress' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '80', - ], + 'tableName' => ['title' => '', 'description' => 'The name of the table.', 'type' => 'string', 'format' => 'byte', 'example' => 'item'], + 'meta' => ['title' => '', 'description' => 'The metadata.', 'type' => 'object', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', + 'example' => '', ], ], + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + ], + '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' => 'ListOfflineStorages', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListOfflineStorages'], + ], + ], + '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 \\"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' => 'DescribeLatestTask', - 'summary' => 'Queries the latest task that you create.', + 'translator' => 'manual', ], - 'DescribeQuota' => [ - 'path' => '/v2/openapi/instances/{instanceId}/quota', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListRankingModelTemplates' => [ + 'summary' => 'Returns a list of sorting model templates in descending order by creation time.', + 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-templates', + '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' => '117146', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'airec-cn-****'], + ], + [ + 'name' => 'page', + 'in' => 'query', + 'schema' => ['description' => 'The page number. The default is 1.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'title' => '', 'example' => '1'], + ], + [ + 'name' => 'size', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries per page. The default is 10. The valid range is 1 to 50.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'title' => '', 'example' => '10'], ], ], 'responses' => [ @@ -13410,204 +9278,135 @@ 'schema' => [ 'type' => 'object', 'properties' => [ + 'requestId' => ['type' => 'string', 'title' => '', 'description' => 'The request ID.', 'example' => 'F1C976E0-FCD2-52E8-9244-179C9C095C29'], 'result' => [ - 'description' => 'The quotas of the instance.'."\n", - 'type' => 'object', - 'properties' => [ - 'itemCountUsed' => [ - 'description' => 'The number of items that are used in the item table.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '100', - ], - 'itemCount' => [ - 'description' => 'The number of documents in the item table. Valid values:'."\n" - ."\n" - .'1000000 to 10000000.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1000000', - ], - 'userCount' => [ - 'description' => 'The number of documents in the user table. Valid values:'."\n" - ."\n" - .'1000000 to 10000000.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1000000', - ], - 'userCountUsed' => [ - 'description' => 'The number of users that are used in the user table.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '100', - ], - 'qps' => [ - 'description' => 'The queries per second (QPS). Valid values:'."\n" - ."\n" - .'10 to 500.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'currentQps' => [ - 'description' => 'The current QPS.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '8', - ], - ], - ], - 'code' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', + 'type' => 'array', + 'items' => ['$ref' => '#/components/schemas/RankingModelTemplate', 'description' => 'The sorting model.', 'title' => '', 'example' => ''], + 'title' => '', + 'description' => 'The returned parameters.', + 'example' => '', ], ], + 'title' => '', + 'description' => 'The returned parameters.', + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + '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' => 'ListRankingModelTemplates', + 'changeSet' => [], + 'translator' => 'manual', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListRankingModelTemplates'], + ], + ], + '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 \\"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' => 'DescribeQuota', - 'summary' => 'Queries the quotas of an instance based on a specified instance ID.', ], - 'DescribeRegions' => [ - 'path' => '/v2/openapi/configurations/regions', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListRankingModelVersions' => [ + 'summary' => 'Queries a list of versions for a ranking model.', + 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-versions', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18686', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - 'FEATUREairec5G3YBA', - ], + 'abilityTreeCode' => '117151', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ - 'name' => 'acceptLanguage', + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['title' => '', 'description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'example' => 'airec-cn-****'], + ], + [ + 'name' => 'templateId', 'in' => 'query', - 'schema' => [ - 'description' => 'The language of the response. Default value: zh-cn.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'zh-cn', - ], + 'schema' => ['title' => '', 'description' => 'The ranking model ID.'."\n", 'type' => 'string', 'required' => true, 'example' => '1'], + ], + [ + 'name' => 'page', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The number of the page to return.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'size', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The number of entries to return on each page.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'], + ], + [ + 'name' => 'status', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The state of the version. Valid values: DRAFT: The version is in the draft state. EFFECTIVE: The version is effective. PUBLISHING: The version is being published. INEFFECTIVE: The version has expired. FAILED: The version has not taken effect.'."\n", 'type' => 'string', 'required' => false, 'example' => 'TRAINING'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => '', + 'description' => 'The response schema.'."\n", 'type' => 'object', 'properties' => [ + 'requestId' => ['title' => '', 'description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], 'result' => [ + 'title' => '', 'description' => 'The returned result.'."\n", 'type' => 'array', - 'items' => [ - 'description' => 'The information about the array object.'."\n", - 'type' => 'object', - 'properties' => [ - 'regionId' => [ - 'description' => 'The region ID of the instance.'."\n", - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'endpoint' => [ - 'description' => 'The endpoint.'."\n", - 'type' => 'string', - 'example' => '47.109.94.218', - ], - 'status' => [ - 'description' => 'The instance state. Valid values: NotOpen, Processing, and Running.'."\n", - 'type' => 'string', - 'example' => 'Running', - ], - 'localName' => [ - 'description' => 'The region name.'."\n", - 'type' => 'string', - 'example' => 'xxx', - ], - 'consoleUrl' => [ - 'description' => 'The console URL.'."\n", - 'type' => 'string', - 'example' => 'xxx', - ], - ], - ], - ], - 'code' => [ - 'description' => 'The HTTP status code.'."\n", - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '16B78383-2803-4964-9605-37B30C073B0E', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'successful', + 'items' => ['description' => 'The version of the ranking model.'."\n", '$ref' => '#/components/schemas/RankingModelVersion', 'title' => '', 'example' => ''], + 'example' => '', ], ], + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + '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' => 'ListRankingModelVersions', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListRankingModelVersions'], + ], + ], + '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' => '[{"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' => 'DescribeRegions', - 'summary' => 'Queries available Alibaba Cloud regions.', ], - 'DescribeSceneBucket' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiment-bucket', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListRankingModels' => [ + 'path' => '/v2/openapi/instances/{instanceId}/ranking-models', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -13617,33 +9416,29 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18689', - 'abilityTreeNodes' => [ - 'FEATUREairec4DBEUA', - ], + 'abilityTreeCode' => '18710', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-test001'], ], [ - 'name' => 'sceneId', - 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'name' => 'rankingModelId', + 'in' => 'query', + 'schema' => ['description' => 'The model ID.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'xxx'], + ], + [ + 'name' => 'page', + 'in' => 'query', + 'schema' => ['description' => 'The page number. The default value is 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'title' => '', 'example' => '1'], + ], + [ + 'name' => 'size', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries to return on each page. The default value is 10. The value must be in the range of \\[1, 50].', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'title' => '', 'example' => '10'], ], ], 'responses' => [ @@ -13652,438 +9447,351 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'num' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'inUse' => [ - 'description' => '', - 'type' => 'string', - 'example' => '1', - ], - 'detail' => [ - 'description' => '', - 'type' => 'object', - 'example' => 'xxx', + 'description' => 'The returned results.', + 'type' => 'array', + 'items' => [ + 'description' => 'The details of the results.', + 'type' => 'object', + 'properties' => [ + 'rankingModelId' => ['description' => 'The model ID.', 'type' => 'string', 'title' => '', 'example' => '123'], + 'gmtModified' => ['description' => 'The time when the model was last modified.', 'type' => 'string', 'title' => '', 'example' => '2020-11-11T09:47:43.000Z'], + 'gmtCreate' => ['description' => 'The time when the model was created.', 'type' => 'string', 'title' => '', 'example' => '2020-04-27T06:38:28.000Z'], + 'meta' => ['description' => 'The metadata.', 'type' => 'object', 'example' => '', 'title' => ''], ], + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B', - ], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => '200'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '2D898E45-B97A-4245-B590-6D0AFEAF626B'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'success'], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'Queries the distribution of traffic buckets in a scene.', - ], - 'DescribeSceneThroughput' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/throughput', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'ListRankingModels', + 'summary' => 'Retrieves a list of models.', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + 'ListRankingSystemHistories' => [ + 'summary' => 'Queries operation records for a ranking service.', + 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems/{name}/histories', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18690', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeCode' => '117159', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'DescribeSceneThroughput', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['title' => '', 'description' => 'The name of the ranking service.'."\n", 'type' => 'string', 'required' => true, 'example' => 'airec-test'], ], [ - 'name' => 'sceneId', + 'name' => 'name', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'testid', - ], + 'schema' => ['title' => '', 'description' => 'The type of the operation. Valid values: CONF_CHANGE: configuration changes. DEPLOY_CHANGE: changes in deployment methods.'."\n", 'type' => 'string', 'required' => true, 'example' => 'service-a'], + ], + [ + 'name' => 'operateType', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The number of the page to return.'."\n", 'type' => 'string', 'required' => false, 'example' => 'CONF_CHANGE'], + ], + [ + 'name' => 'page', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The number of entries to return on each page.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'size', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The schema of the response parameters.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => '', + 'description' => 'The ID of the request.'."\n", 'type' => 'object', 'properties' => [ + 'requestId' => ['title' => '', 'description' => 'The returned result.'."\n", 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], 'result' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'pvCount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '', - ], - ], - ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'An internal server error occurred', + 'title' => '', + 'description' => 'The response body.'."\n", + 'type' => 'array', + 'items' => ['description' => '__null__', '$ref' => '#/components/schemas/RankingSystemHistory', 'title' => '', 'example' => ''], + 'example' => '', ], ], + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + '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' => 'ListRankingSystemHistories', + 'changeSet' => [], + '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' => '[{"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' => 'DescribeSceneThroughput', - 'summary' => 'Queries traffic data in a specified scene.', - 'description' => '__null__', - ], - 'DescribeSyncReportDetail' => [ - 'path' => '/v2/openapi/instances/{instanceId}/sync-reports/detail', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListRankingSystemHistories'], + ], ], + ], + 'ListRankingSystems' => [ + 'summary' => 'Queries a list of ranking services.', + 'path' => '/v2/openapi/instances/{instanceId}/ranking-systems', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18691', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeCode' => '117169', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['title' => '', 'description' => 'Queries the list of ranking services.'."\n", 'type' => 'string', 'required' => false, 'example' => 'airec-test'], ], [ - 'name' => 'startTime', + 'name' => 'name', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], + 'schema' => ['title' => '', 'description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => false, 'example' => 'service-a'], ], [ - 'name' => 'endTime', + 'name' => 'deployStatus', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], + 'schema' => ['title' => '', 'description' => 'The name of the ranking service.'."\n", 'type' => 'string', 'required' => false, 'example' => 'NOT_DEPLOYED'], ], [ - 'name' => 'type', + 'name' => 'page', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'behavior', - ], + 'schema' => ['title' => '', 'description' => 'The state of the deployment. Valid values: NOT_DEPLOYED: The ranking service is not deployed. DEPLOY_SUCCESS: The ranking service is deployed.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], ], [ - 'name' => 'levelType', + 'name' => 'size', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'error', - ], + 'schema' => ['title' => '', 'description' => 'The number of the page to return.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => '', + 'description' => 'The number of entries to return on each page.'."\n", 'type' => 'object', 'properties' => [ + 'requestId' => ['title' => '', 'description' => 'The schema of the response parameters.'."\n", 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], 'result' => [ - 'description' => '', + 'title' => '', + 'description' => 'The ID of the request.'."\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' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1586673466', - ], - 'endTime' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1586673466', - ], - ], - ], - ], - 'sampleDisplay' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - 'type' => [ - 'description' => '', - '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', - ], - ], - ], - ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'An internal server error occurred', + 'items' => ['description' => 'The returned result.'."\n", '$ref' => '#/components/schemas/RankingSystem', 'title' => '', 'example' => ''], + 'example' => '', ], ], + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + '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' => 'ListRankingSystems', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListRankingSystems'], + ], + ], + '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 \\"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' => 'DescribeSyncReportDetail', - 'summary' => 'Queries the details of real-time data in an hourly report.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', ], - 'DescribeSyncReportOutliers' => [ - 'path' => '/v2/openapi/instances/{instanceId}/sync-reports/outliers', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListRuleConditions' => [ + 'path' => '/v2/openapi/instances/{instanceId}/rule-conditions', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', + 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18692', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeCode' => '18711', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', + 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'result' => [ + 'description' => 'The returned results.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'selectType' => ['description' => 'The type of the filtering condition for the item selection rule.'."\n", 'type' => 'string', 'example' => 'QUERY_ITEM_TYPE', 'title' => ''], + 'selectValue' => ['description' => 'The specific value of the filtering condition for the item selection rule.'."\n", 'type' => 'string', 'example' => '[\\"image\\",\\"article\\",\\"video\\",\\"shortvideo\\",\\"item\\",\\"recipe\\",\\"audio\\"]', 'title' => ''], + 'selectionOperation' => ['description' => 'The operation on the filtering condition for the item selection rule.'."\n", 'type' => 'string', 'example' => 'QUERY_VALUE_IN', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'code' => ['description' => 'The error code.'."\n", 'type' => 'string', 'example' => '200', 'title' => ''], + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''], + ], 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, + 'title' => '', 'example' => '', ], ], - [ - 'name' => 'startTime', - 'in' => 'query', + '5XX' => [ 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', + 'title' => '', + 'example' => '', ], ], - [ - 'name' => 'key', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', + ], + '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' => 'ListRuleConditions', + 'summary' => 'Queries item selection rules of an instance.', + '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}'], + ], ], ], + ], + ], + 'ListRuleTasks' => [ + 'path' => '/v2/openapi/instances/{instanceId}/rule-tasks', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'type', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], + 'AK' => [], ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '18713', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], + ], + 'parameters' => [ [ - 'name' => 'endTime', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the scene.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004', 'title' => ''], ], [ - 'name' => 'levelType', + 'name' => 'sceneId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], + 'schema' => ['description' => 'The completion rate of the task.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'testid', 'title' => ''], ], ], 'responses' => [ @@ -14092,52 +9800,61 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '', + 'description' => 'The error message.'."\n", 'type' => 'object', + 'properties' => [ + 'finishTime' => ['description' => 'The ID of the request.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1588240081', 'title' => ''], + 'finishRate' => ['description' => 'The ID of the instance.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '50', 'title' => ''], + ], + 'title' => '', 'example' => '', ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], + 'code' => ['description' => 'Queries the status of a rule-specific task.'."\n", 'type' => 'string', 'example' => 'InternalServerError', 'title' => ''], + 'requestId' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], + 'message' => ['description' => 'The ID of the scene.'."\n", 'type' => 'string', 'example' => 'An internal server error occurred', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'DescribeSyncReportOutliers', - 'summary' => 'Queries the details of abnormal data in a real-time data report.', - ], - 'DescribeUserMetrics' => [ - 'path' => '/v2/openapi/instances/{instanceId}/metrics', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'ListRuleTasks', + 'summary' => 'Queries the status of a rule-specific task.', + '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}'], + ], + ], + ], ], + ], + 'ListRules' => [ + 'path' => '/v2/openapi/instances/{instanceId}/rules', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -14147,61 +9864,59 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18693', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeCode' => '18712', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ - 'name' => 'startTime', + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-o400whm78004'], + ], + [ + 'name' => 'sceneId', 'in' => 'query', - 'schema' => [ - 'description' => 'The start time. The value is a timestamp in seconds.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1567152000', - ], + 'schema' => ['description' => 'The ID of the scenario to which the rule belongs. Enter **global** to modify a global rule.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'scenetest'], ], [ - 'name' => 'endTime', + 'name' => 'ruleType', 'in' => 'query', - 'schema' => [ - 'description' => 'The end time. The value is a timestamp in seconds.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1567155600', - ], + 'schema' => ['description' => '**selection:** Product selection rule.'."\n" + ."\n" + .'operation: Operational rule.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'selection'], ], [ - 'name' => 'metricType', + 'name' => 'status', 'in' => 'query', - 'schema' => [ - 'description' => 'The type of the user metric that you want to query. Valid values: pvCtr and uvCtr.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'pvCtr', - ], + 'schema' => ['description' => '**DRAFT:** Draft'."\n" + ."\n" + .'**EFFECTIVE:** Effective'."\n" + ."\n" + .'PUBLISHING: Publishing'."\n" + ."\n" + .'**INEFFECTIVE:** Invalid'."\n" + ."\n" + .'FAILED: Failed', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'EFFECTIVE'], ], [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'name' => 'page', + 'in' => 'query', + 'schema' => ['description' => 'The page number. The default value is 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => false, 'maximum' => '2147483647', 'minimum' => '1', 'title' => '', 'example' => '1'], + ], + [ + 'name' => 'size', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries per page. The default value is 10. The value must be in the range of 1 to 50.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'title' => '', 'example' => '10'], + ], + [ + 'name' => 'startTime', + 'in' => 'query', + 'schema' => ['description' => 'The start time. This is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'maximum' => '4102444800', 'minimum' => '1546300800', 'title' => '', 'example' => '1567584765'], + ], + [ + 'name' => 'endTime', + 'in' => 'query', + 'schema' => ['description' => 'The end time. This is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'maximum' => '4102416000', 'minimum' => '1565193600', 'title' => '', 'example' => '1567584765'], ], ], 'responses' => [ @@ -14210,360 +9925,231 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => 'The returned results.'."\n", + 'description' => 'The details of the result.', 'type' => 'array', 'items' => [ - 'description' => '', 'type' => 'object', 'properties' => [ - 'sceneId' => [ - 'description' => 'The scene ID.'."\n", - 'type' => 'string', - 'example' => 'all', - ], - 'dataPoints' => [ - 'description' => 'The returned metrics.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'val' => [ - 'description' => 'The value of the corresponding metric.'."\n", - 'type' => 'number', - 'format' => 'float', - 'example' => '84.6', - ], - 'startTime' => [ - 'description' => 'The start time. The value is a timestamp in seconds.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1567152000', - ], - 'endTime' => [ - 'description' => 'The end time. The value is a timestamp in seconds.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1567152000', - ], - ], - ], - ], + 'ruleId' => ['description' => 'The rule ID.', 'type' => 'string', 'title' => '', 'example' => '98493A14-D619-4E88-9F8D-108939817F9F'], + 'gmtModified' => ['description' => 'The time when the rule was last modified.', 'type' => 'string', 'title' => '', 'example' => '2020-04-27T06:38:28.000Z'], + 'status' => ['description' => '**DRAFT:** Draft'."\n" + ."\n" + .'**EFFECTIVE:** Effective'."\n" + ."\n" + .'PUBLISHING: Publishing'."\n" + ."\n" + .'**INEFFECTIVE:** Invalid'."\n" + ."\n" + .'FAILED: Failed', 'type' => 'string', 'title' => '', 'example' => 'draft'], + 'gmtCreate' => ['description' => 'The time when the rule was created.', 'type' => 'string', 'title' => '', 'example' => '2020-04-27T06:38:28.000Z'], ], + 'description' => 'The details of the result.', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'InternalServerError'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'An internal server error occurred'], ], + 'description' => 'The details of the result.', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ListRules', + 'summary' => 'Queries a list of rules.', + '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' => '[{"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' => 'DescribeUserMetrics', - 'summary' => 'Queries user metrics related to the conversion rate.', + 'translator' => 'manual', ], - 'GetExtraDataSource' => [ - 'summary' => 'Queries the details of other data sources.', - 'path' => '/v2/openapi/instances/{instanceId}/extra-data-sources/{type}/{dataSourceId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListSampleFormatConfigs' => [ + 'summary' => 'Retrieves a list of sample format configurations.', + 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}/format-configs', + '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' => '117108', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'abilityTreeCode' => '117133', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - 'title' => 'A short description of struct', - ], + 'schema' => ['description' => 'The ID of the instance.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'airec-test'], ], [ - 'name' => 'type', + 'name' => 'sampleId', 'in' => 'path', - 'schema' => [ - 'description' => 'The type of the data source. Valid values: UserCustomDataSource, ItemCustomDataSource, BehaviorCustomDataSource, and SampleCustomDataSource.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'UserCustomDataSource', - 'title' => '数据源类型', - ], - ], - [ - 'name' => 'dataSourceId', - 'in' => 'path', - 'schema' => [ - 'description' => 'The data source ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => '123', - 'title' => '数据源id', - ], + 'schema' => ['description' => 'The ID of the sample.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => '123'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], - 'result' => [ - '$ref' => '#/components/schemas/ExtraDataSource', - ], + 'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => 'EDF43C1F-99E4-431F-A7C0-8B260A5A792E'], + 'result' => ['description' => 'The list of format configurations.', 'type' => 'object', 'title' => '', 'example' => 'xxx'], ], + 'title' => '', + 'description' => '', + 'example' => '', ], ], ], - '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' => 'GetExtraDataSource', - 'extraInfo' => ' ', - ], - 'ListDashboardDetails' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dashboard/details', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"EDF43C1F-99E4-431F-A7C0-8B260A5A792E\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","type":"json"}]', + 'title' => 'ListSampleFormatConfigs', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + 'ListSamples' => [ + 'summary' => 'Retrieves a list of samples.', + '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' => '18696', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeCode' => '117124', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - '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' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'Alibaba', - ], - ], - [ - 'name' => 'sceneIds', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-shdjkgkeog'], ], [ - 'name' => 'metricType', + 'name' => 'sampleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'xxx', - ], + 'schema' => ['title' => '', 'description' => 'The sample ID.', 'type' => 'string', 'required' => false, 'example' => 'Sample1'], ], [ - 'name' => 'experimentIds', + 'name' => 'page', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'all', - ], + 'schema' => ['title' => '', 'description' => 'The page number.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], ], [ - 'name' => 'matchTypes', + 'name' => 'size', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'hot,emb,u2x2i,hilp,new,', - ], + 'schema' => ['title' => '', 'description' => 'The page size.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => '', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ + 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], 'result' => [ - 'description' => '', + 'title' => '', + 'description' => 'The list of samples.', 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'traceId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'Alibaba', - ], - 'sceneId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'test', - ], - 'metricRes' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'total' => [ - 'description' => '', - 'type' => 'object', - 'example' => 'xxx', - ], - 'detail' => [ - 'description' => '', - 'type' => 'object', - 'example' => 'xxx', - ], - ], - ], - ], - ], - ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'An internal server error occurred', + 'items' => ['description' => 'The result details.', '$ref' => '#/components/schemas/Sample', 'title' => '', 'example' => ''], + 'example' => 'result', ], ], + 'example' => '', ], ], - '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' => 'Queries the metric details of a specified instance based on specified conditions.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ListDashboardDetailsFlows' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dashboard/details/flows', - 'methods' => [ - 'get', ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ListSamples', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + 'ListSceneItems' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/items', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -14573,93 +10159,53 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18697', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeCode' => '18714', + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => 'The ID of the instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'startTime', + 'name' => 'sceneId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the scene.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'testid'], + ], + [ + 'name' => 'operationRuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1588521600', - ], + 'schema' => ['description' => 'The ID of the operation rule.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '1'], ], [ - 'name' => 'endTime', + 'name' => 'selectionRuleId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1588521600', - ], + 'schema' => ['description' => 'The ID of the selection rule.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '1'], ], [ - 'name' => 'traceIds', + 'name' => 'page', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'Alibaba', - ], + 'schema' => ['description' => 'The page number. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'title' => '', 'example' => '1'], ], [ - 'name' => 'sceneIds', + 'name' => 'size', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'test', - ], + 'schema' => ['description' => 'The number of entries per page. Default value: 10. Valid values: 1 to 50.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '128', 'minimum' => '0', 'title' => '', 'example' => '10'], ], [ - 'name' => 'metricType', + 'name' => 'previewType', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'USERACTIONUV_COUNT', - ], + 'schema' => ['description' => 'The preview type. Valid values:'."\n" + ."\n" + .'PREVIEW\\_ITEM Preview the results of a single product selection rule'."\n" + ."\n" + .'PREVIEW\\_QUERY Previews the overall configuration results.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'PREVIEW_ITEM'], ], [ - 'name' => 'experimentIds', + 'name' => 'queryCount', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'all', - ], + 'schema' => ['description' => 'The number of queries.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'title' => '', 'example' => '20'], ], ], 'responses' => [ @@ -14668,85 +10214,103 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '', + 'description' => 'The details of the result.', 'type' => 'object', 'properties' => [ - 'metricType' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'USERACTIONUV_COUNT', + 'total' => [ + 'description' => 'The statistics.', + 'type' => 'object', + 'properties' => [ + 'totalCount' => ['description' => 'The total number of items in the instance.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1000'], + 'sceneWeightItem' => ['description' => 'The number of weighted items in the current scene.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1000'], + 'sceneRecommendItem' => ['description' => 'The number of recommendable items in the current scene.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1000'], + 'weightItem' => ['description' => 'The number of weighted items in the instance.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1000'], + 'instanceRecommendItem' => ['description' => 'The number of recommendable items in the instance.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1000'], + ], + 'title' => '', + 'example' => '', ], - 'metricData' => [ - 'description' => '', + 'detail' => [ + 'description' => 'The details.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'traceId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'Alibaba', - ], - 'sceneId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'test', - ], - 'metricRes' => [ - 'description' => '', - 'type' => 'object', - 'example' => 'xxx', - ], + 'title' => ['description' => 'The title.', 'type' => 'string', 'title' => '', 'example' => 'title'], + 'categoryPath' => ['description' => 'The category path.', 'type' => 'string', 'title' => '', 'example' => '12_34'], + 'itemId' => ['description' => 'The item ID.', 'type' => 'string', 'title' => '', 'example' => '123'], + 'itemType' => ['description' => 'The item type.', 'type' => 'string', 'title' => '', 'example' => 'video'], + 'status' => ['description' => 'Indicates whether the item is recommendable. Valid values: 1 (recommendable) and 0 (not recommendable).', 'type' => 'string', 'title' => '', 'example' => '1'], + 'brandId' => ['description' => 'The brand ID.', 'type' => 'string', 'title' => '', 'example' => '123'], + 'shopId' => ['description' => 'The shop ID.', 'type' => 'string', 'title' => '', 'example' => '123'], + 'pubTime' => ['description' => 'The time when the item was published.', 'type' => 'string', 'title' => '', 'example' => '1612687809'], + 'channel' => ['description' => 'The channel.', 'type' => 'string', 'title' => '', 'example' => '娱乐'], + 'duration' => ['description' => 'The duration of stay.', 'type' => 'string', 'title' => '', 'example' => '300'], + 'author' => ['description' => 'The author.', 'type' => 'string', 'title' => '', 'example' => 'zhangsan'], + 'expireTime' => ['description' => 'The expiration time.', 'type' => 'string', 'title' => '', 'example' => '1612687809'], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'InternalServerError'], + 'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'An internal server error occurred'], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'RequestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListDashboardDetailsFlows', - 'summary' => 'Queries the details of traffic metrics of a specified instance based on specified conditions.', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ListSceneItems', + 'summary' => 'Retrieves preview results.', + 'description' => 'To use the scene management feature, use the console instead of calling this API operation. For more information, see <props="china">[Use a delivery policy to quickly build a recommendation scenario](https://help.aliyun.com/document_detail/171790.html?spm=a2c4g.11186623.6.677.1f6a3483tNyo2M)</props>.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ListDashboardMetrics' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dashboard/metrics', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + 'ListSceneParameters' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dashboard/scene-parameters', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -14756,83 +10320,14 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18698', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeCode' => '18715', + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The type of the metric. Valid values:'."\n" - ."\n" - .'USER_ACTION_PV_COUNT: the number of page views'."\n" - ."\n" - .'USER_ACTION_UV_COUNT: the number of unique views'."\n" - ."\n" - .'USER_ACTION_PV_RATIO: the conversion rate'."\n" - ."\n" - .'USER_ACTION_UV_RATIO: the traffic consumed per person'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], - ], - [ - 'name' => 'startTime', - 'in' => 'query', - 'schema' => [ - 'description' => 'USERACTIONPV_COUNT'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], - ], - [ - 'name' => 'endTime', - 'in' => 'query', - 'schema' => [ - 'description' => 'The statistical results.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'example' => '1586673466', - ], - ], - [ - 'name' => 'metricType', - 'in' => 'query', - 'schema' => [ - 'description' => 'The statistical results.'."\n", - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'The details about the metric.'."\n", - ], - ], - [ - 'name' => 'metricView', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - [ - 'name' => 'metricQuery', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-o400whm78004'], ], ], 'responses' => [ @@ -14841,79 +10336,74 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => 'The specific value of the metric.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'total' => [ - 'description' => 'The start time. The value is a timestamp in seconds.'."\n", - 'type' => 'object', - 'example' => 'xxx', - ], - 'detail' => [ - 'description' => 'The end time. The value is a timestamp in seconds.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'val' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => '13', - ], - 'startTime' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '1586673466', - ], - 'endTime' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => '1586673466', - ], - ], - ], - ], + 'description' => 'The details of the result.', + 'type' => 'object', + 'properties' => [ + 'traceId' => [ + 'description' => 'The list of channels.', + 'type' => 'array', + 'items' => ['description' => 'The trace ID.', 'type' => 'string', 'title' => '', 'example' => 'alibaba'], + 'title' => '', + 'example' => '', + ], + 'sceneId' => [ + 'description' => 'The list of scenarios.', + 'type' => 'array', + 'items' => ['description' => 'The scenario ID.', 'type' => 'string', 'title' => '', 'example' => 'test'], + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => '__null__', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => '200'], + 'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => 'A40E64C6-9E21-5E9C-B333-DD920AE5AB4A'], + 'message' => ['description' => 'The details of the error.', 'type' => 'string', 'title' => '', 'example' => 'success'], ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], - '5XX' => [], - ], - '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' => 'Queries the metrics of a specified instance on the dashboard.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ListDashboardMetricsFlows' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dashboard/metrics/flows', - 'methods' => [ - 'get', ], - 'schemes' => [ - 'http', - 'https', + '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' => 'ListSceneParameters', + 'summary' => 'Retrieves a list of all channels and scenarios for a specified instance.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListSceneParameters', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'translator' => 'manual', + ], + 'ListScenes' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -14923,244 +10413,209 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18699', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeCode' => '18716', + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The type of the metric. Valid values:'."\n" - ."\n" - .'USER_ACTION_PV_COUNT: the number of page views'."\n" - ."\n" - .'USER_ACTION_UV_COUNT: the number of unique views'."\n" - ."\n" - .'USER_ACTION_PV_RATIO: the conversion rate'."\n" - ."\n" - .'USER_ACTION_UV_RATIO: the traffic consumed per person'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'startTime', + 'name' => 'status', 'in' => 'query', - 'schema' => [ - 'description' => 'The statistical results.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], + 'schema' => ['description' => 'The status of the scenario.'."\n" + ."\n" + .'- **DRAFT**: The scenario is a draft.'."\n" + ."\n" + .'- **PUBLISHING**: The scenario is being published.'."\n" + ."\n" + .'- **RUNNING**: The scenario is running.'."\n" + ."\n" + .'- **FAILED**: The scenario failed to be published.'."\n" + ."\n" + .'- **FROZEN**: The scenario is frozen.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '1'], ], [ - 'name' => 'endTime', + 'name' => 'sceneId', 'in' => 'query', - 'schema' => [ - 'description' => 'The type of the metric.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], + 'schema' => ['description' => 'The scenario ID.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'test'], ], [ - 'name' => 'metricType', + 'name' => 'page', 'in' => 'query', - 'schema' => [ - 'description' => 'The metric data.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'The error code.'."\n", - ], + 'schema' => ['description' => 'The page number. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'title' => '', 'example' => '1'], + ], + [ + 'name' => 'size', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries to return on each page. Default value: 10. Valid values: 1 to 50.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'title' => '', 'example' => '10'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => 'The details of the result.', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => 'The ID of the request.'."\n", + 'description' => 'The details of the result.', 'type' => 'array', 'items' => [ + 'description' => 'The details of the result.', 'type' => 'object', 'properties' => [ - 'metricType' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'xxx', - ], - 'metricData' => [ - 'description' => '__null__', - 'type' => 'object', - 'example' => 'xxx', - ], + 'sceneId' => ['description' => 'The scenario ID.', 'type' => 'string', 'title' => '', 'example' => 'test'], + 'gmtModified' => ['description' => 'The time when the scenario was last modified.', 'type' => 'string', 'title' => '', 'example' => '2020-04-23T06:08:48.000Z'], + 'status' => ['description' => 'The status of the scenario.'."\n" + ."\n" + .'- **DRAFT**: The scenario is a draft.'."\n" + ."\n" + .'- **PUBLISHING**: The scenario is being published.'."\n" + ."\n" + .'- **RUNNING**: The scenario is running.'."\n" + ."\n" + .'- **FAILED**: The scenario failed to be published.'."\n" + ."\n" + .'- **FROZEN**: The scenario is frozen.', 'type' => 'string', 'title' => '', 'example' => '1'], + 'gmtCreate' => ['description' => 'The time when the scenario was created.', 'type' => 'string', 'title' => '', 'example' => '2020-04-23T06:08:48.000Z'], ], + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'InternalServerError'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'An internal server error occurred'], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListDashboardMetricsFlows', - 'summary' => 'Queries the traffic data of a specified instance on the dashboard.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ListFeatureTables' => [ - 'summary' => 'Queries a list of feature tables.', - 'path' => '/v2/openapi/instances/{instanceId}/feature-tables', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ListScenes', + 'summary' => 'Queries a list of scenarios.', + 'description' => 'You can use the Scenario Management feature in the console to manage scenarios. Do not use API operations for this purpose. For more information, see <props="china">[Quickly build recommendation scenarios by configuring delivery policies](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}'], + ], + ], + ], ], + 'translator' => 'manual', + ], + 'ListUmengAppkeys' => [ + 'path' => '/v2/openapi/umeng/appkeys', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '117113', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], - ], - 'parameters' => [ - [ - 'name' => 'instanceId', - 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - 'title' => 'A short description of struct', - ], - ], - [ - 'name' => 'type', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'UserFeatureTable', - 'title' => '特征表类型', - ], - ], - [ - 'name' => 'updateFrequency', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '1', - 'title' => '特征更新频率', - ], - ], - [ - 'name' => 'dataSourceId', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '1', - 'title' => '数据源id', - ], - ], + 'abilityTreeCode' => '18717', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], + 'parameters' => [], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], 'result' => [ - 'title' => 'result', + 'description' => 'The query results.', 'type' => 'array', 'items' => [ - '$ref' => '#/components/schemas/FeatureTable', + 'description' => 'The result details.', + 'type' => 'object', + 'properties' => [ + 'appkey' => ['description' => 'The app key.', 'type' => 'string', 'title' => '', 'example' => '5ddcf39f57729e708b00000e'], + 'platform' => ['description' => 'Android/iOS', 'type' => 'string', 'title' => '', 'example' => 'ios'], + 'name' => ['description' => 'The app name.', 'type' => 'string', 'title' => '', 'example' => 'xxx'], + ], + 'title' => '', + 'example' => '', ], - 'example' => 'result', + 'title' => '', + 'example' => '', ], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => '200'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'success'], ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListFeatureTables', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ListIndexVersions' => [ - 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/index-versions', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'ListUmengAppkeys', + 'summary' => 'Retrieves a list of Umeng appkeys.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListUmengAppkeys', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'translator' => 'manual', + ], + 'ListUserClusters' => [ + 'path' => '/v2/openapi/instances/{instanceId}/user-clusters', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -15170,597 +10625,619 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18704', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'abilityTreeCode' => '18718', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], - ], - [ - 'name' => 'algorithmId', - 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'abc', - ], + 'schema' => ['description' => 'The ID of the instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-test'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '', + 'description' => 'The result details.', 'type' => 'array', 'items' => [ + 'description' => 'The result details.', 'type' => 'object', 'properties' => [ - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'abc', - ], - 'switchedTime' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2020-11-08T02:00:00Z', - ], - 'rollbackEnabled' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'xxx', - ], - 'flowType' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'Auto', - ], - 'costSeconds' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '600', - ], - 'builtTime' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2020-11-08T02:00:00Z', - ], - 'versionId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2020112301', - ], - 'size' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '300922211', - ], - 'status' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'abc', - ], - 'progress' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '80', + 'gmtModified' => ['description' => 'The Coordinated Universal Time (UTC) time when the cluster was last modified.', 'type' => 'string', 'title' => '', 'example' => '2018-12-07T02:24:26.000Z'], + 'status' => ['description' => 'The status.', 'type' => 'string', 'title' => '', 'example' => '1'], + 'gmtCreate' => ['description' => 'The UTC time when the cluster was created.', 'type' => 'string', 'title' => '', 'example' => '2018-12-07T02:24:26.000Z'], + 'name' => ['description' => 'The name of the user cluster.', 'type' => 'string', 'title' => '', 'example' => 'mycluster-for-airec'], + 'meta' => [ + 'description' => 'The metadata.', + 'type' => 'object', + 'properties' => [ + 'metaType' => ['description' => 'The type of metadata.', 'type' => 'string', 'title' => '', 'example' => 'UserCluster'], + 'description' => ['description' => 'The description.', 'type' => 'string', 'title' => '', 'example' => 'tst'], + ], + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', + 'headers' => [ + 'description' => 'The header information.', + 'type' => 'object', + 'properties' => [ + 'X-Total-Count' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'], + ], + 'title' => '', + 'example' => '', ], + 'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '1E2CBBA8-C623-4FEE-BC84-9672E460CA39'], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListIndexVersions', - 'summary' => 'Queries the versions of an index based on the IDs of a specified instance and a filtering table. Only 10 data entries can be displayed, and three data entries can be changed. You can view these data entries on one page and do not need to filter data.', - ], - 'ListInstanceTask' => [ - 'path' => '/v2/openapi/instances/{instanceId}/tasks', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ListUserClusters', + 'summary' => 'Lists the user clusters for a specified instance.', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + 'ModifyDataSource' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dataSources/{tableName}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18706', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - 'FEATUREairec5G3YBA', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '18719', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004', 'title' => ''], + ], + [ + 'name' => 'tableName', + 'in' => 'path', + 'schema' => ['description' => 'The name of the table.'."\n", 'type' => 'string', 'required' => false, 'example' => 'behavior', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => '', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => 'The progress of the task that is running on the instance.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'subProgressInfos' => [ - 'description' => 'The information about the progress of subtasks.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'type' => [ - 'description' => 'The type of subtasks.'."\n", - 'type' => 'string', - 'example' => 'DATA_PROCESS', - ], - 'detail' => [ - 'description' => 'The detailed description of subtasks.'."\n", - 'type' => 'string', - 'example' => 'data import progress info', - ], - 'totalNum' => [ - 'description' => 'The total number of subtasks.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '11', - ], - 'finishedNum' => [ - 'description' => 'The number of completed subtasks.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '11', - ], - 'progress' => [ - 'description' => 'The progress of subtasks.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '100', - ], - ], - ], - ], - 'totalProgress' => [ - 'description' => 'The overall progress of the current task.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '100', - ], - 'name' => [ - 'description' => 'The name of the step. Example: DATA_IMPORT. The value indicates that data is being imported.'."\n", - 'type' => 'string', - 'example' => 'DATA_IMPORT', + 'description' => 'The details about the data source.'."\n", + 'type' => 'object', + 'properties' => [ + 'gmtModified' => ['description' => 'The time when the data source was last modified. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.'."\n", 'type' => 'string', 'example' => '2020-04-23T06:08:48.000Z', 'title' => ''], + 'gmtCreate' => ['description' => 'The time when the data source was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.'."\n", 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z', 'title' => ''], + 'tableName' => ['description' => 'The name of the table.'."\n", 'type' => 'string', 'example' => 'behavior', 'title' => ''], + 'meta' => [ + 'description' => 'The parameters of the data source.'."\n", + 'type' => 'object', + 'properties' => [ + 'bucketName' => ['description' => 'The name of the Object Storage Service (OSS) bucket.'."\n", 'type' => 'string', 'example' => 'airec', 'title' => ''], + 'accessKeyId' => ['description' => 'The AccessKey ID of the Alibaba Cloud account.'."\n", 'type' => 'string', 'example' => 'xxx', 'title' => ''], + 'type' => ['description' => 'The type of the data source. Only MaxCompute is supported.'."\n", 'type' => 'string', 'example' => 'ODPS', 'title' => ''], + 'partition' => ['description' => 'The partition in the MaxCompute table.'."\n", 'type' => 'string', 'example' => 'ds=20181122', 'title' => ''], + 'timestamp' => ['description' => 'The timestamp. The value must be accurate to the millisecond.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1544112000000', 'title' => ''], + 'path' => ['description' => 'The path of the OSS data source.'."\n", 'type' => 'string', 'example' => 'oss://xxx.xxx', 'title' => ''], + 'tableName' => ['description' => 'The name of the MaxCompute table.'."\n", 'type' => 'string', 'example' => 'table01', 'title' => ''], + 'projectName' => ['description' => 'The name of the MaxCompute project.'."\n", 'type' => 'string', 'example' => 'airecproject', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => 'The error code.'."\n", 'type' => 'string', 'example' => '200', 'title' => ''], + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'successful', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListInstanceTask', - 'summary' => 'Queries all asynchronous tasks of a specified instance by using the instance ID.', - ], - 'ListItems' => [ - 'path' => '/v2/openapi/instances/{instanceId}/items/actions/list', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'ModifyDataSource', + 'summary' => 'Modifies the information of a single data source in a table of a specified instance.', + '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}'], + ], + ], + ], ], + ], + 'ModifyFeatureTable' => [ + 'summary' => 'Modifies a feature table by replacing its entire feature list.', + 'path' => '/v2/openapi/instances/{instanceId}/feature-tables/{type}/{featureTableId}', + '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' => '117111', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'airec-test'], ], [ - 'name' => 'strategyUsed', - 'in' => 'query', - 'schema' => [ - 'type' => 'boolean', - 'required' => false, - ], + 'name' => 'type', + 'in' => 'path', + 'schema' => ['description' => 'The type of the feature table. Valid values: UserFeatureTable and ItemFeatureTable.', 'type' => 'string', 'required' => true, 'example' => 'UserFeatureTable', 'title' => ''], ], [ - 'name' => 'withInvalidDetail', - 'in' => 'query', + 'name' => 'featureTableId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the feature table.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => '123'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'type' => 'boolean', - 'required' => false, + 'title' => '', + 'description' => 'The response schema.', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['title' => '', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['$ref' => '#/components/schemas/FeatureTable', 'description' => '', 'title' => '', 'example' => ''], + ], + 'example' => '', ], ], + ], + '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' => 'ModifyFeatureTable', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyFeatureTable'], + ], + ], + 'ramActions' => [ [ - 'name' => 'page', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '1', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyFeatureTable', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], ], ], + ], + 'translator' => 'manual', + ], + 'ModifyFilteringAlgorithmMeta' => [ + 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/meta', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'size', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '1000', - 'minimum' => '1', - 'example' => '10', - ], + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '18720', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], + ], + 'parameters' => [ + [ + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-****'], + ], + [ + 'name' => 'algorithmId', + 'in' => 'path', + 'schema' => ['description' => 'The retrieval ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '1'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '', + 'description' => 'Information about the retrieval table.', 'type' => 'object', 'properties' => [ - 'total' => [ - 'description' => '', + 'gmtModified' => ['description' => 'The time when the table was last updated. The time is in UTC.', 'type' => 'string', 'title' => '', 'example' => '2018-12-07T02:24:26.000Z'], + 'status' => ['description' => 'The status of the retrieval table.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **Draft**'."\n" + ."\n" + .'- **Running**'."\n" + ."\n" + .'- **Offline**'."\n" + ."\n" + .'- **Deleted**', 'type' => 'string', 'title' => '', 'example' => 'Running'], + 'gmtCreate' => ['description' => 'The time when the table was created. The time is in UTC.', 'type' => 'string', 'title' => '', 'example' => '2018-12-07T02:24:26.000Z'], + 'algorithmId' => ['description' => 'The retrieval ID.', 'type' => 'string', 'title' => '', 'example' => 'abc'], + 'meta' => [ + 'description' => 'The meta source data.', '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' => '', - 'type' => 'string', - 'example' => '123', - ], - 'itemType' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'item', - ], - 'status' => [ - 'description' => '', - 'type' => 'string', - 'example' => '1', - ], - 'brandId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '1', - ], - 'shopId' => [ - 'description' => '', - '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', + 'taskId' => ['description' => 'The task ID.', 'type' => 'string', 'title' => '', 'example' => 'taskId'], + 'metaType' => ['description' => 'The algorithm type. Only ODPS is supported.', 'type' => 'string', 'title' => '', 'example' => 'metaType'], + 'type' => ['description' => 'The data source type. Only ODPS is supported.', 'type' => 'string', 'title' => '', 'example' => 'ODPS'], + 'extInfo' => [ + 'description' => 'The content of the recall table.', + 'type' => 'object', + 'properties' => [ + 'kvSeparator' => ['description' => 'The key-value separator.', 'type' => 'string', 'title' => '', 'example' => ':'], + 'itemSeparator' => ['description' => 'The item separator.', 'type' => 'string', 'title' => '', 'example' => ','], ], - 'expireTime' => [ - 'description' => '', - 'type' => 'string', - 'example' => '1647998107012', + 'title' => '', + 'example' => '', + ], + 'category' => ['description' => 'The retrieval category.', 'type' => 'string', 'title' => '', 'example' => '1_2'], + 'threshold' => [ + 'description' => 'The threshold configuration for the ODPS table.', + 'type' => 'object', + 'properties' => [ + 'sourceDataSizeThreshold' => ['description' => 'The fluctuation threshold for the source data size.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'], + 'sourceDataRecordThreshold' => ['description' => 'The fluctuation threshold for the number of source data records.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'], + 'indexSizeThreshold' => ['description' => 'The fluctuation threshold for the index size.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'], + 'indexLossThreshold' => ['description' => 'The index loss threshold.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'], ], + 'title' => '', + 'example' => '', ], + 'tableName' => ['description' => 'The name of the ODPS retrieval table.', 'type' => 'string', 'title' => '', 'example' => 'test_table'], + 'clusterId' => ['description' => 'The cluster ID.', 'type' => 'string', 'title' => '', 'example' => '244'], + 'cron' => ['description' => 'The cron expression for the timed scheduling task.', 'type' => 'string', 'title' => '', 'example' => '* * 24 7 0'], + 'description' => ['description' => 'The description of the retrieval algorithm configuration.', 'type' => 'string', 'title' => '', 'example' => 'test'], + 'projectName' => ['description' => 'The name of the project in ODPS.', 'type' => 'string', 'title' => '', 'example' => 'test'], + 'algorithmName' => ['description' => 'The name of the retrieval algorithm configuration.', 'type' => 'string', 'title' => '', 'example' => 'test'], + 'cronEnabled' => ['description' => 'Specifies whether to enable timed scheduling for the experiment.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **true**: Enabled.'."\n" + ."\n" + .'- **false**: Disabled.', 'type' => 'boolean', 'title' => '', 'example' => 'true'], ], + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '6839AE7C-A984-48C1-AC17-331BAC6D97BC', - ], + 'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3'], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListItems', - 'summary' => 'Queries items of an instance.', - ], - 'ListLogs' => [ - 'path' => '/v2/openapi/instances/{instanceId}/logs', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ModifyFilteringAlgorithmMeta', + 'summary' => 'Modifies the configuration of a retrieval table.', + 'description' => 'Note: To modify the threshold configuration for an ODPS table, you must submit the complete configuration. You cannot modify individual threshold settings.', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + 'ModifyFlowControlTask' => [ + 'summary' => 'Modifies a throttling task.', + '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' => '18708', - 'abilityTreeNodes' => [ - 'FEATUREairecY1ADIM', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '154309', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****', 'title' => ''], ], [ - 'name' => 'queryParams', - 'in' => 'query', + 'name' => 'taskId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the task.'."\n", 'type' => 'string', 'required' => false, 'example' => '1667297014460', 'title' => ''], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'description' => '', - 'type' => 'string', + 'description' => 'The request body.'."\n", + 'type' => 'object', + 'properties' => [ + 'TaskName' => ['description' => 'The name of the task.'."\n", 'type' => 'string', 'required' => false, 'example' => 'testname', 'title' => ''], + 'description' => ['description' => 'The description of the task.'."\n", 'type' => 'string', 'required' => false, 'example' => '描述', 'title' => ''], + 'endTime' => ['description' => 'The end time. The value is a timestamp in seconds.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1639519200', 'title' => ''], + 'metaType' => ['description' => 'The type of the metadata.'."\n", 'type' => 'string', 'required' => false, 'example' => 'FlowControlTask', 'title' => ''], + 'sceneIds' => ['description' => 'The ID of the scene.'."\n", 'type' => 'string', 'required' => false, 'example' => 'all,sy101', 'title' => ''], + 'selectionParams' => [ + 'description' => 'The parameters specified for the item selection rule.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'selectType' => ['description' => 'The type of the filtering condition for the item selection rule.'."\n", 'type' => 'string', 'required' => false, 'example' => 'invalidItem', 'title' => ''], + 'selectValue' => ['description' => 'The number of filtering conditions for the item selection rule.'."\n", 'type' => 'string', 'required' => false, 'example' => '20', 'title' => ''], + 'selectionOperation' => ['description' => 'The operation on the filtering condition for the item selection rule.'."\n", 'type' => 'string', 'required' => false, 'example' => 'OPERATOR_HIGHER', 'title' => ''], + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + 'startTime' => ['description' => 'The start time. The value is a timestamp in seconds.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1638460800', 'title' => ''], + 'target' => [ + 'description' => 'The settings for item exposure.'."\n", + 'type' => 'object', + 'properties' => [ + 'type' => ['description' => 'The type of the exposure.'."\n", 'type' => 'string', 'required' => false, 'example' => 'EXPOSE_PERCENT', 'title' => ''], + 'value' => ['description' => 'The number of exposures.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '50', 'title' => ''], + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + ], 'required' => false, + 'title' => '', 'example' => '', ], ], - [ - 'name' => 'startTime', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'docRequired' => true, - 'maximum' => '2147483647', - 'minimum' => '1565193600', - 'example' => '1586673466', + 'description' => 'The returned result.'."\n", + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => 'The ID of the request. The value is unique for each request. This facilitates troubleshooting.'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], + 'result' => [ + 'description' => 'The returned result.'."\n", + 'type' => 'object', + 'properties' => [ + 'gmtCreate' => ['description' => 'The time when the task was created.'."\n", 'type' => 'string', 'example' => '2018-12-07T02:24:26.000Z', 'title' => ''], + 'gmtModified' => ['description' => 'The time when the task was modified.'."\n", 'type' => 'string', 'example' => '2020-11-11T09:47:43.000Z', 'title' => ''], + 'meta' => [ + 'description' => 'The metadata.'."\n", + 'type' => 'object', + 'properties' => [ + 'description' => ['description' => 'The description of the task.'."\n", 'type' => 'string', 'example' => 'tst', 'title' => ''], + 'endTime' => ['description' => 'The end time. The value is a timestamp in seconds.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1656518399', 'title' => ''], + 'metaType' => ['description' => 'The type of the metadata.'."\n", 'type' => 'string', 'example' => 'FlowControlTask', 'title' => ''], + 'sceneIds' => ['description' => 'The IDs of scenes.'."\n", 'type' => 'string', 'example' => '1,2,3', 'title' => ''], + 'selectionParams' => [ + 'description' => 'The parameters specified for the item selection rule.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'The information about the array object.'."\n", + 'type' => 'object', + 'properties' => [ + 'selectType' => ['description' => 'The type of the filtering condition for the item selection rule.'."\n", 'type' => 'string', 'example' => 'QUERY_PUB_TIME', 'title' => ''], + 'selectValue' => ['description' => 'The number of filtering conditions for the item selection rule.'."\n", 'type' => 'string', 'example' => '10000', 'title' => ''], + 'selectionOperation' => ['description' => 'The operation on the filtering condition for the item selection rule.'."\n", 'type' => 'string', 'example' => 'OPERATOR_HIGHER', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'startTime' => ['description' => 'The start time. The value is a timestamp in seconds.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1640739600', 'title' => ''], + 'target' => [ + 'description' => 'The settings for item exposure.'."\n", + 'type' => 'object', + 'properties' => [ + 'type' => ['description' => 'The type of the exposure.'."\n", 'type' => 'string', 'example' => 'EXPOSE_PERCENT', 'title' => ''], + 'value' => ['description' => 'The number of exposures.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '20', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'taskName' => ['description' => 'The name of the task.'."\n", 'type' => 'string', 'example' => '活动用户测试', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'status' => ['description' => 'The state of the task.'."\n", 'type' => 'string', 'example' => 'DRAFT', 'title' => ''], + 'TaskId' => ['description' => 'The ID of the task.'."\n", 'type' => 'string', 'example' => '1661506482', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + ], + 'title' => '', + 'example' => '', ], ], - [ - 'name' => 'endTime', - 'in' => 'query', + 500 => [ 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'docRequired' => true, - 'maximum' => '2147483647', - 'minimum' => '1565193600', + 'title' => '', 'example' => '', ], ], + ], + '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":"","errorExample":""}]', + 'title' => 'ModifyFlowControlTask', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyFlowControlTask'], + ], + ], + 'ramActions' => [ [ - 'name' => 'page', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '1', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyFlowControlTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], ], ], + ], + ], + 'ModifyInstance' => [ + 'path' => '/v2/openapi/instances/{instanceId}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'size', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '1000', - 'minimum' => '1', - 'example' => '', - ], + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '18721', + 'abilityTreeNodes' => ['FEATUREairec5G3YBA', 'FEATUREairecX63J28'], + ], + 'parameters' => [ + [ + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****', 'title' => ''], ], ], 'responses' => [ @@ -15769,261 +11246,225 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'example' => '', - ], - ], - 'headers' => [ - 'description' => '', + 'description' => 'The returned results.'."\n", 'type' => 'object', 'properties' => [ - 'X-Total-Count' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '', - ], + 'regionId' => ['description' => 'The region where the instance resides.'."\n", 'type' => 'string', 'example' => 'cn-beijing', 'title' => ''], + 'type' => ['description' => 'The type of the instance. Only the Standard edition is supported.'."\n", 'type' => 'string', 'example' => 'Algorithm_configuration', 'title' => ''], + 'lockMode' => ['description' => 'The lock mode of the instance. Valid values: Unlock, ManualLock, and LockByExpiration.'."\n", 'type' => 'string', 'example' => 'Unlock', 'title' => ''], + 'expiredTime' => ['description' => 'The time when the instance expires. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format.The time is displayed in UTC.'."\n", 'type' => 'string', 'example' => '2019-01-06T16:00:00.000Z', 'title' => ''], + 'status' => ['description' => 'The state of the instance. Valid values: Initializing, Ready, and Running.'."\n", 'type' => 'string', 'example' => 'Running', 'title' => ''], + 'gmtCreate' => ['description' => 'The time when the instance was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.'."\n", 'type' => 'string', 'example' => '2018-12-06T06:14:01.000Z', 'title' => ''], + 'chargeType' => ['description' => 'The billing method. Valid values: PrePaid and PostPaid. Only the PrePaid billing method is supported.'."\n", 'type' => 'string', 'example' => 'POSTPAY', 'title' => ''], + 'industry' => ['description' => 'The type of the industry. Valid values: content, item, news, video, and sns.'."\n", 'type' => 'string', 'example' => 'news', 'title' => ''], + 'commodityCode' => ['description' => 'The commodity code of the recommended item.'."\n", 'type' => 'string', 'example' => 'airecpre', 'title' => ''], + 'gmtModified' => ['description' => 'The time when the instance was last modified. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.'."\n", 'type' => 'string', 'example' => '2020-04-23T06:08:48.000Z', 'title' => ''], + 'dataSetVersion' => ['description' => 'The version of the dataset that provides online services.'."\n", 'type' => 'string', 'example' => '20181206170353', 'title' => ''], + 'name' => ['description' => 'The name of the instance.'."\n", 'type' => 'string', 'example' => '实例1', 'title' => ''], + 'instanceId' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'example' => 'airec-cn-****', 'title' => ''], ], - ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', + 'title' => '', 'example' => '', ], + 'code' => ['description' => 'The error code.'."\n", 'type' => 'string', 'example' => '200', 'title' => ''], + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '9B5AA8EF-DB75-5BE9-ADFD-E645F9EA7374', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'successful', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListLogs', - 'summary' => 'Queries the log information about a specified instance over the last seven days.', - ], - 'ListMixCategories' => [ - 'path' => '/v2/openapi/configurations/mixCategories', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'ModifyInstance', + 'summary' => 'Modifies the configurations of a specified instance.', + '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}'], + ], + ], + ], ], + ], + 'ModifyItems' => [ + 'path' => '/v2/openapi/instances/{instanceId}/items', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18709', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', + 'operationType' => 'update', + 'abilityTreeCode' => '18722', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], + ], + 'parameters' => [ + [ + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-test'], ], ], - 'parameters' => [], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'The returned result.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The query result.'."\n", - 'type' => 'object', - 'properties' => [ - 'categories' => [ - 'description' => 'The content type.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The content type.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => 'aaaa', - ], - ], - ], - ], - ], - 'code' => [ - 'description' => 'The HTTP status code.'."\n", - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => 'ED093A1D-1C56-57A2-B078-3C518F632F03', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'Success', - ], + 'result' => ['description' => 'The result of the operation. A value of true indicates success. A value of false indicates failure.', 'type' => 'boolean', 'title' => '', 'example' => 'true'], + 'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"8F81A922-6C81-46D6-B78C-CC35E16B1691\\"\\n}","type":"json"}]', + 'title' => 'ModifyItems', + 'summary' => 'Performs batch operations on an item pool.', + '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 \\"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' => 'Queries the content types supported in the diversity rule configurations of an instance.', + 'translator' => 'manual', ], - 'ListOfflineStorages' => [ - 'summary' => '获取离线存储列表', + 'ModifyOfflineStorages' => [ + 'summary' => 'Modifies the offline storage configurations of an instance. You need to modify three tables at the same time.', 'path' => '/v2/openapi/instances/[instanceId]/offlineStorages', - 'methods' => [ - 'get', - ], - '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' => 'get', - 'abilityTreeCode' => '20401', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '20403', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'instanceId', - 'description' => 'instanceId', - 'type' => 'string', - 'format' => 'byte', - 'required' => true, - 'example' => 'airec-cn-xxx', - ], + 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'example' => 'airec-test-xxx', 'format' => 'byte', 'title' => ''], ], ], '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', - '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' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '7F176EE8-51DA-4B4D-8FFE-04448CD7A171', 'format' => 'byte', 'title' => ''], + 'result' => ['description' => 'The returned result.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListOfflineStorages', - ], - 'ListRuleConditions' => [ - 'path' => '/v2/openapi/instances/{instanceId}/rule-conditions', - 'methods' => [ - 'get', + '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' => 'ModifyOfflineStorages', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyOfflineStorages'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyOfflineStorages', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + ], + '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' => '18711', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '18723', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-test'], + ], + [ + 'name' => 'rankingModelId', + 'in' => 'path', + 'schema' => ['description' => 'The ranking model ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'test1234'], ], ], 'responses' => [ @@ -16032,217 +11473,393 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => 'The returned results.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'selectType' => [ - 'description' => 'The type of the filtering condition for the item selection rule.'."\n", - 'type' => 'string', - 'example' => 'QUERY_ITEM_TYPE', - ], - 'selectValue' => [ - 'description' => 'The specific value of the filtering condition for the item selection rule.'."\n", - 'type' => 'string', - 'example' => 'xxx', - ], - 'selectionOperation' => [ - 'description' => 'The operation on the filtering condition for the item selection rule.'."\n", - 'type' => 'string', - 'example' => 'QUERY_VALUE_IN', - ], - ], + 'description' => 'The result.', + 'type' => 'object', + 'properties' => [ + 'rankingModelId' => ['description' => 'The ranking model ID.', 'type' => 'string', 'title' => '', 'example' => 'test1234'], + 'gmtModified' => ['description' => 'The time when the model was last modified.', 'type' => 'string', 'title' => '', 'example' => '2020-11-11T09:47:43.000Z'], + 'gmtCreate' => ['description' => 'The time when the model was created.', 'type' => 'string', 'title' => '', 'example' => '2020-11-11T09:47:43.000Z'], + 'meta' => ['description' => 'The data source for the recall table. Currently, only ODPS is supported.', 'type' => 'object', 'title' => '', 'example' => '{}'], ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => '1'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'message' => ['description' => 'The returned message.', 'type' => 'string', 'title' => '', 'example' => 'An internal server error occurred'], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ModifyRankingModel', + 'summary' => 'Modifies model information.', + 'changeSet' => [], + 'translator' => 'manual', + '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' => '[{"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' => 'ListRuleConditions', - 'summary' => 'Queries item selection rules of an instance.', ], - 'ListRuleTasks' => [ - 'path' => '/v2/openapi/instances/{instanceId}/rule-tasks', - 'methods' => [ - 'get', + 'ModifyRankingModelTemplate' => [ + 'summary' => 'Modifies a ranking model.', + 'path' => '/v2/openapi/instances/{instanceId}/ranking-model-templates/{templateId}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], ], - 'schemes' => [ - 'http', - 'https', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '117144', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], + ], + 'parameters' => [ + [ + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['title' => '', 'description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'example' => 'airec-test'], + ], + [ + 'name' => 'templateId', + 'in' => 'path', + 'schema' => ['title' => '', 'description' => 'The ID of the ranking model.'."\n", 'type' => 'string', 'required' => true, 'example' => 'a-a-a'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => ['description' => 'The request body.'."\n", 'type' => 'object', 'required' => false, 'example' => '{}', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '', + 'description' => 'The schema of the response parameters.'."\n", + 'type' => 'object', + 'properties' => [ + 'requestId' => ['title' => '', 'description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'result' => ['description' => 'The information about the ranking model.'."\n", '$ref' => '#/components/schemas/RankingModelTemplate', 'title' => '', 'example' => ''], + ], + 'example' => '', + ], + ], + ], + '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', + '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}'], + ], + ], + ], ], + ], + 'ModifyRankingSystem' => [ + 'summary' => 'Modifies a ranking service.', + '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' => '18713', - 'abilityTreeNodes' => [ - 'FEATUREairecJZYTIA', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '117165', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', + 'schema' => ['title' => '', 'description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'example' => 'airec-test'], + ], + [ + 'name' => 'name', + 'in' => 'path', + 'schema' => ['title' => '', 'description' => 'The name of the ranking service.'."\n", 'type' => 'string', 'required' => true, 'example' => '"service-a'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => ['description' => 'The configurations that you want to modify.'."\n", 'type' => 'object', 'required' => false, 'example' => '{}', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The ID of the scene.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', + 'title' => '', + 'description' => 'The schema of response parameters.'."\n", + 'type' => 'object', + 'properties' => [ + 'requestId' => ['title' => '', 'description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'result' => ['description' => 'The ranking service that was modified.'."\n", '$ref' => '#/components/schemas/RankingSystem', 'title' => '', 'example' => ''], + ], + 'example' => '', ], ], + ], + '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' => 'ModifyRankingSystem', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ModifyRankingSystem'], + ], + ], + 'ramActions' => [ [ - 'name' => 'sceneId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The completion rate of the task.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'testid', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:ModifyRankingSystem', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], ], ], ], + ], + 'ModifyRule' => [ + 'path' => '/v2/openapi/instances/{instanceId}/rules/{ruleId}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '18724', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], + ], + 'parameters' => [ + [ + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004', 'title' => ''], + ], + [ + 'name' => 'ruleId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the rule.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '13469', 'title' => ''], + ], + ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => 'The error message.'."\n", + 'description' => 'The returned result.'."\n", 'type' => 'object', 'properties' => [ - 'finishTime' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1588240081', - ], - 'finishRate' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '50', - ], + 'ruleId' => ['description' => 'The ID of the rule.'."\n", 'type' => 'string', 'example' => '98493A14-D619-4E88-9F8D-108939817F9F', 'title' => ''], + 'ruleMeta' => ['description' => 'The specific information about the rule.'."\n", 'type' => 'object', 'example' => 'xxx', 'title' => ''], + 'gmtModified' => ['description' => 'The time when the rule was last modified.'."\n", 'type' => 'string', 'example' => '2020-04-27T06:38:28.000Z', 'title' => ''], + 'status' => ['description' => 'Indicates whether the rule is enabled. Valid values: true and false.'."\n", 'type' => 'string', 'example' => 'EFFECTIVE', 'title' => ''], + 'gmtCreate' => ['description' => 'The time when the rule was created.'."\n", 'type' => 'string', 'example' => '2020-04-27T06:38:28.000Z', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => 'Queries the status of a rule-specific task.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The ID of the scene.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => 'The error code.'."\n", 'type' => 'string', 'example' => 'InternalServerError', 'title' => ''], + 'requestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'An internal server error occurred', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListRuleTasks', - 'summary' => 'Queries the status of a rule-specific task.', - ], - 'ListSampleFormatConfigs' => [ - 'summary' => 'Queries the configurations of sample formatting.', - 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}/format-configs', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'Modifies a rule.', + 'requestParamsDescription' => '```json'."\n" + .'// Modify an item selection rule.'."\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" + .'// Modify an operations rule.'."\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" + .'```'."\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}'], + ], + ], + ], ], + ], + 'ModifySample' => [ + 'summary' => 'Modifies a sample configuration.', + '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' => '117133', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '117127', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - 'title' => 'A short description of struct', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'airec-cn-shdjkgkeog'], ], [ 'name' => 'sampleId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => '123', - 'title' => '样本id', - ], + 'schema' => ['description' => 'The sample ID.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'Sample1'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => ['description' => 'The request body.', 'type' => 'object', 'required' => false, 'title' => '', 'example' => '{}'], ], ], 'responses' => [ @@ -16250,531 +11867,549 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'EDF43C1F-99E4-431F-A7C0-8B260A5A792E', - 'title' => 'Id of the request', - ], - 'result' => [ - 'description' => '', - 'type' => 'object', - 'example' => 'xxx', - 'title' => 'result', - ], + 'requestId' => ['type' => 'string', 'title' => '', 'description' => 'The request ID.', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48'], + 'result' => ['$ref' => '#/components/schemas/Sample', 'description' => 'The details of the result.', 'title' => '', 'example' => ''], ], - 'title' => 'Schema of Response', + 'title' => '', + 'description' => 'The details of the result.', + 'example' => '', ], ], ], - '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' => 'ListSampleFormatConfigs', - ], - 'ListSceneItems' => [ - 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/items', - 'methods' => [ - 'get', + '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"}]', + 'title' => 'ModifySample', + '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}'], + ], + ], + ], ], + 'extraInfo' => ' ', + 'translator' => 'manual', + ], + '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' => '18714', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - 'FEATUREairec5G3YBA', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '18725', + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'GET openapi/instances/{instanceId}/scenes/{sceneId}/items?selectionRuleId=xxx&operrationRuleId=xxx', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-o400whm78004'], ], [ 'name' => 'sceneId', 'in' => 'path', + 'schema' => ['description' => 'The scenario ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'test'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => [ - [ - 'type' => 'json', - 'example' => '', - 'errorExample' => '', - ], - [ - 'type' => 'xml', + 'description' => 'The details of the result.', + 'type' => 'object', + 'properties' => [ + 'result' => [ + 'description' => 'The details of the result.', + 'type' => 'object', + 'properties' => [ + 'sceneId' => ['description' => 'The scenario ID.', 'type' => 'string', 'title' => '', 'example' => 'test'], + 'gmtModified' => ['description' => 'The time when the scenario was last modified.', 'type' => 'string', 'title' => '', 'example' => '2020-04-23T06:08:48.000Z'], + 'status' => ['description' => 'The status of the scenario:'."\n" + ."\n" + .'- **DRAFT**: The scenario is a draft.'."\n" + ."\n" + .'- **PUBLISHING**: The scenario is being published.'."\n" + ."\n" + .'- **RUNNING**: The scenario is running.'."\n" + ."\n" + .'- **FAILED**: The scenario failed to be published.'."\n" + ."\n" + .'- **FROZEN**: The scenario is frozen.', 'type' => 'string', 'title' => '', 'example' => 'DRAFT'], + 'gmtCreate' => ['description' => 'The time when the scenario was created.', 'type' => 'string', 'title' => '', 'example' => '2020-04-23T06:08:48.000Z'], + ], + 'title' => '', 'example' => '', - 'errorExample' => '', ], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'InternalServerError'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'An internal server error occurred'], ], - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'testid', - ], - ], - [ - 'name' => 'operationRuleId', - 'in' => 'query', - 'schema' => [ - 'description' => ' ', - 'type' => 'string', - 'required' => false, - 'example' => '1', + 'title' => '', + 'example' => '', ], ], - [ - 'name' => 'selectionRuleId', - 'in' => 'query', + '5XX' => [ 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], - [ - 'name' => 'page', - 'in' => 'query', - 'schema' => [ - 'description' => 'The scene ID.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '1', + ], + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'ModifyScene', + 'summary' => 'Modifies scenario information.', + 'description' => 'You can use the Scenario Management feature in the console to manage scenarios. Do not use API operations for this task. For more information, see <props="china">[Configure delivery policies to quickly build recommendation scenarios](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}'], + ], ], ], + ], + 'translator' => 'machine', + ], + 'OfflineFilteringAlgorithm' => [ + 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/actions/offline', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'size', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the operation rule.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '128', - 'minimum' => '0', - 'example' => '10', - ], + 'AK' => [], ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '18726', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], + ], + 'parameters' => [ [ - 'name' => 'previewType', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the item selection rule.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'PREVIEW_ITEM', - ], + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-****'], ], [ - 'name' => 'queryCount', - 'in' => 'query', - 'schema' => [ - 'description' => 'The number of the page to return. Default value: 1.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '20', - ], + 'name' => 'algorithmId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the filtering algorithm.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'test'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => 'The returned parameters.', 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => 'The number of entries to return on each page. Valid values: 1 to 50. Default value: 10.'."\n", + 'description' => 'The information about the filtering algorithm.', 'type' => 'object', 'properties' => [ - 'total' => [ - 'description' => 'The preview type. Valid values:'."\n" - ."\n" - .'PREVIEW_ITEM: previews only the results that are returned based on item selection rules.'."\n" - ."\n" - .'PREVIEW_QUERY: previews the results that are returned based on all configurations.'."\n", + 'gmtModified' => ['description' => 'The last update time in UTC.', 'type' => 'string', 'title' => '', 'example' => '2018-12-07T02:24:26.000Z'], + 'status' => ['description' => 'The status of the filtering algorithm.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **Draft**: The algorithm is a draft.'."\n" + ."\n" + .'- **Running**: The algorithm is running.'."\n" + ."\n" + .'- **Offline**: The algorithm is offline.'."\n" + ."\n" + .'- **Deleted**: The algorithm is deleted.', 'type' => 'string', 'title' => '', 'example' => 'Init'], + 'gmtCreate' => ['description' => 'The creation time in UTC.', 'type' => 'string', 'title' => '', 'example' => '2018-12-07T02:24:26.000Z'], + 'algorithmId' => ['description' => 'The ID of the filtering algorithm.', 'type' => 'string', 'title' => '', 'example' => 'abc'], + 'meta' => [ + 'description' => 'The metadata.', 'type' => 'object', 'properties' => [ - 'totalCount' => [ - 'description' => 'The number of queries.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1000', - ], - 'sceneWeightItem' => [ - 'description' => 'The returned results.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1000', - ], - 'sceneRecommendItem' => [ - 'description' => 'The statistical results.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1000', - ], - 'weightItem' => [ - 'description' => 'The total number of items in the instance.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1000', - ], - 'instanceRecommendItem' => [ - 'description' => 'The number of weighted items in the scene.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1000', - ], - ], - ], - 'detail' => [ - 'description' => 'The number of items that can be recommended in the scene.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'title' => [ - 'description' => 'The number of weighted items in the instance.'."\n", - 'type' => 'string', - 'example' => 'title', - ], - 'categoryPath' => [ - 'description' => 'The number of items that can be recommended in the instance.'."\n", - 'type' => 'string', - 'example' => '12_34', - ], - 'itemId' => [ - 'description' => 'The information about the preview results.'."\n", - 'type' => 'string', - 'example' => '123', - ], - 'itemType' => [ - 'description' => 'The title of the item.'."\n", - 'type' => 'string', - 'example' => 'video', - ], - 'status' => [ - 'description' => 'The category path of the item.'."\n", - 'type' => 'string', - 'example' => '1', - ], - 'brandId' => [ - 'description' => 'The item ID.'."\n", - 'type' => 'string', - 'example' => '123', - ], - 'shopId' => [ - 'description' => 'The type of the item.'."\n", - 'type' => 'string', - 'example' => '123', - ], - 'pubTime' => [ - 'description' => 'Indicates whether the item can be recommended. Valid values: 1: The item can be recommended. 0: The item cannot be recommended.'."\n", - 'type' => 'string', - 'example' => '1612687809', - ], - 'channel' => [ - 'description' => 'The brand ID.'."\n", - 'type' => 'string', - 'example' => 'The store ID.'."\n", - ], - 'duration' => [ - 'description' => 'The time when the item was published.'."\n", - 'type' => 'string', - 'example' => '300', - ], - 'author' => [ - 'description' => 'The channel of the item.'."\n", - 'type' => 'string', - 'example' => 'zhangsan', + 'taskId' => ['description' => 'The task ID.', 'type' => 'string', 'title' => '', 'example' => 'taskId'], + 'metaType' => ['description' => 'The algorithm type. Currently, only ODPS is supported.', 'type' => 'string', 'title' => '', 'example' => 'metaType'], + 'type' => ['description' => 'The data source type. Currently, only ODPS is supported.', 'type' => 'string', 'title' => '', 'example' => 'ODPS'], + 'extInfo' => [ + 'description' => 'The content of the recall table.', + 'type' => 'object', + 'properties' => [ + 'kvSeparator' => ['description' => 'The key-value separator.', 'type' => 'string', 'title' => '', 'example' => ':'], + 'itemSeparator' => ['description' => 'The item separator.', 'type' => 'string', 'title' => '', 'example' => ','], ], - 'expireTime' => [ - 'description' => 'Entertainment'."\n", - 'type' => 'string', - 'example' => '1612687809', + 'title' => '', + 'example' => '', + ], + 'category' => ['description' => 'The recall category.', 'type' => 'string', 'title' => '', 'example' => '1_2'], + 'threshold' => [ + 'description' => 'The threshold information for the table.', + 'type' => 'object', + 'properties' => [ + 'sourceDataSizeThreshold' => ['description' => 'The source data size fluctuation threshold.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'], + 'sourceDataRecordThreshold' => ['description' => 'The source data record count fluctuation threshold.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'], + 'indexSizeThreshold' => ['description' => 'The index size fluctuation threshold.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'], + 'indexLossThreshold' => ['description' => 'The index loss threshold.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'], ], + 'title' => '', + 'example' => '', ], + 'tableName' => ['description' => 'The name of the ODPS recall table.', 'type' => 'string', 'title' => '', 'example' => 'test_table'], + 'clusterId' => ['description' => 'The cluster ID.', 'type' => 'string', 'title' => '', 'example' => '244'], + 'cron' => ['description' => 'The cron expression for the scheduled task.', 'type' => 'string', 'title' => '', 'example' => '* * 24 7 0'], + 'description' => ['description' => 'The description.', 'type' => 'string', 'title' => '', 'example' => 'test'], + 'projectName' => ['description' => 'The name of the project in ODPS.', 'type' => 'string', 'title' => '', 'example' => 'test'], + 'algorithmName' => ['description' => 'The algorithm name.', 'type' => 'string', 'title' => '', 'example' => 'test'], + 'cronEnabled' => ['description' => 'Indicates whether the scheduled task is enabled.', 'type' => 'boolean', 'title' => '', 'example' => 'true'], ], + 'title' => '', + 'example' => '', ], ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => 'The time spent on the page.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The author of the item.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The time when the item expires.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '7585C2B2-0D61-4C96-AC5D-B960BFEDD4A3'], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListSceneItems', - 'summary' => 'Queries preview results.', - 'description' => 'We recommend that you do not call an API operation to manage scenes. We recommend that you go to the Scenario Building page in the Artificial Intelligence Recommendation (AIRec) console to manage scenes.', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'ListSceneParameters' => [ - 'path' => '/v2/openapi/instances/{instanceId}/dashboard/scene-parameters', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'OfflineFilteringAlgorithm', + 'summary' => 'Takes a filtering algorithm offline.', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + 'PublishFlowControlTask' => [ + 'summary' => 'Publishes a traffic control task.', + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/actions/publish', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '18715', - 'abilityTreeNodes' => [ - 'FEATUREairecX63J28', - 'FEATUREairec5G3YBA', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '154377', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], + ], + [ + 'name' => 'taskId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the traffic control task.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '1666669577221'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ + 'title' => '', + 'description' => 'The response parameters.', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'result' => ['description' => 'The result of the request.', 'type' => 'boolean', 'title' => '', 'example' => 'true'], + ], + 'example' => '', + ], + ], + 500 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', + 'title' => '', + 'example' => '', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": true\\n}","type":"json"}]', + 'title' => 'PublishFlowControlTask', + 'changeSet' => [], + 'translator' => 'manual', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PublishFlowControlTask'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:PublishFlowControlTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], ], ], ], + ], + 'PublishRule' => [ + 'path' => '/v2/openapi/instances/{instanceId}/rules/{ruleId}/actions/publish', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '18727', + 'abilityTreeNodes' => ['FEATUREairecG8RBMT'], + ], + 'parameters' => [ + [ + 'name' => 'ruleId', + 'in' => 'path', + 'schema' => ['description' => 'The rule ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '98493A14-D619-4E88-9F8D-108939817F9F', 'title' => ''], + ], + [ + 'name' => 'ruleType', + 'in' => 'query', + 'schema' => ['description' => 'The type of the rule. Example: selection and operation.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'selection', 'title' => ''], + ], + [ + 'name' => 'sceneId', + 'in' => 'query', + 'schema' => ['description' => 'The scene ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test', 'title' => ''], + ], + [ + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004', 'title' => ''], + ], + ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '', + 'description' => 'The returned result.'."\n", 'type' => 'object', 'properties' => [ - 'traceId' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => 'trace_id', - 'type' => 'string', - 'example' => 'alibaba', - ], - ], - 'sceneId' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - ], + 'ruleId' => ['description' => 'The rule ID.'."\n", 'type' => 'string', 'example' => '98493A14-D619-4E88-9F8D-108939817F9F', 'title' => ''], ], - ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', + 'title' => '', 'example' => '', ], + 'code' => ['description' => 'The error code.'."\n", 'type' => 'string', 'example' => 'InternalServerError', 'title' => ''], + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'An internal server error occurred', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListSceneParameters', - 'summary' => 'Queries all channels and scenes of a specified instance.', - ], - 'ListUmengAppkeys' => [ - 'path' => '/v2/openapi/umeng/appkeys', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'PublishRule', + 'summary' => 'Publishes a rule.', + '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}'], + ], + ], + ], ], + ], + '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' => '18717', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', + 'operationType' => 'update', + 'abilityTreeCode' => '18728', + 'abilityTreeNodes' => ['FEATUREairecY1ADIM'], + ], + 'parameters' => [ + [ + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the Artificial Intelligence Recommendation instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-test'], + ], + [ + 'name' => 'tableName', + 'in' => 'path', + 'schema' => ['description' => 'The three industry tables are the user table, the item table, and the behavior table.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'user'], ], ], - 'parameters' => [], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'appkey' => [ - 'description' => '', - 'type' => 'string', - 'example' => '5ddcf39f57729e708b00000e', - ], - 'platform' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ios', - ], - 'name' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'xxx', - ], - ], - ], - ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], + 'result' => ['description' => 'Indicates whether the request is successful.', 'type' => 'boolean', 'title' => '', 'example' => 'true'], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => '0'], + 'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'message' => ['description' => 'The returned message.', 'type' => 'string', 'title' => '', 'example' => 'success'], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListUmengAppkeys', - 'summary' => 'Queries AppKeys of Umeng applications.', - ], - 'ListUserClusters' => [ - 'path' => '/v2/openapi/instances/{instanceId}/user-clusters', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": true,\\n \\"code\\": \\"0\\",\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', + 'title' => 'PushDocument', + 'summary' => 'Pushes documents to a specified table of an instance.', + 'changeSet' => [], + 'translator' => 'manual', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '2000', 'countWindow' => 1, 'regionId' => '*', 'api' => 'PushDocument'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:PushDocument', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + ], + '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' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => 'The ID of the instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-test'], ], ], 'responses' => [ @@ -16782,102 +12417,54 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'gmtModified' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'status' => [ - 'description' => '', - 'type' => 'string', - 'example' => '1', - ], - 'gmtCreate' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'name' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'mycluster-for-airec', - ], - 'meta' => [ - 'description' => 'meta', - 'type' => 'object', - 'properties' => [ - 'metaType' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'UserCluster', - ], - 'description' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'tst', - ], - ], - ], - ], - ], - ], - 'headers' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'X-Total-Count' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - ], - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '1E2CBBA8-C623-4FEE-BC84-9672E460CA39', - ], + 'result' => ['description' => 'The result of the request. Valid values: true and false.', 'type' => 'boolean', 'title' => '', 'example' => 'true'], + 'code' => ['description' => 'The status code.', 'type' => 'string', 'title' => '', 'example' => '1'], + 'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'message' => ['description' => 'The returned message.', 'type' => 'string', 'title' => '', 'example' => 'success'], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": true,\\n \\"code\\": \\"1\\",\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', + 'title' => 'PushIntervention', + 'summary' => 'This operation pushes intervention data to a specified instance.', + 'changeSet' => [], + 'translator' => 'manual', + '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\\": [\\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' => 'ListUserClusters', - 'summary' => 'Queries the users of a specified instance.', ], 'QueryDataMessage' => [ 'path' => '/v2/openapi/instances/{instanceId}/tables/{table}/data-message', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -16888,185 +12475,106 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '18730', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', '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' => 'The start time. This is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'title' => '', 'example' => '1586673466'], ], [ 'name' => 'endTime', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], + 'schema' => ['description' => 'The end time. This is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'title' => '', 'example' => '1586673466'], ], [ 'name' => 'table', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'item', - ], + 'schema' => ['description' => 'The name of the data table. Valid values: item and user.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'item'], ], [ 'name' => 'cmdType', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'update', - ], + 'schema' => ['description' => 'The command type. Valid values: update, delete, and add.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'title' => '', 'example' => 'update'], ], [ 'name' => 'itemId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '111', - ], + 'schema' => ['description' => 'This parameter is required when the table parameter is set to item.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '111'], ], [ 'name' => 'itemType', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'video', - ], + 'schema' => ['description' => 'This parameter is required when the table parameter is set to item.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'video'], ], [ 'name' => 'userId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '222', - ], + 'schema' => ['description' => 'This parameter is required when the table parameter is set to user.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '222'], ], [ 'name' => 'userType', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'app', - ], + 'schema' => ['description' => 'This parameter is required when the table parameter is set to user.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'app'], ], [ 'name' => 'page', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '1', - ], + 'schema' => ['description' => 'The page number. The default value is 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'title' => '', 'example' => '1'], ], [ 'name' => 'size', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '2147483647', - 'minimum' => '1', - 'example' => '20', - ], + 'schema' => ['description' => 'The number of entries to return on each page. The default value is 20.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '2147483647', 'minimum' => '1', 'title' => '', 'example' => '20'], ], [ 'name' => 'traceId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'Alibaba', - ], + 'schema' => ['description' => 'The trace ID.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'Alibaba'], ], [ 'name' => 'sceneId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], + 'schema' => ['description' => 'The scenario ID.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'test'], ], [ 'name' => 'bhvType', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'expose', - ], + 'schema' => ['description' => 'expose: An impression.'."\n" + ."\n" + .'click: A click.'."\n" + ."\n" + .'like: A like.'."\n" + ."\n" + .'comment: A comment.'."\n" + ."\n" + .'collect: A collection or favorite.'."\n" + ."\n" + .'stay: The dwell time.'."\n" + ."\n" + .'cart: An addition to the shopping cart.'."\n" + ."\n" + .'buy: A purchase.'."\n" + ."\n" + .'evaluate: A review.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'expose'], ], [ 'name' => 'messageSource', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'CONSOLE', - ], + 'schema' => ['description' => 'CONSOLE: The item was updated in the console.'."\n" + ."\n" + .'FEEDER: The item was updated using the SDK.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'CONSOLE'], ], [ 'name' => 'imei', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false, 'description' => '', 'title' => '', 'example' => ''], ], ], 'responses' => [ @@ -17074,56 +12582,58 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '', - 'type' => 'object', - 'example' => 'xxx', - ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'result' => ['description' => 'The query results.', 'type' => 'object', 'title' => '', 'example' => 'xxx'], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'InternalServerError'], + 'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'An internal server error occurred'], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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":""}]', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', 'title' => 'QueryDataMessage', - 'summary' => 'Queries update messages in a specified data table of a specified instance.', + 'summary' => 'Queries update messages in a user data table.', + 'description' => 'Queries update messages in a specified data table of a specified instance.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', + 'changeSet' => [], + 'translator' => 'machine', + '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}'], + ], + ], + ], + ], ], 'QueryDataMessageStatistics' => [ 'path' => '/v2/openapi/instances/{instanceId}/tables/{table}/data-message-statistics', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -17134,160 +12644,96 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '18731', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => 'The ID of the instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-o400whm78004'], ], [ 'name' => 'startTime', 'in' => 'query', - 'schema' => [ - 'description' => 'The start time. The value is a timestamp in seconds.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '946656000', - 'example' => '1586673466', - ], + 'schema' => ['description' => 'The start time. This is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '946656000', 'title' => '', 'example' => '1586673466'], ], [ 'name' => 'endTime', 'in' => 'query', - 'schema' => [ - 'description' => 'The end time. The value is a timestamp in seconds.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '946656000', - 'example' => '1586673466', - ], + 'schema' => ['description' => 'The end time. This is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '946656000', 'title' => '', 'example' => '1586673466'], ], [ 'name' => 'table', 'in' => 'path', - 'schema' => [ - 'description' => 'The name of the table. Valid values: item and user.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'item', - ], + 'schema' => ['description' => 'The name of the Artificial Intelligence Recommendation table. Valid values: item and user.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'item'], ], [ 'name' => 'cmdType', 'in' => 'query', - 'schema' => [ - 'description' => 'The type of the operation. Valid values: update, delete, and add.'."\n", - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'update', - ], + 'schema' => ['description' => 'The command type. Valid values: update, delete, and add.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'title' => '', 'example' => 'update'], ], [ 'name' => 'itemId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the item. This parameter is required when the value of table is set to item.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '111', - ], + 'schema' => ['description' => 'This parameter is required when the table parameter is set to item.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '111'], ], [ 'name' => 'itemType', 'in' => 'query', - 'schema' => [ - 'description' => 'The type of the item. This parameter is required when the value of table is set to item.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'video', - ], + 'schema' => ['description' => 'This parameter is required when the table parameter is set to item.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'video'], ], [ 'name' => 'userId', 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the user. This parameter is required when the value of table is set to user.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '222', - ], + 'schema' => ['description' => 'This parameter is required when the table parameter is set to user.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '222'], ], [ 'name' => 'userType', 'in' => 'query', - 'schema' => [ - 'description' => 'The type of the user. This parameter is required when the value of table is set to user.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'app', - ], + 'schema' => ['description' => 'This parameter is required when the table parameter is set to user.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'app'], ], [ 'name' => 'traceId', 'in' => 'query', - 'schema' => [ - 'description' => 'The event tracking ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Alibaba', - ], + 'schema' => ['description' => 'The trace ID.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'Alibaba'], ], [ 'name' => 'sceneId', 'in' => 'query', - 'schema' => [ - 'description' => 'The scene ID.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], + 'schema' => ['description' => 'The ID of the scenario.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'test'], ], [ 'name' => 'bhvType', 'in' => 'query', - 'schema' => [ - 'description' => 'The type of behaviors. Valid values: expose, click, like, comment, collect, stay, cart, buy, and evaluate.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'expose ', - ], + 'schema' => ['description' => 'expose: impression'."\n" + ."\n" + .'click: click'."\n" + ."\n" + .'like: like'."\n" + ."\n" + .'comment: comment'."\n" + ."\n" + .'collect: favorite'."\n" + ."\n" + .'stay: duration of stay'."\n" + ."\n" + .'cart: add to cart'."\n" + ."\n" + .'buy: purchase'."\n" + ."\n" + .'evaluate: review', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'expose '], ], [ 'name' => 'messageSource', 'in' => 'query', - 'schema' => [ - 'description' => 'The source of the operation. Valid values:'."\n" - ."\n" - .'CONSOLE and FEEDER.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => ' FEEDER', - ], + 'schema' => ['description' => 'CONSOLE'."\n" + ."\n" + .'FEEDER', 'type' => 'string', 'required' => false, 'title' => '', 'example' => ' FEEDER'], ], [ 'name' => 'imei', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string', 'description' => 'The IMEI of the device.', 'required' => false, 'title' => '', 'example' => 'd41d8cd98f00b204e9800998ecf8427e'], ], ], 'responses' => [ @@ -17295,57 +12741,58 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'The returned result.'."\n", - 'type' => 'object', - 'example' => 'xxx', - ], - 'code' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'result' => ['description' => 'The query result.', 'type' => 'object', 'title' => '', 'example' => 'xxx'], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'InternalServerError'], + 'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'An internal server error occurred'], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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":""}]', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', 'title' => 'QueryDataMessageStatistics', - 'summary' => 'Queries statistics on update messages in a data table of an instance.', - 'description' => 'You can call this API operation to query statistics on update messages in a specified data table of a specified instance.'."\n", + 'summary' => 'Retrieves statistics for update messages in a data table.', + 'description' => 'Retrieves statistics for update messages in a specified data table of an instance.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', + 'changeSet' => [], + 'translator' => 'machine', + '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}'], + ], + ], + ], + ], ], 'QueryExceptionHistory' => [ 'path' => '/v2/openapi/instances/{instanceId}/sync-reports/exception-history', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -17355,60 +12802,28 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '18732', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', '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' => 'The start time, which is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'title' => '', 'example' => '1586673466'], ], [ 'name' => 'endTime', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], + 'schema' => ['description' => 'The end time, which is a UNIX timestamp in seconds.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'title' => '', 'example' => '1586673466'], ], [ 'name' => 'type', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '', - ], + 'schema' => ['description' => 'Required. Valid values: item, behavior, and user.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'user'], ], ], 'responses' => [ @@ -17416,53 +12831,54 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '', - 'type' => 'object', - 'example' => '', - ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], + 'result' => ['description' => 'The query result.', 'type' => 'object', 'example' => '', 'title' => ''], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => '200'], + 'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'successful'], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], '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' => 'QueryExceptionHistory', - 'summary' => 'Queries abnormal historical data generated within a specific period of time.', + 'summary' => 'Queries the history of abnormal data for segments.', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], + ], ], 'QueryRawData' => [ 'path' => '/v2/openapi/instances/{instanceId}/tables/{table}/raw-data', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -17473,80 +12889,43 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '18733', - 'abilityTreeNodes' => [ - 'FEATUREairecY1ADIM', - ], + 'abilityTreeNodes' => ['FEATUREairecY1ADIM'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004', 'title' => ''], ], [ 'name' => 'table', 'in' => 'path', - 'schema' => [ - 'description' => 'The name of the table. Valid values: item and user.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'item', - ], + 'schema' => ['description' => 'The name of the Artificial Intelligence Recommendation table. Valid values: \\`item\\` and \\`user\\`.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'item', 'title' => ''], ], [ 'name' => 'itemId', 'in' => 'query', - 'schema' => [ - 'description' => 'The item ID. This parameter is required when the table parameter is set to item.'."\n", - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => '112', - ], + 'schema' => ['description' => 'Required if \\`table\\` is set to \\`item\\`.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => '112', 'title' => ''], ], [ 'name' => 'itemType', 'in' => 'query', - 'schema' => [ - 'description' => 'The type of the item. This parameter is required when the table parameter is set to item.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'video', - ], + 'schema' => ['description' => 'Required if \\`table\\` is set to \\`item\\`.', 'type' => 'string', 'required' => false, 'example' => 'video', 'title' => ''], ], [ 'name' => 'userId', 'in' => 'query', - 'schema' => [ - 'description' => 'The user ID. This parameter is required when the table parameter is set to user.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '111', - ], + 'schema' => ['description' => 'Required if \\`table\\` is set to \\`user\\`.', 'type' => 'string', 'required' => false, 'example' => '111', 'title' => ''], ], [ 'name' => 'userType', 'in' => 'query', - 'schema' => [ - 'description' => 'The type of the user. This parameter is required when the table parameter is set to user.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'app', - ], + 'schema' => ['description' => 'Required if \\`table\\` is set to \\`user\\`.', 'type' => 'string', 'required' => false, 'example' => 'app', 'title' => ''], ], [ 'name' => 'imei', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - ], + 'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], ], 'responses' => [ @@ -17554,57 +12933,58 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'The returned result.'."\n", - 'type' => 'object', - 'example' => 'xxx', - ], - 'code' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'Message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], + 'result' => ['description' => 'The query results.', 'type' => 'object', 'example' => 'xxx', 'title' => ''], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'example' => 'InternalServerError', 'title' => ''], + 'Message' => ['description' => 'The error details.', 'type' => 'string', 'example' => 'An internal server error occurred', 'title' => ''], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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":""}]', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', 'title' => 'QueryRawData', - 'summary' => 'Queries raw data in a specific data table of an instance by using the primary key.', - 'description' => 'You can call this operation to query raw data in a specific data table of an instance by using the primary key. The returned results need to be confirmed by customers.'."\n", + 'summary' => 'Queries raw data from a user data table.', + 'description' => 'This operation retrieves raw data from a user data table in the current instance using a primary key. The results are returned for confirmation.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], + ], ], 'QuerySingleAggregationReport' => [ 'path' => '/v2/openapi/instances/{instanceId}/sync-reports/single-aggregation-report', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -17614,21 +12994,13 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '18734', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-o400whm78004'], ], ], 'responses' => [ @@ -17636,53 +13008,54 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '', - 'type' => 'object', - 'example' => '', - ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => '', - ], + 'result' => ['description' => 'The query result.', 'type' => 'object', 'example' => '', 'title' => ''], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => '200'], + 'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'successful'], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], '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' => 'QuerySingleAggregationReport', - 'summary' => 'Queries data in a user table, an item table, or a behavior table by using an aggregation function. Data may be changed.', + 'summary' => 'Performs an aggregate query on a single table. The data is not updated in real time.', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:QuerySingleAggregationReport', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + ], + 'translator' => 'manual', + 'flowControl' => [ + 'flowControlList' => [], + ], ], 'QuerySingleReport' => [ 'path' => '/v2/openapi/instances/{instanceId}/sync-reports/single-report', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -17692,43 +13065,30 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '18735', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004', 'title' => ''], ], [ 'name' => 'reportType', 'in' => 'query', - 'schema' => [ - 'description' => 'The type of the single table report. This parameter is required.'."\n" - ."\n" - .'Valid values: typeItemValidScene,'."\n" - ."\n" - .'typeItemTag,'."\n" - ."\n" - .'typeItemTagScene,'."\n" - ."\n" - .'typeItemWeightScene,'."\n" - ."\n" - .'typeItemRawScene, and'."\n" - ."\n" - .'typeItemExpireScene'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'typeItemTagScene', - ], + 'schema' => ['description' => 'The type of the single table report. This parameter is required.'."\n" + ."\n" + .'Valid values: typeItemValidScene,'."\n" + ."\n" + .'typeItemTag,'."\n" + ."\n" + .'typeItemTagScene,'."\n" + ."\n" + .'typeItemWeightScene,'."\n" + ."\n" + .'typeItemRawScene, and'."\n" + ."\n" + .'typeItemExpireScene'."\n", 'type' => 'string', 'required' => true, 'example' => 'typeItemTagScene', 'title' => ''], ], ], 'responses' => [ @@ -17736,53 +13096,53 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'The returned result.'."\n", - 'type' => 'object', - 'example' => 'xxx', - ], - 'code' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'result' => ['description' => 'The returned result.'."\n", 'type' => 'object', 'example' => 'xxx', 'title' => ''], + 'code' => ['description' => 'The error code.'."\n", 'type' => 'string', 'example' => 'InternalServerError', 'title' => ''], + 'requestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'An internal server error occurred', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], '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' => 'Queries a single table report. More report types may be supported.', + '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}'], + ], + ], + ], + ], ], 'QuerySyncReportAggregation' => [ 'path' => '/v2/openapi/instances/{instanceId}/sync-reports/aggregation', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -17792,49 +13152,23 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '18736', - 'abilityTreeNodes' => [ - 'FEATUREairecLALQPW', - ], + 'abilityTreeNodes' => ['FEATUREairecLALQPW'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004'."\n", - ], + 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-o400whm78004'."\n", 'title' => ''], ], [ 'name' => 'startTime', 'in' => 'query', - 'schema' => [ - 'description' => 'The start time. The value is a timestamp in seconds.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], + 'schema' => ['description' => 'The start time. The value is a timestamp in seconds.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1586673466', 'title' => ''], ], [ 'name' => 'endTime', 'in' => 'query', - 'schema' => [ - 'description' => 'The end time. The value is a timestamp in seconds.'."\n", - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'docRequired' => true, - 'maximum' => '4102416000', - 'minimum' => '1565193600', - 'example' => '1586673466', - ], + 'schema' => ['description' => 'The end time. The value is a timestamp in seconds.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '4102416000', 'minimum' => '1565193600', 'example' => '1586673466', 'title' => ''], ], ], 'responses' => [ @@ -17842,37 +13176,25 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'The returned results.'."\n", - 'type' => 'object', - 'example' => 'xxx', - ], - 'code' => [ - 'description' => 'The error code.'."\n", - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => 'The error message.'."\n", - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'result' => ['description' => 'The returned results.'."\n", 'type' => 'object', 'example' => 'xxx', 'title' => ''], + 'code' => ['description' => 'The error code.'."\n", 'type' => 'string', 'example' => 'InternalServerError', 'title' => ''], + 'requestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'An internal server error occurred', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], @@ -17882,16 +13204,104 @@ '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}'], + ], + ], + ], + ], ], - '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'], ], - 'schemes' => [ - 'http', - 'https', + 'parameters' => [ + [ + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-test', 'title' => ''], + ], + [ + 'name' => 'algorithmId', + 'in' => 'path', + 'schema' => ['description' => 'The algorithm ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], + ], ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => 'The returned result.'."\n", + 'type' => 'object', + 'properties' => [ + 'result' => ['description' => 'The returned result.'."\n", 'type' => 'string', 'example' => 'true', 'title' => ''], + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": \\"true\\",\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","type":"json"}]', + 'title' => 'RebuildIndex', + 'summary' => 'Rebuilds an index.', + '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}'], + ], + ], + ], + ], + ], + 'Recommend' => [ + 'path' => '/v2/openapi/instances/{instanceId}/actions/recommend', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -17900,22 +13310,74 @@ 'operationType' => 'read', 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '18701', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'abilityTreeCode' => '18738', + 'abilityTreeNodes' => ['FEATUREairecY1ADIM'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-cn-o400whm78004', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-test001', 'title' => ''], + ], + [ + 'name' => 'sceneId', + 'in' => 'query', + 'schema' => ['description' => 'The ID of the scene where items are delivered.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''], + ], + [ + 'name' => 'userId', + 'in' => 'query', + 'schema' => ['description' => 'The unique ID of the user.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '123', 'title' => ''], + ], + [ + 'name' => 'ip', + 'in' => 'query', + 'schema' => ['description' => 'The IP address of the user\'s last logon.', 'type' => 'string', 'required' => false, 'example' => '192.168.1.1', 'title' => ''], + ], + [ + 'name' => 'imei', + 'in' => 'query', + 'schema' => ['description' => 'The device ID.', 'type' => 'string', 'required' => false, 'example' => '06e1565409c9fc4887036b974421****', 'title' => ''], + ], + [ + 'name' => 'returnCount', + 'in' => 'query', + 'schema' => ['description' => 'The number of results to return. Valid values: 0 to 50.', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '10', 'title' => ''], + ], + [ + 'name' => 'items', + 'in' => 'query', + 'schema' => ['description' => 'The item used for related recommendations. This parameter applies only to related recommendation scenarios.', 'type' => 'string', 'required' => false, 'example' => '1001', 'title' => ''], + ], + [ + 'name' => 'serviceType', + 'in' => 'query', + 'schema' => ['description' => 'Omitted.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'userInfo', + 'in' => 'query', + 'schema' => ['description' => 'Omitted.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'rankOpen', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether to personalize the sorting based on the user ID during the recall and ranking phase.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''], + ], + [ + 'name' => 'recType', + 'in' => 'query', + 'schema' => ['description' => 'The type of the recommendation service.', 'type' => 'string', 'required' => false, 'example' => 'gul', 'title' => ''], + ], + [ + 'name' => 'filter', + 'in' => 'query', + 'schema' => ['description' => 'The filter string for recommendations.', 'type' => 'string', 'required' => false, 'example' => 'eyJqb2luIjoiYW5kIiwiZmlsdGVycyI6W3siY29uZCI6ImNvbnRhaW4iLCJmaWVsZCI6InRhZ3MiLCJ2YWx1ZSI6IuWPjOS6uiJ9XX0.', 'title' => ''], + ], + [ + 'name' => 'strategy', + 'in' => 'query', + 'schema' => ['description' => 'If you want to use a fixed-slot policy, add the strategy parameter with a value of fixedSlot to the request parameters. The system then returns recommendation results based on the slot configuration.', 'type' => 'string', 'required' => false, 'example' => 'fixedSlot', 'title' => ''], ], ], 'responses' => [ @@ -17924,293 +13386,225 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '', + 'description' => 'The returned result.', 'type' => 'array', 'items' => [ + 'description' => 'The returned result.', 'type' => 'object', 'properties' => [ - 'gmtModified' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'gmtCreate' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2018-12-07T02:24:26.000Z', - ], - 'tableName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'behavior', - ], - 'meta' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'bucketName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'airec', - ], - 'accessKeyId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'xxx', - ], - 'type' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ODPS', - ], - 'partition' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ds=20181122', - ], - 'timestamp' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1544112000000', - ], - 'path' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'oss://xxx.xxx', - ], - 'tableName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'test_maxcompute', - ], - 'projectName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'openrec_gray', - ], - ], - ], - ], + 'matchInfo' => ['description' => 'The match information. You can ignore this field. It may be used during debugging.', 'type' => 'string', 'example' => 'xxx', 'title' => ''], + 'traceId' => ['description' => 'The trace ID used when reporting logs. When reporting logs, set trace_id to ali.', 'type' => 'string', 'example' => 'ali', 'title' => ''], + 'position' => ['description' => 'The position where the item is displayed, starting from 0. The returned results are already sorted by position, so you do not need to handle this field.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'itemId' => ['description' => 'The item ID.', 'type' => 'string', 'example' => '123', 'title' => ''], + 'itemType' => ['description' => 'The item type.', 'type' => 'string', 'example' => 'item', 'title' => ''], + 'traceInfo' => ['description' => 'The traceInfo value in the returned result. Each item has a different value. When reporting logs, pass the corresponding traceInfo value for each 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:::::"', 'title' => ''], + 'weight' => ['description' => 'The weight.', 'type' => 'number', 'format' => 'float', 'example' => '1', 'title' => ''], + 'flowWeight' => ['description' => 'The traffic control weighting field. A value of 0 indicates no weighting. A value greater than 0 indicates upweighting. A value less than 0 indicates downweighting.', 'type' => 'number', 'format' => 'double', 'example' => '0', 'title' => ''], + 'message' => ['description' => 'The status message.', 'type' => 'string', 'example' => 'Successful', 'title' => ''], + ], + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'InternalServerError', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'An internal server error occurred', - ], + 'code' => ['description' => 'The status code.', 'type' => 'string', 'example' => '200', 'title' => ''], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '04707E49-642A-4649-827A-F8EEB07D4C27', 'title' => ''], + 'message' => ['description' => 'The status message.', 'type' => 'string', 'example' => '"i2i_common_common;NotFound;1673254401;similar product/content of clicked ones;2023-01-09 16:53:21"', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'ListDataSource', - 'summary' => 'Queries the information about the data sources of a specified instance.', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'Intelligent recommendation', + 'summary' => 'Retrieves recommendation results for a specified instance.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'InitComputingResource' => [ - 'summary' => 'Initializes computing resources.', - 'path' => '/v2/openapi/instances/{instanceId}/computing-resources/actions/init', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'translator' => 'machine', + '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}'], + ], + ], + ], ], + ], + 'RefreshFeatureTable' => [ + 'summary' => 'Refreshes a feature table from its data source. The refresh policy treats the source table as the ground truth.', + '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' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'airec-test', - ], + 'schema' => ['description' => 'A short description of struct', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-shdjkgkeog', 'title' => ''], ], [ 'name' => 'type', - 'in' => 'query', - 'schema' => [ - 'title' => '计算资源类型', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'MAX_COMPUTE', - ], + 'in' => 'path', + 'schema' => ['description' => 'The type of the feature table.', 'type' => 'string', 'required' => true, 'example' => 'ItemFeatureTable UserFeatureTable', 'title' => ''], ], [ - 'name' => 'key', - 'in' => 'query', - 'schema' => [ - 'title' => '计算资源初始化参数', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'MAX_COMPUTE', - ], + 'name' => 'featureTableId', + 'in' => 'path', + 'schema' => ['description' => 'The ID of the feature table.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], + 'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', 'title' => ''], + 'result' => ['$ref' => '#/components/schemas/FeatureTable', 'description' => '', 'title' => '', 'example' => ''], + ], + 'title' => '', + 'description' => 'The response object.', + 'example' => '', + ], + ], + ], + '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' => 'RefreshFeatureTable', + 'changeSet' => [], + 'translator' => 'manual', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RefreshFeatureTable'], + ], + ], + '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' => '[{"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' => 'InitComputingResource', ], - 'PushDocument' => [ - 'path' => '/v2/openapi/instances/{instanceId}/tables/{tableName}/actions/bulk', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'RollbackRankingSystem' => [ + 'summary' => 'Rolls back a sorting service.', + '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' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'tableName', + 'name' => 'name', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'user', - ], + 'schema' => ['title' => '', 'description' => 'The name of the sorting service.', 'type' => 'string', 'required' => true, 'example' => 'service-a'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => ['description' => 'The parameters in the request body.', 'type' => 'object', 'required' => false, 'title' => '', 'example' => '{'."\n" + .' "operateId": "a-b-c"'."\n" + .'}'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'title' => '', + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'true/false', - 'type' => 'boolean', - 'example' => 'true', - ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '0', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'success', - ], + 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'result' => ['title' => '', 'description' => 'The result of the request.', 'type' => 'object', 'example' => '无'], ], + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","type":"json"}]', + 'title' => 'RollbackRankingSystem', + 'changeSet' => [], + 'translator' => 'manual', + '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' => 'PushDocument', ], - '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' => [], @@ -18219,310 +13613,231 @@ 'operationType' => 'write', 'systemTags' => [ 'operationType' => 'update', - 'abilityTreeCode' => '18729', - 'abilityTreeNodes' => [ - 'FEATUREairecY1ADIM', - ], + 'abilityTreeCode' => '18739', + 'abilityTreeNodes' => ['FEATUREairecX63J28', 'FEATUREairec5G3YBA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'example' => 'airec-cn-****', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => '', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - 'code' => [ - 'description' => '', - 'type' => 'string', - 'example' => '1', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], - 'message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'success', - ], + 'result' => ['description' => 'Indicates whether a dataset was created.'."\n", 'type' => 'boolean', 'example' => 'false', 'title' => ''], + 'code' => ['description' => 'The error code.'."\n", 'type' => 'string', 'example' => 'InternalServerError', 'title' => ''], + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'An internal server error occurred', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'Pushes intervention data to a specified instance.', - ], - 'RebuildIndex' => [ - 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/actions/rebuild', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'RunInstance', + 'summary' => 'Runs an instance to start a full data import task.', + 'description' => 'You can call this API operation to run an instance to start a full data import task. After you call this API operation, the system creates a dataset. Then, the system imports all data from your data sources into the dataset for data training.'."\n", + '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}'], + ], + ], + ], ], + ], + 'RunRankingModelTemplate' => [ + 'summary' => 'Runs a ranking model template.', + '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' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'airec-test'], ], [ - 'name' => 'algorithmId', + 'name' => 'templateId', 'in' => 'path', - 'schema' => [ - 'description' => 'The algorithm ID.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '123', - ], + 'schema' => ['title' => '', 'description' => 'The model ID.', 'type' => 'string', 'required' => true, 'example' => '123'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => 'The returned result.'."\n", + 'title' => '', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'result' => [ - 'description' => 'The returned result.'."\n", - 'type' => 'string', - 'example' => 'true', - ], - 'requestId' => [ - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', - ], + 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'result' => ['title' => '', 'description' => 'The result.', 'type' => 'object', 'example' => 'xxx'], ], + 'example' => '', ], ], - '5XX' => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","type":"json"}]', + 'title' => 'RunRankingModelTemplate', + 'changeSet' => [], + 'translator' => 'manual', + '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' => 'RebuildIndex', - 'summary' => 'Rebuilds an index.', ], - 'Recommend' => [ - 'path' => '/v2/openapi/instances/{instanceId}/actions/recommend', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'RunSampleFormatConfig' => [ + 'summary' => 'Triggers sample formatting configurations.', + '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' => 'The ID of the instance.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test001', - ], + 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'example' => 'airec-test', 'title' => ''], ], [ - 'name' => 'sceneId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The number of result entries to return. Valid values: 0 to 50.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - [ - 'name' => 'userId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The items used for related recommendations in specified scenes.'."\n", - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => '123', - ], - ], - [ - 'name' => 'ip', - 'in' => 'query', - 'schema' => [ - 'description' => 'The HTTP status code.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '192.168.1.1', - ], - ], - [ - 'name' => 'imei', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the scene in which the item is to be recommended.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '06e1565409c9fc4887036b974421****', - ], - ], - [ - 'name' => 'returnCount', - 'in' => 'query', - 'schema' => [ - 'description' => 'The returned results.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'docRequired' => true, - 'example' => '10', - ], + 'name' => 'sampleId', + 'in' => 'path', + 'schema' => ['description' => 'The sample ID.'."\n", 'type' => 'string', 'required' => true, 'example' => '123', 'title' => ''], ], [ - 'name' => 'items', + 'name' => 'mode', 'in' => 'query', - 'schema' => [ - 'description' => 'The information about event tracking. The value of this parameter varies based on different items and needs to be uploaded together with the corresponding behavior data.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1001', - ], + 'schema' => ['description' => 'The mode of the formatting. Default value: Latest. This value indicates that the latest formatting configurations are used.'."\n", 'type' => 'string', 'required' => false, 'example' => 'latest', 'title' => ''], ], - [ - 'name' => 'serviceType', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'The position at which the recommended item is displayed. The position number starts from 0. The return results are ranked by position. You can ignore this parameter.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'example' => 'airec-test', 'title' => ''], + 'result' => ['description' => 'Indicates whether the sample formatting configurations are triggered.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], - [ - 'name' => 'userInfo', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1', - ], + ], + '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":""}]', + 'title' => 'RunSampleFormatConfig', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RunSampleFormatConfig'], ], + ], + 'ramActions' => [ [ - 'name' => 'rankOpen', - 'in' => 'query', - 'schema' => [ - 'description' => 'N/A'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:RunSampleFormatConfig', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], ], ], + ], + ], + 'StopDataSet' => [ + 'path' => '/v2/openapi/instances/{instanceId}/dataSets/{versionId}/actions/stop', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'recType', - 'in' => 'query', - 'schema' => [ - 'description' => 'The type of the recommended item.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'gul', - ], + 'AK' => [], ], + ], + 'operationType' => 'write', + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '18740', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], + ], + 'parameters' => [ [ - 'name' => 'filter', - 'in' => 'query', - 'schema' => [ - 'description' => 'The status of the execution.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'eyJqb2luIjoiYW5kIiwiZmlsdGVycyI6W3siY29uZCI6ImNvbnRhaW4iLCJmaWVsZCI6InRhZ3MiLCJ2YWx1ZSI6IuWPjOS6uiJ9XX0.', - ], + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-o400whm78004'], ], [ - 'name' => 'strategy', - 'in' => 'query', - 'schema' => [ - 'description' => '如果需要使用坑位策略,请求参数内新增strategy="fixedSlot",此时系统将按照坑位配置返回推荐结果', - 'type' => 'string', - 'required' => false, - 'example' => 'fixedSlot', - ], + 'name' => 'versionId', + 'in' => 'path', + 'schema' => ['description' => 'The version number.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '20181023214546'], ], ], 'responses' => [ @@ -18531,318 +13846,252 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => 'The unique ID of the user.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The last logon IP address of the user.'."\n", - 'type' => 'object', - 'properties' => [ - 'matchInfo' => [ - 'description' => 'N/A'."\n", - 'type' => 'string', - 'example' => 'xxx', - ], - 'traceId' => [ - 'description' => 'The status of the execution.'."\n", - 'type' => 'string', - 'example' => 'ali', - ], - 'position' => [ - 'description' => 'The string for filtering during recommendation.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'itemId' => [ - 'description' => 'The returned results.'."\n", - 'type' => 'string', - 'example' => '123', - ], - 'itemType' => [ - 'description' => 'The ID of the recommended item.'."\n", - 'type' => 'string', - 'example' => 'item', - ], - 'traceInfo' => [ - 'description' => 'Specifies whether to perform personalized ranking based on the user IDs in the filtering and ranking phases.'."\n", - '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' => 'The weight of the recommended item.'."\n", - 'type' => 'number', - 'format' => 'float', - 'example' => '1', - ], - 'flowWeight' => [ - 'description' => 'The ID of the device.'."\n", - 'type' => 'number', - 'format' => 'double', - 'example' => '0', - ], - 'message' => [ - 'description' => 'The event tracking ID. This parameter is uploaded together with user behaviors on the recommended item. In this case, the value of this parameter is ali.'."\n", - 'type' => 'string', - 'example' => 'Successful', - ], - ], + 'description' => 'The details of the dataset.', + 'type' => 'object', + 'properties' => [ + 'versionId' => ['description' => 'The version number.', 'type' => 'string', 'title' => '', 'example' => '20181023214546'], + 'state' => ['description' => 'The status of the dataset version. \\`Importing\\` indicates that the data is being imported.', 'type' => 'string', 'title' => '', 'example' => 'Importing'], + 'gmtModified' => ['description' => 'The time when the data source was last modified.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1544112000000'], + 'gmtCreate' => ['description' => 'The time when the data source was created.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1544112000000'], + 'instanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'title' => '', 'example' => 'airec-cn-o400whm78004'], ], + 'title' => '', + 'example' => '', ], - 'code' => [ - 'description' => 'This parameter may be used in the debugging process. You can ignore this parameter.'."\n", - 'type' => 'string', - 'example' => '200', - ], - 'requestId' => [ - 'description' => 'The weight of the specified process.'."\n", - 'type' => 'string', - 'example' => '04707E49-642A-4649-827A-F8EEB07D4C27', - ], - 'message' => [ - 'description' => 'Queries the recommendation results of a specified instance.'."\n", - 'type' => 'string', - 'example' => '"i2i_common_common;NotFound;1673254401;similar product/content of clicked ones;2023-01-09 16:53:21"', - ], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => 'InternalServerError'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691'], + 'message' => ['description' => 'The error details.', 'type' => 'string', 'title' => '', 'example' => 'An internal server error occurred'], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'Recommend', - 'summary' => 'Queries the recommendation results of a specified instance.', + 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]', + 'title' => 'StopDataSet', + 'summary' => 'Stops a specific version of a dataset for a specified instance.', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'RefreshFeatureTable' => [ - 'summary' => 'Refreshes a feature table based on the source table in MaxCompute. The refresh policy is subject to data in the source table.', - 'path' => '/v2/openapi/instances/{instanceId}/feature-tables/{type}/{featureTableId}/actions/refresh', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + 'StopFlowControlTask' => [ + 'summary' => 'Stops a traffic control task.', + 'path' => '/v2/openapi/instances/{instanceId}/flowControlTasks/{taskId}/actions/stop', + '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' => '117112', - 'abilityTreeNodes' => [ - 'FEATUREairecGK86LR', - ], + 'abilityTreeCode' => '154378', + 'abilityTreeNodes' => ['FEATUREairecJZYTIA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - 'title' => 'A short description of struct', - ], - ], - [ - 'name' => 'type', - 'in' => 'path', - 'schema' => [ - 'description' => 'The type of the feature table.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'xxx', - 'title' => '特征表类型', - ], + 'schema' => ['title' => '', 'description' => 'The ID of the instance.', 'type' => 'string', 'required' => false, 'example' => 'airec-cn-****'], ], [ - 'name' => 'featureTableId', + 'name' => 'taskId', 'in' => 'path', - 'schema' => [ - 'description' => 'The feature table ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => '123', - 'title' => '特征表id', - ], + 'schema' => ['description' => 'The ID of the traffic control task.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '1666854602398'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', + 'title' => '', + 'description' => 'The data returned.', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], - 'result' => [ - '$ref' => '#/components/schemas/FeatureTable', - ], + 'requestId' => ['title' => '', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'result' => ['description' => 'The result of the operation.', 'type' => 'boolean', 'title' => '', 'example' => 'true'], ], + 'example' => '', + ], + ], + 500 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'RefreshFeatureTable', - ], - 'RunSampleFormatConfig' => [ - 'summary' => 'Triggers sample formatting configurations.', - 'path' => '/v2/openapi/instances/{instanceId}/samples/{sampleId}/format-configs/actions/run', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": true\\n}","type":"json"}]', + 'title' => 'StopFlowControlTask', + 'changeSet' => [], + 'translator' => 'manual', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopFlowControlTask'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'airec:StopFlowControlTask', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], ], + ], + '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' => '117134', - 'abilityTreeNodes' => [ - 'FEATUREairec5XEKC0', - ], + 'abilityTreeCode' => '18741', + 'abilityTreeNodes' => ['FEATUREairecXPRU1W'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'airec-test', - 'title' => 'A short description of struct', - ], + 'schema' => ['description' => 'The ID of the instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-test'], ], [ - 'name' => 'sampleId', + 'name' => 'algorithmId', 'in' => 'path', - 'schema' => [ - 'description' => 'The sample ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => '123', - 'title' => '样本id', - ], - ], - [ - 'name' => 'mode', - 'in' => 'query', - 'schema' => [ - 'description' => 'The mode of the formatting. Default value: Latest. This value indicates that the latest formatting configurations are used.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'latest', - 'title' => '格式化模式', - ], + 'schema' => ['description' => 'The ID of the retrieval algorithm.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'abc'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => 'The response body.', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'description' => 'The instance ID.'."\n", - 'type' => 'string', - 'example' => 'airec-test', - 'title' => 'Id of the request', - ], - 'result' => [ - 'description' => 'Indicates whether the sample formatting configurations are triggered.'."\n", - 'type' => 'boolean', - 'example' => 'true', - 'title' => 'result', - ], + 'result' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'title' => '', 'example' => 'true'], + 'requestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], ], - 'title' => 'Schema of Response', + 'title' => '', + 'example' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - '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' => 'RunSampleFormatConfig', - ], - 'UnLockIndexVersion' => [ - 'path' => '/v2/openapi/instances/{instanceId}/filtering-algorithms/{algorithmId}/actions/unlock', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","type":"json"}]', + 'title' => 'UnLockIndexVersion', + 'summary' => 'Unlocks an index version of a retrieval table.', + '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}'], + ], + ], + ], ], + 'translator' => 'manual', + ], + 'UpdateExperimentBasicInfo' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments/{experimentId}/basic', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', - 'abilityTreeCode' => '18741', - 'abilityTreeNodes' => [ - 'FEATUREairecXPRU1W', - ], + 'abilityTreeCode' => '18742', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'airec-test', - ], + 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****', 'title' => ''], ], [ - 'name' => 'algorithmId', + 'name' => 'sceneId', 'in' => 'path', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'abc', - ], + 'schema' => ['description' => 'The scene ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'sceneId', 'title' => ''], + ], + [ + 'name' => 'experimentId', + 'in' => 'path', + 'schema' => ['description' => 'The experiment ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '12345', 'title' => ''], ], ], 'responses' => [ @@ -18852,514 +14101,2853 @@ 'type' => 'object', 'properties' => [ 'result' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - 'requestId' => [ - 'description' => '', - 'type' => 'string', - 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2', + 'description' => 'The information about the experiment.'."\n", + 'type' => 'object', + 'properties' => [ + 'base' => ['description' => 'Indicates whether the experiment uses default configurations.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'onlineTime' => ['description' => 'The time when the experiment was published.'."\n", 'type' => 'string', 'example' => '2020-11-11T09:47:43.000Z', 'title' => ''], + 'offlineTime' => ['description' => 'The time when the experiment was unpublished.'."\n", 'type' => 'string', 'example' => '2020-11-11T09:47:43.000Z', 'title' => ''], + 'description' => ['description' => 'The description of the experiment.'."\n", 'type' => 'string', 'example' => 'demo1', 'title' => ''], + 'status' => ['description' => 'The status of the experiment.'."\n", 'type' => 'string', 'example' => '1', 'title' => ''], + 'name' => ['description' => 'The name of the experiment.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''], + 'algorithms' => [ + 'description' => 'The parameters of the experiment.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => 'The key of the algorithm.'."\n", 'type' => 'string', 'example' => 'I2I', 'title' => ''], + 'config' => [ + 'description' => 'The information about the child configuration item.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => 'The key of the algorithm configuration item.'."\n", 'type' => 'string', 'example' => 'I2I', 'title' => ''], + 'defaultValue' => ['description' => 'The default value of the algorithm configuration item.'."\n", 'type' => 'string', 'example' => 'true', 'title' => ''], + 'experimentValue' => ['description' => 'The custom value of the algorithm configuration item.'."\n", 'type' => 'string', 'example' => '400', 'title' => ''], + 'name' => ['description' => 'The name of the algorithm configuration item.'."\n", 'type' => 'string', 'example' => 'i2i召回链路', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'defaultValue' => ['description' => 'The default value of the algorithm.'."\n", 'type' => 'string', 'example' => '400', 'title' => ''], + 'type' => ['description' => 'The type of the algorithm.'."\n", 'type' => 'string', 'example' => 'SYSTEM', 'title' => ''], + 'experimentValue' => ['description' => 'The custom value of the algorithm.'."\n", 'type' => 'string', 'example' => '400', 'title' => ''], + 'hasConfig' => ['description' => 'Indicates whether child configuration items exist. Valid values: true and false.'."\n", 'type' => 'boolean', 'example' => 'false', 'title' => ''], + 'category' => ['description' => 'The category of the algorithm.'."\n", 'type' => 'string', 'example' => '2', 'title' => ''], + 'name' => ['description' => 'The name of the experiment.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'buckets' => [ + 'description' => 'The traffic buckets.'."\n", + 'type' => 'array', + 'items' => ['description' => 'The information about the array object.'."\n", 'type' => 'string', 'example' => '["1","2","3"]', 'title' => ''], + 'title' => '', + 'example' => '', + ], + 'experimentId' => ['description' => 'The experiment ID.'."\n", 'type' => 'string', 'example' => '12345', 'title' => ''], + ], + 'title' => '', + 'example' => '', ], + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"result\\": true,\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]', - 'title' => 'UnLockIndexVersion', - 'summary' => 'Unlocks the version of the index for a filtering table.', - ], - 'CreateDataDiagnoseTask' => [ - 'summary' => '创建数据诊断任务。', - 'path' => '/v2/openapi/instances/{instanceId}/data-diagnose-task', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'UpdateExperimentBasicInfo', + 'summary' => 'Updates the basic information about an experiment.', + '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}'], + ], + ], + ], ], + ], + 'UpdateExperimentConfig' => [ + 'path' => '/v2/openapi/instances/{instanceId}/scenes/{sceneId}/experiments/{experimentId}/config', + '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' => '18743', + 'abilityTreeNodes' => ['FEATUREairecGK86LR'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-shdjkgkeog', - ], + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-****'."\n"], + ], + [ + 'name' => 'sceneId', + 'in' => 'path', + 'schema' => ['description' => 'The scenario ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'sceneId'], + ], + [ + 'name' => 'experimentId', + 'in' => 'path', + 'schema' => ['description' => 'The experiment ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => '12345'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], 'result' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', + 'description' => 'The response parameters.', + 'type' => 'object', + 'properties' => [ + 'base' => ['description' => 'Indicates whether the experiment is the default experiment.', 'type' => 'boolean', 'title' => '', 'example' => 'true'], + 'onlineTime' => ['description' => 'The time when the experiment went online.', 'type' => 'string', 'title' => '', 'example' => '2020-12-07T06:47:30.000Z'], + 'offlineTime' => ['description' => 'The time when the experiment went offline or was fully rolled out.', 'type' => 'string', 'title' => '', 'example' => '2020-12-07T06:47:30.000Z'], + 'description' => ['description' => 'The description of the experiment.', 'type' => 'string', 'title' => '', 'example' => 'demo1'], + 'status' => ['description' => 'The status of the experiment.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **Init**: Not online.'."\n" + ."\n" + .'- **Online**: Online.'."\n" + ."\n" + .'- **Finish**: Fully rolled out.'."\n" + ."\n" + .'- **Offline**: Offline.', 'type' => 'string', 'title' => '', 'example' => 'Online'], + 'name' => ['description' => 'The name of the experiment.', 'type' => 'string', 'title' => '', 'example' => 'I2I召回链路'], + 'algorithms' => [ + 'description' => 'A list of experiment parameters.', + 'type' => 'array', + 'items' => [ + 'description' => 'An experiment parameter.', + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => 'The key of the algorithm.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **I2I**: I2I retrieval endpoint.'."\n" + ."\n" + .'- **u2X2I**: U2X2I retrieval endpoint.'."\n" + ."\n" + .'- **hot**: Hot item retrieval endpoint.'."\n" + ."\n" + .'- **new**: New item retrieval endpoint.'."\n" + ."\n" + .'- **embedding**: Vector retrieval endpoint.'."\n" + ."\n" + .'- **mtorder**: The priority of the retrieval endpoint.'."\n" + ."\n" + .'- **rankservice**: The sorting service.', 'type' => 'string', 'title' => '', 'example' => 'I2I'], + 'config' => [ + 'description' => 'A list of child configuration items.', + 'type' => 'array', + 'items' => [ + 'description' => 'The information about the child configuration item.', + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => 'The key of the algorithm configuration item.', 'type' => 'string', 'title' => '', 'example' => 'I2I'], + 'defaultValue' => ['description' => 'The default value of the algorithm configuration item.', 'type' => 'string', 'title' => '', 'example' => 'true'], + 'experimentValue' => ['description' => 'The experiment value.', 'type' => 'string', 'title' => '', 'example' => 'true'], + 'name' => ['description' => 'The name of the child configuration.', 'type' => 'string', 'title' => '', 'example' => 'xxx'], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'defaultValue' => ['description' => 'The default number of items to retrieve.', 'type' => 'string', 'title' => '', 'example' => '400'], + 'type' => ['description' => 'The type of the algorithm.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **SYSTEM**: System default.'."\n" + ."\n" + .'- **CUSTOM**: User-defined.', 'type' => 'string', 'title' => '', 'example' => 'SYSTEM'], + 'experimentValue' => ['description' => 'The experiment value.', 'type' => 'string', 'title' => '', 'example' => '300'], + 'hasConfig' => ['description' => 'Indicates whether child configuration items exist.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **true**: Yes'."\n" + ."\n" + .'- **false**: No', 'type' => 'boolean', 'title' => '', 'example' => 'true'], + 'category' => ['description' => 'The category of the algorithm.'."\n" + ."\n" + .'Valid values:'."\n" + ."\n" + .'- **RECALL**: Retrieval.'."\n" + ."\n" + .'- **RANK**: Sorting.', 'type' => 'string', 'title' => '', 'example' => 'RECALL'], + 'name' => ['description' => 'The name of the experiment.', 'type' => 'string', 'title' => '', 'example' => 'xxx'], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'buckets' => [ + 'description' => 'A list of buckets. This parameter is valid only when the experiment is online.', + 'type' => 'array', + 'items' => ['description' => 'The bucket information.', 'type' => 'string', 'title' => '', 'example' => 'userid'], + 'title' => '', + 'example' => '', + ], + 'experimentId' => ['description' => 'The experiment ID.', 'type' => 'string', 'title' => '', 'example' => 'xxx'], + ], + 'title' => '', + 'example' => '', ], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], ], + 'title' => '', + 'example' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": true\\n}","type":"json"}]', - 'title' => 'CreateDataDiagnoseTask', - ], - 'CreateUmengToken' => [ - 'summary' => '创建友盟授权token', - 'path' => '/v2/openapi/umeng/token', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + '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\\": \\"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}","type":"json"}]', + 'title' => 'UpdateExperimentConfig', + 'summary' => 'Updates the configuration of an experiment.', + 'changeSet' => [], + 'translator' => 'manual', + '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}'], + ], + ], + ], ], + ], + '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' => '148531', - 'abilityTreeNodes' => [ - 'FEATUREairecY1ADIM', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '18744', + 'abilityTreeNodes' => ['FEATUREairec4DBEUA'], ], 'parameters' => [ [ - 'name' => 'code', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'instanceId', + 'in' => 'path', + 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****', 'title' => ''], + ], + [ + 'name' => 'sceneId', + 'in' => 'path', + 'schema' => ['description' => 'The scene ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'sceneId', 'title' => ''], + ], + [ + 'name' => 'experimentId', + 'in' => 'path', + 'schema' => ['description' => 'The experiment ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => 'The returned result.'."\n", 'type' => 'object', 'properties' => [ 'result' => [ - 'type' => 'boolean', - ], - 'code' => [ - 'type' => 'string', - ], - 'requestId' => [ - 'type' => 'string', - ], - 'message' => [ - 'type' => 'string', + 'description' => 'The returned result.'."\n", + 'type' => 'object', + 'properties' => [ + 'base' => ['description' => 'Indicates whether the default configurations are used for the experiment.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'onlineTime' => ['description' => 'The time when the experiment was published.'."\n", 'type' => 'string', 'example' => '2020-11-11T09:47:43.000Z', 'title' => ''], + 'offlineTime' => ['description' => 'The time when the experiment was unpublished.'."\n", 'type' => 'string', 'example' => '2020-11-11T09:47:43.000Z', 'title' => ''], + 'description' => ['description' => 'The remarks of the experiment.'."\n", 'type' => 'string', 'example' => 'xxx', 'title' => ''], + 'status' => ['description' => 'The experiment state. Valid values: init, online, finish, and offline.'."\n", 'type' => 'string', 'example' => 'init', 'title' => ''], + 'name' => ['description' => 'The experiment name.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''], + 'algorithms' => [ + 'description' => 'The algorithm configurations.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'The information about the array object.'."\n", + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => 'The algorithm key. Valid values: i2i: the I2I filtering algorithm. u2x2i: the U2X2I filtering algorithm. hot: the filtering algorithm for popular items. new: the filtering algorithm for new items. embedding: the vector filtering algorithm. mtorder: the priority of the filtering algorithm. rankservice: the ranking service.'."\n", 'type' => 'string', 'example' => 'hot', 'title' => ''], + 'config' => [ + 'description' => 'The experiment configurations.'."\n", + 'type' => 'array', + 'items' => [ + 'description' => 'The information about the array object.'."\n", + 'type' => 'object', + 'properties' => [ + 'key' => ['description' => 'The algorithm key. Valid values: i2i: the I2I filtering algorithm. u2x2i: the U2X2I filtering algorithm. hot: the filtering algorithm for popular items. new: the filtering algorithm for new items. embedding: the vector filtering algorithm. mtorder: the priority of the filtering algorithm. rankservice: the ranking service.'."\n", 'type' => 'string', 'example' => 'hot', 'title' => ''], + 'defaultValue' => ['description' => 'The default value of the algorithm. If you set key to i2i, hot, or new, the value of this parameter is true or false. If you set key to mtorder, the value of this parameter is a list of filtering algorithms ranked by priority.'."\n", 'type' => 'string', 'example' => 'xxx', 'title' => ''], + 'experimentValue' => ['description' => 'The custom value of the algorithm.'."\n", 'type' => 'string', 'example' => 'xxx', 'title' => ''], + 'name' => ['description' => 'The algorithm name. (Note: If you use the default algorithm, the console obtains the algorithm name from Medusa. If you customize an algorithm for the experiment, the algorithm name is directly returned.)'."\n", 'type' => 'string', 'example' => 'xxx', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'defaultValue' => ['description' => 'The default value of the algorithm configuration item.'."\n", 'type' => 'string', 'example' => 'swing', 'title' => ''], + 'type' => ['description' => 'The algorithm type. Valid values: SYSTEM and CUSTOM.'."\n", 'type' => 'string', 'example' => 'SYSTEM', 'title' => ''], + 'experimentValue' => ['description' => 'The custom value of the algorithm configuration item.'."\n", 'type' => 'string', 'example' => 'xxx', 'title' => ''], + 'hasConfig' => ['description' => 'Indicates whether child configuration items exist. Valid values: true and false.'."\n", 'type' => 'boolean', 'example' => 'false', 'title' => ''], + 'category' => ['description' => 'The algorithm category. Valid values: RECALL and RANK.'."\n", 'type' => 'string', 'example' => 'RECALL', 'title' => ''], + 'name' => ['description' => 'The algorithm name. (Note: If you use the default algorithm, the console obtains the algorithm name from Medusa. If you customize an algorithm for the experiment, the algorithm name is directly returned.)'."\n", 'type' => 'string', 'example' => 'xxx', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'buckets' => [ + 'description' => 'The buckets. This parameter takes effect only when the experiment is published.'."\n", + 'type' => 'array', + 'items' => ['description' => 'The buckets. The parameter value must be of the STRING type. This parameter takes effect only when the experiment is published.'."\n", 'type' => 'string', 'example' => '["1"、"2"、"3"]', 'title' => ''], + 'title' => '', + 'example' => '', + ], + 'experimentId' => ['description' => 'The experiment ID.'."\n", 'type' => 'string', 'example' => '123', 'title' => ''], + ], + 'title' => '', + 'example' => '', ], + 'requestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'E3D6FE3B-B7C2-43DA-9A13-5EA837ACED9B', 'title' => ''], ], + 'title' => '', + 'example' => '', ], ], '5XX' => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'type' => 'string', - ], + 'code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + 'message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'responseDemo' => null, - ], - 'GetLatestDataDiagnoseTaskStatus' => [ - 'summary' => '获取最新诊断任务状态', - 'path' => '/v2/openapi/instances/{instanceId}/data-diagnose-task/status', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + '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":"","errorExample":""}]', + 'title' => 'UpdateExperimentStatus', + 'summary' => 'Updates the state of an experiment.', + '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}'], + ], + ], + ], ], + ], + 'UpgradeInstance' => [ + 'path' => '/v2/openapi/instances/{instanceId}/actions/upgrade', + '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' => 'update', + 'abilityTreeCode' => '18745', + 'abilityTreeNodes' => ['FEATUREairecIDS0JZ', 'FEATUREairecDTVO6V', 'FEATUREairecDM7OX0'], ], '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' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'airec-cn-****', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], 'result' => [ - 'description' => '', + 'description' => 'The returned results.'."\n", 'type' => 'object', - 'example' => 'RUNNING', + 'properties' => [ + 'instanceId' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'example' => 'airec-cn-****', 'title' => ''], + ], + 'title' => '', + 'example' => '', ], + 'code' => ['description' => 'The error code.'."\n", 'type' => 'string', 'example' => 'InternalServerError', 'title' => ''], + 'requestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '8F81A922-6C81-46D6-B78C-CC35E16B1691', 'title' => ''], + 'message' => ['description' => 'The error message.'."\n", 'type' => 'string', 'example' => 'An internal server error occurred', 'title' => ''], ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + ], + '5XX' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","type":"json"}]', - 'title' => 'GetLatestDataDiagnoseTaskStatus', - ], - 'ListDataDiagnoseReports' => [ - 'summary' => '获取数据诊断报告 (包括用户手动触发的诊断、每天产出的周期报告、数据启动时诊断的报告)', - 'path' => '/v2/openapi/instances/{instanceId}/data-diagnose-reports', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + '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' => 'UpgradeInstance', + 'summary' => 'Modifies the quotas of a specified instance.', + 'description' => 'You can call this operation to modify the quotas of a specified instance.'."\n" + ."\n" + .'The limits on the number of users: 1,000,000 to 10,000,000. The limits on the number of items: 1,000,000 to 10,000,000. The limits on the queries per second (QPS) for recommendation requests: 10 to 500.'."\n", + '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}'], + ], + ], + ], ], + ], + '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' => 'list', - 'abilityTreeCode' => '138223', - 'abilityTreeNodes' => [ - 'FEATUREairecG8RBMT', - ], + 'operationType' => 'none', + 'abilityTreeCode' => '18746', + 'abilityTreeNodes' => ['FEATUREairecIDS0JZ', 'FEATUREairecEDD4RN', 'FEATUREairecDTVO6V'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'title' => '', 'example' => 'airec-cn-****'], + ], + ], + 'responses' => [ + 200 => [ + 'headers' => [], 'schema' => [ - 'title' => 'A short description of struct', - 'description' => 'A short description of struct', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-shdjkgkeog', + 'type' => 'object', + 'properties' => [ + 'result' => ['description' => 'The validation result.', 'type' => 'boolean', 'title' => '', 'example' => 'true'], + 'code' => ['description' => 'The error code.', 'type' => 'string', 'title' => '', 'example' => '200'], + 'requestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '90D6B8F5-FE97-4509-9AAB-367836C51818'], + 'message' => ['description' => 'The error message.', 'type' => 'string', 'title' => '', 'example' => 'success'], + ], + 'description' => 'The response parameters.', + 'title' => '', + 'example' => '', ], ], - [ - 'name' => 'taskCreateTime', - 'in' => 'query', + '5XX' => [ 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'requestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1566489600', + 'title' => '', + 'example' => '', ], ], ], - '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' => '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 \\"result\\": true,\\n \\"code\\": \\"200\\",\\n \\"requestId\\": \\"90D6B8F5-FE97-4509-9AAB-367836C51818\\",\\n \\"message\\": \\"success\\"\\n}","type":"json"}]', + 'title' => 'ValidateInstance', + 'summary' => 'Validates a specified instance.', + '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 \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","type":"json"}]', - 'title' => 'ListDataDiagnoseReports', + 'translator' => 'manual', ], - 'ListDataDiagnoseSampleDetails' => [ - 'summary' => '获取数据诊断项抽样明细。', - 'path' => '/v2/openapi/instances/{instanceId}/data-diagnose-reports/sample-details', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'VerifyRankingSystem' => [ + 'summary' => 'Tests the sorting service.', + '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' => '139245', - 'abilityTreeNodes' => [ - 'FEATUREairecG8RBMT', - ], + 'operationType' => 'none', + 'abilityTreeCode' => '117171', + 'abilityTreeNodes' => ['FEATUREairec5XEKC0'], ], 'parameters' => [ [ 'name' => 'instanceId', 'in' => 'path', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'airec-cn-shdjkgkeog', - ], - ], - [ - 'name' => 'taskCreateTime', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1665936000000', - ], + 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'airec-cn-****'], ], [ - 'name' => 'startTime', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1665158400', - ], - ], - [ - 'name' => 'endTime', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1682179200', - ], - ], - [ - 'name' => 'taskSource', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'cycle', - ], + 'name' => 'name', + 'in' => 'path', + 'schema' => ['title' => '', 'description' => 'The name of the sorting service.', 'type' => 'string', 'required' => true, 'example' => 'service-a'], ], [ - 'name' => 'key', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - ], + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => ['description' => 'The request body parameters.', 'type' => 'object', 'required' => false, 'title' => '', 'example' => '{'."\n" + .' "userFeatures": "a:c,d:b",'."\n" + .' "itemFeatures": "a:1,b:2"'."\n" + .'}'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', + 'title' => '', + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '8B90B646-1678-41A3-B23F-EAC6587B0E48', - ], - 'result' => [ - 'description' => '', - 'type' => 'object', - ], + 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '829F38F6-E2D6-4109-90A6-888160BD16C2'], + 'result' => ['title' => '', 'description' => 'The returned result.', 'type' => 'string', 'example' => 'test'], + ], + 'example' => '', + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"829F38F6-E2D6-4109-90A6-888160BD16C2\\",\\n \\"result\\": \\"test\\"\\n}","type":"json"}]', + 'title' => 'VerifyRankingSystem', + 'changeSet' => [], + 'translator' => 'manual', + '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' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"8B90B646-1678-41A3-B23F-EAC6587B0E48\\",\\n \\"result\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","type":"json"}]', - 'title' => 'ListDataDiagnoseSampleDetails', ], ], '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' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'airec.cn-shanghai.aliyuncs.com', 'endpoint' => 'airec.cn-shanghai.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-shenzhen', 'regionName' => 'China (Shenzhen)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'airec.cn-shenzhen.aliyuncs.com', 'endpoint' => 'airec.cn-shenzhen.aliyuncs.com', 'vpc' => 'airec-vpc.cn-shenzhen.aliyuncs.com'], + ['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'airec.cn-beijing.aliyuncs.com', 'endpoint' => 'airec.cn-beijing.aliyuncs.com', 'vpc' => 'airec-vpc.cn-beijing.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', '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' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'airec.cn-hangzhou.aliyuncs.com', 'endpoint' => 'airec.cn-hangzhou.aliyuncs.com', 'vpc' => 'airec-vpc.cn-hangzhou.aliyuncs.com'], + ['regionId' => 'us-east-1', 'regionName' => 'US (Virginia)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', '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' => 'The industry information of the instance cannot be modified.'], + ['code' => 'ChargeTypeError', 'message' => 'The instance billing method is invalid.', 'http_code' => 400, 'description' => 'The instance billing method is invalid.'], + ['code' => 'CreateInstanceFail', 'message' => 'An error occurred while creating the instance.', 'http_code' => 500, 'description' => 'An error occurred while creating the instance.'], + ['code' => 'CurrentIndustryNotSupportThisScene', 'message' => 'The current industry does not support the specified scenario.', 'http_code' => 400, 'description' => 'The current industry does not support the specified scenario.'], + ['code' => 'DataSetImportNotSuccess', 'message' => 'The dataset can be released online only when its data has been imported.', 'http_code' => 400, 'description' => 'The dataset can be released online only when its data has been imported.'], + ['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' => 'A dataset is being imported. Wait until the existing dataset import task is completed before starting another import task.'], + ['code' => 'DataSetNotExist', 'message' => 'The specified dataset does not exist.', 'http_code' => 404, 'description' => 'The specified dataset does not exist.'], + ['code' => 'DataSetRemoveForbidden', 'message' => 'The dataset cannot be deleted because it is still in use.', 'http_code' => 403, 'description' => 'The dataset cannot be deleted because it is still in use.'], + ['code' => 'DataSetStopForbidden', 'message' => 'You cannot stop a dataset in the current status.', 'http_code' => 403, 'description' => 'You cannot stop a dataset in the current status.'], + ['code' => 'DataSetVersionNumExceeded', 'message' => 'The number of dataset versions has exceeded the system limit.', 'http_code' => 400, 'description' => 'The number of dataset versions has exceeded the system limit.'], + ['code' => 'DataSourceCountIncorrect', 'message' => 'Currently, one table supports only one data source.', 'http_code' => 400, 'description' => 'Currently, one table supports only one data source.'], + ['code' => 'DataSourceTableNameIncorrect', 'message' => 'The specified table name is invalid.', 'http_code' => 400, 'description' => 'The specified table name is invalid.'], + ['code' => 'DataSourceUnavailable', 'message' => 'An error occurred while validating the data source.', 'http_code' => 400, 'description' => 'An error occurred while validating the data source.'], + ['code' => 'DiversifyDependencyViolation.DataSetTrainingNotSucceed', 'message' => 'Asset categories can be created only if the data version passes the validation.', 'http_code' => 400, 'description' => 'Asset categories can be created only if the data version passes the validation.'], + ['code' => 'DiversifyDependencyViolation.DataSourceImportNotSucceed', 'message' => 'Asset categories can be created only if the data version passes the validation.', 'http_code' => 400, 'description' => 'Asset categories can be created only if the data version passes the validation.'], + ['code' => 'DiversifyNotFound', 'message' => 'The specified asset category does not exist.', 'http_code' => 404, 'description' => 'The specified asset category does not exist.'], + ['code' => 'DiversifyNumberExceeded', 'message' => 'The number of asset categories has exceeded the system limit.', 'http_code' => 400, 'description' => 'The number of asset categories has exceeded the system limit.'], + ['code' => 'EmptyDocument', 'message' => 'The submitted document is empty.', 'http_code' => 400, 'description' => 'The submitted document is empty.'], + ['code' => 'EmptyPurchasesInfo', 'message' => 'The order information is empty.', 'http_code' => 400, 'description' => 'The order information is empty.'], + ['code' => 'FetchDocumentBackendError', 'message' => 'An error occurred while accessing the backend service.', 'http_code' => 503, 'description' => 'An error occurred while accessing the backend service.'], + ['code' => 'FetchQuotaError', 'message' => 'An error occurred while retrieving the quota information.', 'http_code' => 503, 'description' => 'An error occurred while retrieving the quota information.'], + ['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' => 'The instance has expired or has stopped running due to overdue payment. Renew the instance and try again.'], + ['code' => 'InstanceFreezing', 'message' => 'The specified instance has been frozen because it has overdue bills.', 'http_code' => 403, 'description' => 'The specified instance has been frozen because it has overdue bills.'], + ['code' => 'InstanceNotExist', 'message' => 'The specified instance does not exist.', 'http_code' => 404, 'description' => 'The specified instance does not exist.'], + ['code' => 'InternalServerError', 'message' => 'An internal server error occurred.', 'http_code' => 500, 'description' => 'An internal server error occurred.'], + ['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' => 'The time when data starts to be replicated to MaxCompute is invalid. Modify the timestamp of the data source.'], + ['code' => 'InvalidDataSourceType', 'message' => 'The data source type is invalid.', 'http_code' => 400, 'description' => 'The data source type is invalid.'], + ['code' => 'InvalidIndustry', 'message' => 'The industry name is invalid.', 'http_code' => 400, 'description' => 'The industry name is invalid.'], + ['code' => 'InvalidQuota.InstanceId', 'message' => 'You must specify the instance ID.', 'http_code' => 400, 'description' => 'You must specify the instance ID.'], + ['code' => 'InvalidQuota.ItemCount', 'message' => 'The specified number of documents of the item table has exceeded the system limit.', 'http_code' => 400, 'description' => 'The specified number of documents of the item table has exceeded the system limit.'], + ['code' => 'InvalidQuota.QPS', 'message' => 'The value of QPS has exceeded the system limit.', 'http_code' => 400, 'description' => 'The value of QPS has exceeded the system limit.'], + ['code' => 'InvalidQuota.UserCount', 'message' => 'The specified number of documents of the user table has exceeded the system limit.', 'http_code' => 400, 'description' => 'The specified number of documents of the user table has exceeded the system limit.'], + ['code' => 'InvalidSchemaId', 'message' => 'The schema ID is invalid.', 'http_code' => 400, 'description' => 'The schema ID is invalid.'], + ['code' => 'InvalidTableName', 'message' => 'The specified table name is invalid.', 'http_code' => 400, 'description' => 'The specified table name is invalid.'], + ['code' => 'MixDependencyViolation.DataSetTrainingNotSucceed', 'message' => 'Mix types can be created only if the data version passes the validation.', 'http_code' => 400, 'description' => 'Mix types can be created only if the data version passes the validation.'], + ['code' => 'MixDependencyViolation.DataSourceImportNotSucceed', 'message' => 'Mix types can be created only if the data version passes the validation.', 'http_code' => 400, 'description' => 'Mix types can be created only if the data version passes the validation.'], + ['code' => 'MixNotFound', 'message' => 'The specified asset mix does not exist.', 'http_code' => 404, 'description' => 'The specified asset mix does not exist.'], + ['code' => 'MixNumberExceeded', 'message' => 'The number of asset mix types has exceeded the system limit.', 'http_code' => 400, 'description' => 'The number of asset mix types has exceeded the system limit.'], + ['code' => 'MustModifyQuota', 'message' => 'You must specify the quota.', 'http_code' => 400, 'description' => 'You must specify the quota.'], + ['code' => 'MustSelectIndustry', 'message' => 'You must specify the industry.', 'http_code' => 400, 'description' => 'You must specify the industry.'], + ['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' => '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.'], + ['code' => 'NotExistIndustry', 'message' => 'The industry name does not exist.', 'http_code' => 400, 'description' => 'The industry name does not exist.'], + ['code' => 'QuotaItemCountValueIllegal', 'message' => 'The value of document quantity of the item table in the quota information is invalid.', 'http_code' => 400, 'description' => 'The value of document quantity of the item table in the quota information is invalid.'], + ['code' => 'QuotaQpsValueIllegal', 'message' => 'The value of QPS in quota information is invalid.', 'http_code' => 400, 'description' => 'The value of QPS in quota information is invalid.'], + ['code' => 'QuotaUserCountValueIllegal', 'message' => 'The value of document quantity of the user table in the quota information is invalid.', 'http_code' => 400, 'description' => 'The value of document quantity of the user table in the quota information is invalid.'], + ['code' => 'RemoveInstanceFail', 'message' => 'An error occurred while deleting the instance.', 'http_code' => 500, 'description' => 'An error occurred while deleting the instance.'], + ['code' => 'RequestBodyTooLarge', 'message' => 'The size of the request body that you submitted has exceeded the system limit.', 'http_code' => 413, 'description' => 'The size of the request body that you submitted has exceeded the system limit.'], + ['code' => 'RequestKnightError', 'message' => 'An error occurred while accessing the backend service.', 'http_code' => 503, 'description' => 'An error occurred while accessing the backend service.'], + ['code' => 'SceneNotExist', 'message' => 'The scene does not exist.', 'http_code' => 404, 'description' => 'The scene does not exist.'], + ['code' => 'UnsupportedOrderType', 'message' => 'The order type is not supported.', 'http_code' => 400, 'description' => 'The order type is not supported.'], + ['code' => 'UnsupportedRefundType', 'message' => 'The refund type is not supported.', 'http_code' => 400, 'description' => 'The refund type is not supported.'], + ['code' => 'UpdateInfoCanNotBeNull', 'message' => 'You must specify the data to be modified.', 'http_code' => 400, 'description' => 'You must specify the data to be modified.'], + ['code' => 'UpdateInfoContainIllegalProperties', 'message' => 'An attribute is invalid.', 'http_code' => 400, 'description' => 'An attribute is invalid.'], + ['code' => 'UserNotLogin', 'message' => 'You have not logged on. Log on and try again.', 'http_code' => 401, 'description' => 'You have not logged on. Log on and try again.'], + ['code' => 'UserUnauthorized', 'message' => 'You are not authorized to perform this operation.', 'http_code' => 401, 'description' => 'You are not authorized to perform this operation.'], + ['code' => 'ValidationError', 'message' => 'An error occurred while validating.', 'http_code' => 400, 'description' => 'An error occurred while validating.'], + ], + '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'], ], - [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'airec.ap-southeast-1.aliyuncs.com', + ], + 'ram' => [ + 'productCode' => 'AIRec', + 'productName' => 'AIRec', + 'ramCodes' => ['airec'], + 'ramLevel' => 'RESOURCE', + '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}'], + ], + ], + ], + [ + '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}'], + ], + ], + ], + [ + '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}'], + ], + ], + ], + [ + '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}'], + ], + ], + ], + [ + '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}'], + ], + ], + ], + [ + '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' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListUmengAppkeys', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateSampleFormatConfig', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateSampleFormatConfig', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'All Resource', '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', + 'ramAction' => [ + 'action' => 'airec:ListColdStartFeature', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'Instance', 'arn' => 'acs:airec:{#regionId}:{#accountId}:instance/{#InstanceId}'], + ], + ], + ], + [ + '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}'], + ], + ], + ], + [ + '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}'], + ], + ], + ], + [ + 'apiName' => 'DecribeRankingModel', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:DecribeRankingModel', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + '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}'], + ], + ], + ], + [ + '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}'], + ], + ], + ], + [ + '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}'], + ], + ], + ], + [ + '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' => '', + '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' => 'All Resource', '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' => 'All Resource', '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' => '', + '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' => '', + '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' => '', + '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' => '', + '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' => '', + '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' => 'All Resource', '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' => '', + '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' => 'All Resource', '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' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DescribeDataSetMessage', + 'description' => '', + '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' => 'All Resource', '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' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'airec:ListMixCategories', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'All Resource', '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' => 'All Resource', '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' => 'All Resource', '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' => '', + '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' => '', + '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' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateAttributionConfig', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'airec:CreateAttributionConfig', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'AIRec', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ModifyRule', + 'description' => '', + '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' => '', + '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' => 'All Resource', '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' => 'All Resource', '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' => 'All Resource', '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' => 'All Resource', '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' => 'All Resource', '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' => 'All Resource', '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' => 'All Resource', '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}'], + ], + ], + ], ], - [ - '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}'], ], ], ]; |
