1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getDbbrainSlowLogUserHostStats
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getDbbrainSlowLogUserHostStats

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    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",
    });
    
    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")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: tencentcloud:getDbbrainSlowLogUserHostStats
          arguments:
            endTime: '%s'
            instanceId: '%s'
            product: mysql
            startTime: '%s'
    

    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>
    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]
    func GetDbbrainSlowLogUserHostStats(ctx *Context, args *GetDbbrainSlowLogUserHostStatsArgs, opts ...InvokeOption) (*GetDbbrainSlowLogUserHostStatsResult, error)
    func GetDbbrainSlowLogUserHostStatsOutput(ctx *Context, args *GetDbbrainSlowLogUserHostStatsOutputArgs, opts ...InvokeOption) GetDbbrainSlowLogUserHostStatsResultOutput

    > 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)
    }
    public static CompletableFuture<GetDbbrainSlowLogUserHostStatsResult> getDbbrainSlowLogUserHostStats(GetDbbrainSlowLogUserHostStatsArgs args, InvokeOptions options)
    public static Output<GetDbbrainSlowLogUserHostStatsResult> getDbbrainSlowLogUserHostStats(GetDbbrainSlowLogUserHostStatsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDbbrainSlowLogUserHostStats:getDbbrainSlowLogUserHostStats
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EndTime string
    EndTime time of the query range, time format such as: 2019-09-10 12:13:14.
    InstanceId string
    instance id.
    StartTime 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 string
    EndTime time of the query range, time format such as: 2019-09-10 12:13:14.
    InstanceId string
    instance id.
    StartTime 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 String
    EndTime time of the query range, time format such as: 2019-09-10 12:13:14.
    instanceId String
    instance id.
    startTime 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 string
    EndTime time of the query range, time format such as: 2019-09-10 12:13:14.
    instanceId string
    instance id.
    startTime 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 str
    EndTime time of the query range, time format such as: 2019-09-10 12:13:14.
    instance_id str
    instance id.
    start_time 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 String
    EndTime time of the query range, time format such as: 2019-09-10 12:13:14.
    instanceId String
    instance id.
    startTime 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 double
    The number of slow logs for this source address.
    Ratio double
    The ratio of the number of slow logs of the source address to the total, in %.
    UserHost string
    source address.
    Count float64
    The number of slow logs for this source address.
    Ratio float64
    The ratio of the number of slow logs of the source address to the total, in %.
    UserHost string
    source address.
    count Double
    The number of slow logs for this source address.
    ratio Double
    The ratio of the number of slow logs of the source address to the total, in %.
    userHost String
    source address.
    count number
    The number of slow logs for this source address.
    ratio number
    The ratio of the number of slow logs of the source address to the total, in %.
    userHost string
    source address.
    count float
    The number of slow logs for this source address.
    ratio float
    The ratio of the number of slow logs of the source address to the total, in %.
    user_host str
    source address.
    count Number
    The number of slow logs for this source address.
    ratio Number
    The ratio of the number of slow logs of the source address to the total, in %.
    userHost String
    source address.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack