'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', ], 'components' => [ 'schemas' => [], ], 'apis' => [ 'AnalyzeAppLog' => [ 'summary' => '创建或更新应用', 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '84948', 'abilityTreeNodes' => [ 'FEATUREslsL870A3', ], ], 'parameters' => [ [ 'name' => 'AppType', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'DisplayName', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'VariableMap', 'in' => 'query', 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'SlsAccessToken', 'in' => 'query', 'schema' => [ 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ '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', ], 'responseDemo' => null, ], 'AnalyzeProductLog' => [ 'summary' => '操作云产品日志服务资源', 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '84949', 'abilityTreeNodes' => [ 'FEATUREslsL870A3', ], ], 'parameters' => [ [ 'name' => 'Project', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'Logstore', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'CloudProduct', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'Lang', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'Region', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'TTL', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, ], ], [ 'name' => 'ResourceQuota', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'Overwrite', 'in' => 'query', 'schema' => [ 'type' => 'boolean', 'required' => false, 'default' => 'true', ], ], [ 'name' => 'ClientIp', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'VariableMap', 'in' => 'query', 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => false, ], ], [ 'name' => 'HotTTL', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int32', ], ], [ 'name' => 'SlsAccessToken', 'in' => 'query', 'schema' => [ 'type' => 'string', ], ], [ 'name' => 'InternalConfigOnly', 'in' => 'query', 'schema' => [ 'type' => 'boolean', 'default' => 'false', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ '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', ], 'responseDemo' => null, ], 'CreateApp' => [ 'summary' => '创建应用', 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '84954', 'abilityTreeNodes' => [ 'FEATUREslsL870A3', ], ], 'parameters' => [ [ 'name' => 'AppName', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'DisplayName', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'Config', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'ClientIp', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'ClientToken', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'SlsAccessToken', 'in' => 'query', 'schema' => [ 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'AppName' => [ 'type' => 'string', ], 'Message' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'string', ], ], ], ], ], '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' => 'PermissionDenied', 'errorMessage' => '%s.', ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'responseDemo' => null, ], 'DeleteApp' => [ 'summary' => '删除应用', 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '84959', 'abilityTreeNodes' => [ 'FEATUREslsL870A3', ], ], 'parameters' => [ [ 'name' => 'AppName', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'ClientIp', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'SlsAccessToken', 'in' => 'query', 'schema' => [ 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ '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' => 'PermissionDenied', 'errorMessage' => '%s.', ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'responseDemo' => null, ], 'DescribeApp' => [ 'summary' => '获取应用', 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '84962', 'abilityTreeNodes' => [ 'FEATUREslsL870A3', ], ], 'parameters' => [ [ 'name' => 'AppName', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'ClientIp', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'SlsAccessToken', 'in' => 'query', 'schema' => [ 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ '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', ], ], ], ], ], ], ], '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' => 'PermissionDenied', 'errorMessage' => '%s.', ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'responseDemo' => null, ], 'DisableAlert' => [ 'summary' => '禁用告警任务', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '84964', 'abilityTreeNodes' => [ 'FEATUREslsL870A3', ], ], 'parameters' => [ [ 'name' => 'Endpoint', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'App', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'ProjectName', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'AlertId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'SlsAccessToken', 'in' => 'query', 'schema' => [ 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'Message' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [ 400 => [ [ 'errorCode' => 'InputParaError', 'errorMessage' => '%s.', ], [ 'errorCode' => 'ProjectNotExist', 'errorMessage' => '%s.', ], ], [ [ 'errorCode' => 'UnAuthorized', 'errorMessage' => '%s.', ], ], 404 => [ [ 'errorCode' => 'AlertNotExist', 'errorMessage' => '%s.', ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], ], 'EnableAlert' => [ 'summary' => '启用告警任务', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '84965', 'abilityTreeNodes' => [ 'FEATUREslsL870A3', ], ], 'parameters' => [ [ 'name' => 'Endpoint', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'App', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'ProjectName', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'AlertId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'Language', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'Tokens', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'RuleVersion', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'RuleId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'Region', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'SlsAccessToken', 'in' => 'query', 'schema' => [ 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ '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' => 'UnAuthorized', 'errorMessage' => '%s.', ], ], 404 => [ [ 'errorCode' => 'AlertNotExist', 'errorMessage' => '%s.', ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'responseDemo' => null, ], 'GetAlert' => [ 'summary' => '获取告警任务', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '84966', 'abilityTreeNodes' => [ 'FEATUREslsL870A3', ], ], 'parameters' => [ [ 'name' => 'Endpoint', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'ProjectName', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'App', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'AlertId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'SlsAccessToken', 'in' => 'query', 'schema' => [ 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ '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' => 'UnAuthorized', 'errorMessage' => '%s.', ], ], 404 => [ [ 'errorCode' => 'AlertNotExist', 'errorMessage' => '%s.', ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'responseDemo' => null, ], 'GetAlertHistories' => [ 'summary' => '获取历史告警任务', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '84967', 'abilityTreeNodes' => [ 'FEATUREslsL870A3', ], ], 'parameters' => [ [ 'name' => 'App', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'Region', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'AlertId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'Offset', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, ], ], [ 'name' => 'Line', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, ], ], [ 'name' => 'FromTs', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'ToTs', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'ProjectName', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'Endpoint', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'SlsAccessToken', 'in' => 'query', 'schema' => [ 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ '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' => 'UnAuthorized', 'errorMessage' => '%s.', ], ], 404 => [ [ 'errorCode' => 'AlertNotExist', 'errorMessage' => '%s.', ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], ], 'GetSlsService' => [ 'summary' => '查询日志服务的开通状态', 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '84971', 'abilityTreeNodes' => [ 'FEATUREslsL870A3', ], ], 'parameters' => [ [ 'name' => 'SlsAccessToken', 'in' => 'query', 'schema' => [ 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'Enabled' => [ 'type' => 'boolean', ], 'Message' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Status' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [ 401 => [ [ 'errorCode' => 'PermissionDenied', 'errorMessage' => '%s.', ], ], 500 => [ [ 'errorCode' => 'DescribeUserBusinessStatusFailed', 'errorMessage' => 'Failed to describe user business status.', ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], ], 'OpenSlsService' => [ 'summary' => '开通日志服务', 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '84975', 'abilityTreeNodes' => [ 'FEATUREslsL870A3', ], ], 'parameters' => [ [ 'name' => 'SlsAccessToken', 'in' => 'query', 'schema' => [ 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'Message' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [ 200 => [ [ 'errorCode' => 'CreateOrderError', 'errorMessage' => '%s.', ], ], 401 => [ [ 'errorCode' => 'PermissionDenied', 'errorMessage' => '%s.', ], ], 500 => [ [ 'errorCode' => 'GetSpecificationsFailed', 'errorMessage' => '%s.', ], [ 'errorCode' => 'CreateOrderFailed', 'errorMessage' => 'Failed to create an order.', ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'responseDemo' => null, ], 'SetAlertActionPolicy' => [ 'summary' => ' 设置告警策略', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '84977', 'abilityTreeNodes' => [ 'FEATUREslsL870A3', ], ], 'parameters' => [ [ 'name' => 'App', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'PolicyId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'Policy', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'PolicyName', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'SlsAccessToken', 'in' => 'query', 'schema' => [ 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'Message' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'boolean', ], ], ], ], ], 'errorCodes' => [ 400 => [ [ 'errorCode' => 'InputParaError', 'errorMessage' => '%s.', ], [ 'errorCode' => 'ProjectNotExist', 'errorMessage' => '%s.', ], ], [ [ 'errorCode' => 'UnAuthorized', 'errorMessage' => '%s.', ], ], 404 => [ [ 'errorCode' => 'ResourceNotExist', 'errorMessage' => '%s.', ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], ], 'SetAlertCenterResource' => [ 'summary' => '设置告警资源', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '84978', 'abilityTreeNodes' => [ 'FEATUREslsL870A3', ], ], 'parameters' => [ [ 'name' => 'Language', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'Region', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'App', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'SlsAccessToken', 'in' => 'query', 'schema' => [ 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ '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' => 'UnAuthorized', 'errorMessage' => '%s.', ], ], 404 => [ [ 'errorCode' => 'AlertNotExist', 'errorMessage' => '%s.', ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], ], 'SyncAlertGroups' => [ 'summary' => '同步告警用户组', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '84981', 'abilityTreeNodes' => [ 'FEATUREslsL870A3', ], ], 'parameters' => [ [ 'name' => 'App', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'Groups', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'SlsAccessToken', 'in' => 'query', 'schema' => [ 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ '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' => 'UnAuthorized', 'errorMessage' => '%s.', ], ], 404 => [ [ 'errorCode' => 'AlertNotExist', 'errorMessage' => '%s.', ], [ 'errorCode' => 'ResourceNotExist', 'errorMessage' => '%s.', ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'responseDemo' => null, ], 'SyncAlertUsers' => [ 'summary' => '同步告警用户', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '84982', 'abilityTreeNodes' => [ 'FEATUREslsL870A3', ], ], 'parameters' => [ [ 'name' => 'App', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'Users', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'SlsAccessToken', 'in' => 'query', 'schema' => [ 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ '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' => 'UnAuthorized', 'errorMessage' => '%s.', ], ], 404 => [ [ 'errorCode' => 'AlertNotExist', 'errorMessage' => '%s.', ], [ 'errorCode' => 'ResourceNotExist', 'errorMessage' => '%s.', ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], ], 'UpdateApp' => [ 'summary' => '更新应用', 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '84983', 'abilityTreeNodes' => [ 'FEATUREslsL870A3', ], ], 'parameters' => [ [ 'name' => 'AppName', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'DisplayName', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'Config', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'ClientIp', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'SlsAccessToken', 'in' => 'query', 'schema' => [ 'type' => 'string', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Code' => [ 'type' => 'string', ], 'Message' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Success' => [ 'type' => 'string', ], ], ], ], ], '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' => 'PermissionDenied', 'errorMessage' => '%s.', ], ], ], 'staticInfo' => [ 'returnType' => 'synchronous', ], 'responseDemo' => null, ], 'InitUserAlertResource' => [ 'summary' => '初始化告警资源', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '84973', 'abilityTreeNodes' => [ 'FEATUREslsL870A3', ], ], 'parameters' => [ [ 'name' => 'Language', 'in' => 'formData', 'schema' => [ 'description' => '', 'type' => 'string', 'required' => false, 'example' => 'cn', ], ], [ 'name' => 'Region', 'in' => 'formData', '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', ], ], [ 'name' => 'SlsAccessToken', 'in' => 'query', 'schema' => [ 'type' => 'string', ], ], ], 'responses' => [ 200 => [ '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', ], ], ], ], ], 'errorCodes' => [ 400 => [ [ 'errorCode' => 'SetAlertCenterResourceError', 'errorMessage' => '%s.', ], ], ], '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":"successful\\nEE3A9553-2CBB-59CD-96DA-9EE3EED48969\\n200\\ntrue","errorExample":""}]', 'title' => 'InitUserAlertResource', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', ], 'InitProjectAlertResource' => [ 'summary' => '初始化告警资源', 'methods' => [ 'post', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '84972', 'abilityTreeNodes' => [ 'FEATUREslsL870A3', ], ], 'parameters' => [ [ 'name' => 'Region', 'in' => 'formData', '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', ], ], [ 'name' => 'SlsAccessToken', 'in' => 'query', 'schema' => [ 'type' => 'string', ], ], ], 'responses' => [ 200 => [ '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', ], ], ], ], ], 'errorCodes' => [ 400 => [ [ 'errorCode' => 'LogstoreError', 'errorMessage' => 'Failed to create or update the logstore: %s.', ], ], [ [ 'errorCode' => 'UnAuthorized', 'errorMessage' => '%s.', ], ], ], '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":"Success\\nD39895CE-1769-5485-BEF6-6B5A9DDEE75D\\n200\\ntrue","errorExample":""}]', 'title' => 'InitProjectAlertResource', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', ], ], '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', ], ], ];