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

tencentcloud.getDbbrainHealthScores

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 health_scores

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const healthScores = tencentcloud.getDbbrainHealthScores({
        instanceId: "",
        product: "",
        time: "",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    health_scores = tencentcloud.get_dbbrain_health_scores(instance_id="",
        product="",
        time="")
    
    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.GetDbbrainHealthScores(ctx, &tencentcloud.GetDbbrainHealthScoresArgs{
    			InstanceId: "",
    			Product:    "",
    			Time:       "",
    		}, 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 healthScores = Tencentcloud.GetDbbrainHealthScores.Invoke(new()
        {
            InstanceId = "",
            Product = "",
            Time = "",
        });
    
    });
    
    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.GetDbbrainHealthScoresArgs;
    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 healthScores = TencentcloudFunctions.getDbbrainHealthScores(GetDbbrainHealthScoresArgs.builder()
                .instanceId("")
                .product("")
                .time("")
                .build());
    
        }
    }
    
    variables:
      healthScores:
        fn::invoke:
          function: tencentcloud:getDbbrainHealthScores
          arguments:
            instanceId: ""
            product: ""
            time: ""
    

    Using getDbbrainHealthScores

    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 getDbbrainHealthScores(args: GetDbbrainHealthScoresArgs, opts?: InvokeOptions): Promise<GetDbbrainHealthScoresResult>
    function getDbbrainHealthScoresOutput(args: GetDbbrainHealthScoresOutputArgs, opts?: InvokeOptions): Output<GetDbbrainHealthScoresResult>
    def get_dbbrain_health_scores(id: Optional[str] = None,
                                  instance_id: Optional[str] = None,
                                  product: Optional[str] = None,
                                  result_output_file: Optional[str] = None,
                                  time: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetDbbrainHealthScoresResult
    def get_dbbrain_health_scores_output(id: Optional[pulumi.Input[str]] = None,
                                  instance_id: Optional[pulumi.Input[str]] = None,
                                  product: Optional[pulumi.Input[str]] = None,
                                  result_output_file: Optional[pulumi.Input[str]] = None,
                                  time: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetDbbrainHealthScoresResult]
    func GetDbbrainHealthScores(ctx *Context, args *GetDbbrainHealthScoresArgs, opts ...InvokeOption) (*GetDbbrainHealthScoresResult, error)
    func GetDbbrainHealthScoresOutput(ctx *Context, args *GetDbbrainHealthScoresOutputArgs, opts ...InvokeOption) GetDbbrainHealthScoresResultOutput

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

    public static class GetDbbrainHealthScores 
    {
        public static Task<GetDbbrainHealthScoresResult> InvokeAsync(GetDbbrainHealthScoresArgs args, InvokeOptions? opts = null)
        public static Output<GetDbbrainHealthScoresResult> Invoke(GetDbbrainHealthScoresInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbbrainHealthScoresResult> getDbbrainHealthScores(GetDbbrainHealthScoresArgs args, InvokeOptions options)
    public static Output<GetDbbrainHealthScoresResult> getDbbrainHealthScores(GetDbbrainHealthScoresArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDbbrainHealthScores:getDbbrainHealthScores
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    The ID of the instance whose health score needs to be obtained.
    Product string
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database TDSQL-C for MySQL, the default is mysql.
    Time string
    The time to obtain the health score, the time format is as follows: 2019-09-10 12:13:14.
    Id string
    ResultOutputFile string
    Used to save results.
    InstanceId string
    The ID of the instance whose health score needs to be obtained.
    Product string
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database TDSQL-C for MySQL, the default is mysql.
    Time string
    The time to obtain the health score, the time format is as follows: 2019-09-10 12:13:14.
    Id string
    ResultOutputFile string
    Used to save results.
    instanceId String
    The ID of the instance whose health score needs to be obtained.
    product String
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database TDSQL-C for MySQL, the default is mysql.
    time String
    The time to obtain the health score, the time format is as follows: 2019-09-10 12:13:14.
    id String
    resultOutputFile String
    Used to save results.
    instanceId string
    The ID of the instance whose health score needs to be obtained.
    product string
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database TDSQL-C for MySQL, the default is mysql.
    time string
    The time to obtain the health score, the time format is as follows: 2019-09-10 12:13:14.
    id string
    resultOutputFile string
    Used to save results.
    instance_id str
    The ID of the instance whose health score needs to be obtained.
    product str
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database TDSQL-C for MySQL, the default is mysql.
    time str
    The time to obtain the health score, the time format is as follows: 2019-09-10 12:13:14.
    id str
    result_output_file str
    Used to save results.
    instanceId String
    The ID of the instance whose health score needs to be obtained.
    product String
    Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database TDSQL-C for MySQL, the default is mysql.
    time String
    The time to obtain the health score, the time format is as follows: 2019-09-10 12:13:14.
    id String
    resultOutputFile String
    Used to save results.

    getDbbrainHealthScores Result

    The following output properties are available:

    Datas List<GetDbbrainHealthScoresData>
    Health score and abnormal deduction items.
    Id string
    InstanceId string
    Product string
    Time string
    ResultOutputFile string
    Datas []GetDbbrainHealthScoresData
    Health score and abnormal deduction items.
    Id string
    InstanceId string
    Product string
    Time string
    ResultOutputFile string
    datas List<GetDbbrainHealthScoresData>
    Health score and abnormal deduction items.
    id String
    instanceId String
    product String
    time String
    resultOutputFile String
    datas GetDbbrainHealthScoresData[]
    Health score and abnormal deduction items.
    id string
    instanceId string
    product string
    time string
    resultOutputFile string
    datas Sequence[GetDbbrainHealthScoresData]
    Health score and abnormal deduction items.
    id str
    instance_id str
    product str
    time str
    result_output_file str
    datas List<Property Map>
    Health score and abnormal deduction items.
    id String
    instanceId String
    product String
    time String
    resultOutputFile String

    Supporting Types

    GetDbbrainHealthScoresData

    EventsTotalCount double
    The total number of abnormal events.
    HealthLevel string
    Health level, such as: HEALTH, SUB_HEALTH, RISK, HIGH_RISK.
    HealthScore double
    Health score.
    IssueTypes List<GetDbbrainHealthScoresDataIssueType>
    Exception details.
    EventsTotalCount float64
    The total number of abnormal events.
    HealthLevel string
    Health level, such as: HEALTH, SUB_HEALTH, RISK, HIGH_RISK.
    HealthScore float64
    Health score.
    IssueTypes []GetDbbrainHealthScoresDataIssueType
    Exception details.
    eventsTotalCount Double
    The total number of abnormal events.
    healthLevel String
    Health level, such as: HEALTH, SUB_HEALTH, RISK, HIGH_RISK.
    healthScore Double
    Health score.
    issueTypes List<GetDbbrainHealthScoresDataIssueType>
    Exception details.
    eventsTotalCount number
    The total number of abnormal events.
    healthLevel string
    Health level, such as: HEALTH, SUB_HEALTH, RISK, HIGH_RISK.
    healthScore number
    Health score.
    issueTypes GetDbbrainHealthScoresDataIssueType[]
    Exception details.
    events_total_count float
    The total number of abnormal events.
    health_level str
    Health level, such as: HEALTH, SUB_HEALTH, RISK, HIGH_RISK.
    health_score float
    Health score.
    issue_types Sequence[GetDbbrainHealthScoresDataIssueType]
    Exception details.
    eventsTotalCount Number
    The total number of abnormal events.
    healthLevel String
    Health level, such as: HEALTH, SUB_HEALTH, RISK, HIGH_RISK.
    healthScore Number
    Health score.
    issueTypes List<Property Map>
    Exception details.

    GetDbbrainHealthScoresDataIssueType

    Events List<GetDbbrainHealthScoresDataIssueTypeEvent>
    unusual event.
    IssueType string
    Index classification: AVAILABILITY: availability, MAINTAINABILITY: maintainability, PERFORMANCE, performance, RELIABILITY reliability.
    TotalCount double
    The total number of abnormal events.
    Events []GetDbbrainHealthScoresDataIssueTypeEvent
    unusual event.
    IssueType string
    Index classification: AVAILABILITY: availability, MAINTAINABILITY: maintainability, PERFORMANCE, performance, RELIABILITY reliability.
    TotalCount float64
    The total number of abnormal events.
    events List<GetDbbrainHealthScoresDataIssueTypeEvent>
    unusual event.
    issueType String
    Index classification: AVAILABILITY: availability, MAINTAINABILITY: maintainability, PERFORMANCE, performance, RELIABILITY reliability.
    totalCount Double
    The total number of abnormal events.
    events GetDbbrainHealthScoresDataIssueTypeEvent[]
    unusual event.
    issueType string
    Index classification: AVAILABILITY: availability, MAINTAINABILITY: maintainability, PERFORMANCE, performance, RELIABILITY reliability.
    totalCount number
    The total number of abnormal events.
    events Sequence[GetDbbrainHealthScoresDataIssueTypeEvent]
    unusual event.
    issue_type str
    Index classification: AVAILABILITY: availability, MAINTAINABILITY: maintainability, PERFORMANCE, performance, RELIABILITY reliability.
    total_count float
    The total number of abnormal events.
    events List<Property Map>
    unusual event.
    issueType String
    Index classification: AVAILABILITY: availability, MAINTAINABILITY: maintainability, PERFORMANCE, performance, RELIABILITY reliability.
    totalCount Number
    The total number of abnormal events.

    GetDbbrainHealthScoresDataIssueTypeEvent

    Count double
    Number of alerts.
    DiagType string
    Diagnostic type.
    EndTime string
    End Time.
    EventId double
    Event ID.
    Metric string
    reserved text.
    Outline string
    overview.
    ScoreLost double
    Points deducted.
    Severity double
    severity. The severity is divided into 5 levels, according to the degree of impact from high to low: 1: Fatal, 2: Serious, 3: Warning, 4: Prompt, 5: Healthy.
    StartTime string
    Starting time.
    Count float64
    Number of alerts.
    DiagType string
    Diagnostic type.
    EndTime string
    End Time.
    EventId float64
    Event ID.
    Metric string
    reserved text.
    Outline string
    overview.
    ScoreLost float64
    Points deducted.
    Severity float64
    severity. The severity is divided into 5 levels, according to the degree of impact from high to low: 1: Fatal, 2: Serious, 3: Warning, 4: Prompt, 5: Healthy.
    StartTime string
    Starting time.
    count Double
    Number of alerts.
    diagType String
    Diagnostic type.
    endTime String
    End Time.
    eventId Double
    Event ID.
    metric String
    reserved text.
    outline String
    overview.
    scoreLost Double
    Points deducted.
    severity Double
    severity. The severity is divided into 5 levels, according to the degree of impact from high to low: 1: Fatal, 2: Serious, 3: Warning, 4: Prompt, 5: Healthy.
    startTime String
    Starting time.
    count number
    Number of alerts.
    diagType string
    Diagnostic type.
    endTime string
    End Time.
    eventId number
    Event ID.
    metric string
    reserved text.
    outline string
    overview.
    scoreLost number
    Points deducted.
    severity number
    severity. The severity is divided into 5 levels, according to the degree of impact from high to low: 1: Fatal, 2: Serious, 3: Warning, 4: Prompt, 5: Healthy.
    startTime string
    Starting time.
    count float
    Number of alerts.
    diag_type str
    Diagnostic type.
    end_time str
    End Time.
    event_id float
    Event ID.
    metric str
    reserved text.
    outline str
    overview.
    score_lost float
    Points deducted.
    severity float
    severity. The severity is divided into 5 levels, according to the degree of impact from high to low: 1: Fatal, 2: Serious, 3: Warning, 4: Prompt, 5: Healthy.
    start_time str
    Starting time.
    count Number
    Number of alerts.
    diagType String
    Diagnostic type.
    endTime String
    End Time.
    eventId Number
    Event ID.
    metric String
    reserved text.
    outline String
    overview.
    scoreLost Number
    Points deducted.
    severity Number
    severity. The severity is divided into 5 levels, according to the degree of impact from high to low: 1: Fatal, 2: Serious, 3: Warning, 4: Prompt, 5: Healthy.
    startTime String
    Starting time.

    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