loganalytics

package
v0.20241212.1154051 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MPL-2.0 Imports: 13 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/cdn/2024-09-01/loganalytics Documentation

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

Client Initialization

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

Example Usage: LogAnalyticsClient.GetLogAnalyticsLocations

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

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

Example Usage: LogAnalyticsClient.GetLogAnalyticsMetrics

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

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

Example Usage: LogAnalyticsClient.GetLogAnalyticsRankings

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

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

Example Usage: LogAnalyticsClient.GetLogAnalyticsResources

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

read, err := client.GetLogAnalyticsResources(ctx, id)
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 PossibleValuesForLogMetricsGranularity

func PossibleValuesForLogMetricsGranularity() []string

func PossibleValuesForMetricsGranularity

func PossibleValuesForMetricsGranularity() []string

func PossibleValuesForMetricsSeriesUnit

func PossibleValuesForMetricsSeriesUnit() []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 ContinentsResponse

type ContinentsResponse struct {
	Continents       *[]ContinentsResponseContinentsInlined       `json:"continents,omitempty"`
	CountryOrRegions *[]ContinentsResponseCountryOrRegionsInlined `json:"countryOrRegions,omitempty"`
}

type ContinentsResponseContinentsInlined

type ContinentsResponseContinentsInlined struct {
	Id *string `json:"id,omitempty"`
}

type ContinentsResponseCountryOrRegionsInlined

type ContinentsResponseCountryOrRegionsInlined struct {
	ContinentId *string `json:"continentId,omitempty"`
	Id          *string `json:"id,omitempty"`
}

type GetLogAnalyticsLocationsOperationResponse

type GetLogAnalyticsLocationsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ContinentsResponse
}

type GetLogAnalyticsMetricsOperationOptions

type GetLogAnalyticsMetricsOperationOptions struct {
	Continents       *[]string
	CountryOrRegions *[]string
	CustomDomains    *[]string
	DateTimeBegin    *string
	DateTimeEnd      *string
	Granularity      *LogMetricsGranularity
	GroupBy          *[]string
	Metrics          *[]string
	Protocols        *[]string
}

func DefaultGetLogAnalyticsMetricsOperationOptions

func DefaultGetLogAnalyticsMetricsOperationOptions() GetLogAnalyticsMetricsOperationOptions

func (GetLogAnalyticsMetricsOperationOptions) ToHeaders

func (GetLogAnalyticsMetricsOperationOptions) ToOData

func (GetLogAnalyticsMetricsOperationOptions) ToQuery

type GetLogAnalyticsMetricsOperationResponse

type GetLogAnalyticsMetricsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *MetricsResponse
}

type GetLogAnalyticsRankingsOperationOptions

type GetLogAnalyticsRankingsOperationOptions struct {
	CustomDomains *[]string
	DateTimeBegin *string
	DateTimeEnd   *string
	MaxRanking    *int64
	Metrics       *[]string
	Rankings      *[]string
}

func DefaultGetLogAnalyticsRankingsOperationOptions

func DefaultGetLogAnalyticsRankingsOperationOptions() GetLogAnalyticsRankingsOperationOptions

func (GetLogAnalyticsRankingsOperationOptions) ToHeaders

func (GetLogAnalyticsRankingsOperationOptions) ToOData

func (GetLogAnalyticsRankingsOperationOptions) ToQuery

type GetLogAnalyticsRankingsOperationResponse

type GetLogAnalyticsRankingsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RankingsResponse
}

type GetLogAnalyticsResourcesOperationResponse

type GetLogAnalyticsResourcesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ResourcesResponse
}

type LogAnalyticsClient

type LogAnalyticsClient struct {
	Client *resourcemanager.Client
}

func NewLogAnalyticsClientWithBaseURI

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

func (LogAnalyticsClient) GetLogAnalyticsLocations

func (c LogAnalyticsClient) GetLogAnalyticsLocations(ctx context.Context, id ProfileId) (result GetLogAnalyticsLocationsOperationResponse, err error)

GetLogAnalyticsLocations ...

func (LogAnalyticsClient) GetLogAnalyticsMetrics

GetLogAnalyticsMetrics ...

func (LogAnalyticsClient) GetLogAnalyticsRankings

GetLogAnalyticsRankings ...

func (LogAnalyticsClient) GetLogAnalyticsResources

func (c LogAnalyticsClient) GetLogAnalyticsResources(ctx context.Context, id ProfileId) (result GetLogAnalyticsResourcesOperationResponse, err error)

GetLogAnalyticsResources ...

type LogMetricsGranularity

type LogMetricsGranularity string
const (
	LogMetricsGranularityPOneD   LogMetricsGranularity = "P1D"
	LogMetricsGranularityPTFiveM LogMetricsGranularity = "PT5M"
	LogMetricsGranularityPTOneH  LogMetricsGranularity = "PT1H"
)

func (*LogMetricsGranularity) UnmarshalJSON

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

type MetricsGranularity

