tencentcloud 1.81.187 published on Monday, Apr 28, 2025 by tencentcloudstack
tencentcloud.getDbbrainHealthScores
Explore with Pulumi AI
tencentcloud 1.81.187 published on Monday, Apr 28, 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:
- Instance
Id This property is required. string - The ID of the instance whose health score needs to be obtained.
- Product
This property is required. string - Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database TDSQL-C for MySQL, the default is mysql.
- Time
This property is required. string - The time to obtain the health score, the time format is as follows: 2019-09-10 12:13:14.
- Id string
- Result
Output stringFile - Used to save results.
- Instance
Id This property is required. string - The ID of the instance whose health score needs to be obtained.
- Product
This property is required. string - Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database TDSQL-C for MySQL, the default is mysql.
- Time
This property is required. string - The time to obtain the health score, the time format is as follows: 2019-09-10 12:13:14.
- Id string
- Result
Output stringFile - Used to save results.
- instance
Id This property is required. String - The ID of the instance whose health score needs to be obtained.
- product
This property is required. String - Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database TDSQL-C for MySQL, the default is mysql.
- time
This property is required. String - The time to obtain the health score, the time format is as follows: 2019-09-10 12:13:14.
- id String
- result
Output StringFile - Used to save results.
- instance
Id This property is required. string - The ID of the instance whose health score needs to be obtained.
- product
This property is required. string - Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database TDSQL-C for MySQL, the default is mysql.
- time
This property is required. string - The time to obtain the health score, the time format is as follows: 2019-09-10 12:13:14.
- id string
- result
Output stringFile - Used to save results.
- instance_
id This property is required. str - The ID of the instance whose health score needs to be obtained.
- product
This property is required. str - Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database TDSQL-C for MySQL, the default is mysql.
- time
This property is required. str - The time to obtain the health score, the time format is as follows: 2019-09-10 12:13:14.
- id str
- result_
output_ strfile - Used to save results.
- instance
Id This property is required. String - The ID of the instance whose health score needs to be obtained.
- product
This property is required. String - Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database TDSQL-C for MySQL, the default is mysql.
- time
This property is required. String - The time to obtain the health score, the time format is as follows: 2019-09-10 12:13:14.
- id String
- result
Output StringFile - Used to save results.
getDbbrainHealthScores Result
The following output properties are available:
- Datas
List<Get
Dbbrain Health Scores Data> - Health score and abnormal deduction items.
- Id string
- Instance
Id string - Product string
- Time string
- Result
Output stringFile
- Datas
[]Get
Dbbrain Health Scores Data - Health score and abnormal deduction items.
- Id string
- Instance
Id string - Product string
- Time string
- Result
Output stringFile
- datas
List<Get
Dbbrain Health Scores Data> - Health score and abnormal deduction items.
- id String
- instance
Id String - product String
- time String
- result
Output StringFile
- datas
Get
Dbbrain Health Scores Data[] - Health score and abnormal deduction items.
- id string
- instance
Id string - product string
- time string
- result
Output stringFile
- datas
Sequence[Get
Dbbrain Health Scores Data] - Health score and abnormal deduction items.
- id str
- instance_
id str - product str
- time str
- result_
output_ strfile
- datas List<Property Map>
- Health score and abnormal deduction items.
- id String
- instance
Id String - product String
- time String
- result
Output StringFile
Supporting Types
GetDbbrainHealthScoresData
- Events
Total Count This property is required. double - The total number of abnormal events.
- Health
Level This property is required. string - Health level, such as: HEALTH, SUB_HEALTH, RISK, HIGH_RISK.
- Health
Score This property is required. double - Health score.
- Issue
Types This property is required. List<GetDbbrain Health Scores Data Issue Type> - Exception details.
- Events
Total Count This property is required. float64 - The total number of abnormal events.
- Health
Level This property is required. string - Health level, such as: HEALTH, SUB_HEALTH, RISK, HIGH_RISK.
- Health
Score This property is required. float64 - Health score.
- Issue
Types This property is required. []GetDbbrain Health Scores Data Issue Type - Exception details.
- events
Total Count This property is required. Double - The total number of abnormal events.
- health
Level This property is required. String - Health level, such as: HEALTH, SUB_HEALTH, RISK, HIGH_RISK.
- health
Score This property is required. Double - Health score.
- issue
Types This property is required. List<GetDbbrain Health Scores Data Issue Type> - Exception details.
- events
Total Count This property is required. number - The total number of abnormal events.
- health
Level This property is required. string - Health level, such as: HEALTH, SUB_HEALTH, RISK, HIGH_RISK.
- health
Score This property is required. number - Health score.
- issue
Types This property is required. GetDbbrain Health Scores Data Issue Type[] - Exception details.
- events_
total_ count This property is required. float - The total number of abnormal events.
- health_
level This property is required. str - Health level, such as: HEALTH, SUB_HEALTH, RISK, HIGH_RISK.
- health_
score This property is required. float - Health score.
- issue_
types This property is required. Sequence[GetDbbrain Health Scores Data Issue Type] - Exception details.
- events
Total Count This property is required. Number - The total number of abnormal events.
- health
Level This property is required. String - Health level, such as: HEALTH, SUB_HEALTH, RISK, HIGH_RISK.
- health
Score This property is required. Number - Health score.
- issue
Types This property is required. List<Property Map> - Exception details.
GetDbbrainHealthScoresDataIssueType
- Events
This property is required. List<GetDbbrain Health Scores Data Issue Type Event> - unusual event.
- Issue
Type This property is required. string - Index classification: AVAILABILITY: availability, MAINTAINABILITY: maintainability, PERFORMANCE, performance, RELIABILITY reliability.
- Total
Count This property is required. double - The total number of abnormal events.
- Events
This property is required. []GetDbbrain Health Scores Data Issue Type Event - unusual event.
- Issue
Type This property is required. string - Index classification: AVAILABILITY: availability, MAINTAINABILITY: maintainability, PERFORMANCE, performance, RELIABILITY reliability.
- Total
Count This property is required. float64 - The total number of abnormal events.
- events
This property is required. List<GetDbbrain Health Scores Data Issue Type Event> - unusual event.
- issue
Type This property is required. String - Index classification: AVAILABILITY: availability, MAINTAINABILITY: maintainability, PERFORMANCE, performance, RELIABILITY reliability.
- total
Count This property is required. Double - The total number of abnormal events.
- events
This property is required. GetDbbrain Health Scores Data Issue Type Event[] - unusual event.
- issue
Type This property is required. string - Index classification: AVAILABILITY: availability, MAINTAINABILITY: maintainability, PERFORMANCE, performance, RELIABILITY reliability.
- total
Count This property is required. number - The total number of abnormal events.
- events
This property is required. Sequence[GetDbbrain Health Scores Data Issue Type Event] - unusual event.
- issue_
type This property is required. str - Index classification: AVAILABILITY: availability, MAINTAINABILITY: maintainability, PERFORMANCE, performance, RELIABILITY reliability.
- total_
count This property is required. float - The total number of abnormal events.
- events
This property is required. List<Property Map> - unusual event.
- issue
Type This property is required. String - Index classification: AVAILABILITY: availability, MAINTAINABILITY: maintainability, PERFORMANCE, performance, RELIABILITY reliability.
- total
Count This property is required. Number - The total number of abnormal events.
GetDbbrainHealthScoresDataIssueTypeEvent
- Count
This property is required. double - Number of alerts.
- Diag
Type This property is required. string - Diagnostic type.
- End
Time This property is required. string - End Time.
- Event
Id This property is required. double - Event ID.
- Metric
This property is required. string - reserved text.
- Outline
This property is required. string - overview.
- Score
Lost This property is required. double - Points deducted.
- Severity
This property is required. 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.
- Start
Time This property is required. string - Starting time.
- Count
This property is required. float64 - Number of alerts.
- Diag
Type This property is required. string - Diagnostic type.
- End
Time This property is required. string - End Time.
- Event
Id This property is required. float64 - Event ID.
- Metric
This property is required. string - reserved text.
- Outline
This property is required. string - overview.
- Score
Lost This property is required. float64 - Points deducted.
- Severity
This property is required. 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.
- Start
Time This property is required. string - Starting time.
- count
This property is required. Double - Number of alerts.
- diag
Type This property is required. String - Diagnostic type.
- end
Time This property is required. String - End Time.
- event
Id This property is required. Double - Event ID.
- metric
This property is required. String - reserved text.
- outline
This property is required. String - overview.
- score
Lost This property is required. Double - Points deducted.
- severity
This property is required. 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.
- start
Time This property is required. String - Starting time.
- count
This property is required. number - Number of alerts.
- diag
Type This property is required. string - Diagnostic type.
- end
Time This property is required. string - End Time.
- event
Id This property is required. number - Event ID.
- metric
This property is required. string - reserved text.
- outline
This property is required. string - overview.
- score
Lost This property is required. number - Points deducted.
- severity
This property is required. 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.
- start
Time This property is required. string - Starting time.
- count
This property is required. float - Number of alerts.
- diag_
type This property is required. str - Diagnostic type.
- end_
time This property is required. str - End Time.
- event_
id This property is required. float - Event ID.
- metric
This property is required. str - reserved text.
- outline
This property is required. str - overview.
- score_
lost This property is required. float - Points deducted.
- severity
This property is required. 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 This property is required. str - Starting time.
- count
This property is required. Number - Number of alerts.
- diag
Type This property is required. String - Diagnostic type.
- end
Time This property is required. String - End Time.
- event
Id This property is required. Number - Event ID.
- metric
This property is required. String - reserved text.
- outline
This property is required. String - overview.
- score
Lost This property is required. Number - Points deducted.
- severity
This property is required. 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.
- start
Time This property is required. String - Starting time.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.187 published on Monday, Apr 28, 2025 by tencentcloudstack