1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getAntiddosOverviewAttackTrend
tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack

tencentcloud.getAntiddosOverviewAttackTrend

Explore with Pulumi AI

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",
});
Copy
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")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
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
Copy

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>
Copy
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]
Copy
func GetAntiddosOverviewAttackTrend(ctx *Context, args *GetAntiddosOverviewAttackTrendArgs, opts ...InvokeOption) (*GetAntiddosOverviewAttackTrendResult, error)
func GetAntiddosOverviewAttackTrendOutput(ctx *Context, args *GetAntiddosOverviewAttackTrendOutputArgs, opts ...InvokeOption) GetAntiddosOverviewAttackTrendResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetAntiddosOverviewAttackTrendResult> getAntiddosOverviewAttackTrend(GetAntiddosOverviewAttackTrendArgs args, InvokeOptions options)
public static Output<GetAntiddosOverviewAttackTrendResult> getAntiddosOverviewAttackTrend(GetAntiddosOverviewAttackTrendArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getAntiddosOverviewAttackTrend:getAntiddosOverviewAttackTrend
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

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