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

tencentcloud.getDbbrainSlowLogTimeSeriesStats

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 slow_log_time_series_stats

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const test = tencentcloud.getDbbrainSlowLogTimeSeriesStats({
        endTime: "%s",
        instanceId: "%s",
        product: "mysql",
        startTime: "%s",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    test = tencentcloud.get_dbbrain_slow_log_time_series_stats(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.GetDbbrainSlowLogTimeSeriesStats(ctx, &tencentcloud.GetDbbrainSlowLogTimeSeriesStatsArgs{
    			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 test = Tencentcloud.GetDbbrainSlowLogTimeSeriesStats.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.GetDbbrainSlowLogTimeSeriesStatsArgs;
    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 test = TencentcloudFunctions.getDbbrainSlowLogTimeSeriesStats(GetDbbrainSlowLogTimeSeriesStatsArgs.builder()
                .endTime("%s")
                .instanceId("%s")
                .product("mysql")
                .startTime("%s")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: tencentcloud:getDbbrainSlowLogTimeSeriesStats
          arguments:
            endTime: '%s'
            instanceId: '%s'
            product: mysql
            startTime: '%s'
    

    Using getDbbrainSlowLogTimeSeriesStats

    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 getDbbrainSlowLogTimeSeriesStats(args: GetDbbrainSlowLogTimeSeriesStatsArgs, opts?: InvokeOptions): Promise<GetDbbrainSlowLogTimeSeriesStatsResult>
    function getDbbrainSlowLogTimeSeriesStatsOutput(args: GetDbbrainSlowLogTimeSeriesStatsOutputArgs, opts?: InvokeOptions): Output<GetDbbrainSlowLogTimeSeriesStatsResult>
    def get_dbbrain_slow_log_time_series_stats(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) -> GetDbbrainSlowLogTimeSeriesStatsResult
    def get_dbbrain_slow_log_time_series_stats_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[GetDbbrainSlowLogTimeSeriesStatsResult]
    func GetDbbrainSlowLogTimeSeriesStats(ctx *Context, args *GetDbbrainSlowLogTimeSeriesStatsArgs, opts ...InvokeOption) (*GetDbbrainSlowLogTimeSeriesStatsResult, error)
    func GetDbbrainSlowLogTimeSeriesStatsOutput(ctx *Context, args *GetDbbrainSlowLogTimeSeriesStatsOutputArgs, opts ...InvokeOption) GetDbbrainSlowLogTimeSeriesStatsResultOutput

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

    public static class GetDbbrainSlowLogTimeSeriesStats 
    {
        public static Task<GetDbbrainSlowLogTimeSeriesStatsResult> InvokeAsync(GetDbbrainSlowLogTimeSeriesStatsArgs args, InvokeOptions? opts = null)
        public static Output<GetDbbrainSlowLogTimeSeriesStatsResult> Invoke(GetDbbrainSlowLogTimeSeriesStatsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbbrainSlowLogTimeSeriesStatsResult> getDbbrainSlowLogTimeSeriesStats(GetDbbrainSlowLogTimeSeriesStatsArgs args, InvokeOptions options)
    public static Output<GetDbbrainSlowLogTimeSeriesStatsResult> getDbbrainSlowLogTimeSeriesStats(GetDbbrainSlowLogTimeSeriesStatsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDbbrainSlowLogTimeSeriesStats:getDbbrainSlowLogTimeSeriesStats
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EndTime string
    End time, such as 2019-09-10 12:13:14, the interval between the end time and the start time can be up to 7 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-10 12:13:14, the interval between the end time and the start time can be up to 7 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-10 12:13:14, the interval between the end time and the start time can be up to 7 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-10 12:13:14, the interval between the end time and the start time can be up to 7 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-10 12:13:14, the interval between the end time and the start time can be up to 7 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-10 12:13:14, the interval between the end time and the start time can be up to 7 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.

    getDbbrainSlowLogTimeSeriesStats Result

    The following output properties are available:

    EndTime string
    Id string
    InstanceId string
    Period double
    The unit time interval between bars, in seconds.
    SeriesDatas List<GetDbbrainSlowLogTimeSeriesStatsSeriesData>
    Instan1ce cpu utilization monitoring data within a unit time interval.
    StartTime string
    TimeSeries List<GetDbbrainSlowLogTimeSeriesStatsTimeSeries>
    Statistics on the number of slow logs in a unit time interval.
    Product string
    ResultOutputFile string
    EndTime string
    Id string
    InstanceId string
    Period float64
    The unit time interval between bars, in seconds.
    SeriesDatas []GetDbbrainSlowLogTimeSeriesStatsSeriesData
    Instan1ce cpu utilization monitoring data within a unit time interval.
    StartTime string
    TimeSeries []GetDbbrainSlowLogTimeSeriesStatsTimeSeries
    Statistics on the number of slow logs in a unit time interval.
    Product string
    ResultOutputFile string
    endTime String
    id String
    instanceId String
    period Double
    The unit time interval between bars, in seconds.
    seriesDatas List<GetDbbrainSlowLogTimeSeriesStatsSeriesData>
    Instan1ce cpu utilization monitoring data within a unit time interval.
    startTime String
    timeSeries List<GetDbbrainSlowLogTimeSeriesStatsTimeSeries>
    Statistics on the number of slow logs in a unit time interval.
    product String
    resultOutputFile String
    endTime string
    id string
    instanceId string
    period number
    The unit time interval between bars, in seconds.
    seriesDatas GetDbbrainSlowLogTimeSeriesStatsSeriesData[]
    Instan1ce cpu utilization monitoring data within a unit time interval.
    startTime string
    timeSeries GetDbbrainSlowLogTimeSeriesStatsTimeSeries[]
    Statistics on the number of slow logs in a unit time interval.
    product string
    resultOutputFile string
    end_time str
    id str
    instance_id str
    period float
    The unit time interval between bars, in seconds.
    series_datas Sequence[GetDbbrainSlowLogTimeSeriesStatsSeriesData]
    Instan1ce cpu utilization monitoring data within a unit time interval.
    start_time str
    time_series Sequence[GetDbbrainSlowLogTimeSeriesStatsTimeSeries]
    Statistics on the number of slow logs in a unit time interval.
    product str
    result_output_file str
    endTime String
    id String
    instanceId String
    period Number
    The unit time interval between bars, in seconds.
    seriesDatas List<Property Map>
    Instan1ce cpu utilization monitoring data within a unit time interval.
    startTime String
    timeSeries List<Property Map>
    Statistics on the number of slow logs in a unit time interval.
    product String
    resultOutputFile String

    Supporting Types

    GetDbbrainSlowLogTimeSeriesStatsSeriesData

    Series List<GetDbbrainSlowLogTimeSeriesStatsSeriesDataSeries>
    Monitor metrics.
    Timestamps List<double>
    Statistics start time.
    Series []GetDbbrainSlowLogTimeSeriesStatsSeriesDataSeries
    Monitor metrics.
    Timestamps []float64
    Statistics start time.
    series List<GetDbbrainSlowLogTimeSeriesStatsSeriesDataSeries>
    Monitor metrics.
    timestamps List<Double>
    Statistics start time.
    series GetDbbrainSlowLogTimeSeriesStatsSeriesDataSeries[]
    Monitor metrics.
    timestamps number[]
    Statistics start time.
    series Sequence[GetDbbrainSlowLogTimeSeriesStatsSeriesDataSeries]
    Monitor metrics.
    timestamps Sequence[float]
    Statistics start time.
    series List<Property Map>
    Monitor metrics.
    timestamps List<Number>
    Statistics start time.

    GetDbbrainSlowLogTimeSeriesStatsSeriesDataSeries

    Metric string
    Indicator name.
    Unit string
    Indicator unit.
    Values List<double>
    Index value. Note: This field may return null, indicating that no valid value can be obtained.
    Metric string
    Indicator name.
    Unit string
    Indicator unit.
    Values []float64
    Index value. Note: This field may return null, indicating that no valid value can be obtained.
    metric String
    Indicator name.
    unit String
    Indicator unit.
    values List<Double>
    Index value. Note: This field may return null, indicating that no valid value can be obtained.
    metric string
    Indicator name.
    unit string
    Indicator unit.
    values number[]
    Index value. Note: This field may return null, indicating that no valid value can be obtained.
    metric str
    Indicator name.
    unit str
    Indicator unit.
    values Sequence[float]
    Index value. Note: This field may return null, indicating that no valid value can be obtained.
    metric String
    Indicator name.
    unit String
    Indicator unit.
    values List<Number>
    Index value. Note: This field may return null, indicating that no valid value can be obtained.

    GetDbbrainSlowLogTimeSeriesStatsTimeSeries

    Count double
    total.
    Timestamp double
    Statistics start time.
    Count float64
    total.
    Timestamp float64
    Statistics start time.
    count Double
    total.
    timestamp Double
    Statistics start time.
    count number
    total.
    timestamp number
    Statistics start time.
    count float
    total.
    timestamp float
    Statistics start time.
    count Number
    total.
    timestamp Number
    Statistics start 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