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

tencentcloud.getAntiddosOverviewAttackTrend

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 antiddos overview_attack_trend

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const overviewAttackTrend = tencentcloud.getAntiddosOverviewAttackTrend({
        dimension: "attackcount",
        endTime: "2023-11-22 10:28:31",
        period: 86400,
        startTime: "2023-11-21 10:28:31",
        type: "ddos",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    overview_attack_trend = tencentcloud.get_antiddos_overview_attack_trend(dimension="attackcount",
        end_time="2023-11-22 10:28:31",
        period=86400,
        start_time="2023-11-21 10:28:31",
        type="ddos")
    
    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.GetAntiddosOverviewAttackTrend(ctx, &tencentcloud.GetAntiddosOverviewAttackTrendArgs{
    			Dimension: "attackcount",
    			EndTime:   "2023-11-22 10:28:31",
    			Period:    86400,
    			StartTime: "2023-11-21 10:28:31",
    			Type:      "ddos",
    		}, 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 overviewAttackTrend = Tencentcloud.GetAntiddosOverviewAttackTrend.Invoke(new()
        {
            Dimension = "attackcount",
            EndTime = "2023-11-22 10:28:31",
            Period = 86400,
            StartTime = "2023-11-21 10:28:31",
            Type = "ddos",
        });
    
    });
    
    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.GetAntiddosOverviewAttackTrendArgs;
    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 overviewAttackTrend = TencentcloudFunctions.getAntiddosOverviewAttackTrend(GetAntiddosOverviewAttackTrendArgs.builder()
                .dimension("attackcount")
                .endTime("2023-11-22 10:28:31")
                .period(86400)
                .startTime("2023-11-21 10:28:31")
                .type("ddos")
                .build());
    
        }
    }
    
    variables:
      overviewAttackTrend:
        fn::invoke:
          function: tencentcloud:getAntiddosOverviewAttackTrend
          arguments:
            dimension: attackcount
            endTime: 2023-11-22 10:28:31
            period: 86400
            startTime: 2023-11-21 10:28:31
            type: ddos
    

    Using getAntiddosOverviewAttackTrend

    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 getAntiddosOverviewAttackTrend(args: GetAntiddosOverviewAttackTrendArgs, opts?: InvokeOptions): Promise<GetAntiddosOverviewAttackTrendResult>
    function getAntiddosOverviewAttackTrendOutput(args: GetAntiddosOverviewAttackTrendOutputArgs, opts?: InvokeOptions): Output<GetAntiddosOverviewAttackTrendResult>
    def get_antiddos_overview_attack_trend(dimension: Optional[str] = None,
                                           end_time: Optional[str] = None,
                                           id: Optional[str] = None,
                                           period: Optional[float] = None,
                                           result_output_file: Optional[str] = None,
                                           start_time: Optional[str] = None,
                                           type: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetAntiddosOverviewAttackTrendResult
    def get_antiddos_overview_attack_trend_output(dimension: Optional[pulumi.Input[str]] = None,
                                           end_time: Optional[pulumi.Input[str]] = None,
                                           id: Optional[pulumi.Input[str]] = None,
                                           period: Optional[pulumi.Input[float]] = None,
                                           result_output_file: Optional[pulumi.Input[str]] = None,
                                           start_time: Optional[pulumi.Input[str]] = None,
                                           type: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetAntiddosOverviewAttackTrendResult]
    func GetAntiddosOverviewAttackTrend(ctx *Context, args *GetAntiddosOverviewAttackTrendArgs, opts ...InvokeOption) (*GetAntiddosOverviewAttackTrendResult, error)
    func GetAntiddosOverviewAttackTrendOutput(ctx *Context, args *GetAntiddosOverviewAttackTrendOutputArgs, opts ...InvokeOption) GetAntiddosOverviewAttackTrendResultOutput

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

    public static class GetAntiddosOverviewAttackTrend 
    {
        public static Task<GetAntiddosOverviewAttackTrendResult> InvokeAsync(GetAntiddosOverviewAttackTrendArgs args, InvokeOptions? opts = null)
        public static Output<GetAntiddosOverviewAttackTrendResult> Invoke(GetAntiddosOverviewAttackTrendInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAntiddosOverviewAttackTrendResult> getAntiddosOverviewAttackTrend(GetAntiddosOverviewAttackTrendArgs args, InvokeOptions options)
    public static Output<GetAntiddosOverviewAttackTrendResult> getAntiddosOverviewAttackTrend(GetAntiddosOverviewAttackTrendArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getAntiddosOverviewAttackTrend:getAntiddosOverviewAttackTrend
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Dimension string
    Latitude, currently only attackcount is supported.
    EndTime string
    Protection Overview Attack Trend End Time.
    Period double
    Period, currently only 86400 is supported.
    StartTime string
    Protection Overview Attack Trend Start Time.
    Type string
    Attack type: cc, ddos.
    Id string
    ResultOutputFile string
    Used to save results.
    Dimension string
    Latitude, currently only attackcount is supported.
    EndTime string
    Protection Overview Attack Trend End Time.
    Period float64
    Period, currently only 86400 is supported.
    StartTime string
    Protection Overview Attack Trend Start Time.
    Type string
    Attack type: cc, ddos.
    Id string
    ResultOutputFile string
    Used to save results.
    dimension String
    Latitude, currently only attackcount is supported.
    endTime String
    Protection Overview Attack Trend End Time.
    period Double
    Period, currently only 86400 is supported.
    startTime String
    Protection Overview Attack Trend Start Time.
    type String
    Attack type: cc, ddos.
    id String
    resultOutputFile String
    Used to save results.
    dimension string
    Latitude, currently only attackcount is supported.
    endTime string
    Protection Overview Attack Trend End Time.
    period number
    Period, currently only 86400 is supported.
    startTime string
    Protection Overview Attack Trend Start Time.
    type string
    Attack type: cc, ddos.
    id string
    resultOutputFile string
    Used to save results.
    dimension str
    Latitude, currently only attackcount is supported.
    end_time str
    Protection Overview Attack Trend End Time.
    period float
    Period, currently only 86400 is supported.
    start_time str
    Protection Overview Attack Trend Start Time.
    type str
    Attack type: cc, ddos.
    id str
    result_output_file str
    Used to save results.
    dimension String
    Latitude, currently only attackcount is supported.
    endTime String
    Protection Overview Attack Trend End Time.
    period Number
    Period, currently only 86400 is supported.
    startTime String
    Protection Overview Attack Trend Start Time.
    type String
    Attack type: cc, ddos.
    id String
    resultOutputFile String
    Used to save results.

    getAntiddosOverviewAttackTrend Result

    The following output properties are available:

    Datas List<double>
    Number of attacks per cycle point.
    Dimension string
    EndTime string
    Id string
    Period double
    PeriodPointCount double
    Number of period points included.
    StartTime string
    Type string
    ResultOutputFile string
    Datas []float64
    Number of attacks per cycle point.
    Dimension string
    EndTime string
    Id string
    Period float64
    PeriodPointCount float64
    Number of period points included.
    StartTime string
    Type string
    ResultOutputFile string
    datas List<Double>
    Number of attacks per cycle point.
    dimension String
    endTime String
    id String
    period Double
    periodPointCount Double
    Number of period points included.
    startTime String
    type String
    resultOutputFile String
    datas number[]
    Number of attacks per cycle point.
    dimension string
    endTime string
    id string
    period number
    periodPointCount number
    Number of period points included.
    startTime string
    type string
    resultOutputFile string
    datas Sequence[float]
    Number of attacks per cycle point.
    dimension str
    end_time str
    id str
    period float
    period_point_count float
    Number of period points included.
    start_time str
    type str
    result_output_file str
    datas List<Number>
    Number of attacks per cycle point.
    dimension String
    endTime String
    id String
    period Number
    periodPointCount Number
    Number of period points included.
    startTime String
    type String
    resultOutputFile String

    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