statistics

package
v0.20240315.1103122 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/statistics Documentation

The statistics SDK allows for interaction with the Azure Resource Manager Service automation (API Version 2019-06-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/automation/2019-06-01/statistics"

Client Initialization

client := statistics.NewStatisticsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: StatisticsClient.ListByAutomationAccount

ctx := context.TODO()
id := statistics.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue")

read, err := client.ListByAutomationAccount(ctx, id, statistics.DefaultListByAutomationAccountOperationOptions())
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 ValidateAutomationAccountID

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

ValidateAutomationAccountID checks that 'input' can be parsed as a Automation Account ID

Types

type AutomationAccountId

type AutomationAccountId struct {
	SubscriptionId        string
	ResourceGroupName     string
	AutomationAccountName string
}

AutomationAccountId is a struct representing the Resource ID for a Automation Account

func NewAutomationAccountID

func NewAutomationAccountID(subscriptionId string, resourceGroupName string, automationAccountName string) AutomationAccountId

NewAutomationAccountID returns a new AutomationAccountId struct

func ParseAutomationAccountID

func ParseAutomationAccountID(input string) (*AutomationAccountId, error)

ParseAutomationAccountID parses 'input' into a AutomationAccountId

func ParseAutomationAccountIDInsensitively

func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, error)

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

func (*AutomationAccountId) FromParseResult

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

func (AutomationAccountId) ID

func (id AutomationAccountId) ID() string

ID returns the formatted Automation Account ID

func (AutomationAccountId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Automation Account ID

func (AutomationAccountId) String

func (id AutomationAccountId) String() string

String returns a human-readable description of this Automation Account ID

type ListByAutomationAccountOperationOptions

type ListByAutomationAccountOperationOptions struct {
	Filter *string
}

func DefaultListByAutomationAccountOperationOptions

func DefaultListByAutomationAccountOperationOptions() ListByAutomationAccountOperationOptions

func (ListByAutomationAccountOperationOptions) ToHeaders added in v0.20240209.1164150

func (ListByAutomationAccountOperationOptions) ToOData added in v0.20240209.1164150

func (ListByAutomationAccountOperationOptions) ToQuery added in v0.20240209.1164150

type ListByAutomationAccountOperationResponse

type ListByAutomationAccountOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *StatisticsListResult
}

type Statistics

type Statistics struct {
	CounterProperty *string `json:"counterProperty,omitempty"`
	CounterValue    *int64  `json:"counterValue,omitempty"`
	EndTime         *string `json:"endTime,omitempty"`
	Id              *string `json:"id,omitempty"`
	StartTime       *string `json:"startTime,omitempty"`
}

func (*Statistics) GetEndTimeAsTime

func (o *Statistics) GetEndTimeAsTime() (*time.Time, error)

func (*Statistics) GetStartTimeAsTime

func (o *Statistics) GetStartTimeAsTime() (*time.Time, error)

func (*Statistics) SetEndTimeAsTime

func (o *Statistics) SetEndTimeAsTime(input time.Time)

func (*Statistics) SetStartTimeAsTime

func (o *Statistics) SetStartTimeAsTime(input time.Time)

type StatisticsClient

type StatisticsClient struct {
	Client *resourcemanager.Client
}

func NewStatisticsClientWithBaseURI

func NewStatisticsClientWithBaseURI(sdkApi sdkEnv.Api) (*StatisticsClient, error)

func (StatisticsClient) ListByAutomationAccount

ListByAutomationAccount ...

type StatisticsListResult

type StatisticsListResult struct {
	Value *[]Statistics `json:"value,omitempty"`
}

Jump to

Keyboard shortcuts

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