summaryrefslogtreecommitdiff
path: root/data/zh_cn/sls/2019-10-23/api-docs.php
diff options
context:
space:
mode:
Diffstat (limited to 'data/zh_cn/sls/2019-10-23/api-docs.php')
-rw-r--r--data/zh_cn/sls/2019-10-23/api-docs.php1943
1 files changed, 426 insertions, 1517 deletions
diff --git a/data/zh_cn/sls/2019-10-23/api-docs.php b/data/zh_cn/sls/2019-10-23/api-docs.php
index e9b6441..8b9214b 100644
--- a/data/zh_cn/sls/2019-10-23/api-docs.php
+++ b/data/zh_cn/sls/2019-10-23/api-docs.php
@@ -1,44 +1,15 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'SLS',
- 'product' => 'Sls',
- 'version' => '2019-10-23',
- ],
- 'directories' => [
- 'AnalyzeAppLog',
- 'AnalyzeProductLog',
- 'CreateApp',
- 'DeleteApp',
- 'DescribeApp',
- 'DisableAlert',
- 'EnableAlert',
- 'GetAlert',
- 'GetAlertHistories',
- 'GetSlsService',
- 'OpenSlsService',
- 'SetAlertActionPolicy',
- 'SetAlertCenterResource',
- 'SyncAlertGroups',
- 'SyncAlertUsers',
- 'UpdateApp',
- 'InitUserAlertResource',
- 'InitProjectAlertResource',
- ],
+ 'info' => ['style' => 'SLS', 'product' => 'Sls', 'version' => '2019-10-23'],
+ 'directories' => ['AnalyzeAppLog', 'AnalyzeProductLog', 'CreateApp', 'DeleteApp', 'DescribeApp', 'DisableAlert', 'EnableAlert', 'GetAlert', 'GetAlertHistories', 'GetSlsService', 'OpenSlsService', 'SetAlertActionPolicy', 'SetAlertCenterResource', 'SyncAlertGroups', 'SyncAlertUsers', 'UpdateApp', 'InitUserAlertResource', 'InitProjectAlertResource'],
'components' => [
'schemas' => [],
],
'apis' => [
'AnalyzeAppLog' => [
'summary' => '创建或更新应用',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -51,44 +22,29 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '84948',
- 'abilityTreeNodes' => [
- 'FEATUREslsL870A3',
- ],
+ 'abilityTreeNodes' => ['FEATUREslsL870A3'],
],
'parameters' => [
[
'name' => 'AppType',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'DisplayName',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'VariableMap',
'in' => 'query',
'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'object', 'required' => true, 'docRequired' => true],
],
[
'name' => 'SlsAccessToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -96,107 +52,43 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'type' => 'string',
- ],
- 'Message' => [
- 'type' => 'string',
- ],
- 'RequestId' => [
- 'type' => 'string',
- ],
- 'Success' => [
- 'type' => 'string',
- ],
+ 'Code' => ['type' => 'string'],
+ 'Message' => ['type' => 'string'],
+ 'RequestId' => ['type' => 'string'],
+ 'Success' => ['type' => 'string'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'CreateProjectFailed',
- 'errorMessage' => 'Failed to create the project: %s.',
- ],
- [
- 'errorCode' => 'JobError',
- 'errorMessage' => 'Failed to create or update the job: %s.',
- ],
- [
- 'errorCode' => 'LogstoreError',
- 'errorMessage' => 'Failed to create or update the logstore: %s.',
- ],
- [
- 'errorCode' => 'ParamsIsNull',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'ProjectExist',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'InvalidRegion',
- 'errorMessage' => 'The region is invalid.',
- ],
- [
- 'errorCode' => 'DashboardError',
- 'errorMessage' => 'Failed to create or update the dashboard: %s.',
- ],
- [
- 'errorCode' => 'InvalidParameter',
- 'errorMessage' => 'The parameter is invalid: %s.',
- ],
- [
- 'errorCode' => 'ProjectRegionInvalid',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'UnRegisterProduct',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'GetProjectFailed',
- 'errorMessage' => 'Failed to get project: %s.',
- ],
- [
- 'errorCode' => 'InvalidLang',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'SavedSearchError',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'IndexError',
- 'errorMessage' => 'Failed to create or update index: %s.',
- ],
- ],
- [
- [
- 'errorCode' => 'PermissionDenied',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'UnAuthorized',
- 'errorMessage' => '%s.',
- ],
- ],
- ],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ ['errorCode' => 'CreateProjectFailed', 'errorMessage' => 'Failed to create the project: %s.'],
+ ['errorCode' => 'JobError', 'errorMessage' => 'Failed to create or update the job: %s.'],
+ ['errorCode' => 'LogstoreError', 'errorMessage' => 'Failed to create or update the logstore: %s.'],
+ ['errorCode' => 'ParamsIsNull', 'errorMessage' => '%s.'],
+ ['errorCode' => 'ProjectExist', 'errorMessage' => '%s.'],
+ ['errorCode' => 'InvalidRegion', 'errorMessage' => 'The region is invalid.'],
+ ['errorCode' => 'DashboardError', 'errorMessage' => 'Failed to create or update the dashboard: %s.'],
+ ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The parameter is invalid: %s.'],
+ ['errorCode' => 'ProjectRegionInvalid', 'errorMessage' => '%s.'],
+ ['errorCode' => 'UnRegisterProduct', 'errorMessage' => '%s.'],
+ ['errorCode' => 'GetProjectFailed', 'errorMessage' => 'Failed to get project: %s.'],
+ ['errorCode' => 'InvalidLang', 'errorMessage' => '%s.'],
+ ['errorCode' => 'SavedSearchError', 'errorMessage' => '%s.'],
+ ['errorCode' => 'IndexError', 'errorMessage' => 'Failed to create or update index: %s.'],
+ ],
+ [
+ ['errorCode' => 'PermissionDenied', 'errorMessage' => '%s.'],
+ ['errorCode' => 'UnAuthorized', 'errorMessage' => '%s.'],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '',
],
'AnalyzeProductLog' => [
'summary' => '操作云产品日志服务资源',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -209,120 +101,74 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '84949',
- 'abilityTreeNodes' => [
- 'FEATUREslsL870A3',
- ],
+ 'abilityTreeNodes' => ['FEATUREslsL870A3'],
],
'parameters' => [
[
'name' => 'Project',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'Logstore',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'CloudProduct',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'Lang',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Region',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'TTL',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
'name' => 'ResourceQuota',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Overwrite',
'in' => 'query',
- 'schema' => [
- 'type' => 'boolean',
- 'required' => false,
- 'default' => 'true',
- ],
+ 'schema' => ['type' => 'boolean', 'required' => false, 'default' => 'true'],
],
[
'name' => 'ClientIp',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'VariableMap',
'in' => 'query',
'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'object', 'required' => false],
],
[
'name' => 'HotTTL',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32'],
],
[
'name' => 'SlsAccessToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['type' => 'string'],
],
[
'name' => 'InternalConfigOnly',
'in' => 'query',
- 'schema' => [
- 'type' => 'boolean',
- 'default' => 'false',
- ],
+ 'schema' => ['type' => 'boolean', 'default' => 'false'],
],
],
'responses' => [
@@ -330,103 +176,42 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'type' => 'string',
- ],
- 'Message' => [
- 'type' => 'string',
- ],
- 'RequestId' => [
- 'type' => 'string',
- ],
- 'Success' => [
- 'type' => 'string',
- ],
+ 'Code' => ['type' => 'string'],
+ 'Message' => ['type' => 'string'],
+ 'RequestId' => ['type' => 'string'],
+ 'Success' => ['type' => 'string'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'CreateProjectFailed',
- 'errorMessage' => 'Failed to create the project: %s.',
- ],
- [
- 'errorCode' => 'ParamsIsNull',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'InvalidLang',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'InvalidRegion',
- 'errorMessage' => 'The region is invalid.',
- ],
- [
- 'errorCode' => 'ProjectExist',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'LogstoreError',
- 'errorMessage' => 'Failed to create or update the logstore: %s.',
- ],
- [
- 'errorCode' => 'DashboardError',
- 'errorMessage' => 'Failed to create or update the dashboard: %s.',
- ],
- [
- 'errorCode' => 'InvalidParameter',
- 'errorMessage' => 'The parameter is invalid: %s.',
- ],
- [
- 'errorCode' => 'ProjectRegionInvalid',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'GetProjectFailed',
- 'errorMessage' => 'Failed to get project: %s.',
- ],
- [
- 'errorCode' => 'UnRegisterProduct',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'IndexError',
- 'errorMessage' => 'Failed to create or update index: %s.',
- ],
- [
- 'errorCode' => 'SavedSearchError',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'JobError',
- 'errorMessage' => 'Failed to create or update the job: %s.',
- ],
- ],
- [
- [
- 'errorCode' => 'UnAuthorized',
- 'errorMessage' => '%s.',
- ],
- ],
- ],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ ['errorCode' => 'CreateProjectFailed', 'errorMessage' => 'Failed to create the project: %s.'],
+ ['errorCode' => 'ParamsIsNull', 'errorMessage' => '%s.'],
+ ['errorCode' => 'InvalidLang', 'errorMessage' => '%s.'],
+ ['errorCode' => 'InvalidRegion', 'errorMessage' => 'The region is invalid.'],
+ ['errorCode' => 'ProjectExist', 'errorMessage' => '%s.'],
+ ['errorCode' => 'LogstoreError', 'errorMessage' => 'Failed to create or update the logstore: %s.'],
+ ['errorCode' => 'DashboardError', 'errorMessage' => 'Failed to create or update the dashboard: %s.'],
+ ['errorCode' => 'InvalidParameter', 'errorMessage' => 'The parameter is invalid: %s.'],
+ ['errorCode' => 'ProjectRegionInvalid', 'errorMessage' => '%s.'],
+ ['errorCode' => 'GetProjectFailed', 'errorMessage' => 'Failed to get project: %s.'],
+ ['errorCode' => 'UnRegisterProduct', 'errorMessage' => '%s.'],
+ ['errorCode' => 'IndexError', 'errorMessage' => 'Failed to create or update index: %s.'],
+ ['errorCode' => 'SavedSearchError', 'errorMessage' => '%s.'],
+ ['errorCode' => 'JobError', 'errorMessage' => 'Failed to create or update the job: %s.'],
+ ],
+ [
+ ['errorCode' => 'UnAuthorized', 'errorMessage' => '%s.'],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '',
],
'CreateApp' => [
- 'summary' => '创建应用',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'summary' => '创建应用。',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -439,59 +224,38 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '84954',
- 'abilityTreeNodes' => [
- 'FEATUREslsL870A3',
- ],
+ 'abilityTreeNodes' => ['FEATUREslsL870A3'],
],
'parameters' => [
[
'name' => 'AppName',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['description' => '应用名称', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'k8s-event'],
],
[
'name' => 'DisplayName',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['description' => '应用的显示名称。', 'type' => 'string', 'required' => false, 'example' => 'k8s-event'],
],
[
'name' => 'Config',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['description' => '新建应用的配置信息。配置信息以**listname**和**tagkey**命令查询。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '{\'Status\': 1, \'CreatedTime\': \'2021-07-21T09:29:17Z\', \'CycleType\': \'Week\', \'CycleTime\': \'2,4\', \'ModifiedTime\': \'2024-10-29T10:27:07Z\'}'],
],
[
'name' => 'ClientIp',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['description' => '客户端ip地址。', 'type' => 'string', 'required' => false, 'example' => '123.103.9.177'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['description' => '客户端token,用于保证请求的幂等性。由客户端生成该参数值,要保证在不同请求间唯一,最大不值过64个ascii字符。', 'type' => 'string', 'required' => false, 'example' => 'ADsFsFWQ*****'],
],
[
'name' => 'SlsAccessToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['description' => '身份验证凭证', 'type' => 'string', 'required' => false, 'example' => 'ASVadFWQ*****'],
],
],
'responses' => [
@@ -499,78 +263,41 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'type' => 'string',
- ],
- 'AppName' => [
- 'type' => 'string',
- ],
- 'Message' => [
- 'type' => 'string',
- ],
- 'RequestId' => [
- 'type' => 'string',
- ],
- 'Success' => [
- 'type' => 'string',
- ],
+ 'Code' => ['description' => '错误码。200表示成功。', 'type' => 'string', 'example' => '200'],
+ 'AppName' => ['description' => '应用名称。', 'type' => 'string', 'example' => 'k8s-event'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'successful'],
+ 'RequestId' => ['description' => '请求id。', 'type' => 'string', 'example' => '88E6BA9F-7DD1-5544-B2C3-71D00E07271B'],
+ 'Success' => ['description' => '请求是否成功。'."\n"
+ ."\n"
+ .'- true:表示成功。'."\n"
+ .'- false:表示失败。'."\n"
+ ."\n", 'type' => 'string', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'InvalidAppName',
- 'errorMessage' => 'The appName is invalid.',
- ],
- [
- 'errorCode' => 'InvalidDisplayName',
- 'errorMessage' => 'Display name length exceeds limit.',
- ],
- [
- 'errorCode' => 'ParamMissing',
- 'errorMessage' => 'The app name is required.',
- ],
- [
- 'errorCode' => 'AlreadyExist',
- 'errorMessage' => 'App already exist.',
- ],
- [
- 'errorCode' => 'GetAppFailed',
- 'errorMessage' => 'Get app failed.',
- ],
- [
- 'errorCode' => 'AppNotExist',
- 'errorMessage' => 'The App not exist.',
- ],
- [
- 'errorCode' => 'CreateFailed',
- 'errorMessage' => 'Create app failed.',
- ],
+ ['errorCode' => 'InvalidAppName', 'errorMessage' => 'The appName is invalid.'],
+ ['errorCode' => 'InvalidDisplayName', 'errorMessage' => 'Display name length exceeds limit.'],
+ ['errorCode' => 'ParamMissing', 'errorMessage' => 'The app name is required.'],
+ ['errorCode' => 'AlreadyExist', 'errorMessage' => 'App already exist.'],
+ ['errorCode' => 'GetAppFailed', 'errorMessage' => 'Get app failed.'],
+ ['errorCode' => 'AppNotExist', 'errorMessage' => 'The App not exist.'],
+ ['errorCode' => 'CreateFailed', 'errorMessage' => 'Create app failed.'],
],
[
- [
- 'errorCode' => 'PermissionDenied',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'PermissionDenied', 'errorMessage' => '%s.'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"AppName\\": \\"k8s-event\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"88E6BA9F-7DD1-5544-B2C3-71D00E07271B\\",\\n \\"Success\\": \\"true\\"\\n}","type":"json"}]',
+ 'title' => '创建应用',
],
'DeleteApp' => [
'summary' => '删除应用',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -583,34 +310,23 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '84959',
- 'abilityTreeNodes' => [
- 'FEATUREslsL870A3',
- ],
+ 'abilityTreeNodes' => ['FEATUREslsL870A3'],
],
'parameters' => [
[
'name' => 'AppName',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'ClientIp',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'SlsAccessToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -618,71 +334,34 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'type' => 'string',
- ],
- 'Message' => [
- 'type' => 'string',
- ],
- 'RequestId' => [
- 'type' => 'string',
- ],
- 'Success' => [
- 'type' => 'string',
- ],
+ 'Code' => ['type' => 'string'],
+ 'Message' => ['type' => 'string'],
+ 'RequestId' => ['type' => 'string'],
+ 'Success' => ['type' => 'string'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'InvalidAppName',
- 'errorMessage' => 'The appName is invalid.',
- ],
- [
- 'errorCode' => 'GetAppFailed',
- 'errorMessage' => 'Get app failed.',
- ],
- [
- 'errorCode' => 'ParamMissing',
- 'errorMessage' => 'The app name is required.',
- ],
- [
- 'errorCode' => 'AppNotExist',
- 'errorMessage' => 'The App not exist.',
- ],
- [
- 'errorCode' => 'DeleteFailed',
- 'errorMessage' => 'Delete app failed.',
- ],
- [
- 'errorCode' => 'InvalidDisplayName',
- 'errorMessage' => 'Display name length exceeds limit.',
- ],
+ ['errorCode' => 'InvalidAppName', 'errorMessage' => 'The appName is invalid.'],
+ ['errorCode' => 'GetAppFailed', 'errorMessage' => 'Get app failed.'],
+ ['errorCode' => 'ParamMissing', 'errorMessage' => 'The app name is required.'],
+ ['errorCode' => 'AppNotExist', 'errorMessage' => 'The App not exist.'],
+ ['errorCode' => 'DeleteFailed', 'errorMessage' => 'Delete app failed.'],
+ ['errorCode' => 'InvalidDisplayName', 'errorMessage' => 'Display name length exceeds limit.'],
],
[
- [
- 'errorCode' => 'PermissionDenied',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'PermissionDenied', 'errorMessage' => '%s.'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '',
],
'DescribeApp' => [
'summary' => '获取应用',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -695,34 +374,23 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '84962',
- 'abilityTreeNodes' => [
- 'FEATUREslsL870A3',
- ],
+ 'abilityTreeNodes' => ['FEATUREslsL870A3'],
],
'parameters' => [
[
'name' => 'AppName',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'ClientIp',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'SlsAccessToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -730,34 +398,17 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'type' => 'string',
- ],
- 'Message' => [
- 'type' => 'string',
- ],
- 'RequestId' => [
- 'type' => 'string',
- ],
- 'Success' => [
- 'type' => 'string',
- ],
+ 'Code' => ['type' => 'string'],
+ 'Message' => ['type' => 'string'],
+ 'RequestId' => ['type' => 'string'],
+ 'Success' => ['type' => 'string'],
'AppModel' => [
'type' => 'object',
'properties' => [
- 'DisplayName' => [
- 'type' => 'string',
- ],
- 'AppName' => [
- 'type' => 'string',
- ],
- 'Config' => [
- 'type' => 'string',
- ],
- 'Uid' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
+ 'DisplayName' => ['type' => 'string'],
+ 'AppName' => ['type' => 'string'],
+ 'Config' => ['type' => 'string'],
+ 'Uid' => ['type' => 'integer', 'format' => 'int64'],
],
],
],
@@ -766,48 +417,23 @@
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'InvalidAppName',
- 'errorMessage' => 'The appName is invalid.',
- ],
- [
- 'errorCode' => 'GetAppFailed',
- 'errorMessage' => 'Get app failed.',
- ],
- [
- 'errorCode' => 'ParamMissing',
- 'errorMessage' => 'The app name is required.',
- ],
- [
- 'errorCode' => 'AppNotExist',
- 'errorMessage' => 'The App not exist.',
- ],
- [
- 'errorCode' => 'InvalidDisplayName',
- 'errorMessage' => 'Display name length exceeds limit.',
- ],
+ ['errorCode' => 'InvalidAppName', 'errorMessage' => 'The appName is invalid.'],
+ ['errorCode' => 'GetAppFailed', 'errorMessage' => 'Get app failed.'],
+ ['errorCode' => 'ParamMissing', 'errorMessage' => 'The app name is required.'],
+ ['errorCode' => 'AppNotExist', 'errorMessage' => 'The App not exist.'],
+ ['errorCode' => 'InvalidDisplayName', 'errorMessage' => 'Display name length exceeds limit.'],
],
[
- [
- 'errorCode' => 'PermissionDenied',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'PermissionDenied', 'errorMessage' => '%s.'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '',
],
'DisableAlert' => [
'summary' => '禁用告警任务',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -820,53 +446,33 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '84964',
- 'abilityTreeNodes' => [
- 'FEATUREslsL870A3',
- ],
+ 'abilityTreeNodes' => ['FEATUREslsL870A3'],
],
'parameters' => [
[
'name' => 'Endpoint',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'App',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'ProjectName',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'AlertId',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'SlsAccessToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -874,59 +480,32 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'type' => 'string',
- ],
- 'Message' => [
- 'type' => 'string',
- ],
- 'RequestId' => [
- 'type' => 'string',
- ],
- 'Success' => [
- 'type' => 'boolean',
- ],
+ 'Code' => ['type' => 'string'],
+ 'Message' => ['type' => 'string'],
+ 'RequestId' => ['type' => 'string'],
+ 'Success' => ['type' => 'boolean'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'InputParaError',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'ProjectNotExist',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'InputParaError', 'errorMessage' => '%s.'],
+ ['errorCode' => 'ProjectNotExist', 'errorMessage' => '%s.'],
],
[
- [
- 'errorCode' => 'UnAuthorized',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'UnAuthorized', 'errorMessage' => '%s.'],
],
404 => [
- [
- 'errorCode' => 'AlertNotExist',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'AlertNotExist', 'errorMessage' => '%s.'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
],
'EnableAlert' => [
'summary' => '启用告警任务',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -939,96 +518,58 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '84965',
- 'abilityTreeNodes' => [
- 'FEATUREslsL870A3',
- ],
+ 'abilityTreeNodes' => ['FEATUREslsL870A3'],
],
'parameters' => [
[
'name' => 'Endpoint',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'App',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'ProjectName',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'AlertId',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'Language',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Tokens',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'RuleVersion',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'RuleId',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'Region',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'SlsAccessToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -1036,68 +577,35 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'type' => 'string',
- ],
- 'Message' => [
- 'type' => 'string',
- ],
- 'RequestId' => [
- 'type' => 'string',
- ],
- 'Success' => [
- 'type' => 'boolean',
- ],
+ 'Code' => ['type' => 'string'],
+ 'Message' => ['type' => 'string'],
+ 'RequestId' => ['type' => 'string'],
+ 'Success' => ['type' => 'boolean'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'ProjectNotExist',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'InputParaError',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'ProjectForbidden',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'JobAlreadyExist',
- 'errorMessage' => 'The job already exists.',
- ],
+ ['errorCode' => 'ProjectNotExist', 'errorMessage' => '%s.'],
+ ['errorCode' => 'InputParaError', 'errorMessage' => '%s.'],
+ ['errorCode' => 'ProjectForbidden', 'errorMessage' => '%s.'],
+ ['errorCode' => 'JobAlreadyExist', 'errorMessage' => 'The job already exists.'],
],
[
- [
- 'errorCode' => 'UnAuthorized',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'UnAuthorized', 'errorMessage' => '%s.'],
],
404 => [
- [
- 'errorCode' => 'AlertNotExist',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'AlertNotExist', 'errorMessage' => '%s.'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '',
],
'GetAlert' => [
'summary' => '获取告警任务',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1110,53 +618,33 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '84966',
- 'abilityTreeNodes' => [
- 'FEATUREslsL870A3',
- ],
+ 'abilityTreeNodes' => ['FEATUREslsL870A3'],
],
'parameters' => [
[
'name' => 'Endpoint',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'ProjectName',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'App',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'AlertId',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'SlsAccessToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -1164,63 +652,34 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'type' => 'string',
- ],
- 'Data' => [
- 'type' => 'string',
- ],
- 'Message' => [
- 'type' => 'string',
- ],
- 'RequestId' => [
- 'type' => 'string',
- ],
- 'Success' => [
- 'type' => 'boolean',
- ],
+ 'Code' => ['type' => 'string'],
+ 'Data' => ['type' => 'string'],
+ 'Message' => ['type' => 'string'],
+ 'RequestId' => ['type' => 'string'],
+ 'Success' => ['type' => 'boolean'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'ProjectNotExist',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'InputParaError',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'ProjectNotExist', 'errorMessage' => '%s.'],
+ ['errorCode' => 'InputParaError', 'errorMessage' => '%s.'],
],
[
- [
- 'errorCode' => 'UnAuthorized',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'UnAuthorized', 'errorMessage' => '%s.'],
],
404 => [
- [
- 'errorCode' => 'AlertNotExist',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'AlertNotExist', 'errorMessage' => '%s.'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '',
],
'GetAlertHistories' => [
'summary' => '获取历史告警任务',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1233,100 +692,58 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '84967',
- 'abilityTreeNodes' => [
- 'FEATUREslsL870A3',
- ],
+ 'abilityTreeNodes' => ['FEATUREslsL870A3'],
],
'parameters' => [
[
'name' => 'App',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'Region',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'AlertId',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'Offset',
'in' => 'formData',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
'name' => 'Line',
'in' => 'formData',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
'name' => 'FromTs',
'in' => 'formData',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true],
],
[
'name' => 'ToTs',
'in' => 'formData',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true],
],
[
'name' => 'ProjectName',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'Endpoint',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'SlsAccessToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -1334,67 +751,34 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'type' => 'string',
- ],
- 'Data' => [
- 'type' => 'string',
- ],
- 'Message' => [
- 'type' => 'string',
- ],
- 'RequestId' => [
- 'type' => 'string',
- ],
- 'Success' => [
- 'type' => 'boolean',
- ],
+ 'Code' => ['type' => 'string'],
+ 'Data' => ['type' => 'string'],
+ 'Message' => ['type' => 'string'],
+ 'RequestId' => ['type' => 'string'],
+ 'Success' => ['type' => 'boolean'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'InputParaError',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'ProjectNotExist',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'GetAlertHistoriesError',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'InputParaError', 'errorMessage' => '%s.'],
+ ['errorCode' => 'ProjectNotExist', 'errorMessage' => '%s.'],
+ ['errorCode' => 'GetAlertHistoriesError', 'errorMessage' => '%s.'],
],
[
- [
- 'errorCode' => 'UnAuthorized',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'UnAuthorized', 'errorMessage' => '%s.'],
],
404 => [
- [
- 'errorCode' => 'AlertNotExist',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'AlertNotExist', 'errorMessage' => '%s.'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
],
'GetSlsService' => [
'summary' => '查询日志服务的开通状态',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1407,17 +791,13 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '84971',
- 'abilityTreeNodes' => [
- 'FEATUREslsL870A3',
- ],
+ 'abilityTreeNodes' => ['FEATUREslsL870A3'],
],
'parameters' => [
[
'name' => 'SlsAccessToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -1425,56 +805,30 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'type' => 'string',
- ],
- 'Enabled' => [
- 'type' => 'boolean',
- ],
- 'Message' => [
- 'type' => 'string',
- ],
- 'RequestId' => [
- 'type' => 'string',
- ],
- 'Status' => [
- 'type' => 'string',
- ],
- 'Success' => [
- 'type' => 'boolean',
- ],
+ 'Code' => ['type' => 'string'],
+ 'Enabled' => ['type' => 'boolean'],
+ 'Message' => ['type' => 'string'],
+ 'RequestId' => ['type' => 'string'],
+ 'Status' => ['type' => 'string'],
+ 'Success' => ['type' => 'boolean'],
],
],
],
],
'errorCodes' => [
401 => [
- [
- 'errorCode' => 'PermissionDenied',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'PermissionDenied', 'errorMessage' => '%s.'],
],
500 => [
- [
- 'errorCode' => 'DescribeUserBusinessStatusFailed',
- 'errorMessage' => 'Failed to describe user business status.',
- ],
+ ['errorCode' => 'DescribeUserBusinessStatusFailed', 'errorMessage' => 'Failed to describe user business status.'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
],
'OpenSlsService' => [
- 'summary' => '开通日志服务',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'summary' => '开通日志服务。',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1487,17 +841,13 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '84975',
- 'abilityTreeNodes' => [
- 'FEATUREslsL870A3',
- ],
+ 'abilityTreeNodes' => ['FEATUREslsL870A3'],
],
'parameters' => [
[
'name' => 'SlsAccessToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['description' => '身份验证凭证', 'type' => 'string', 'required' => false, 'example' => 'LTAI4Fw12345*******'],
],
],
'responses' => [
@@ -1505,60 +855,37 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'type' => 'string',
- ],
- 'Message' => [
- 'type' => 'string',
- ],
- 'RequestId' => [
- 'type' => 'string',
- ],
- 'Success' => [
- 'type' => 'boolean',
- ],
+ 'Code' => ['description' => '返回状态码', 'type' => 'string', 'example' => '200'],
+ 'Message' => ['description' => '消息。', 'type' => 'string', 'example' => 'successful'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '1CCC2B8E-4FF3-4755-A96C-8CE2E4BF27DF'],
+ 'Success' => ['description' => '是否请求成功。'."\n"
+ ."\n"
+ .'- true:请求成功。'."\n"
+ .'- false:请求失败。', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
200 => [
- [
- 'errorCode' => 'CreateOrderError',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'CreateOrderError', 'errorMessage' => '%s.'],
],
401 => [
- [
- 'errorCode' => 'PermissionDenied',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'PermissionDenied', 'errorMessage' => '%s.'],
],
500 => [
- [
- 'errorCode' => 'GetSpecificationsFailed',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'CreateOrderFailed',
- 'errorMessage' => 'Failed to create an order.',
- ],
+ ['errorCode' => 'GetSpecificationsFailed', 'errorMessage' => '%s.'],
+ ['errorCode' => 'CreateOrderFailed', 'errorMessage' => 'Failed to create an order.'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"1CCC2B8E-4FF3-4755-A96C-8CE2E4BF27DF\\",\\n \\"Success\\": true\\n}","type":"json"}]',
+ 'title' => '开通日志服务',
],
'SetAlertActionPolicy' => [
'summary' => ' 设置告警策略',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1571,49 +898,33 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '84977',
- 'abilityTreeNodes' => [
- 'FEATUREslsL870A3',
- ],
+ 'abilityTreeNodes' => ['FEATUREslsL870A3'],
],
'parameters' => [
[
'name' => 'App',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'PolicyId',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Policy',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'PolicyName',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'SlsAccessToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -1621,59 +932,32 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'type' => 'string',
- ],
- 'Message' => [
- 'type' => 'string',
- ],
- 'RequestId' => [
- 'type' => 'string',
- ],
- 'Success' => [
- 'type' => 'boolean',
- ],
+ 'Code' => ['type' => 'string'],
+ 'Message' => ['type' => 'string'],
+ 'RequestId' => ['type' => 'string'],
+ 'Success' => ['type' => 'boolean'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'InputParaError',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'ProjectNotExist',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'InputParaError', 'errorMessage' => '%s.'],
+ ['errorCode' => 'ProjectNotExist', 'errorMessage' => '%s.'],
],
[
- [
- 'errorCode' => 'UnAuthorized',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'UnAuthorized', 'errorMessage' => '%s.'],
],
404 => [
- [
- 'errorCode' => 'ResourceNotExist',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'ResourceNotExist', 'errorMessage' => '%s.'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
],
'SetAlertCenterResource' => [
'summary' => '设置告警资源',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1686,43 +970,28 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '84978',
- 'abilityTreeNodes' => [
- 'FEATUREslsL870A3',
- ],
+ 'abilityTreeNodes' => ['FEATUREslsL870A3'],
],
'parameters' => [
[
'name' => 'Language',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Region',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'App',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'SlsAccessToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -1730,63 +999,33 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'type' => 'string',
- ],
- 'Message' => [
- 'type' => 'string',
- ],
- 'RequestId' => [
- 'type' => 'string',
- ],
- 'Success' => [
- 'type' => 'boolean',
- ],
+ 'Code' => ['type' => 'string'],
+ 'Message' => ['type' => 'string'],
+ 'RequestId' => ['type' => 'string'],
+ 'Success' => ['type' => 'boolean'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'InputParaError',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'ProjectNotExist',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'SetAlertCenterResourceError',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'InputParaError', 'errorMessage' => '%s.'],
+ ['errorCode' => 'ProjectNotExist', 'errorMessage' => '%s.'],
+ ['errorCode' => 'SetAlertCenterResourceError', 'errorMessage' => '%s.'],
],
[
- [
- 'errorCode' => 'UnAuthorized',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'UnAuthorized', 'errorMessage' => '%s.'],
],
404 => [
- [
- 'errorCode' => 'AlertNotExist',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'AlertNotExist', 'errorMessage' => '%s.'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
],
'SyncAlertGroups' => [
'summary' => '同步告警用户组',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1799,35 +1038,23 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '84981',
- 'abilityTreeNodes' => [
- 'FEATUREslsL870A3',
- ],
+ 'abilityTreeNodes' => ['FEATUREslsL870A3'],
],
'parameters' => [
[
'name' => 'App',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'Groups',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'SlsAccessToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -1835,67 +1062,35 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'type' => 'string',
- ],
- 'Data' => [
- 'type' => 'string',
- ],
- 'Message' => [
- 'type' => 'string',
- ],
- 'RequestId' => [
- 'type' => 'string',
- ],
- 'Success' => [
- 'type' => 'boolean',
- ],
+ 'Code' => ['type' => 'string'],
+ 'Data' => ['type' => 'string'],
+ 'Message' => ['type' => 'string'],
+ 'RequestId' => ['type' => 'string'],
+ 'Success' => ['type' => 'boolean'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'InputParaError',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'ResourceRecordNotExist',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'InputParaError', 'errorMessage' => '%s.'],
+ ['errorCode' => 'ResourceRecordNotExist', 'errorMessage' => '%s.'],
],
[
- [
- 'errorCode' => 'UnAuthorized',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'UnAuthorized', 'errorMessage' => '%s.'],
],
404 => [
- [
- 'errorCode' => 'AlertNotExist',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'ResourceNotExist',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'AlertNotExist', 'errorMessage' => '%s.'],
+ ['errorCode' => 'ResourceNotExist', 'errorMessage' => '%s.'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '',
],
'SyncAlertUsers' => [
'summary' => '同步告警用户',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1908,35 +1103,23 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '84982',
- 'abilityTreeNodes' => [
- 'FEATUREslsL870A3',
- ],
+ 'abilityTreeNodes' => ['FEATUREslsL870A3'],
],
'parameters' => [
[
'name' => 'App',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'Users',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true],
],
[
'name' => 'SlsAccessToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -1944,67 +1127,34 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'type' => 'string',
- ],
- 'Data' => [
- 'type' => 'string',
- ],
- 'Message' => [
- 'type' => 'string',
- ],
- 'RequestId' => [
- 'type' => 'string',
- ],
- 'Success' => [
- 'type' => 'boolean',
- ],
+ 'Code' => ['type' => 'string'],
+ 'Data' => ['type' => 'string'],
+ 'Message' => ['type' => 'string'],
+ 'RequestId' => ['type' => 'string'],
+ 'Success' => ['type' => 'boolean'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'ResourceRecordNotExist',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'InputParaError',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'ResourceRecordNotExist', 'errorMessage' => '%s.'],
+ ['errorCode' => 'InputParaError', 'errorMessage' => '%s.'],
],
[
- [
- 'errorCode' => 'UnAuthorized',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'UnAuthorized', 'errorMessage' => '%s.'],
],
404 => [
- [
- 'errorCode' => 'AlertNotExist',
- 'errorMessage' => '%s.',
- ],
- [
- 'errorCode' => 'ResourceNotExist',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'AlertNotExist', 'errorMessage' => '%s.'],
+ ['errorCode' => 'ResourceNotExist', 'errorMessage' => '%s.'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
],
'UpdateApp' => [
- 'summary' => '更新应用',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'summary' => '更新应用。',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2017,51 +1167,33 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '84983',
- 'abilityTreeNodes' => [
- 'FEATUREslsL870A3',
- ],
+ 'abilityTreeNodes' => ['FEATUREslsL870A3'],
],
'parameters' => [
[
'name' => 'AppName',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['description' => '应用名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'datalab'],
],
[
'name' => 'DisplayName',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['description' => '应用的显示名称。', 'type' => 'string', 'required' => false, 'example' => 'k8s-event'],
],
[
'name' => 'Config',
'in' => 'formData',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- ],
+ 'schema' => ['description' => '应用的配置信息。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '{\'Status\': 1, \'CreatedTime\': \'2023-10-23T02:16:05Z\', \'CycleType\': \'Week\', \'CycleTime\': \'7\', \'ModifiedTime\': \'2025-04-11T05:16:54Z\'}'],
],
[
'name' => 'ClientIp',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['description' => '客户端ip地址。', 'type' => 'string', 'required' => false, 'example' => '59.82.66.154'],
],
[
'name' => 'SlsAccessToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['description' => '身份验证凭证', 'type' => 'string', 'required' => false, 'example' => 'ASVadFWQ*****'],
],
],
'responses' => [
@@ -2069,70 +1201,39 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'type' => 'string',
- ],
- 'Message' => [
- 'type' => 'string',
- ],
- 'RequestId' => [
- 'type' => 'string',
- ],
- 'Success' => [
- 'type' => 'string',
- ],
+ 'Code' => ['description' => '错误码。200表示成功。', 'type' => 'string', 'example' => '200'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'successful'],
+ 'RequestId' => ['description' => '请求id。', 'type' => 'string', 'example' => 'F24A3C08-0B45-5EB4-8B44-F30E034E40B4'],
+ 'Success' => ['description' => '请求是否成功。'."\n"
+ ."\n"
+ .'- true:表示成功。'."\n"
+ .'- false:表示失败。'."\n"
+ ."\n", 'type' => 'string', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'InvalidAppName',
- 'errorMessage' => 'The appName is invalid.',
- ],
- [
- 'errorCode' => 'InvalidDisplayName',
- 'errorMessage' => 'Display name length exceeds limit.',
- ],
- [
- 'errorCode' => 'GetAppFailed',
- 'errorMessage' => 'Get app failed.',
- ],
- [
- 'errorCode' => 'ParamMissing',
- 'errorMessage' => 'The app name is required.',
- ],
- [
- 'errorCode' => 'AppNotExist',
- 'errorMessage' => 'The App not exist.',
- ],
- [
- 'errorCode' => 'UpdateFailed',
- 'errorMessage' => 'Update app failed.',
- ],
+ ['errorCode' => 'InvalidAppName', 'errorMessage' => 'The appName is invalid.'],
+ ['errorCode' => 'InvalidDisplayName', 'errorMessage' => 'Display name length exceeds limit.'],
+ ['errorCode' => 'GetAppFailed', 'errorMessage' => 'Get app failed.'],
+ ['errorCode' => 'ParamMissing', 'errorMessage' => 'The app name is required.'],
+ ['errorCode' => 'AppNotExist', 'errorMessage' => 'The App not exist.'],
+ ['errorCode' => 'UpdateFailed', 'errorMessage' => 'Update app failed.'],
],
[
- [
- 'errorCode' => 'PermissionDenied',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'PermissionDenied', 'errorMessage' => '%s.'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"F24A3C08-0B45-5EB4-8B44-F30E034E40B4\\",\\n \\"Success\\": \\"true\\"\\n}","type":"json"}]',
+ 'title' => '更新应用',
],
'InitUserAlertResource' => [
'summary' => '初始化用户告警资源,包含一个告警中心Project(名称格式为sls-alert-{uid}-{region})、一个Logstore(名称为internal-alert-center-log)和相关诊断仪表盘。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2145,49 +1246,28 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '84973',
- 'abilityTreeNodes' => [
- 'FEATUREslsL870A3',
- ],
+ 'abilityTreeNodes' => ['FEATUREslsL870A3'],
],
'parameters' => [
[
'name' => 'Language',
'in' => 'formData',
- 'schema' => [
- 'description' => '仪表盘语言,cn代表中文,en代表英文。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn',
- ],
+ 'schema' => ['description' => '仪表盘语言,cn代表中文,en代表英文。', 'type' => 'string', 'required' => false, 'example' => 'cn'],
],
[
'name' => 'Region',
'in' => 'formData',
- 'schema' => [
- 'description' => '指定告警中心Project所在地域,格式如:cn-shanghai。',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cn-shanghai',
- ],
+ 'schema' => ['description' => '指定告警中心Project所在地域,格式如:cn-shanghai。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-shanghai'],
],
[
'name' => 'App',
'in' => 'formData',
- 'schema' => [
- 'description' => '固定填写none。',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'none',
- ],
+ 'schema' => ['description' => '固定填写none。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'none'],
],
[
'name' => 'SlsAccessToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -2195,44 +1275,23 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'description' => ' 错误码,200表示成功。',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '返回信息描述,成功一般返回successful,错误时会返回相应错误信息。',
- 'type' => 'string',
- 'example' => 'successful',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'EE3A9553-2CBB-59CD-96DA-9EE3EED48969',
- ],
- 'Success' => [
- 'description' => '请求是否成功。'."\n"
- ."\n"
- .'- true表示成功。'."\n"
- .'- false表示失败。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
+ 'Code' => ['description' => ' 错误码,200表示成功。', 'type' => 'string', 'example' => '200'],
+ 'Message' => ['description' => '返回信息描述,成功一般返回successful,错误时会返回相应错误信息。', 'type' => 'string', 'example' => 'successful'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'EE3A9553-2CBB-59CD-96DA-9EE3EED48969'],
+ 'Success' => ['description' => '请求是否成功。'."\n"
+ ."\n"
+ .'- true表示成功。'."\n"
+ .'- false表示失败。', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'SetAlertCenterResourceError',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'SetAlertCenterResourceError', 'errorMessage' => '%s.'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"successful\\",\\n \\"RequestId\\": \\"EE3A9553-2CBB-59CD-96DA-9EE3EED48969\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<Message>successful</Message>\\n<RequestId>EE3A9553-2CBB-59CD-96DA-9EE3EED48969</RequestId>\\n<Code>200</Code>\\n<Success>true</Success>","errorExample":""}]',
'title' => 'InitUserAlertResource',
'description' => '## 接口说明'."\n"
@@ -2246,13 +1305,8 @@
],
'InitProjectAlertResource' => [
'summary' => '初始化Project告警资源,包括internal-alert-history和告警历史统计仪表盘,同一Project下的告警规则共享同一个internal-alert-history。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2265,44 +1319,28 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '84972',
- 'abilityTreeNodes' => [
- 'FEATUREslsL870A3',
- ],
+ 'abilityTreeNodes' => ['FEATUREslsL870A3'],
],
'parameters' => [
[
'name' => 'Region',
'in' => 'formData',
- 'schema' => [
- 'description' => '服务地域,如cn-hangzhou,cn-shanghai。',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => '服务地域,如cn-hangzhou,cn-shanghai。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'],
],
[
'name' => 'ProjectName',
'in' => 'formData',
- 'schema' => [
- 'description' => 'Project名称。其命名规则如下:'."\n"
- ."\n"
- .'- Project名称必须全局唯一。'."\n"
- .'- 只能包括小写字母、数字和短划线(-)。'."\n"
- .'- 必须以小写字母或者数字开头和结尾。'."\n"
- .'- 长度为3-63字节。',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'test-project',
- ],
+ 'schema' => ['description' => 'Project名称。其命名规则如下:'."\n"
+ ."\n"
+ .'- Project名称必须全局唯一。'."\n"
+ .'- 只能包括小写字母、数字和短划线(-)。'."\n"
+ .'- 必须以小写字母或者数字开头和结尾。'."\n"
+ .'- 长度为3-63字节。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test-project'],
],
[
'name' => 'SlsAccessToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -2310,51 +1348,27 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'description' => '返回码,200表示正常。',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '返回描述信息,成功时返回successful,错误时会返回相应错误信息。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'RequestId' => [
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => 'D39895CE-1769-5485-BEF6-6B5A9DDEE75D',
- ],
- 'Success' => [
- 'description' => '请求是否成功。'."\n"
- ."\n"
- .'- true:表示成功。'."\n"
- .'- false:表示失败。'."\n"
- ."\n",
- 'type' => 'boolean',
- 'example' => 'true',
- ],
+ 'Code' => ['description' => '返回码,200表示正常。', 'type' => 'string', 'example' => '200'],
+ 'Message' => ['description' => '返回描述信息,成功时返回successful,错误时会返回相应错误信息。', 'type' => 'string', 'example' => 'Success'],
+ 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D39895CE-1769-5485-BEF6-6B5A9DDEE75D'],
+ 'Success' => ['description' => '请求是否成功。'."\n"
+ ."\n"
+ .'- true:表示成功。'."\n"
+ .'- false:表示失败。'."\n"
+ ."\n", 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'LogstoreError',
- 'errorMessage' => 'Failed to create or update the logstore: %s.',
- ],
+ ['errorCode' => 'LogstoreError', 'errorMessage' => 'Failed to create or update the logstore: %s.'],
],
[
- [
- 'errorCode' => 'UnAuthorized',
- 'errorMessage' => '%s.',
- ],
+ ['errorCode' => 'UnAuthorized', 'errorMessage' => '%s.'],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"Success\\",\\n \\"RequestId\\": \\"D39895CE-1769-5485-BEF6-6B5A9DDEE75D\\",\\n \\"Success\\": true\\n}","errorExample":""},{"type":"xml","example":"<Message>Success</Message>\\n<RequestId>D39895CE-1769-5485-BEF6-6B5A9DDEE75D</RequestId>\\n<Code>200</Code>\\n<Success>true</Success>","errorExample":""}]',
'title' => 'InitProjectAlertResource',
'description' => '## 接口说明'."\n"
@@ -2368,145 +1382,40 @@
],
],
'endpoints' => [
- [
- 'regionId' => 'cn-qingdao',
- 'endpoint' => 'cn-qingdao.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-beijing',
- 'endpoint' => 'cn-beijing.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-zhangjiakou',
- 'endpoint' => 'cn-zhangjiakou.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-huhehaote',
- 'endpoint' => 'cn-huhehaote.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-wulanchabu',
- 'endpoint' => 'cn-wulanchabu.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-hangzhou',
- 'endpoint' => 'cn-hangzhou.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shanghai',
- 'endpoint' => 'cn-shanghai.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-nanjing',
- 'endpoint' => 'cn-nanjing.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-fuzhou',
- 'endpoint' => 'cn-fuzhou.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shenzhen',
- 'endpoint' => 'cn-shenzhen.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-heyuan',
- 'endpoint' => 'cn-heyuan.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-guangzhou',
- 'endpoint' => 'cn-guangzhou.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-chengdu',
- 'endpoint' => 'cn-chengdu.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-hongkong',
- 'endpoint' => 'cn-hongkong.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-northeast-1',
- 'endpoint' => 'ap-northeast-1.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-northeast-2',
- 'endpoint' => 'ap-northeast-2.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-1',
- 'endpoint' => 'ap-southeast-1.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-2',
- 'endpoint' => 'ap-southeast-2.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-3',
- 'endpoint' => 'ap-southeast-3.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-5',
- 'endpoint' => 'ap-southeast-5.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-6',
- 'endpoint' => 'ap-southeast-6.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-7',
- 'endpoint' => 'ap-southeast-7.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'us-east-1',
- 'endpoint' => 'us-east-1.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'us-west-1',
- 'endpoint' => 'us-west-1.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'eu-west-1',
- 'endpoint' => 'eu-west-1.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'eu-central-1',
- 'endpoint' => 'eu-central-1.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'us-southeast-1',
- 'endpoint' => 'us-southeast-1.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-south-1',
- 'endpoint' => 'ap-south-1.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'me-east-1',
- 'endpoint' => 'me-east-1.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'me-central-1',
- 'endpoint' => 'me-central-1.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-hangzhou-finance',
- 'endpoint' => 'cn-hangzhou-finance.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shanghai-finance-1',
- 'endpoint' => 'cn-shanghai-finance-1.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shenzhen-finance-1',
- 'endpoint' => 'cn-shenzhen-finance-1.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-beijing-finance-1',
- 'endpoint' => 'cn-beijing-finance-1.log.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-heyuan-acdr-1',
- 'endpoint' => 'cn-heyuan-acdr-1-intranet.log.aliyuncs.com',
- ],
+ ['regionId' => 'cn-qingdao', 'endpoint' => 'cn-qingdao.log.aliyuncs.com'],
+ ['regionId' => 'cn-beijing', 'endpoint' => 'cn-beijing.log.aliyuncs.com'],
+ ['regionId' => 'cn-zhangjiakou', 'endpoint' => 'cn-zhangjiakou.log.aliyuncs.com'],
+ ['regionId' => 'cn-huhehaote', 'endpoint' => 'cn-huhehaote.log.aliyuncs.com'],
+ ['regionId' => 'cn-wulanchabu', 'endpoint' => 'cn-wulanchabu.log.aliyuncs.com'],
+ ['regionId' => 'cn-hangzhou', 'endpoint' => 'cn-hangzhou.log.aliyuncs.com'],
+ ['regionId' => 'cn-shanghai', 'endpoint' => 'cn-shanghai.log.aliyuncs.com'],
+ ['regionId' => 'cn-nanjing', 'endpoint' => 'cn-nanjing.log.aliyuncs.com'],
+ ['regionId' => 'cn-fuzhou', 'endpoint' => 'cn-fuzhou.log.aliyuncs.com'],
+ ['regionId' => 'cn-shenzhen', 'endpoint' => 'cn-shenzhen.log.aliyuncs.com'],
+ ['regionId' => 'cn-heyuan', 'endpoint' => 'cn-heyuan.log.aliyuncs.com'],
+ ['regionId' => 'cn-guangzhou', 'endpoint' => 'cn-guangzhou.log.aliyuncs.com'],
+ ['regionId' => 'cn-chengdu', 'endpoint' => 'cn-chengdu.log.aliyuncs.com'],
+ ['regionId' => 'cn-hongkong', 'endpoint' => 'cn-hongkong.log.aliyuncs.com'],
+ ['regionId' => 'ap-northeast-1', 'endpoint' => 'ap-northeast-1.log.aliyuncs.com'],
+ ['regionId' => 'ap-northeast-2', 'endpoint' => 'ap-northeast-2.log.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-1', 'endpoint' => 'ap-southeast-1.log.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-2', 'endpoint' => 'ap-southeast-2.log.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-3', 'endpoint' => 'ap-southeast-3.log.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-5', 'endpoint' => 'ap-southeast-5.log.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-6', 'endpoint' => 'ap-southeast-6.log.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-7', 'endpoint' => 'ap-southeast-7.log.aliyuncs.com'],
+ ['regionId' => 'us-southeast-1', 'endpoint' => 'us-southeast-1.log.aliyuncs.com'],
+ ['regionId' => 'eu-central-1', 'endpoint' => 'eu-central-1.log.aliyuncs.com'],
+ ['regionId' => 'eu-west-1', 'endpoint' => 'eu-west-1.log.aliyuncs.com'],
+ ['regionId' => 'us-west-1', 'endpoint' => 'us-west-1.log.aliyuncs.com'],
+ ['regionId' => 'us-east-1', 'endpoint' => 'us-east-1.log.aliyuncs.com'],
+ ['regionId' => 'me-central-1', 'endpoint' => 'me-central-1.log.aliyuncs.com'],
+ ['regionId' => 'me-east-1', 'endpoint' => 'me-east-1.log.aliyuncs.com'],
+ ['regionId' => 'ap-south-1', 'endpoint' => 'ap-south-1.log.aliyuncs.com'],
+ ['regionId' => 'cn-heyuan-acdr-1', 'endpoint' => 'cn-heyuan-acdr-1-intranet.log.aliyuncs.com'],
+ ['regionId' => 'cn-beijing-finance-1', 'endpoint' => 'cn-beijing-finance-1.log.aliyuncs.com'],
+ ['regionId' => 'cn-shenzhen-finance-1', 'endpoint' => 'cn-shenzhen-finance-1.log.aliyuncs.com'],
+ ['regionId' => 'cn-shanghai-finance-1', 'endpoint' => 'cn-shanghai-finance-1.log.aliyuncs.com'],
+ ['regionId' => 'cn-hangzhou-finance', 'endpoint' => 'cn-hangzhou-finance.log.aliyuncs.com'],
],
];