tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getDbbrainSlowLogs
Start a Neo task
Explain and create a tencentcloud.getDbbrainSlowLogs resource
tencentcloud 1.82.35 published on Friday, Nov 7, 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 dictionaryThe following arguments are supported:
- End
Time 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.
- Instance
Id 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.
- Start
Time 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.
- Result
Output stringFile - 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.
- End
Time 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.
- Instance
Id 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.
- Start
Time string - Start time, such as 2019-09-10 12:13:14.
- Dbs []string
- database list.
- Id string
- Ips []string
- ip.
- Keys []string
- keywords.
- Result
Output stringFile - 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.
- end
Time 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.
- instance
Id 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.
- start
Time 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.
- result
Output StringFile - 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.
- end
Time 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.
- instance
Id 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.
- start
Time string - Start time, such as 2019-09-10 12:13:14.
- dbs string[]
- database list.
- id string
- ips string[]
- ip.
- keys string[]
- keywords.
- result
Output stringFile - 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_ strfile - 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.
- end
Time 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.
- instance
Id 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.
- start
Time 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.
- result
Output StringFile - 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:
- End
Time string - Id string
- Instance
Id string - Md5 string
- Product string
- Rows
List<Get
Dbbrain Slow Logs Row> - Slow log details.
- Start
Time string - Dbs List<string>
- Ips List<string>
- Keys List<string>
- Result
Output stringFile - Times List<double>
- Users List<string>
- End
Time string - Id string
- Instance
Id string - Md5 string
- Product string
- Rows
[]Get
Dbbrain Slow Logs Row - Slow log details.
- Start
Time string - Dbs []string
- Ips []string
- Keys []string
- Result
Output stringFile - Times []float64
- Users []string
- end
Time String - id String
- instance
Id String - md5 String
- product String
- rows
List<Get
Dbbrain Slow Logs Row> - Slow log details.
- start
Time String - dbs List<String>
- ips List<String>
- keys List<String>
- result
Output StringFile - times List<Double>
- users List<String>
- end
Time string - id string
- instance
Id string - md5 string
- product string
- rows
Get
Dbbrain Slow Logs Row[] - Slow log details.
- start
Time string - dbs string[]
- ips string[]
- keys string[]
- result
Output stringFile - times number[]
- users string[]
- end_
time str - id str
- instance_
id str - md5 str
- product str
- rows
Sequence[Get
Dbbrain Slow Logs Row] - Slow log details.
- start_
time str - dbs Sequence[str]
- ips Sequence[str]
- keys Sequence[str]
- result_
output_ strfile - times Sequence[float]
- users Sequence[str]
- end
Time String - id String
- instance
Id String - md5 String
- product String
- rows List<Property Map>
- Slow log details.
- start
Time String - dbs List<String>
- ips List<String>
- keys List<String>
- result
Output StringFile - times List<Number>
- users List<String>
Supporting Types
GetDbbrainSlowLogsRow
- Database string
- database.
- Lock
Time double - lock time, in secondsNote: This field may return null, indicating that no valid value can be obtained.
- Query
Time double - Execution time, in seconds.
- Rows
Examined double - scan linesNote: This field may return null, indicating that no valid value can be obtained.
- Rows
Sent double - Return the number of rowsNote: This field may return null, indicating that no valid value can be obtained.
- Sql
Text string - sql statement.
- Timestamp string
- Slow log start time.
- User
Host string - Ip sourceNote: This field may return null, indicating that no valid value can be obtained.
- User
Name string - User sourceNote: This field may return null, indicating that no valid value can be obtained.
- Database string
- database.
- Lock
Time float64 - lock time, in secondsNote: This field may return null, indicating that no valid value can be obtained.
- Query
Time float64 - Execution time, in seconds.
- Rows
Examined float64 - scan linesNote: This field may return null, indicating that no valid value can be obtained.
- Rows
Sent float64 - Return the number of rowsNote: This field may return null, indicating that no valid value can be obtained.
- Sql
Text string - sql statement.
- Timestamp string
- Slow log start time.
- User
Host string - Ip sourceNote: This field may return null, indicating that no valid value can be obtained.
- User
Name string - User sourceNote: This field may return null, indicating that no valid value can be obtained.
- database String
- database.
- lock
Time Double - lock time, in secondsNote: This field may return null, indicating that no valid value can be obtained.
- query
Time Double - Execution time, in seconds.
- rows
Examined Double - scan linesNote: This field may return null, indicating that no valid value can be obtained.
- rows
Sent Double - Return the number of rowsNote: This field may return null, indicating that no valid value can be obtained.
- sql
Text String - sql statement.
- timestamp String
- Slow log start time.
- user
Host String - Ip sourceNote: This field may return null, indicating that no valid value can be obtained.
- user
Name String - User sourceNote: This field may return null, indicating that no valid value can be obtained.
- database string
- database.
- lock
Time number - lock time, in secondsNote: This field may return null, indicating that no valid value can be obtained.
- query
Time number - Execution time, in seconds.
- rows
Examined number - scan linesNote: This field may return null, indicating that no valid value can be obtained.
- rows
Sent number - Return the number of rowsNote: This field may return null, indicating that no valid value can be obtained.
- sql
Text string - sql statement.
- timestamp string
- Slow log start time.
- user
Host string - Ip sourceNote: This field may return null, indicating that no valid value can be obtained.
- user
Name 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.
- lock
Time Number - lock time, in secondsNote: This field may return null, indicating that no valid value can be obtained.
- query
Time Number - Execution time, in seconds.
- rows
Examined Number - scan linesNote: This field may return null, indicating that no valid value can be obtained.
- rows
Sent Number - Return the number of rowsNote: This field may return null, indicating that no valid value can be obtained.
- sql
Text String - sql statement.
- timestamp String
- Slow log start time.
- user
Host String - Ip sourceNote: This field may return null, indicating that no valid value can be obtained.
- user
Name 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
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
