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

tencentcloud.getDbbrainDiagHistory

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 diag_history

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const diagHistory = tencentcloud.getDbbrainDiagHistory({
        endTime: "%s",
        instanceId: "%s",
        product: "mysql",
        startTime: "%s",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    diag_history = tencentcloud.get_dbbrain_diag_history(end_time="%s",
        instance_id="%s",
        product="mysql",
        start_time="%s")
    
    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{
    			EndTime:    "%s",
    			InstanceId: "%s",
    			Product:    pulumi.StringRef("mysql"),
    			StartTime:  "%s",
    		}, 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()
        {
            EndTime = "%s",
            InstanceId = "%s",
            Product = "mysql",
            StartTime = "%s",
        });
    
    });
    
    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()
                .endTime("%s")
                .instanceId("%s")
                .product("mysql")
                .startTime("%s")
                .build());
    
        }
    }
    
    variables:
      diagHistory:
        fn::invoke:
          function: tencentcloud:getDbbrainDiagHistory
          arguments:
            endTime: '%s'
            instanceId: '%s'
            product: mysql
            startTime: '%s'
    

    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 dictionary

    The following arguments are supported:

    EndTime 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.
    InstanceId string
    instance id.
    StartTime 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 is mysql.
    ResultOutputFile string
    Used to save results.
    EndTime 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.
    InstanceId string
    instance id.
    StartTime 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 is mysql.
    ResultOutputFile string
    Used to save results.
    endTime 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.
    instanceId String
    instance id.
    startTime 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 is mysql.
    resultOutputFile String
    Used to save results.
    endTime 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.
    instanceId string
    instance id.
    startTime 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 is mysql.
    resultOutputFile string
    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 is mysql.
    result_output_file str
    Used to save results.
    endTime 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.
    instanceId String
    instance id.
    startTime 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 is mysql.
    resultOutputFile String
    Used to save results.

    getDbbrainDiagHistory Result

    The following output properties are available:

    EndTime string
    End Time.
    Events List<GetDbbrainDiagHistoryEvent>
    Event description.
    Id string
    InstanceId string
    instance id.
    StartTime string
    start Time.
    Product string
    ResultOutputFile string
    EndTime string
    End Time.
    Events []GetDbbrainDiagHistoryEvent
    Event description.
    Id string
    InstanceId string
    instance id.
    StartTime string
    start Time.
    Product string
    ResultOutputFile string
    endTime String
    End Time.
    events List<GetDbbrainDiagHistoryEvent>
    Event description.
    id String
    instanceId String
    instance id.
    startTime String
    start Time.
    product String
    resultOutputFile String
    endTime string
    End Time.
    events GetDbbrainDiagHistoryEvent[]
    Event description.
    id string
    instanceId string
    instance id.
    startTime string
    start Time.
    product string
    resultOutputFile string
    end_time str
    End Time.
    events Sequence[GetDbbrainDiagHistoryEvent]
    Event description.
    id str
    instance_id str
    instance id.
    start_time str
    start Time.
    product str
    result_output_file str
    endTime String
    End Time.
    events List<Property Map>
    Event description.
    id String
    instanceId String
    instance id.
    startTime String
    start Time.
    product String
    resultOutputFile String

    Supporting Types

    GetDbbrainDiagHistoryEvent

    DiagItem string
    Description of the diagnostic item.
    DiagType string
    Diagnostic type.
    EndTime 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.
    EventId double
    Event unique ID.
    InstanceId 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.
    StartTime string
    Start time, such as 2019-09-10 12:13:14.
    DiagItem string
    Description of the diagnostic item.
    DiagType string
    Diagnostic type.
    EndTime 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.
    EventId float64
    Event unique ID.
    InstanceId 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.
    StartTime string
    Start time, such as 2019-09-10 12:13:14.
    diagItem String
    Description of the diagnostic item.
    diagType String
    Diagnostic type.
    endTime 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.
    eventId Double
    Event unique ID.
    instanceId 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.
    startTime String
    Start time, such as 2019-09-10 12:13:14.
    diagItem string
    Description of the diagnostic item.
    diagType string
    Diagnostic type.
    endTime 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.
    eventId number
    Event unique ID.
    instanceId 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.
    startTime 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.
    diagItem String
    Description of the diagnostic item.
    diagType String
    Diagnostic type.
    endTime 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.
    eventId Number
    Event unique ID.
    instanceId 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.
    startTime 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 tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack