advisor

package
v3.55.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetRecommendationsArgs

type GetRecommendationsArgs struct {
	// Specifies a list of categories in which the Advisor Recommendations will be listed. Possible values are `HighAvailability`, `Security`, `Performance`, `Cost` and `OperationalExcellence`.
	FilterByCategories []string `pulumi:"filterByCategories"`
	// Specifies a list of resource groups about which the Advisor Recommendations will be listed.
	FilterByResourceGroups []string `pulumi:"filterByResourceGroups"`
}

A collection of arguments for invoking getRecommendations.

type GetRecommendationsRecommendation

type GetRecommendationsRecommendation struct {
	// The category of the recommendation.
	Category string `pulumi:"category"`
	// The description of the issue or the opportunity identified by the recommendation.
	Description string `pulumi:"description"`
	// The business impact of the recommendation.
	Impact string `pulumi:"impact"`
	// The name of the Advisor Recommendation.
	RecommendationName string `pulumi:"recommendationName"`
	// The recommendation type id of the Advisor Recommendation.
	RecommendationTypeId string `pulumi:"recommendationTypeId"`
	// The name of the identified resource of the Advisor Recommendation.
	ResourceName string `pulumi:"resourceName"`
	// The type of the identified resource of the Advisor Recommendation.
	ResourceType string `pulumi:"resourceType"`
	// A list of Advisor Suppression names of the Advisor Recommendation.
	SuppressionNames []string `pulumi:"suppressionNames"`
	// The most recent time that Advisor checked the validity of the recommendation..
	UpdatedTime string `pulumi:"updatedTime"`
}

type GetRecommendationsRecommendationArgs

type GetRecommendationsRecommendationArgs struct {
	// The category of the recommendation.
	Category pulumi.StringInput `pulumi:"category"`
	// The description of the issue or the opportunity identified by the recommendation.
	Description pulumi.StringInput `pulumi:"description"`
	// The business impact of the recommendation.
	Impact pulumi.StringInput `pulumi:"impact"`
	// The name of the Advisor Recommendation.
	RecommendationName pulumi.StringInput `pulumi:"recommendationName"`
	// The recommendation type id of the Advisor Recommendation.
	RecommendationTypeId pulumi.StringInput `pulumi:"recommendationTypeId"`
	// The name of the identified resource of the Advisor Recommendation.
	ResourceName pulumi.StringInput `pulumi:"resourceName"`
	// The type of the identified resource of the Advisor Recommendation.
	ResourceType pulumi.StringInput `pulumi:"resourceType"`
	// A list of Advisor Suppression names of the Advisor Recommendation.
	SuppressionNames pulumi.StringArrayInput `pulumi:"suppressionNames"`
	// The most recent time that Advisor checked the validity of the recommendation..
	UpdatedTime pulumi.StringInput `pulumi:"updatedTime"`
}

func (GetRecommendationsRecommendationArgs) ElementType

func (GetRecommendationsRecommendationArgs) ToGetRecommendationsRecommendationOutput

func (i GetRecommendationsRecommendationArgs) ToGetRecommendationsRecommendationOutput() GetRecommendationsRecommendationOutput

func (GetRecommendationsRecommendationArgs) ToGetRecommendationsRecommendationOutputWithContext

func (i GetRecommendationsRecommendationArgs) ToGetRecommendationsRecommendationOutputWithContext(ctx context.Context) GetRecommendationsRecommendationOutput

type GetRecommendationsRecommendationArray

type GetRecommendationsRecommendationArray []GetRecommendationsRecommendationInput

func (GetRecommendationsRecommendationArray) ElementType

func (GetRecommendationsRecommendationArray) ToGetRecommendationsRecommendationArrayOutput

func (i GetRecommendationsRecommendationArray) ToGetRecommendationsRecommendationArrayOutput() GetRecommendationsRecommendationArrayOutput

func (GetRecommendationsRecommendationArray) ToGetRecommendationsRecommendationArrayOutputWithContext

func (i GetRecommendationsRecommendationArray) ToGetRecommendationsRecommendationArrayOutputWithContext(ctx context.Context) GetRecommendationsRecommendationArrayOutput

type GetRecommendationsRecommendationArrayInput

type GetRecommendationsRecommendationArrayInput interface {
	pulumi.Input

	ToGetRecommendationsRecommendationArrayOutput() GetRecommendationsRecommendationArrayOutput
	ToGetRecommendationsRecommendationArrayOutputWithContext(context.Context) GetRecommendationsRecommendationArrayOutput
}

