// *** 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 GetHealthScores
    {
        /// <summary>
        /// Use this data source to query detailed information of dbbrain health_scores
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var healthScores = Output.Create(Tencentcloud.Dbbrain.GetHealthScores.InvokeAsync(new Tencentcloud.Dbbrain.GetHealthScoresArgs
        ///         {
        ///             InstanceId = "",
        ///             Product = "",
        ///             Time = "",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetHealthScoresResult> InvokeAsync(GetHealthScoresArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetHealthScoresResult>("tencentcloud:Dbbrain/getHealthScores:getHealthScores", args ?? new GetHealthScoresArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of dbbrain health_scores
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var healthScores = Output.Create(Tencentcloud.Dbbrain.GetHealthScores.InvokeAsync(new Tencentcloud.Dbbrain.GetHealthScoresArgs
        ///         {
        ///             InstanceId = "",
        ///             Product = "",
        ///             Time = "",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetHealthScoresResult> Invoke(GetHealthScoresInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetHealthScoresResult>("tencentcloud:Dbbrain/getHealthScores:getHealthScores", args ?? new GetHealthScoresInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetHealthScoresArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// The ID of the instance whose health score needs to be obtained.
        /// </summary>
        [Input("instanceId", required: true)]
        public string InstanceId { get; set; } = null!;

        /// <summary>
        /// Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database TDSQL-C for MySQL, the default is mysql.
        /// </summary>
        [Input("product", required: true)]
        public string Product { get; set; } = null!;

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

        /// <summary>
        /// The time to obtain the health score, the time format is as follows: 2019-09-10 12:13:14.
        /// </summary>
        [Input("time", required: true)]
        public string Time { get; set; } = null!;

        public GetHealthScoresArgs()
        {
        }
    }

    public sealed class GetHealthScoresInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// The ID of the instance whose health score needs to be obtained.
        /// </summary>
        [Input("instanceId", required: true)]
        public Input<string> InstanceId { get; set; } = null!;

        /// <summary>
        /// Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database TDSQL-C for MySQL, the default is mysql.
        /// </summary>
        [Input("product", required: true)]
        public Input<string> Product { get; set; } = null!;

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

        /// <summary>
        /// The time to obtain the health score, the time format is as follows: 2019-09-10 12:13:14.
        /// </summary>
        [Input("time", required: true)]
        public Input<string> Time { get; set; } = null!;

        public GetHealthScoresInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetHealthScoresResult
    {
        /// <summary>
        /// Health score and abnormal deduction items.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetHealthScoresDataResult> Datas;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string InstanceId;
        public readonly string Product;
        public readonly string? ResultOutputFile;
        public readonly string Time;

        [OutputConstructor]
        private GetHealthScoresResult(
            ImmutableArray<Outputs.GetHealthScoresDataResult> datas,

            string id,

            string instanceId,

            string product,

            string? resultOutputFile,

            string time)
        {
            Datas = datas;
            Id = id;
            InstanceId = instanceId;
            Product = product;
            ResultOutputFile = resultOutputFile;
            Time = time;
        }
    }
}
