tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getDbbrainDiagEvent
Start a Neo task
Explain and create a tencentcloud.getDbbrainDiagEvent resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query detailed information of dbbrain diag_event
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const diagHistory = tencentcloud.getDbbrainDiagHistory({
instanceId: "%s",
startTime: "%s",
endTime: "%s",
product: "mysql",
});
const diagEvent = diagHistory.then(diagHistory => tencentcloud.getDbbrainDiagEvent({
instanceId: "%s",
eventId: diagHistory.events?.[0]?.eventId,
product: "mysql",
}));
import pulumi
import pulumi_tencentcloud as tencentcloud
diag_history = tencentcloud.get_dbbrain_diag_history(instance_id="%s",
start_time="%s",
end_time="%s",
product="mysql")
diag_event = tencentcloud.get_dbbrain_diag_event(instance_id="%s",
event_id=diag_history.events[0].event_id,
product="mysql")
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 {
diagHistory, err := tencentcloud.GetDbbrainDiagHistory(ctx, &tencentcloud.GetDbbrainDiagHistoryArgs{
InstanceId: "%s",
StartTime: "%s",
EndTime: "%s",
Product: pulumi.StringRef("mysql"),
}, nil)
if err != nil {
return err
}
_, err = tencentcloud.GetDbbrainDiagEvent(ctx, &tencentcloud.GetDbbrainDiagEventArgs{
InstanceId: "%s",
EventId: pulumi.Float64Ref(diagHistory.Events[0].EventId),
Product: pulumi.StringRef("mysql"),
}, 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 diagHistory = Tencentcloud.GetDbbrainDiagHistory.Invoke(new()
{
InstanceId = "%s",
StartTime = "%s",
EndTime = "%s",
Product = "mysql",
});
var diagEvent = Tencentcloud.GetDbbrainDiagEvent.Invoke(new()
{
InstanceId = "%s",
EventId = diagHistory.Apply(getDbbrainDiagHistoryResult => getDbbrainDiagHistoryResult.Events[0]?.EventId),
Product = "mysql",
});
});
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.GetDbbrainDiagHistoryArgs;
import com.pulumi.tencentcloud.inputs.GetDbbrainDiagEventArgs;
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 diagHistory = TencentcloudFunctions.getDbbrainDiagHistory(GetDbbrainDiagHistoryArgs.builder()
.instanceId("%s")
.startTime("%s")
.endTime("%s")
.product("mysql")
.build());
final var diagEvent = TencentcloudFunctions.getDbbrainDiagEvent(GetDbbrainDiagEventArgs.builder()
.instanceId("%s")
.eventId(diagHistory.events()[0].eventId())
.product("mysql")
.build());
}
}
variables:
diagHistory:
fn::invoke:
function: tencentcloud:getDbbrainDiagHistory
arguments:
instanceId: '%s'
startTime: '%s'
endTime: '%s'
product: mysql
diagEvent:
fn::invoke:
function: tencentcloud:getDbbrainDiagEvent
arguments:
instanceId: '%s'
eventId: ${diagHistory.events[0].eventId}
product: mysql
Using getDbbrainDiagEvent
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 getDbbrainDiagEvent(args: GetDbbrainDiagEventArgs, opts?: InvokeOptions): Promise<GetDbbrainDiagEventResult>
function getDbbrainDiagEventOutput(args: GetDbbrainDiagEventOutputArgs, opts?: InvokeOptions): Output<GetDbbrainDiagEventResult>def get_dbbrain_diag_event(event_id: Optional[float] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
product: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDbbrainDiagEventResult
def get_dbbrain_diag_event_output(event_id: Optional[pulumi.Input[float]] = None,
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,
opts: Optional[InvokeOptions] = None) -> Output[GetDbbrainDiagEventResult]func GetDbbrainDiagEvent(ctx *Context, args *GetDbbrainDiagEventArgs, opts ...InvokeOption) (*GetDbbrainDiagEventResult, error)
func GetDbbrainDiagEventOutput(ctx *Context, args *GetDbbrainDiagEventOutputArgs, opts ...InvokeOption) GetDbbrainDiagEventResultOutput> Note: This function is named GetDbbrainDiagEvent in the Go SDK.
public static class GetDbbrainDiagEvent
{
public static Task<GetDbbrainDiagEventResult> InvokeAsync(GetDbbrainDiagEventArgs args, InvokeOptions? opts = null)
public static Output<GetDbbrainDiagEventResult> Invoke(GetDbbrainDiagEventInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDbbrainDiagEventResult> getDbbrainDiagEvent(GetDbbrainDiagEventArgs args, InvokeOptions options)
public static Output<GetDbbrainDiagEventResult> getDbbrainDiagEvent(GetDbbrainDiagEventArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getDbbrainDiagEvent:getDbbrainDiagEvent
arguments:
# arguments dictionaryThe following arguments are supported:
- Instance
Id string - isntance id.
- Event
Id double - Event ID. Obtain it through
Get Instance Diagnosis History DescribeDBDiagHistory. - Id string
- Product string
- Service product type, supported values include:
mysql- cloud database MySQL,cynosdb- cloud database CynosDB for MySQL, the default ismysql. - Result
Output stringFile - Used to save results.
- Instance
Id string - isntance id.
- Event
Id float64 - Event ID. Obtain it through
Get Instance Diagnosis History DescribeDBDiagHistory. - Id string
- Product string
- Service product type, supported values include:
mysql- cloud database MySQL,cynosdb- cloud database CynosDB for MySQL, the default ismysql. - Result
Output stringFile - Used to save results.
- instance
Id String - isntance id.
- event
Id Double - Event ID. Obtain it through
Get Instance Diagnosis History DescribeDBDiagHistory. - id String
- product String
- Service product type, supported values include:
mysql- cloud database MySQL,cynosdb- cloud database CynosDB for MySQL, the default ismysql. - result
Output StringFile - Used to save results.
- instance
Id string - isntance id.
- event
Id number - Event ID. Obtain it through
Get Instance Diagnosis History DescribeDBDiagHistory. - id string
- product string
- Service product type, supported values include:
mysql- cloud database MySQL,cynosdb- cloud database CynosDB for MySQL, the default ismysql. - result
Output stringFile - Used to save results.
- instance_
id str - isntance id.
- event_
id float - Event ID. Obtain it through
Get Instance Diagnosis History DescribeDBDiagHistory. - id str
- product str
- Service product type, supported values include:
mysql- cloud database MySQL,cynosdb- cloud database CynosDB for MySQL, the default ismysql. - result_
output_ strfile - Used to save results.
- instance
Id String - isntance id.
- event
Id Number - Event ID. Obtain it through
Get Instance Diagnosis History DescribeDBDiagHistory. - id String
- product String
- Service product type, supported values include:
mysql- cloud database MySQL,cynosdb- cloud database CynosDB for MySQL, the default ismysql. - result
Output StringFile - Used to save results.
getDbbrainDiagEvent Result
The following output properties are available:
- Diag
Item string - diagnostic item.
- Diag
Type string - Diagnostic type.
- End
Time string - End Time.
- Event
Id double - Explanation string
- Diagnostic event details, output is empty if there is no additional explanatory information.
- Id string
- Instance
Id string - Metric string
- reserved text. Note: This field may return null, indicating that no valid value can be obtained.
- Outline string
- Diagnostic summary.
- Problem string
- Diagnosed problem.
- 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.
- Start
Time string - Starting time.
- Suggestions string
- A diagnostic suggestion, or empty if there is no suggestion.
- Product string
- Result
Output stringFile
- Diag
Item string - diagnostic item.
- Diag
Type string - Diagnostic type.
- End
Time string - End Time.
- Event
Id float64 - Explanation string
- Diagnostic event details, output is empty if there is no additional explanatory information.
- Id string
- Instance
Id string - Metric string
- reserved text. Note: This field may return null, indicating that no valid value can be obtained.
- Outline string
- Diagnostic summary.
- Problem string
- Diagnosed problem.
- 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.
- Start
Time string - Starting time.
- Suggestions string
- A diagnostic suggestion, or empty if there is no suggestion.
- Product string
- Result
Output stringFile
- diag
Item String - diagnostic item.
- diag
Type String - Diagnostic type.
- end
Time String - End Time.
- event
Id Double - explanation String
- Diagnostic event details, output is empty if there is no additional explanatory information.
- id String
- instance
Id String - metric String
- reserved text. Note: This field may return null, indicating that no valid value can be obtained.
- outline String
- Diagnostic summary.
- problem String
- Diagnosed problem.
- 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.
- start
Time String - Starting time.
- suggestions String
- A diagnostic suggestion, or empty if there is no suggestion.
- product String
- result
Output StringFile
- diag
Item string - diagnostic item.
- diag
Type string - Diagnostic type.
- end
Time string - End Time.
- event
Id number - explanation string
- Diagnostic event details, output is empty if there is no additional explanatory information.
- id string
- instance
Id string - metric string
- reserved text. Note: This field may return null, indicating that no valid value can be obtained.
- outline string
- Diagnostic summary.
- problem string
- Diagnosed problem.
- 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.
- start
Time string - Starting time.
- suggestions string
- A diagnostic suggestion, or empty if there is no suggestion.
- product string
- result
Output stringFile
- diag_
item str - diagnostic item.
- diag_
type str - Diagnostic type.
- end_
time str - End Time.
- event_
id float - explanation str
- Diagnostic event details, output is empty if there is no additional explanatory information.
- id str
- instance_
id str - metric str
- reserved text. Note: This field may return null, indicating that no valid value can be obtained.
- outline str
- Diagnostic summary.
- problem str
- Diagnosed problem.
- 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.
- suggestions str
- A diagnostic suggestion, or empty if there is no suggestion.
- product str
- result_
output_ strfile
- diag
Item String - diagnostic item.
- diag
Type String - Diagnostic type.
- end
Time String - End Time.
- event
Id Number - explanation String
- Diagnostic event details, output is empty if there is no additional explanatory information.
- id String
- instance
Id String - metric String
- reserved text. Note: This field may return null, indicating that no valid value can be obtained.
- outline String
- Diagnostic summary.
- problem String
- Diagnosed problem.
- 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.
- start
Time String - Starting time.
- suggestions String
- A diagnostic suggestion, or empty if there is no suggestion.
- product String
- result
Output StringFile
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