GetRecommendationsRecommendationArrayInput is an input type that accepts GetRecommendationsRecommendationArray and GetRecommendationsRecommendationArrayOutput values. You can construct a concrete instance of `GetRecommendationsRecommendationArrayInput` via:

GetRecommendationsRecommendationArray{ GetRecommendationsRecommendationArgs{...} }

type GetRecommendationsRecommendationArrayOutput

type GetRecommendationsRecommendationArrayOutput struct{ *pulumi.OutputState }

func (GetRecommendationsRecommendationArrayOutput) ElementType

func (GetRecommendationsRecommendationArrayOutput) Index

func (GetRecommendationsRecommendationArrayOutput) ToGetRecommendationsRecommendationArrayOutput

func (o GetRecommendationsRecommendationArrayOutput) ToGetRecommendationsRecommendationArrayOutput() GetRecommendationsRecommendationArrayOutput

func (GetRecommendationsRecommendationArrayOutput) ToGetRecommendationsRecommendationArrayOutputWithContext

func (o GetRecommendationsRecommendationArrayOutput) ToGetRecommendationsRecommendationArrayOutputWithContext(ctx context.Context) GetRecommendationsRecommendationArrayOutput

type GetRecommendationsRecommendationInput

type GetRecommendationsRecommendationInput interface {
	pulumi.Input

	ToGetRecommendationsRecommendationOutput() GetRecommendationsRecommendationOutput
	ToGetRecommendationsRecommendationOutputWithContext(context.Context) GetRecommendationsRecommendationOutput
}

GetRecommendationsRecommendationInput is an input type that accepts GetRecommendationsRecommendationArgs and GetRecommendationsRecommendationOutput values. You can construct a concrete instance of `GetRecommendationsRecommendationInput` via:

GetRecommendationsRecommendationArgs{...}

type GetRecommendationsRecommendationOutput

type GetRecommendationsRecommendationOutput struct{ *pulumi.OutputState }

func (GetRecommendationsRecommendationOutput) Category

The category of the recommendation.

func (GetRecommendationsRecommendationOutput) Description

The description of the issue or the opportunity identified by the recommendation.

func (GetRecommendationsRecommendationOutput) ElementType

func (GetRecommendationsRecommendationOutput) Impact

The business impact of the recommendation.

func (GetRecommendationsRecommendationOutput) RecommendationName

The name of the Advisor Recommendation.

func (GetRecommendationsRecommendationOutput) RecommendationTypeId

The recommendation type id of the Advisor Recommendation.

func (GetRecommendationsRecommendationOutput) ResourceName

The name of the identified resource of the Advisor Recommendation.

func (GetRecommendationsRecommendationOutput) ResourceType

The type of the identified resource of the Advisor Recommendation.

func (GetRecommendationsRecommendationOutput) SuppressionNames

A list of Advisor Suppression names of the Advisor Recommendation.

func (GetRecommendationsRecommendationOutput) ToGetRecommendationsRecommendationOutput

func (o GetRecommendationsRecommendationOutput) ToGetRecommendationsRecommendationOutput() GetRecommendationsRecommendationOutput

func (GetRecommendationsRecommendationOutput) ToGetRecommendationsRecommendationOutputWithContext

func (o GetRecommendationsRecommendationOutput) ToGetRecommendationsRecommendationOutputWithContext(ctx context.Context) GetRecommendationsRecommendationOutput

func (GetRecommendationsRecommendationOutput) UpdatedTime

The most recent time that Advisor checked the validity of the recommendation..

type GetRecommendationsResult

type GetRecommendationsResult struct {
	FilterByCategories     []string `pulumi:"filterByCategories"`
	FilterByResourceGroups []string `pulumi:"filterByResourceGroups"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// One or more `recommendations` blocks as defined below.
	Recommendations []GetRecommendationsRecommendation `pulumi:"recommendations"`
}

A collection of values returned by getRecommendations.

func GetRecommendations

func GetRecommendations(ctx *pulumi.Context, args *GetRecommendationsArgs, opts ...pulumi.InvokeOption) (*GetRecommendationsResult, error)

Use this data source to access information about an existing Advisor Recommendations.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/advisor"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := advisor.GetRecommendations(ctx, &advisor.GetRecommendationsArgs{
			FilterByCategories: []string{
				"security",
				"cost",
			},
			FilterByResourceGroups: []string{
				"example-resgroups",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("recommendations", example.Recommendations)
		return nil
	})
}

```

Jump to

Keyboard shortcuts

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