// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi;

namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Dbbrain
{
    public static class GetSlowLogUserHostStats
    {
        /// <summary>
        /// Use this data source to query detailed information of dbbrain slow_log_user_host_stats
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var test = Output.Create(Tencentcloud.Dbbrain.GetSlowLogUserHostStats.InvokeAsync(new Tencentcloud.Dbbrain.GetSlowLogUserHostStatsArgs
        ///         {
        ///             EndTime = "%s",
        ///             InstanceId = "%s",
        ///             Product = "mysql",
        ///             StartTime = "%s",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetSlowLogUserHostStatsResult> InvokeAsync(GetSlowLogUserHostStatsArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetSlowLogUserHostStatsResult>("tencentcloud:Dbbrain/getSlowLogUserHostStats:getSlowLogUserHostStats", args ?? new GetSlowLogUserHostStatsArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of dbbrain slow_log_user_host_stats
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var test = Output.Create(Tencentcloud.Dbbrain.GetSlowLogUserHostStats.InvokeAsync(new Tencentcloud.Dbbrain.GetSlowLogUserHostStatsArgs
        ///         {
        ///             EndTime = "%s",
        ///             InstanceId = "%s",
        ///             Product = "mysql",
        ///             StartTime = "%s",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetSlowLogUserHostStatsResult> Invoke(GetSlowLogUserHostStatsInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetSlowLogUserHostStatsResult>("tencentcloud:Dbbrain/getSlowLogUserHostStats:getSlowLogUserHostStats", args ?? new GetSlowLogUserHostStatsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetSlowLogUserHostStatsArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// EndTime time of the query range, time format such as: 2019-09-10 12:13:14.
        /// </summary>
        [Input("endTime", required: true)]
        public string EndTime { get; set; } = null!;

        /// <summary>
        /// instance id.
        /// </summary>
        [Input("instanceId", required: true)]
        public string InstanceId { get; set; } = null!;

        /// <summary>
        /// MD5 value of SOL template.
        /// </summary>
        [Input("md5")]
        public string? Md5 { get; set; }

        /// <summary>
        /// Types of service products, supported values:`mysql` - Cloud Database MySQL; `cynosdb` - Cloud Database TDSQL-C for MySQL, defaults to `mysql`.
        /// </summary>
        [Input("product")]
        public string? Product { get; set; }

        /// <summary>
        /// Used to save results.
        /// </summary>
        [Input("resultOutputFile")]
        public string? ResultOutputFile { get; set; }

        /// <summary>
        /// Start time of the query range, time format such as: 2019-09-10 12:13:14.
        /// </summary>
        [Input("startTime", required: true)]
        public string StartTime { get; set; } = null!;

        public GetSlowLogUserHostStatsArgs()
        {
        }
    }

    public sealed class GetSlowLogUserHostStatsInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// EndTime time of the query range, time format such as: 2019-09-10 12:13:14.
        /// </summary>
        [Input("endTime", required: true)]
        public Input<string> EndTime { get; set; } = null!;

        /// <summary>
        /// instance id.
        /// </summary>
        [Input("instanceId", required: true)]
        public Input<string> InstanceId { get; set; } = null!;

        /// <summary>
        /// MD5 value of SOL template.
        /// </summary>
        [Input("md5")]
        public Input<string>? Md5 { get; set; }

        /// <summary>
        /// Types of service products, supported values:`mysql` - Cloud Database MySQL; `cynosdb` - Cloud Database TDSQL-C for MySQL, defaults to `mysql`.
        /// </summary>
        [Input("product")]
        public Input<string>? Product { get; set; }

        /// <summary>
        /// Used to save results.
        /// </summary>
        [Input("resultOutputFile")]
        public Input<string>? ResultOutputFile { get; set; }

        /// <summary>
        /// Start time of the query range, time format such as: 2019-09-10 12:13:14.
        /// </summary>
        [Input("startTime", required: true)]
        public Input<string> StartTime { get; set; } = null!;

        public GetSlowLogUserHostStatsInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetSlowLogUserHostStatsResult
    {
        public readonly string EndTime;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string InstanceId;
        /// <summary>
        /// Detailed list of the slow log proportion for each source address.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetSlowLogUserHostStatsItemResult> Items;
        public readonly string? Md5;
        public readonly string? Product;
        public readonly string? ResultOutputFile;
        public readonly string StartTime;

        [OutputConstructor]
        private GetSlowLogUserHostStatsResult(
            string endTime,

            string id,

            string instanceId,

            ImmutableArray<Outputs.GetSlowLogUserHostStatsItemResult> items,

            string? md5,

            string? product,

            string? resultOutputFile,

            string startTime)
        {
            EndTime = endTime;
            Id = id;
            InstanceId = instanceId;
            Items = items;
            Md5 = md5;
            Product = product;
            ResultOutputFile = resultOutputFile;
            StartTime = startTime;
        }
    }
}
