summaryrefslogtreecommitdiff
path: root/data/en_us/sls/2019-10-23/api-docs.php
diff options
context:
space:
mode:
Diffstat (limited to 'data/en_us/sls/2019-10-23/api-docs.php')
-rw-r--r--data/en_us/sls/2019-10-23/api-docs.php1899
1 files changed, 397 insertions, 1502 deletions
diff --git a/data/en_us/sls/2019-10-23/api-docs.php b/data/en_us/sls/2019-10-23/api-docs.php
index 743a354..915ee81 100644
--- a/data/en_us/sls/2019-10-23/api-docs.php
+++ b/data/en_us/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' => null,
],
'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' => null,
],
'CreateApp' => [
'summary' => '创建应用',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ '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' => '', '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' => '', 'type' => 'string', 'required' => false, 'example' => '123.103.9.177'],
],
[
'name' => 'ClientToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['description' => '', '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,36 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'type' => 'string',
- ],
- 'AppName' => [
- 'type' => 'string',
- ],
- 'Message' => [
- 'type' => 'string',
- ],
- 'RequestId' => [
- 'type' => 'string',
- ],
- 'Success' => [
- 'type' => 'string',
- ],
+ 'Code' => ['description' => '', 'type' => 'string', 'example' => '200'],
+ 'AppName' => ['description' => '', 'type' => 'string', 'example' => 'k8s-event'],
+ 'Message' => ['description' => '', 'type' => 'string', 'example' => 'successful'],
+ 'RequestId' => ['description' => '', 'type' => 'string', 'example' => '88E6BA9F-7DD1-5544-B2C3-71D00E07271B'],
+ 'Success' => ['description' => '', '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' => null,
+ '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"}]',
],
'DeleteApp' => [
'summary' => '删除应用',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -583,34 +305,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 +329,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' => null,
],
'DescribeApp' => [
'summary' => '获取应用',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -695,34 +369,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 +393,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 +412,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' => null,
],
'DisableAlert' => [
'summary' => '禁用告警任务',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -820,53 +441,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 +475,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 +513,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 +572,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' => null,
],
'GetAlert' => [
'summary' => '获取告警任务',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1110,53 +613,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 +647,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' => null,
],
'GetAlertHistories' => [
'summary' => '获取历史告警任务',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1233,100 +687,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 +746,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 +786,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 +800,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',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1487,17 +836,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 +850,33 @@
'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' => '', 'type' => 'string', 'example' => '1CCC2B8E-4FF3-4755-A96C-8CE2E4BF27DF'],
+ 'Success' => ['description' => '', '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' => null,
+ '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"}]',
],
'SetAlertActionPolicy' => [
'summary' => ' 设置告警策略',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1571,49 +889,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 +923,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 +961,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 +990,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 +1029,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 +1053,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' => null,
],
'SyncAlertUsers' => [
'summary' => '同步告警用户',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1908,35 +1094,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 +1118,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',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2017,51 +1158,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' => '', '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 +1192,34 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'type' => 'string',
- ],
- 'Message' => [
- 'type' => 'string',
- ],
- 'RequestId' => [
- 'type' => 'string',
- ],
- 'Success' => [
- 'type' => 'string',
- ],
+ 'Code' => ['description' => '', 'type' => 'string', 'example' => '200'],
+ 'Message' => ['description' => '', 'type' => 'string', 'example' => 'successful'],
+ 'RequestId' => ['description' => '', 'type' => 'string', 'example' => 'F24A3C08-0B45-5EB4-8B44-F30E034E40B4'],
+ 'Success' => ['description' => '', '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' => null,
+ '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"}]',
],
'InitUserAlertResource' => [
'summary' => '初始化告警资源',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2145,49 +1232,28 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '84973',
- 'abilityTreeNodes' => [
- 'FEATUREslsL870A3',
- ],
+ 'abilityTreeNodes' => ['FEATUREslsL870A3'],
],
'parameters' => [
[
'name' => 'Language',
'in' => 'formData',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn',
- ],
+ 'schema' => ['description' => '', 'type' => 'string', 'required' => false, 'example' => 'cn'],
],
[
'name' => 'Region',
'in' => 'formData',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cn-shanghai',
- ],
+ 'schema' => ['description' => '', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-shanghai'],
],
[
'name' => 'App',
'in' => 'formData',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'none',
- ],
+ 'schema' => ['description' => '', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'none'],
],
[
'name' => 'SlsAccessToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -2195,41 +1261,20 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'successful',
- ],
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'EE3A9553-2CBB-59CD-96DA-9EE3EED48969',
- ],
- 'Success' => [
- 'description' => '',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
+ 'Code' => ['description' => '', 'type' => 'string', 'example' => '200'],
+ 'Message' => ['description' => '', 'type' => 'string', 'example' => 'successful'],
+ 'RequestId' => ['description' => '', 'type' => 'string', 'example' => 'EE3A9553-2CBB-59CD-96DA-9EE3EED48969'],
+ 'Success' => ['description' => '', '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',
'requestParamsDescription' => ' ',
@@ -2238,13 +1283,8 @@
],
'InitProjectAlertResource' => [
'summary' => '初始化告警资源',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2257,39 +1297,23 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '84972',
- 'abilityTreeNodes' => [
- 'FEATUREslsL870A3',
- ],
+ 'abilityTreeNodes' => ['FEATUREslsL870A3'],
],
'parameters' => [
[
'name' => 'Region',
'in' => 'formData',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => '', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'],
],
[
'name' => 'ProjectName',
'in' => 'formData',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'test-project',
- ],
+ 'schema' => ['description' => '', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test-project'],
],
[
'name' => 'SlsAccessToken',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -2297,47 +1321,23 @@
'schema' => [
'type' => 'object',
'properties' => [
- 'Code' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'D39895CE-1769-5485-BEF6-6B5A9DDEE75D',
- ],
- 'Success' => [
- 'description' => '',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
+ 'Code' => ['description' => '', 'type' => 'string', 'example' => '200'],
+ 'Message' => ['description' => '', 'type' => 'string', 'example' => 'Success'],
+ 'RequestId' => ['description' => '', 'type' => 'string', 'example' => 'D39895CE-1769-5485-BEF6-6B5A9DDEE75D'],
+ 'Success' => ['description' => '', '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',
'requestParamsDescription' => ' ',
@@ -2346,145 +1346,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'],
],
];