Documentation ¶
Index ¶
- func PossibleValuesForQueryMetricUnitType() []string
- func PossibleValuesForQueryTimeGrainType() []string
- func ValidateQueryID(input interface{}, key string) (warnings []string, errors []error)
- type GetOperationResponse
- type ListByQueryCompleteResult
- type ListByQueryOperationOptions
- type ListByQueryOperationResponse
- type ManagedDatabaseQueriesClient
- func (c ManagedDatabaseQueriesClient) Get(ctx context.Context, id QueryId) (result GetOperationResponse, err error)
- func (c ManagedDatabaseQueriesClient) ListByQuery(ctx context.Context, id QueryId, options ListByQueryOperationOptions) (result ListByQueryOperationResponse, err error)
- func (c ManagedDatabaseQueriesClient) ListByQueryComplete(ctx context.Context, id QueryId, options ListByQueryOperationOptions) (ListByQueryCompleteResult, error)
- func (c ManagedDatabaseQueriesClient) ListByQueryCompleteMatchingPredicate(ctx context.Context, id QueryId, options ListByQueryOperationOptions, ...) (result ListByQueryCompleteResult, err error)
- type ManagedInstanceQuery
- type QueryId
- type QueryMetricInterval
- type QueryMetricProperties
- type QueryMetricUnitType
- type QueryProperties
- type QueryStatistics
- type QueryStatisticsOperationPredicate
- type QueryStatisticsProperties
- type QueryTimeGrainType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForQueryMetricUnitType ¶
func PossibleValuesForQueryMetricUnitType() []string
func PossibleValuesForQueryTimeGrainType ¶
func PossibleValuesForQueryTimeGrainType() []string
func ValidateQueryID ¶
ValidateQueryID checks that 'input' can be parsed as a Query ID
Types ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ManagedInstanceQuery }
type ListByQueryCompleteResult ¶
type ListByQueryCompleteResult struct { LatestHttpResponse *http.Response Items []QueryStatistics }
type ListByQueryOperationOptions ¶
type ListByQueryOperationOptions struct { EndTime *string Interval *QueryTimeGrainType StartTime *string }
func DefaultListByQueryOperationOptions ¶
func DefaultListByQueryOperationOptions() ListByQueryOperationOptions
func (ListByQueryOperationOptions) ToHeaders ¶
func (o ListByQueryOperationOptions) ToHeaders() *client.Headers
func (ListByQueryOperationOptions) ToOData ¶
func (o ListByQueryOperationOptions) ToOData() *odata.Query
func (ListByQueryOperationOptions) ToQuery ¶
func (o ListByQueryOperationOptions) ToQuery() *client.QueryParams
type ListByQueryOperationResponse ¶
type ListByQueryOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]QueryStatistics }
type ManagedDatabaseQueriesClient ¶
type ManagedDatabaseQueriesClient struct {
Client *resourcemanager.Client
}
func NewManagedDatabaseQueriesClientWithBaseURI ¶
func NewManagedDatabaseQueriesClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedDatabaseQueriesClient, error)
func (ManagedDatabaseQueriesClient) Get ¶
func (c ManagedDatabaseQueriesClient) Get(ctx context.Context, id QueryId) (result GetOperationResponse, err error)
Get ...
func (ManagedDatabaseQueriesClient) ListByQuery ¶
func (c ManagedDatabaseQueriesClient) ListByQuery(ctx context.Context, id QueryId, options ListByQueryOperationOptions) (result ListByQueryOperationResponse, err error)
ListByQuery ...
func (ManagedDatabaseQueriesClient) ListByQueryComplete ¶
func (c ManagedDatabaseQueriesClient) ListByQueryComplete(ctx context.Context, id QueryId, options ListByQueryOperationOptions) (ListByQueryCompleteResult, error)
ListByQueryComplete retrieves all the results into a single object
func (ManagedDatabaseQueriesClient) ListByQueryCompleteMatchingPredicate ¶
func (c ManagedDatabaseQueriesClient) ListByQueryCompleteMatchingPredicate(ctx context.Context, id QueryId, options ListByQueryOperationOptions, predicate QueryStatisticsOperationPredicate) (result ListByQueryCompleteResult, err error)
ListByQueryCompleteMatchingPredicate retrieves all the results and then applies the predicate
type ManagedInstanceQuery ¶
type ManagedInstanceQuery struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *QueryProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type QueryId ¶
type QueryId struct { SubscriptionId string ResourceGroupName string ManagedInstanceName string DatabaseName string QueryId string }
QueryId is a struct representing the Resource ID for a Query
func NewQueryID ¶
func NewQueryID(subscriptionId string, resourceGroupName string, managedInstanceName string, databaseName string, queryId string) QueryId
NewQueryID returns a new QueryId struct
func ParseQueryID ¶
ParseQueryID parses 'input' into a QueryId
func ParseQueryIDInsensitively ¶
ParseQueryIDInsensitively parses 'input' case-insensitively into a QueryId note: this method should only be used for API response data and not user input
func (*QueryId) FromParseResult ¶
func (id *QueryId) FromParseResult(input resourceids.ParseResult) error
func (QueryId) Segments ¶
func (id QueryId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Query ID
type QueryMetricInterval ¶
type QueryMetricInterval struct { ExecutionCount *int64 `json:"executionCount,omitempty"` IntervalStartTime *string `json:"intervalStartTime,omitempty"` IntervalType *QueryTimeGrainType `json:"intervalType,omitempty"` Metrics *[]QueryMetricProperties `json:"metrics,omitempty"` }
type QueryMetricProperties ¶
type QueryMetricProperties struct { Avg *float64 `json:"avg,omitempty"` DisplayName *string `json:"displayName,omitempty"` Max *float64 `json:"max,omitempty"` Min *float64 `json:"min,omitempty"` Name *string `json:"name,omitempty"` Stdev *float64 `json:"stdev,omitempty"` Sum *float64 `json:"sum,omitempty"` Unit *QueryMetricUnitType `json:"unit,omitempty"` Value *float64 `json:"value,omitempty"` }
type QueryMetricUnitType ¶
type QueryMetricUnitType string
const ( QueryMetricUnitTypeCount QueryMetricUnitType = "count" QueryMetricUnitTypeKB QueryMetricUnitType = "KB" QueryMetricUnitTypeMicroseconds QueryMetricUnitType = "microseconds" QueryMetricUnitTypePercentage QueryMetricUnitType = "percentage" )
func (*QueryMetricUnitType) UnmarshalJSON ¶
func (s *QueryMetricUnitType) UnmarshalJSON(bytes []byte) error
type QueryProperties ¶
type QueryProperties struct {
QueryText *string `json:"queryText,omitempty"`
}
type QueryStatistics ¶
type QueryStatistics struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *QueryStatisticsProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type QueryStatisticsOperationPredicate ¶
func (QueryStatisticsOperationPredicate) Matches ¶
func (p QueryStatisticsOperationPredicate) Matches(input QueryStatistics) bool
type QueryStatisticsProperties ¶
type QueryStatisticsProperties struct { DatabaseName *string `json:"databaseName,omitempty"` EndTime *string `json:"endTime,omitempty"` Intervals *[]QueryMetricInterval `json:"intervals,omitempty"` QueryId *string `json:"queryId,omitempty"` StartTime *string `json:"startTime,omitempty"` }
type QueryTimeGrainType ¶
type QueryTimeGrainType string
const ( QueryTimeGrainTypePOneD QueryTimeGrainType = "P1D" QueryTimeGrainTypePTOneH QueryTimeGrainType = "PT1H" )
func (*QueryTimeGrainType) UnmarshalJSON ¶
func (s *QueryTimeGrainType) UnmarshalJSON(bytes []byte) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.