Documentation ¶
Index ¶
- func PossibleValuesForAggregated() []string
- func ValidateAdvisorScoreID(input interface{}, key string) (warnings []string, errors []error)
- type AdvisorScoreClient
- type AdvisorScoreEntity
- type AdvisorScoreEntityProperties
- type AdvisorScoreId
- type AdvisorScoreResponse
- type Aggregated
- type GetOperationResponse
- type ListOperationResponse
- type ScoreEntity
- type TimeSeriesEntityTimeSeriesInlined
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAggregated ¶
func PossibleValuesForAggregated() []string
func ValidateAdvisorScoreID ¶
ValidateAdvisorScoreID checks that 'input' can be parsed as a Advisor Score ID
Types ¶
type AdvisorScoreClient ¶
type AdvisorScoreClient struct {
Client *resourcemanager.Client
}
func NewAdvisorScoreClientWithBaseURI ¶
func NewAdvisorScoreClientWithBaseURI(api environments.Api) (*AdvisorScoreClient, error)
func (AdvisorScoreClient) Get ¶
func (c AdvisorScoreClient) Get(ctx context.Context, id AdvisorScoreId) (result GetOperationResponse, err error)
Get ...
func (AdvisorScoreClient) List ¶
func (c AdvisorScoreClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
List ...
type AdvisorScoreEntity ¶
type AdvisorScoreEntity struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *AdvisorScoreEntityProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type AdvisorScoreEntityProperties ¶
type AdvisorScoreEntityProperties struct { LastRefreshedScore *ScoreEntity `json:"lastRefreshedScore,omitempty"` TimeSeries *[]TimeSeriesEntityTimeSeriesInlined `json:"timeSeries,omitempty"` }
type AdvisorScoreId ¶
AdvisorScoreId is a struct representing the Resource ID for a Advisor Score
func NewAdvisorScoreID ¶
func NewAdvisorScoreID(subscriptionId string, advisorScoreName string) AdvisorScoreId
NewAdvisorScoreID returns a new AdvisorScoreId struct
func ParseAdvisorScoreID ¶
func ParseAdvisorScoreID(input string) (*AdvisorScoreId, error)
ParseAdvisorScoreID parses 'input' into a AdvisorScoreId
func ParseAdvisorScoreIDInsensitively ¶
func ParseAdvisorScoreIDInsensitively(input string) (*AdvisorScoreId, error)
ParseAdvisorScoreIDInsensitively parses 'input' case-insensitively into a AdvisorScoreId note: this method should only be used for API response data and not user input
func (AdvisorScoreId) ID ¶
func (id AdvisorScoreId) ID() string
ID returns the formatted Advisor Score ID
func (AdvisorScoreId) Segments ¶
func (id AdvisorScoreId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Advisor Score ID
func (AdvisorScoreId) String ¶
func (id AdvisorScoreId) String() string
String returns a human-readable description of this Advisor Score ID
type AdvisorScoreResponse ¶
type AdvisorScoreResponse struct {
Value *[]AdvisorScoreEntity `json:"value,omitempty"`
}
type Aggregated ¶
type Aggregated string
const ( AggregatedDay Aggregated = "day" AggregatedMonth Aggregated = "month" AggregatedWeek Aggregated = "week" )
func (*Aggregated) UnmarshalJSON ¶ added in v0.20230731.1080956
func (s *Aggregated) UnmarshalJSON(bytes []byte) error
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *AdvisorScoreEntity }
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *AdvisorScoreResponse }
type ScoreEntity ¶
type ScoreEntity struct { CategoryCount *float64 `json:"categoryCount,omitempty"` ConsumptionUnits *float64 `json:"consumptionUnits,omitempty"` Date *string `json:"date,omitempty"` ImpactedResourceCount *float64 `json:"impactedResourceCount,omitempty"` PotentialScoreIncrease *float64 `json:"potentialScoreIncrease,omitempty"` Score *float64 `json:"score,omitempty"` }
type TimeSeriesEntityTimeSeriesInlined ¶
type TimeSeriesEntityTimeSeriesInlined struct { AggregationLevel *Aggregated `json:"aggregationLevel,omitempty"` ScoreHistory *[]ScoreEntity `json:"scoreHistory,omitempty"` }
Click to show internal directories.
Click to hide internal directories.