wafloganalytics

package
v0.20241126.2320 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/cdn/2024-02-01/wafloganalytics Documentation

The wafloganalytics SDK allows for interaction with Azure Resource Manager cdn (API Version 2024-02-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/cdn/2024-02-01/wafloganalytics"

Client Initialization

client := wafloganalytics.NewWafLogAnalyticsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: WafLogAnalyticsClient.LogAnalyticsGetWafLogAnalyticsMetrics

ctx := context.TODO()
id := wafloganalytics.NewProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "profileName")

read, err := client.LogAnalyticsGetWafLogAnalyticsMetrics(ctx, id, wafloganalytics.DefaultLogAnalyticsGetWafLogAnalyticsMetricsOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: WafLogAnalyticsClient.LogAnalyticsGetWafLogAnalyticsRankings

ctx := context.TODO()
id := wafloganalytics.NewProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "profileName")

read, err := client.LogAnalyticsGetWafLogAnalyticsRankings(ctx, id, wafloganalytics.DefaultLogAnalyticsGetWafLogAnalyticsRankingsOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForWafGranularity

func PossibleValuesForWafGranularity() []string

func PossibleValuesForWafMetricsGranularity

func PossibleValuesForWafMetricsGranularity() []string

func PossibleValuesForWafMetricsSeriesUnit

func PossibleValuesForWafMetricsSeriesUnit() []string

func ValidateProfileID

func ValidateProfileID(input interface{}, key string) (warnings []string, errors []error)

ValidateProfileID checks that 'input' can be parsed as a Profile ID

Types

type LogAnalyticsGetWafLogAnalyticsMetricsOperationOptions

type LogAnalyticsGetWafLogAnalyticsMetricsOperationOptions struct {
	Actions       *[]string
	DateTimeBegin *string
	DateTimeEnd   *string
	Granularity   *WafGranularity
	GroupBy       *[]string
	Metrics       *[]string
	RuleTypes     *[]string
}

func DefaultLogAnalyticsGetWafLogAnalyticsMetricsOperationOptions

func DefaultLogAnalyticsGetWafLogAnalyticsMetricsOperationOptions() LogAnalyticsGetWafLogAnalyticsMetricsOperationOptions

func (LogAnalyticsGetWafLogAnalyticsMetricsOperationOptions) ToHeaders

func (LogAnalyticsGetWafLogAnalyticsMetricsOperationOptions) ToOData

func (LogAnalyticsGetWafLogAnalyticsMetricsOperationOptions) ToQuery

type LogAnalyticsGetWafLogAnalyticsMetricsOperationResponse

type LogAnalyticsGetWafLogAnalyticsMetricsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *WafMetricsResponse
}

type LogAnalyticsGetWafLogAnalyticsRankingsOperationOptions

type LogAnalyticsGetWafLogAnalyticsRankingsOperationOptions struct {
	Actions       *[]string
	DateTimeBegin *string
	DateTimeEnd   *string
	MaxRanking    *int64
	Metrics       *[]string
	Rankings      *[]string
	RuleTypes     *[]string
}

func DefaultLogAnalyticsGetWafLogAnalyticsRankingsOperationOptions

func DefaultLogAnalyticsGetWafLogAnalyticsRankingsOperationOptions() LogAnalyticsGetWafLogAnalyticsRankingsOperationOptions

func (LogAnalyticsGetWafLogAnalyticsRankingsOperationOptions) ToHeaders

func (LogAnalyticsGetWafLogAnalyticsRankingsOperationOptions) ToOData

func (LogAnalyticsGetWafLogAnalyticsRankingsOperationOptions) ToQuery

type LogAnalyticsGetWafLogAnalyticsRankingsOperationResponse

type LogAnalyticsGetWafLogAnalyticsRankingsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *WafRankingsResponse
}

type ProfileId

type ProfileId struct {
	SubscriptionId    string
	ResourceGroupName string
	ProfileName       string
}

ProfileId is a struct representing the Resource ID for a Profile

func NewProfileID

func NewProfileID(subscriptionId string, resourceGroupName string, profileName string) ProfileId

NewProfileID returns a new ProfileId struct

func ParseProfileID

func ParseProfileID(input string) (*ProfileId, error)

ParseProfileID parses 'input' into a ProfileId

func ParseProfileIDInsensitively

func ParseProfileIDInsensitively(input string) (*ProfileId, error)

ParseProfileIDInsensitively parses 'input' case-insensitively into a ProfileId note: this method should only be used for API response data and not user input

func (*ProfileId) FromParseResult

func (id *ProfileId) FromParseResult(input resourceids.ParseResult) error

func (ProfileId) ID

func (id ProfileId) ID() string

ID returns the formatted Profile ID

func (ProfileId) Segments

func (id ProfileId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Profile ID

func (ProfileId) String

func (id ProfileId) String() string

String returns a human-readable description of this Profile ID

type WafGranularity

type WafGranularity string
const (
	WafGranularityPOneD   WafGranularity = "P1D"
	WafGranularityPTFiveM WafGranularity = "PT5M"
	WafGranularityPTOneH  WafGranularity = "PT1H"
)

func (*WafGranularity) UnmarshalJSON

func (s *WafGranularity) UnmarshalJSON(bytes []byte) error

type WafLogAnalyticsClient

type WafLogAnalyticsClient struct {
	Client *resourcemanager.Client
}

func NewWafLogAnalyticsClientWithBaseURI

func NewWafLogAnalyticsClientWithBaseURI(sdkApi sdkEnv.Api) (*WafLogAnalyticsClient, error)

func (WafLogAnalyticsClient) LogAnalyticsGetWafLogAnalyticsMetrics

LogAnalyticsGetWafLogAnalyticsMetrics ...

func (WafLogAnalyticsClient) LogAnalyticsGetWafLogAnalyticsRankings

LogAnalyticsGetWafLogAnalyticsRankings ...

type WafMetricsGranularity

type WafMetricsGranularity string
const (
	WafMetricsGranularityPOneD   WafMetricsGranularity = "P1D"
	WafMetricsGranularityPTFiveM WafMetricsGranularity = "PT5M"
	WafMetricsGranularityPTOneH  WafMetricsGranularity = "PT1H"
)

func (*WafMetricsGranularity) UnmarshalJSON

func (s *WafMetricsGranularity) UnmarshalJSON(bytes []byte) error

type WafMetricsResponse

type WafMetricsResponse struct {
	DateTimeBegin *string                            `json:"dateTimeBegin,omitempty"`
	DateTimeEnd   *string                            `json:"dateTimeEnd,omitempty"`
	Granularity   *WafMetricsGranularity             `json:"granularity,omitempty"`
	Series        *[]WafMetricsResponseSeriesInlined `json:"series,omitempty"`
}

func (*WafMetricsResponse) GetDateTimeBeginAsTime

func (o *WafMetricsResponse) GetDateTimeBeginAsTime() (*time.Time, error)

func (*WafMetricsResponse) GetDateTimeEndAsTime

func (o *WafMetricsResponse) GetDateTimeEndAsTime() (*time.Time, error)

func (*WafMetricsResponse) SetDateTimeBeginAsTime

func (o *WafMetricsResponse) SetDateTimeBeginAsTime(input time.Time)

func (*WafMetricsResponse) SetDateTimeEndAsTime

func (o *WafMetricsResponse) SetDateTimeEndAsTime(input time.Time)

type WafMetricsResponseSeriesInlined

type WafMetricsResponseSeriesInlined struct {
	Data   *[]WafMetricsResponseSeriesInlinedDataInlined   `json:"data,omitempty"`
	Groups *[]WafMetricsResponseSeriesInlinedGroupsInlined `json:"groups,omitempty"`
	Metric *string                                         `json:"metric,omitempty"`
	Unit   *WafMetricsSeriesUnit                           `json:"unit,omitempty"`
}

type WafMetricsResponseSeriesInlinedDataInlined

type WafMetricsResponseSeriesInlinedDataInlined struct {
	DateTime *string  `json:"dateTime,omitempty"`
	Value    *float64 `json:"value,omitempty"`
}

func (*WafMetricsResponseSeriesInlinedDataInlined) GetDateTimeAsTime

func (o *WafMetricsResponseSeriesInlinedDataInlined) GetDateTimeAsTime() (*time.Time, error)

func (*WafMetricsResponseSeriesInlinedDataInlined) SetDateTimeAsTime

func (o *WafMetricsResponseSeriesInlinedDataInlined) SetDateTimeAsTime(input time.Time)

type WafMetricsResponseSeriesInlinedGroupsInlined

type WafMetricsResponseSeriesInlinedGroupsInlined struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

type WafMetricsSeriesUnit

type WafMetricsSeriesUnit string
const (
	WafMetricsSeriesUnitCount WafMetricsSeriesUnit = "count"
)

func (*WafMetricsSeriesUnit) UnmarshalJSON

func (s *WafMetricsSeriesUnit) UnmarshalJSON(bytes []byte) error

type WafRankingsResponse

type WafRankingsResponse struct {
	Data          *[]WafRankingsResponseDataInlined `json:"data,omitempty"`
	DateTimeBegin *string                           `json:"dateTimeBegin,omitempty"`
	DateTimeEnd   *string                           `json:"dateTimeEnd,omitempty"`
	Groups        *[]string                         `json:"groups,omitempty"`
}

func (*WafRankingsResponse) GetDateTimeBeginAsTime

func (o *WafRankingsResponse) GetDateTimeBeginAsTime() (*time.Time, error)

func (*WafRankingsResponse) GetDateTimeEndAsTime

func (o *WafRankingsResponse) GetDateTimeEndAsTime() (*time.Time, error)

func (*WafRankingsResponse) SetDateTimeBeginAsTime

func (o *WafRankingsResponse) SetDateTimeBeginAsTime(input time.Time)

func (*WafRankingsResponse) SetDateTimeEndAsTime

func (o *WafRankingsResponse) SetDateTimeEndAsTime(input time.Time)

type WafRankingsResponseDataInlined

type WafRankingsResponseDataInlined struct {
	GroupValues *[]string                                       `json:"groupValues,omitempty"`
	Metrics     *[]WafRankingsResponseDataInlinedMetricsInlined `json:"metrics,omitempty"`
}

type WafRankingsResponseDataInlinedMetricsInlined

type WafRankingsResponseDataInlinedMetricsInlined struct {
	Metric     *string  `json:"metric,omitempty"`
	Percentage *float64 `json:"percentage,omitempty"`
	Value      *int64   `json:"value,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL