Dashboard

class Dashboard : KotlinCustomResource

The dashboard is a real-time data analysis platform provided by the log service. You can display frequently used query and analysis statements in the form of charts and save statistical charts to the dashboard. Refer to details.

NOTE: Available in 1.86.0, parameter "action" in char_list is supported since 1.164.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.RandomInteger;
import com.pulumi.random.RandomIntegerArgs;
import com.pulumi.alicloud.log.Project;
import com.pulumi.alicloud.log.ProjectArgs;
import com.pulumi.alicloud.log.Store;
import com.pulumi.alicloud.log.StoreArgs;
import com.pulumi.alicloud.log.Dashboard;
import com.pulumi.alicloud.log.DashboardArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new RandomInteger("default", RandomIntegerArgs.builder()
.max(99999)
.min(10000)
.build());
var exampleProject = new Project("exampleProject", ProjectArgs.builder()
.description("terraform-example")
.build());
var exampleStore = new Store("exampleStore", StoreArgs.builder()
.project(exampleProject.name())
.shardCount(3)
.autoSplit(true)
.maxSplitShardCount(60)
.appendMeta(true)
.build());
var exampleDashboard = new Dashboard("exampleDashboard", DashboardArgs.builder()
.projectName(exampleProject.name())
.dashboardName("terraform-example")
.attribute("{\"type\":\"grid\"}")
.charList("""
[
{
"action": {},
"title":"new_title",
"type":"map",
"search":{
"logstore":"example-store",
"topic":"new_topic",
"query":"* | SELECT COUNT(name) as ct_name, COUNT(product) as ct_product, name,product GROUP BY name,product",
"start":"-86400s",
"end":"now"
},
"display":{
"xAxis":[
"ct_name"
],
"yAxis":[
"ct_product"
],
"xPos":0,
"yPos":0,
"width":10,
"height":12,
"displayName":"terraform-example"
}
}
]
""")
.build());
}
}

Import

Log Dashboard can be imported using the id or name, e.g.

$ pulumi import alicloud:log/dashboard:Dashboard example tf-project:tf-logstore:tf-dashboard

Properties

Link copied to clipboard
val attribute: Output<String>

Dashboard attribute.

Link copied to clipboard
val charList: Output<String>

Configuration of charts in the dashboard.

Link copied to clipboard
val dashboardName: Output<String>

The name of the Log Dashboard.

Link copied to clipboard
val displayName: Output<String>?

Dashboard alias.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val projectName: Output<String>

The name of the log project. It is the only in one Alicloud account.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>