tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getDbbrainDiagHistory
Start a Neo task
Explain and create a tencentcloud.getDbbrainDiagHistory resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
Use this data source to query detailed information of dbbrain diag_history
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",
});
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")
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.GetDbbrainDiagHistory(ctx, &tencentcloud.GetDbbrainDiagHistoryArgs{
InstanceId: "%s",
StartTime: "%s",
EndTime: "%s",
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",
});
});
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 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());
}
}
variables:
diagHistory:
fn::invoke:
function: tencentcloud:getDbbrainDiagHistory
arguments:
instanceId: '%s'
startTime: '%s'
endTime: '%s'
product: mysql
Using getDbbrainDiagHistory
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 getDbbrainDiagHistory(args: GetDbbrainDiagHistoryArgs, opts?: InvokeOptions): Promise<GetDbbrainDiagHistoryResult>
function getDbbrainDiagHistoryOutput(args: GetDbbrainDiagHistoryOutputArgs, opts?: InvokeOptions): Output<GetDbbrainDiagHistoryResult>def get_dbbrain_diag_history(end_time: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
product: Optional[str] = None,
result_output_file: Optional[str] = None,
start_time: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDbbrainDiagHistoryResult
def get_dbbrain_diag_history_output(end_time: Optional[pulumi.Input[str]] = 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,
start_time: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDbbrainDiagHistoryResult]func GetDbbrainDiagHistory(ctx *Context, args *GetDbbrainDiagHistoryArgs, opts ...InvokeOption) (*GetDbbrainDiagHistoryResult, error)
func GetDbbrainDiagHistoryOutput(ctx *Context, args *GetDbbrainDiagHistoryOutputArgs, opts ...InvokeOption) GetDbbrainDiagHistoryResultOutput> Note: This function is named GetDbbrainDiagHistory in the Go SDK.
public static class GetDbbrainDiagHistory
{
public static Task<GetDbbrainDiagHistoryResult> InvokeAsync(GetDbbrainDiagHistoryArgs args, InvokeOptions? opts = null)
public static Output<GetDbbrainDiagHistoryResult> Invoke(GetDbbrainDiagHistoryInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDbbrainDiagHistoryResult> getDbbrainDiagHistory(GetDbbrainDiagHistoryArgs args, InvokeOptions options)
public static Output<GetDbbrainDiagHistoryResult> getDbbrainDiagHistory(GetDbbrainDiagHistoryArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getDbbrainDiagHistory:getDbbrainDiagHistory
arguments:
# arguments dictionaryThe following arguments are supported:
- End
Time string - End time, such as
2019-09-11 12:13:14, the interval between the end time and the start time can be up to 2 days. - Instance
Id string - instance id.
- Start
Time string - Start time, such as
2019-09-10 12:13:14. - 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.
- End
Time string - End time, such as
2019-09-11 12:13:14, the interval between the end time and the start time can be up to 2 days. - Instance
Id string - instance id.
- Start
Time string - Start time, such as
2019-09-10 12:13:14. - 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.
- end
Time String - End time, such as
2019-09-11 12:13:14, the interval between the end time and the start time can be up to 2 days. - instance
Id String - instance id.
- start
Time String - Start time, such as
2019-09-10 12:13:14. - 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.
- end
Time string - End time, such as
2019-09-11 12:13:14, the interval between the end time and the start time can be up to 2 days. - instance
Id string - instance id.
- start
Time string - Start time, such as
2019-09-10 12:13:14. - 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.
- end_
time str - End time, such as
2019-09-11 12:13:14, the interval between the end time and the start time can be up to 2 days. - instance_
id str - instance id.
- start_
time str - Start time, such as
2019-09-10 12:13:14. - 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.
- end
Time String - End time, such as
2019-09-11 12:13:14, the interval between the end time and the start time can be up to 2 days. - instance
Id String - instance id.
- start
Time String - Start time, such as
2019-09-10 12:13:14. - 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.
getDbbrainDiagHistory Result
The following output properties are available:
- End
Time string - End Time.
- Events
List<Get
Dbbrain Diag History Event> - Event description.
- Id string
- Instance
Id string - instance id.
- Start
Time string - start Time.
- Product string
- Result
Output stringFile
- End
Time string - End Time.
- Events
[]Get
Dbbrain Diag History Event - Event description.
- Id string
- Instance
Id string - instance id.
- Start
Time string - start Time.
- Product string
- Result
Output stringFile
- end
Time String - End Time.
- events
List<Get
Dbbrain Diag History Event> - Event description.
- id String
- instance
Id String - instance id.
- start
Time String - start Time.
- product String
- result
Output StringFile
- end
Time string - End Time.
- events
Get
Dbbrain Diag History Event[] - Event description.
- id string
- instance
Id string - instance id.
- start
Time string - start Time.
- product string
- result
Output stringFile
- end_
time str - End Time.
- events
Sequence[Get
Dbbrain Diag History Event] - Event description.
- id str
- instance_
id str - instance id.
- start_
time str - start Time.
- product str
- result_
output_ strfile
- end
Time String - End Time.
- events List<Property Map>
- Event description.
- id String
- instance
Id String - instance id.
- start
Time String - start Time.
- product String
- result
Output StringFile
Supporting Types
GetDbbrainDiagHistoryEvent
- Diag
Item string - Description of the diagnostic item.
- Diag
Type string - Diagnostic type.
- End
Time string - End time, such as
2019-09-11 12:13:14, the interval between the end time and the start time can be up to 2 days. - Event
Id double - Event unique ID.
- Instance
Id string - instance id.
- Metric string
- reserved text. Note: This field may return null, indicating that no valid value can be obtained.
- Outline string
- Diagnostic summary.
- Region string
- region.
- 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 - Start time, such as
2019-09-10 12:13:14.
- Diag
Item string - Description of the diagnostic item.
- Diag
Type string - Diagnostic type.
- End
Time string - End time, such as
2019-09-11 12:13:14, the interval between the end time and the start time can be up to 2 days. - Event
Id float64 - Event unique ID.
- Instance
Id string - instance id.
- Metric string
- reserved text. Note: This field may return null, indicating that no valid value can be obtained.
- Outline string
- Diagnostic summary.
- Region string
- region.
- 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 - Start time, such as
2019-09-10 12:13:14.
- diag
Item String - Description of the diagnostic item.
- diag
Type String - Diagnostic type.
- end
Time String - End time, such as
2019-09-11 12:13:14, the interval between the end time and the start time can be up to 2 days. - event
Id Double - Event unique ID.
- instance
Id String - instance id.
- metric String
- reserved text. Note: This field may return null, indicating that no valid value can be obtained.
- outline String
- Diagnostic summary.
- region String
- region.
- 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 - Start time, such as
2019-09-10 12:13:14.
- diag
Item string - Description of the diagnostic item.
- diag
Type string - Diagnostic type.
- end
Time string - End time, such as
2019-09-11 12:13:14, the interval between the end time and the start time can be up to 2 days. - event
Id number - Event unique ID.
- instance
Id string - instance id.
- metric string
- reserved text. Note: This field may return null, indicating that no valid value can be obtained.
- outline string
- Diagnostic summary.
- region string
- region.
- 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 - Start time, such as
2019-09-10 12:13:14.
- diag_
item str - Description of the diagnostic item.
- diag_
type str - Diagnostic type.
- end_
time str - End time, such as
2019-09-11 12:13:14, the interval between the end time and the start time can be up to 2 days. - event_
id float - Event unique ID.
- instance_
id str - instance id.
- metric str
- reserved text. Note: This field may return null, indicating that no valid value can be obtained.
- outline str
- Diagnostic summary.
- region str
- region.
- 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 - Start time, such as
2019-09-10 12:13:14.
- diag
Item String - Description of the diagnostic item.
- diag
Type String - Diagnostic type.
- end
Time String - End time, such as
2019-09-11 12:13:14, the interval between the end time and the start time can be up to 2 days. - event
Id Number - Event unique ID.
- instance
Id String - instance id.
- metric String
- reserved text. Note: This field may return null, indicating that no valid value can be obtained.
- outline String
- Diagnostic summary.
- region String
- region.
- 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 - Start time, such as
2019-09-10 12:13:14.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