type MetricsGranularity string
const (
	MetricsGranularityPOneD   MetricsGranularity = "P1D"
	MetricsGranularityPTFiveM MetricsGranularity = "PT5M"
	MetricsGranularityPTOneH  MetricsGranularity = "PT1H"
)

func (*MetricsGranularity) UnmarshalJSON

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

type MetricsResponse

type MetricsResponse struct {
	DateTimeBegin *string                         `json:"dateTimeBegin,omitempty"`
	DateTimeEnd   *string                         `json:"dateTimeEnd,omitempty"`
	Granularity   *MetricsGranularity             `json:"granularity,omitempty"`
	Series        *[]MetricsResponseSeriesInlined `json:"series,omitempty"`
}

func (*MetricsResponse) GetDateTimeBeginAsTime

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

func (*MetricsResponse) GetDateTimeEndAsTime

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

func (*MetricsResponse) SetDateTimeBeginAsTime

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

func (*MetricsResponse) SetDateTimeEndAsTime

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

type MetricsResponseSeriesInlined

type MetricsResponseSeriesInlined struct {
	Data   *[]MetricsResponseSeriesInlinedDataInlined   `json:"data,omitempty"`
	Groups *[]MetricsResponseSeriesInlinedGroupsInlined `json:"groups,omitempty"`
	Metric *string                                      `json:"metric,omitempty"`
	Unit   *MetricsSeriesUnit                           `json:"unit,omitempty"`
}

type MetricsResponseSeriesInlinedDataInlined

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

func (*MetricsResponseSeriesInlinedDataInlined) GetDateTimeAsTime

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

func (*MetricsResponseSeriesInlinedDataInlined) SetDateTimeAsTime

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

type MetricsResponseSeriesInlinedGroupsInlined

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

type MetricsSeriesUnit

type MetricsSeriesUnit string
const (
	MetricsSeriesUnitBitsPerSecond MetricsSeriesUnit = "bitsPerSecond"
	MetricsSeriesUnitBytes         MetricsSeriesUnit = "bytes"
	MetricsSeriesUnitCount         MetricsSeriesUnit = "count"
	MetricsSeriesUnitMilliSeconds  MetricsSeriesUnit = "milliSeconds"
)

func (*MetricsSeriesUnit) UnmarshalJSON

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

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 RankingsResponse

type RankingsResponse struct {
	DateTimeBegin *string                          `json:"dateTimeBegin,omitempty"`
	DateTimeEnd   *string                          `json:"dateTimeEnd,omitempty"`
	Tables        *[]RankingsResponseTablesInlined `json:"tables,omitempty"`
}

func (*RankingsResponse) GetDateTimeBeginAsTime

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

func (*RankingsResponse) GetDateTimeEndAsTime

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

func (*RankingsResponse) SetDateTimeBeginAsTime

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

func (*RankingsResponse) SetDateTimeEndAsTime

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

type RankingsResponseTablesInlined

type RankingsResponseTablesInlined struct {
	Data    *[]RankingsResponseTablesInlinedDataInlined `json:"data,omitempty"`
	Ranking *string                                     `json:"ranking,omitempty"`
}

type RankingsResponseTablesInlinedDataInlined

type RankingsResponseTablesInlinedDataInlined struct {
	Metrics *[]RankingsResponseTablesInlinedDataInlinedMetricsInlined `json:"metrics,omitempty"`
	Name    *string                                                   `json:"name,omitempty"`
}

type RankingsResponseTablesInlinedDataInlinedMetricsInlined

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

type ResourcesResponse

type ResourcesResponse struct {
	CustomDomains *[]ResourcesResponseCustomDomainsInlined `json:"customDomains,omitempty"`
	Endpoints     *[]ResourcesResponseEndpointsInlined     `json:"endpoints,omitempty"`
}

type ResourcesResponseCustomDomainsInlined

type ResourcesResponseCustomDomainsInlined struct {
	EndpointId *string `json:"endpointId,omitempty"`
	History    *bool   `json:"history,omitempty"`
	Id         *string `json:"id,omitempty"`
	Name       *string `json:"name,omitempty"`
}

type ResourcesResponseEndpointsInlined

type ResourcesResponseEndpointsInlined struct {
	CustomDomains *[]ResourcesResponseEndpointsInlinedCustomDomainsInlined `json:"customDomains,omitempty"`
	History       *bool                                                    `json:"history,omitempty"`
	Id            *string                                                  `json:"id,omitempty"`
	Name          *string                                                  `json:"name,omitempty"`
}

type ResourcesResponseEndpointsInlinedCustomDomainsInlined

type ResourcesResponseEndpointsInlinedCustomDomainsInlined struct {
	EndpointId *string `json:"endpointId,omitempty"`
	History    *bool   `json:"history,omitempty"`
	Id         *string `json:"id,omitempty"`
	Name       *string `json:"name,omitempty"`
}

Jump to

Keyboard shortcuts

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