Documentation ¶
Index ¶
- func ValidateServerID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateTopQueryStatisticID(input interface{}, key string) (warnings []string, errors []error)
- type GetOperationResponse
- type ListByServerCompleteResult
- type ListByServerOperationResponse
- type QueryStatistic
- type QueryStatisticOperationPredicate
- type QueryStatisticProperties
- type ServerId
- type TopQueryStatisticId
- type TopQueryStatisticsClient
- func (c TopQueryStatisticsClient) Get(ctx context.Context, id TopQueryStatisticId) (result GetOperationResponse, err error)
- func (c TopQueryStatisticsClient) ListByServer(ctx context.Context, id ServerId) (resp ListByServerOperationResponse, err error)
- func (c TopQueryStatisticsClient) ListByServerComplete(ctx context.Context, id ServerId) (ListByServerCompleteResult, error)
- func (c TopQueryStatisticsClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id ServerId, predicate QueryStatisticOperationPredicate) (resp ListByServerCompleteResult, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateServerID ¶
ValidateServerID checks that 'input' can be parsed as a Server ID
func ValidateTopQueryStatisticID ¶
ValidateTopQueryStatisticID checks that 'input' can be parsed as a Top Query Statistic ID
Types ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *QueryStatistic }
type ListByServerCompleteResult ¶
type ListByServerCompleteResult struct {
Items []QueryStatistic
}
type ListByServerOperationResponse ¶
type ListByServerOperationResponse struct { HttpResponse *http.Response Model *[]QueryStatistic // contains filtered or unexported fields }
func (ListByServerOperationResponse) HasMore ¶
func (r ListByServerOperationResponse) HasMore() bool
func (ListByServerOperationResponse) LoadMore ¶
func (r ListByServerOperationResponse) LoadMore(ctx context.Context) (resp ListByServerOperationResponse, err error)
type QueryStatistic ¶
type QueryStatistic struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *QueryStatisticProperties `json:"properties"` Type *string `json:"type,omitempty"` }
type QueryStatisticOperationPredicate ¶
func (QueryStatisticOperationPredicate) Matches ¶
func (p QueryStatisticOperationPredicate) Matches(input QueryStatistic) bool
type QueryStatisticProperties ¶
type QueryStatisticProperties struct { AggregationFunction *string `json:"aggregationFunction,omitempty"` DatabaseNames *[]string `json:"databaseNames,omitempty"` EndTime *string `json:"endTime,omitempty"` MetricDisplayName *string `json:"metricDisplayName,omitempty"` MetricName *string `json:"metricName,omitempty"` MetricValue *float64 `json:"metricValue,omitempty"` MetricValueUnit *string `json:"metricValueUnit,omitempty"` QueryExecutionCount *int64 `json:"queryExecutionCount,omitempty"` QueryId *string `json:"queryId,omitempty"` StartTime *string `json:"startTime,omitempty"` }
func (*QueryStatisticProperties) GetEndTimeAsTime ¶
func (o *QueryStatisticProperties) GetEndTimeAsTime() (*time.Time, error)
func (*QueryStatisticProperties) GetStartTimeAsTime ¶
func (o *QueryStatisticProperties) GetStartTimeAsTime() (*time.Time, error)
func (*QueryStatisticProperties) SetEndTimeAsTime ¶
func (o *QueryStatisticProperties) SetEndTimeAsTime(input time.Time)
func (*QueryStatisticProperties) SetStartTimeAsTime ¶
func (o *QueryStatisticProperties) SetStartTimeAsTime(input time.Time)
type ServerId ¶
ServerId is a struct representing the Resource ID for a Server
func NewServerID ¶
NewServerID returns a new ServerId struct
func ParseServerID ¶
ParseServerID parses 'input' into a ServerId
func ParseServerIDInsensitively ¶
ParseServerIDInsensitively parses 'input' case-insensitively into a ServerId note: this method should only be used for API response data and not user input
func (ServerId) Segments ¶
func (id ServerId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Server ID
type TopQueryStatisticId ¶
type TopQueryStatisticId struct { SubscriptionId string ResourceGroupName string ServerName string QueryStatisticId string }
TopQueryStatisticId is a struct representing the Resource ID for a Top Query Statistic
func NewTopQueryStatisticID ¶
func NewTopQueryStatisticID(subscriptionId string, resourceGroupName string, serverName string, queryStatisticId string) TopQueryStatisticId
NewTopQueryStatisticID returns a new TopQueryStatisticId struct
func ParseTopQueryStatisticID ¶
func ParseTopQueryStatisticID(input string) (*TopQueryStatisticId, error)
ParseTopQueryStatisticID parses 'input' into a TopQueryStatisticId
func ParseTopQueryStatisticIDInsensitively ¶
func ParseTopQueryStatisticIDInsensitively(input string) (*TopQueryStatisticId, error)
ParseTopQueryStatisticIDInsensitively parses 'input' case-insensitively into a TopQueryStatisticId note: this method should only be used for API response data and not user input
func (TopQueryStatisticId) ID ¶
func (id TopQueryStatisticId) ID() string
ID returns the formatted Top Query Statistic ID
func (TopQueryStatisticId) Segments ¶
func (id TopQueryStatisticId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Top Query Statistic ID
func (TopQueryStatisticId) String ¶
func (id TopQueryStatisticId) String() string
String returns a human-readable description of this Top Query Statistic ID
type TopQueryStatisticsClient ¶
type TopQueryStatisticsClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewTopQueryStatisticsClientWithBaseURI ¶
func NewTopQueryStatisticsClientWithBaseURI(endpoint string) TopQueryStatisticsClient
func (TopQueryStatisticsClient) Get ¶
func (c TopQueryStatisticsClient) Get(ctx context.Context, id TopQueryStatisticId) (result GetOperationResponse, err error)
Get ...
func (TopQueryStatisticsClient) ListByServer ¶
func (c TopQueryStatisticsClient) ListByServer(ctx context.Context, id ServerId) (resp ListByServerOperationResponse, err error)
ListByServer ...
func (TopQueryStatisticsClient) ListByServerComplete ¶
func (c TopQueryStatisticsClient) ListByServerComplete(ctx context.Context, id ServerId) (ListByServerCompleteResult, error)
ListByServerComplete retrieves all of the results into a single object
func (TopQueryStatisticsClient) ListByServerCompleteMatchingPredicate ¶
func (c TopQueryStatisticsClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id ServerId, predicate QueryStatisticOperationPredicate) (resp ListByServerCompleteResult, err error)
ListByServerCompleteMatchingPredicate retrieves all of the results and then applied the predicate