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, input TopQueryStatisticsInput) (result ListByServerOperationResponse, err error)
- func (c TopQueryStatisticsClient) ListByServerComplete(ctx context.Context, id ServerId, input TopQueryStatisticsInput) (ListByServerCompleteResult, error)
- func (c TopQueryStatisticsClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id ServerId, input TopQueryStatisticsInput, ...) (result ListByServerCompleteResult, err error)
- type TopQueryStatisticsInput
- type TopQueryStatisticsInputProperties
- func (o *TopQueryStatisticsInputProperties) GetObservationEndTimeAsTime() (*time.Time, error)
- func (o *TopQueryStatisticsInputProperties) GetObservationStartTimeAsTime() (*time.Time, error)
- func (o *TopQueryStatisticsInputProperties) SetObservationEndTimeAsTime(input time.Time)
- func (o *TopQueryStatisticsInputProperties) SetObservationStartTimeAsTime(input time.Time)
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 OData *odata.OData Model *QueryStatistic }
type ListByServerCompleteResult ¶
type ListByServerCompleteResult struct {
Items []QueryStatistic
}
type ListByServerOperationResponse ¶
type ListByServerOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]QueryStatistic }
type QueryStatistic ¶
type QueryStatistic struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *QueryStatisticProperties `json:"properties,omitempty"` 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 *resourcemanager.Client
}
func NewTopQueryStatisticsClientWithBaseURI ¶
func NewTopQueryStatisticsClientWithBaseURI(api environments.Api) (*TopQueryStatisticsClient, error)
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, input TopQueryStatisticsInput) (result ListByServerOperationResponse, err error)
ListByServer ...
func (TopQueryStatisticsClient) ListByServerComplete ¶
func (c TopQueryStatisticsClient) ListByServerComplete(ctx context.Context, id ServerId, input TopQueryStatisticsInput) (ListByServerCompleteResult, error)
ListByServerComplete retrieves all the results into a single object
func (TopQueryStatisticsClient) ListByServerCompleteMatchingPredicate ¶
func (c TopQueryStatisticsClient) ListByServerCompleteMatchingPredicate(ctx context.Context, id ServerId, input TopQueryStatisticsInput, predicate QueryStatisticOperationPredicate) (result ListByServerCompleteResult, err error)
ListByServerCompleteMatchingPredicate retrieves all the results and then applies the predicate
type TopQueryStatisticsInput ¶
type TopQueryStatisticsInput struct {
Properties TopQueryStatisticsInputProperties `json:"properties"`
}
type TopQueryStatisticsInputProperties ¶
type TopQueryStatisticsInputProperties struct { AggregationFunction string `json:"aggregationFunction"` AggregationWindow string `json:"aggregationWindow"` NumberOfTopQueries int64 `json:"numberOfTopQueries"` ObservationEndTime string `json:"observationEndTime"` ObservationStartTime string `json:"observationStartTime"` ObservedMetric string `json:"observedMetric"` }
func (*TopQueryStatisticsInputProperties) GetObservationEndTimeAsTime ¶
func (o *TopQueryStatisticsInputProperties) GetObservationEndTimeAsTime() (*time.Time, error)
func (*TopQueryStatisticsInputProperties) GetObservationStartTimeAsTime ¶
func (o *TopQueryStatisticsInputProperties) GetObservationStartTimeAsTime() (*time.Time, error)
func (*TopQueryStatisticsInputProperties) SetObservationEndTimeAsTime ¶
func (o *TopQueryStatisticsInputProperties) SetObservationEndTimeAsTime(input time.Time)
func (*TopQueryStatisticsInputProperties) SetObservationStartTimeAsTime ¶
func (o *TopQueryStatisticsInputProperties) SetObservationStartTimeAsTime(input time.Time)