1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getDbbrainSlowLogs
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack

tencentcloud.getDbbrainSlowLogs

Start a Neo task
Explain and create a tencentcloud.getDbbrainSlowLogs resource
tencentcloud logo
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack

    Use this data source to query detailed information of dbbrain slow_logs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const slowLogs = tencentcloud.getDbbrainSlowLogs({
        product: "mysql",
        instanceId: "%s",
        md5: "4961208426639258265",
        startTime: "%s",
        endTime: "%s",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    slow_logs = tencentcloud.get_dbbrain_slow_logs(product="mysql",
        instance_id="%s",
        md5="4961208426639258265",
        start_time="%s",
        end_time="%s")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.GetDbbrainSlowLogs(ctx, &tencentcloud.GetDbbrainSlowLogsArgs{
    			Product:    "mysql",
    			InstanceId: "%s",
    			Md5:        "4961208426639258265",
    			StartTime:  "%s",
    			EndTime:    "%s",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var slowLogs = Tencentcloud.GetDbbrainSlowLogs.Invoke(new()
        {
            Product = "mysql",
            InstanceId = "%s",
            Md5 = "4961208426639258265",
            StartTime = "%s",
            EndTime = "%s",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetDbbrainSlowLogsArgs;
    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) {
            final var slowLogs = TencentcloudFunctions.getDbbrainSlowLogs(GetDbbrainSlowLogsArgs.builder()
                .product("mysql")
                .instanceId("%s")
                .md5("4961208426639258265")
                .startTime("%s")
                .endTime("%s")
                .build());
    
        }
    }
    
    variables:
      slowLogs:
        fn::invoke:
          function: tencentcloud:getDbbrainSlowLogs
          arguments:
            product: mysql
            instanceId: '%s'
            md5: '4961208426639258265'
            startTime: '%s'
            endTime: '%s'
    

    Using getDbbrainSlowLogs

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDbbrainSlowLogs(args: GetDbbrainSlowLogsArgs, opts?: InvokeOptions): Promise<GetDbbrainSlowLogsResult>
    function getDbbrainSlowLogsOutput(args: GetDbbrainSlowLogsOutputArgs, opts?: InvokeOptions): Output<GetDbbrainSlowLogsResult>
    def get_dbbrain_slow_logs(dbs: Optional[Sequence[str]] = None,
                              end_time: Optional[str] = None,
                              id: Optional[str] = None,
                              instance_id: Optional[str] = None,
                              ips: Optional[Sequence[str]] = None,
                              keys: Optional[Sequence[str]] = None,
                              md5: Optional[str] = None,
                              product: Optional[str] = None,
                              result_output_file: Optional[str] = None,
                              start_time: Optional[str] = None,
                              times: Optional[Sequence[float]] = None,
                              users: Optional[Sequence[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> GetDbbrainSlowLogsResult
    def get_dbbrain_slow_logs_output(dbs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                              end_time: Optional[pulumi.Input[str]] = None,
                              id: Optional[pulumi.Input[str]] = None,
                              instance_id: Optional[pulumi.Input[str]] = None,
                              ips: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                              keys: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                              md5: Optional[pulumi.Input[str]] = None,
                              product: Optional[pulumi.Input[str]] = None,
                              result_output_file: Optional[pulumi.Input[str]] = None,
                              start_time: Optional[pulumi.Input[str]] = None,
                              times: Optional[pulumi.Input[Sequence[pulumi.Input[float]]]] = None,
                              users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetDbbrainSlowLogsResult]
    func GetDbbrainSlowLogs(ctx *Context, args *GetDbbrainSlowLogsArgs, opts ...InvokeOption) (*GetDbbrainSlowLogsResult, error)
    func GetDbbrainSlowLogsOutput(ctx *Context, args *GetDbbrainSlowLogsOutputArgs, opts ...InvokeOption) GetDbbrainSlowLogsResultOutput

    > Note: This function is named GetDbbrainSlowLogs in the Go SDK.

    public static class GetDbbrainSlowLogs 
    {
        public static Task<GetDbbrainSlowLogsResult> InvokeAsync(GetDbbrainSlowLogsArgs args, InvokeOptions? opts = null)
        public static Output<GetDbbrainSlowLogsResult> Invoke(GetDbbrainSlowLogsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbbrainSlowLogsResult> getDbbrainSlowLogs(GetDbbrainSlowLogsArgs args, InvokeOptions options)
    public static Output<GetDbbrainSlowLogsResult> getDbbrainSlowLogs(GetDbbrainSlowLogsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDbbrainSlowLogs:getDbbrainSlowLogs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EndTime string
    The deadline, such as 2019-09-11 10:13:14, the interval between the deadline and the start time is less than 7 days.
    InstanceId string
    instance Id.
    Md5 string
    md5 value of sql template.
    Product string
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL, the default is mysql.
    StartTime string
    Start time, such as 2019-09-10 12:13:14.
    Dbs List<string>
    database list.
    Id string
    Ips List<string>
    ip.
    Keys List<string>
    keywords.
    ResultOutputFile string
    Used to save results.
    Times List<double>
    Time-consuming interval, the left and right boundaries of the time-consuming interval correspond to the 0th element and the first element of the array respectively.
    Users List<string>
    user.
    EndTime string
    The deadline, such as 2019-09-11 10:13:14, the interval between the deadline and the start time is less than 7 days.
    InstanceId string
    instance Id.
    Md5 string
    md5 value of sql template.
    Product string
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL, the default is mysql.
    StartTime string
    Start time, such as 2019-09-10 12:13:14.
    Dbs []string
    database list.
    Id string
    Ips []string
    ip.
    Keys []string
    keywords.
    ResultOutputFile string
    Used to save results.
    Times []float64
    Time-consuming interval, the left and right boundaries of the time-consuming interval correspond to the 0th element and the first element of the array respectively.
    Users []string
    user.
    endTime String
    The deadline, such as 2019-09-11 10:13:14, the interval between the deadline and the start time is less than 7 days.
    instanceId String
    instance Id.
    md5 String
    md5 value of sql template.
    product String
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL, the default is mysql.
    startTime String
    Start time, such as 2019-09-10 12:13:14.
    dbs List<String>
    database list.
    id String
    ips List<String>
    ip.
    keys List<String>
    keywords.
    resultOutputFile String
    Used to save results.
    times List<Double>
    Time-consuming interval, the left and right boundaries of the time-consuming interval correspond to the 0th element and the first element of the array respectively.
    users List<String>
    user.
    endTime string
    The deadline, such as 2019-09-11 10:13:14, the interval between the deadline and the start time is less than 7 days.
    instanceId string
    instance Id.
    md5 string
    md5 value of sql template.
    product string
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL, the default is mysql.
    startTime string
    Start time, such as 2019-09-10 12:13:14.
    dbs string[]
    database list.
    id string
    ips string[]
    ip.
    keys string[]
    keywords.
    resultOutputFile string
    Used to save results.
    times number[]
    Time-consuming interval, the left and right boundaries of the time-consuming interval correspond to the 0th element and the first element of the array respectively.
    users string[]
    user.
    end_time str
    The deadline, such as 2019-09-11 10:13:14, the interval between the deadline and the start time is less than 7 days.
    instance_id str
    instance Id.
    md5 str
    md5 value of sql template.
    product str
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL, the default is mysql.
    start_time str
    Start time, such as 2019-09-10 12:13:14.
    dbs Sequence[str]
    database list.
    id str
    ips Sequence[str]
    ip.
    keys Sequence[str]
    keywords.
    result_output_file str
    Used to save results.
    times Sequence[float]
    Time-consuming interval, the left and right boundaries of the time-consuming interval correspond to the 0th element and the first element of the array respectively.
    users Sequence[str]
    user.
    endTime String
    The deadline, such as 2019-09-11 10:13:14, the interval between the deadline and the start time is less than 7 days.
    instanceId String
    instance Id.
    md5 String
    md5 value of sql template.
    product String
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL, the default is mysql.
    startTime String
    Start time, such as 2019-09-10 12:13:14.
    dbs List<String>
    database list.
    id String
    ips List<String>
    ip.
    keys List<String>
    keywords.
    resultOutputFile String
    Used to save results.
    times List<Number>
    Time-consuming interval, the left and right boundaries of the time-consuming interval correspond to the 0th element and the first element of the array respectively.
    users List<String>
    user.

    getDbbrainSlowLogs Result

    The following output properties are available:

    EndTime string
    Id string
    InstanceId string
    Md5 string
    Product string
    Rows List<GetDbbrainSlowLogsRow>
    Slow log details.
    StartTime string
    Dbs List<string>
    Ips List<string>
    Keys List<string>
    ResultOutputFile string
    Times List<double>
    Users List<string>
    EndTime string
    Id string
    InstanceId string
    Md5 string
    Product string
    Rows []GetDbbrainSlowLogsRow
    Slow log details.
    StartTime string
    Dbs []string
    Ips []string
    Keys []string
    ResultOutputFile string
    Times []float64
    Users []string
    endTime String
    id String
    instanceId String
    md5 String
    product String
    rows List<GetDbbrainSlowLogsRow>
    Slow log details.
    startTime String
    dbs List<String>
    ips List<String>
    keys List<String>
    resultOutputFile String
    times List<Double>
    users List<String>
    endTime string
    id string
    instanceId string
    md5 string
    product string
    rows GetDbbrainSlowLogsRow[]
    Slow log details.
    startTime string
    dbs string[]
    ips string[]
    keys string[]
    resultOutputFile string
    times number[]
    users string[]
    end_time str
    id str
    instance_id str
    md5 str
    product str
    rows Sequence[GetDbbrainSlowLogsRow]
    Slow log details.
    start_time str
    dbs Sequence[str]
    ips Sequence[str]
    keys Sequence[str]
    result_output_file str
    times Sequence[float]
    users Sequence[str]
    endTime String
    id String
    instanceId String
    md5 String
    product String
    rows List<Property Map>
    Slow log details.
    startTime String
    dbs List<String>
    ips List<String>
    keys List<String>
    resultOutputFile String
    times List<Number>
    users List<String>

    Supporting Types

    GetDbbrainSlowLogsRow

    Database string
    database.
    LockTime double
    lock time, in secondsNote: This field may return null, indicating that no valid value can be obtained.
    QueryTime double
    Execution time, in seconds.
    RowsExamined double
    scan linesNote: This field may return null, indicating that no valid value can be obtained.
    RowsSent double
    Return the number of rowsNote: This field may return null, indicating that no valid value can be obtained.
    SqlText string
    sql statement.
    Timestamp string
    Slow log start time.
    UserHost string
    Ip sourceNote: This field may return null, indicating that no valid value can be obtained.
    UserName string
    User sourceNote: This field may return null, indicating that no valid value can be obtained.
    Database string
    database.
    LockTime float64
    lock time, in secondsNote: This field may return null, indicating that no valid value can be obtained.
    QueryTime float64
    Execution time, in seconds.
    RowsExamined float64
    scan linesNote: This field may return null, indicating that no valid value can be obtained.
    RowsSent float64
    Return the number of rowsNote: This field may return null, indicating that no valid value can be obtained.
    SqlText string
    sql statement.
    Timestamp string
    Slow log start time.
    UserHost string
    Ip sourceNote: This field may return null, indicating that no valid value can be obtained.
    UserName string
    User sourceNote: This field may return null, indicating that no valid value can be obtained.
    database String
    database.
    lockTime Double
    lock time, in secondsNote: This field may return null, indicating that no valid value can be obtained.
    queryTime Double
    Execution time, in seconds.
    rowsExamined Double
    scan linesNote: This field may return null, indicating that no valid value can be obtained.
    rowsSent Double
    Return the number of rowsNote: This field may return null, indicating that no valid value can be obtained.
    sqlText String
    sql statement.
    timestamp String
    Slow log start time.
    userHost String
    Ip sourceNote: This field may return null, indicating that no valid value can be obtained.
    userName String
    User sourceNote: This field may return null, indicating that no valid value can be obtained.
    database string
    database.
    lockTime number
    lock time, in secondsNote: This field may return null, indicating that no valid value can be obtained.
    queryTime number
    Execution time, in seconds.
    rowsExamined number
    scan linesNote: This field may return null, indicating that no valid value can be obtained.
    rowsSent number
    Return the number of rowsNote: This field may return null, indicating that no valid value can be obtained.
    sqlText string
    sql statement.
    timestamp string
    Slow log start time.
    userHost string
    Ip sourceNote: This field may return null, indicating that no valid value can be obtained.
    userName string
    User sourceNote: This field may return null, indicating that no valid value can be obtained.
    database str
    database.
    lock_time float
    lock time, in secondsNote: This field may return null, indicating that no valid value can be obtained.
    query_time float
    Execution time, in seconds.
    rows_examined float
    scan linesNote: This field may return null, indicating that no valid value can be obtained.
    rows_sent float
    Return the number of rowsNote: This field may return null, indicating that no valid value can be obtained.
    sql_text str
    sql statement.
    timestamp str
    Slow log start time.
    user_host str
    Ip sourceNote: This field may return null, indicating that no valid value can be obtained.
    user_name str
    User sourceNote: This field may return null, indicating that no valid value can be obtained.
    database String
    database.
    lockTime Number
    lock time, in secondsNote: This field may return null, indicating that no valid value can be obtained.
    queryTime Number
    Execution time, in seconds.
    rowsExamined Number
    scan linesNote: This field may return null, indicating that no valid value can be obtained.
    rowsSent Number
    Return the number of rowsNote: This field may return null, indicating that no valid value can be obtained.
    sqlText String
    sql statement.
    timestamp String
    Slow log start time.
    userHost String
    Ip sourceNote: This field may return null, indicating that no valid value can be obtained.
    userName String
    User sourceNote: This field may return null, indicating that no valid value can be obtained.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate