loganalytics

package
v0.20240521.1173452 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/loganalytics Documentation

The loganalytics SDK allows for interaction with the Azure Resource Manager Service compute (API Version 2024-03-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/compute/2024-03-01/loganalytics"

Client Initialization

client := loganalytics.NewLogAnalyticsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: LogAnalyticsClient.ExportRequestRateByInterval

ctx := context.TODO()
id := loganalytics.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")

payload := loganalytics.RequestRateByIntervalInput{
	// ...
}


if err := client.ExportRequestRateByIntervalThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: LogAnalyticsClient.ExportThrottledRequests

ctx := context.TODO()
id := loganalytics.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue")

payload := loganalytics.LogAnalyticsInputBase{
	// ...
}


if err := client.ExportThrottledRequestsThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForIntervalInMins

func PossibleValuesForIntervalInMins() []string

func ValidateLocationID

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

ValidateLocationID checks that 'input' can be parsed as a Location ID

Types

type ExportRequestRateByIntervalOperationResponse

type ExportRequestRateByIntervalOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *LogAnalyticsOperationResult
}

type ExportThrottledRequestsOperationResponse

type ExportThrottledRequestsOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *LogAnalyticsOperationResult
}

type IntervalInMins

type IntervalInMins string
const (
	IntervalInMinsFiveMins   IntervalInMins = "FiveMins"
	IntervalInMinsSixtyMins  IntervalInMins = "SixtyMins"
	IntervalInMinsThirtyMins IntervalInMins = "ThirtyMins"
	IntervalInMinsThreeMins  IntervalInMins = "ThreeMins"
)

func (*IntervalInMins) UnmarshalJSON

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

type LocationId

type LocationId struct {
	SubscriptionId string
	LocationName   string
}

LocationId is a struct representing the Resource ID for a Location

func NewLocationID

func NewLocationID(subscriptionId string, locationName string) LocationId

NewLocationID returns a new LocationId struct

func ParseLocationID

func ParseLocationID(input string) (*LocationId, error)

ParseLocationID parses 'input' into a LocationId

func ParseLocationIDInsensitively

func ParseLocationIDInsensitively(input string) (*LocationId, error)

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

func (*LocationId) FromParseResult

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

func (LocationId) ID

func (id LocationId) ID() string

ID returns the formatted Location ID

func (LocationId) Segments

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

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

func (LocationId) String

func (id LocationId) String() string

String returns a human-readable description of this Location ID

type LogAnalyticsClient

type LogAnalyticsClient struct {
	Client *resourcemanager.Client
}

func NewLogAnalyticsClientWithBaseURI

func NewLogAnalyticsClientWithBaseURI(sdkApi sdkEnv.Api) (*LogAnalyticsClient, error)

func (LogAnalyticsClient) ExportRequestRateByInterval

ExportRequestRateByInterval ...

func (LogAnalyticsClient) ExportRequestRateByIntervalThenPoll

func (c LogAnalyticsClient) ExportRequestRateByIntervalThenPoll(ctx context.Context, id LocationId, input RequestRateByIntervalInput) error

ExportRequestRateByIntervalThenPoll performs ExportRequestRateByInterval then polls until it's completed

func (LogAnalyticsClient) ExportThrottledRequests

ExportThrottledRequests ...

func (LogAnalyticsClient) ExportThrottledRequestsThenPoll

func (c LogAnalyticsClient) ExportThrottledRequestsThenPoll(ctx context.Context, id LocationId, input LogAnalyticsInputBase) error

ExportThrottledRequestsThenPoll performs ExportThrottledRequests then polls until it's completed

type LogAnalyticsInputBase

type LogAnalyticsInputBase struct {
	BlobContainerSasUri        string `json:"blobContainerSasUri"`
	FromTime                   string `json:"fromTime"`
	GroupByClientApplicationId *bool  `json:"groupByClientApplicationId,omitempty"`
	GroupByOperationName       *bool  `json:"groupByOperationName,omitempty"`
	GroupByResourceName        *bool  `json:"groupByResourceName,omitempty"`
	GroupByThrottlePolicy      *bool  `json:"groupByThrottlePolicy,omitempty"`
	GroupByUserAgent           *bool  `json:"groupByUserAgent,omitempty"`
	ToTime                     string `json:"toTime"`
}

func (*LogAnalyticsInputBase) GetFromTimeAsTime

func (o *LogAnalyticsInputBase) GetFromTimeAsTime() (*time.Time, error)

func (*LogAnalyticsInputBase) GetToTimeAsTime

func (o *LogAnalyticsInputBase) GetToTimeAsTime() (*time.Time, error)

func (*LogAnalyticsInputBase) SetFromTimeAsTime

func (o *LogAnalyticsInputBase) SetFromTimeAsTime(input time.Time)

func (*LogAnalyticsInputBase) SetToTimeAsTime

func (o *LogAnalyticsInputBase) SetToTimeAsTime(input time.Time)

type LogAnalyticsOperationResult

type LogAnalyticsOperationResult struct {
	Properties *LogAnalyticsOutput `json:"properties,omitempty"`
}

type LogAnalyticsOutput

type LogAnalyticsOutput struct {
	Output *string `json:"output,omitempty"`
}

type RequestRateByIntervalInput

type RequestRateByIntervalInput struct {
	BlobContainerSasUri        string         `json:"blobContainerSasUri"`
	FromTime                   string         `json:"fromTime"`
	GroupByClientApplicationId *bool          `json:"groupByClientApplicationId,omitempty"`
	GroupByOperationName       *bool          `json:"groupByOperationName,omitempty"`
	GroupByResourceName        *bool          `json:"groupByResourceName,omitempty"`
	GroupByThrottlePolicy      *bool          `json:"groupByThrottlePolicy,omitempty"`
	GroupByUserAgent           *bool          `json:"groupByUserAgent,omitempty"`
	IntervalLength             IntervalInMins `json:"intervalLength"`
	ToTime                     string         `json:"toTime"`
}

func (*RequestRateByIntervalInput) GetFromTimeAsTime

func (o *RequestRateByIntervalInput) GetFromTimeAsTime() (*time.Time, error)

func (*RequestRateByIntervalInput) GetToTimeAsTime

func (o *RequestRateByIntervalInput) GetToTimeAsTime() (*time.Time, error)

func (*RequestRateByIntervalInput) SetFromTimeAsTime

func (o *RequestRateByIntervalInput) SetFromTimeAsTime(input time.Time)

func (*RequestRateByIntervalInput) SetToTimeAsTime

func (o *RequestRateByIntervalInput) SetToTimeAsTime(input time.Time)

Jump to

Keyboard shortcuts

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