LogFunctions

Functions

Link copied to clipboard

Using this data source can init SLS Alert resources automatically. For information about SLS Alert and how to use it, see SLS Alert Overview

suspend fun getAlertResource(lang: String? = null, project: String? = null, type: String): GetAlertResourceResult
Link copied to clipboard

This data source provides the Log Projects of the current Alibaba Cloud user.

suspend fun getProjects(argument: suspend GetProjectsPlainArgsBuilder.() -> Unit): GetProjectsResult
suspend fun getProjects(ids: List<String>? = null, nameRegex: String? = null, outputFile: String? = null, status: String? = null): GetProjectsResult
Link copied to clipboard

Using this data source can enable Log service automatically. If the service has been enabled, it will return Opened. For information about Log service and how to use it, see What is Log Service.

suspend fun getService(enable: String? = null): GetServiceResult
suspend fun getService(argument: suspend GetServicePlainArgsBuilder.() -> Unit): GetServiceResult
Link copied to clipboard

This data source provides the Log Stores of the current Alibaba Cloud user.

suspend fun getStores(argument: suspend GetStoresPlainArgsBuilder.() -> Unit): GetStoresResult
suspend fun getStores(ids: List<String>? = null, nameRegex: String? = null, outputFile: String? = null, project: String): GetStoresResult