1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getDbbrainSlowLogUserHostStats
tencentcloud 1.81.187 published on Monday, Apr 28, 2025 by tencentcloudstack

tencentcloud.getDbbrainSlowLogUserHostStats

Explore with Pulumi AI

Use this data source to query detailed information of dbbrain slow_log_user_host_stats

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const test = tencentcloud.getDbbrainSlowLogUserHostStats({
    endTime: "%s",
    instanceId: "%s",
    product: "mysql",
    startTime: "%s",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

test = tencentcloud.get_dbbrain_slow_log_user_host_stats(end_time="%s",
    instance_id="%s",
    product="mysql",
    start_time="%s")
Copy
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.GetDbbrainSlowLogUserHostStats(ctx, &tencentcloud.GetDbbrainSlowLogUserHostStatsArgs{
			EndTime:    "%s",
			InstanceId: "%s",
			Product:    pulumi.StringRef("mysql"),
			StartTime:  "%s",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var test = Tencentcloud.GetDbbrainSlowLogUserHostStats.Invoke(new()
    {
        EndTime = "%s",
        InstanceId = "%s",
        Product = "mysql",
        StartTime = "%s",
    });

});
Copy
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.GetDbbrainSlowLogUserHostStatsArgs;
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 test = TencentcloudFunctions.getDbbrainSlowLogUserHostStats(GetDbbrainSlowLogUserHostStatsArgs.builder()
            .endTime("%s")
            .instanceId("%s")
            .product("mysql")
            .startTime("%s")
            .build());

    }
}
Copy
variables:
  test:
    fn::invoke:
      function: tencentcloud:getDbbrainSlowLogUserHostStats
      arguments:
        endTime: '%s'
        instanceId: '%s'
        product: mysql
        startTime: '%s'
Copy

Using getDbbrainSlowLogUserHostStats

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 getDbbrainSlowLogUserHostStats(args: GetDbbrainSlowLogUserHostStatsArgs, opts?: InvokeOptions): Promise<GetDbbrainSlowLogUserHostStatsResult>
function getDbbrainSlowLogUserHostStatsOutput(args: GetDbbrainSlowLogUserHostStatsOutputArgs, opts?: InvokeOptions): Output<GetDbbrainSlowLogUserHostStatsResult>
Copy
def get_dbbrain_slow_log_user_host_stats(end_time: Optional[str] = None,
                                         id: Optional[str] = None,
                                         instance_id: Optional[str] = None,
                                         md5: Optional[str] = None,
                                         product: Optional[str] = None,
                                         result_output_file: Optional[str] = None,
                                         start_time: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetDbbrainSlowLogUserHostStatsResult
def get_dbbrain_slow_log_user_host_stats_output(end_time: Optional[pulumi.Input[str]] = None,
                                         id: Optional[pulumi.Input[str]] = None,
                                         instance_id: Optional[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,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetDbbrainSlowLogUserHostStatsResult]
Copy
func GetDbbrainSlowLogUserHostStats(ctx *Context, args *GetDbbrainSlowLogUserHostStatsArgs, opts ...InvokeOption) (*GetDbbrainSlowLogUserHostStatsResult, error)
func GetDbbrainSlowLogUserHostStatsOutput(ctx *Context, args *GetDbbrainSlowLogUserHostStatsOutputArgs, opts ...InvokeOption) GetDbbrainSlowLogUserHostStatsResultOutput
Copy

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

public static class GetDbbrainSlowLogUserHostStats 
{
    public static Task<GetDbbrainSlowLogUserHostStatsResult> InvokeAsync(GetDbbrainSlowLogUserHostStatsArgs args, InvokeOptions? opts = null)
    public static Output<GetDbbrainSlowLogUserHostStatsResult> Invoke(GetDbbrainSlowLogUserHostStatsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDbbrainSlowLogUserHostStatsResult> getDbbrainSlowLogUserHostStats(GetDbbrainSlowLogUserHostStatsArgs args, InvokeOptions options)
public static Output<GetDbbrainSlowLogUserHostStatsResult> getDbbrainSlowLogUserHostStats(GetDbbrainSlowLogUserHostStatsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getDbbrainSlowLogUserHostStats:getDbbrainSlowLogUserHostStats
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

EndTime This property is required. string
EndTime time of the query range, time format such as: 2019-09-10 12:13:14.
InstanceId This property is required. string
instance id.
StartTime This property is required. string
Start time of the query range, time format such as: 2019-09-10 12:13:14.
Id string
Md5 string
MD5 value of SOL template.
Product string
Types of service products, supported values:mysql - Cloud Database MySQL; cynosdb - Cloud Database TDSQL-C for MySQL, defaults to mysql.
ResultOutputFile string
Used to save results.
EndTime This property is required. string
EndTime time of the query range, time format such as: 2019-09-10 12:13:14.
InstanceId This property is required. string
instance id.
StartTime This property is required. string
Start time of the query range, time format such as: 2019-09-10 12:13:14.
Id string
Md5 string
MD5 value of SOL template.
Product string
Types of service products, supported values:mysql - Cloud Database MySQL; cynosdb - Cloud Database TDSQL-C for MySQL, defaults to mysql.
ResultOutputFile string
Used to save results.
endTime This property is required. String
EndTime time of the query range, time format such as: 2019-09-10 12:13:14.
instanceId This property is required. String
instance id.
startTime This property is required. String
Start time of the query range, time format such as: 2019-09-10 12:13:14.
id String
md5 String
MD5 value of SOL template.
product String
Types of service products, supported values:mysql - Cloud Database MySQL; cynosdb - Cloud Database TDSQL-C for MySQL, defaults to mysql.
resultOutputFile String
Used to save results.
endTime This property is required. string
EndTime time of the query range, time format such as: 2019-09-10 12:13:14.
instanceId This property is required. string
instance id.
startTime This property is required. string
Start time of the query range, time format such as: 2019-09-10 12:13:14.
id string
md5 string
MD5 value of SOL template.
product string
Types of service products, supported values:mysql - Cloud Database MySQL; cynosdb - Cloud Database TDSQL-C for MySQL, defaults to mysql.
resultOutputFile string
Used to save results.
end_time This property is required. str
EndTime time of the query range, time format such as: 2019-09-10 12:13:14.
instance_id This property is required. str
instance id.
start_time This property is required. str
Start time of the query range, time format such as: 2019-09-10 12:13:14.
id str
md5 str
MD5 value of SOL template.
product str
Types of service products, supported values:mysql - Cloud Database MySQL; cynosdb - Cloud Database TDSQL-C for MySQL, defaults to mysql.
result_output_file str
Used to save results.
endTime This property is required. String
EndTime time of the query range, time format such as: 2019-09-10 12:13:14.
instanceId This property is required. String
instance id.
startTime This property is required. String
Start time of the query range, time format such as: 2019-09-10 12:13:14.
id String
md5 String
MD5 value of SOL template.
product String
Types of service products, supported values:mysql - Cloud Database MySQL; cynosdb - Cloud Database TDSQL-C for MySQL, defaults to mysql.
resultOutputFile String
Used to save results.

getDbbrainSlowLogUserHostStats Result

The following output properties are available:

EndTime string
Id string
InstanceId string
Items List<GetDbbrainSlowLogUserHostStatsItem>
Detailed list of the slow log proportion for each source address.
StartTime string
Md5 string
Product string
ResultOutputFile string
EndTime string
Id string
InstanceId string
Items []GetDbbrainSlowLogUserHostStatsItem
Detailed list of the slow log proportion for each source address.
StartTime string
Md5 string
Product string
ResultOutputFile string
endTime String
id String
instanceId String
items List<GetDbbrainSlowLogUserHostStatsItem>
Detailed list of the slow log proportion for each source address.
startTime String
md5 String
product String
resultOutputFile String
endTime string
id string
instanceId string
items GetDbbrainSlowLogUserHostStatsItem[]
Detailed list of the slow log proportion for each source address.
startTime string
md5 string
product string
resultOutputFile string
end_time str
id str
instance_id str
items Sequence[GetDbbrainSlowLogUserHostStatsItem]
Detailed list of the slow log proportion for each source address.
start_time str
md5 str
product str
result_output_file str
endTime String
id String
instanceId String
items List<Property Map>
Detailed list of the slow log proportion for each source address.
startTime String
md5 String
product String
resultOutputFile String

Supporting Types

GetDbbrainSlowLogUserHostStatsItem

Count This property is required. double
The number of slow logs for this source address.
Ratio This property is required. double
The ratio of the number of slow logs of the source address to the total, in %.
UserHost This property is required. string
source address.
Count This property is required. float64
The number of slow logs for this source address.
Ratio This property is required. float64
The ratio of the number of slow logs of the source address to the total, in %.
UserHost This property is required. string
source address.
count This property is required. Double
The number of slow logs for this source address.
ratio This property is required. Double
The ratio of the number of slow logs of the source address to the total, in %.
userHost This property is required. String
source address.
count This property is required. number
The number of slow logs for this source address.
ratio This property is required. number
The ratio of the number of slow logs of the source address to the total, in %.
userHost This property is required. string
source address.
count This property is required. float
The number of slow logs for this source address.
ratio This property is required. float
The ratio of the number of slow logs of the source address to the total, in %.
user_host This property is required. str
source address.
count This property is required. Number
The number of slow logs for this source address.
ratio This property is required. Number
The ratio of the number of slow logs of the source address to the total, in %.
userHost This property is required. String
source address.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.