Share via


RecommendationRuleData Class

Definition

A class representing the RecommendationRule data model. Represents a recommendation rule that the recommendation engine can perform.

public class RecommendationRuleData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.AppService.RecommendationRuleData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.AppService.RecommendationRuleData>
type RecommendationRuleData = class
    inherit ResourceData
    interface IJsonModel<RecommendationRuleData>
    interface IPersistableModel<RecommendationRuleData>
Public Class RecommendationRuleData
Inherits ResourceData
Implements IJsonModel(Of RecommendationRuleData), IPersistableModel(Of RecommendationRuleData)
Inheritance
RecommendationRuleData
Implements

Constructors

RecommendationRuleData()

Initializes a new instance of RecommendationRuleData.

Properties

ActionName

Name of action that is recommended by this rule in string.

BladeName

Deep link to a blade on the portal. Applicable to dynamic rule only.

CategoryTags

The list of category tags that this recommendation rule belongs to.

Channels

List of available channels that this rule applies.

Description

Localized detailed description of the rule.

DisplayName

UI friendly name of the rule.

ExtensionName

Extension name of the portal if exists. Applicable to dynamic rule only.

ForwardLink

Forward link to an external document associated with the rule. Applicable to dynamic rule only.

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

(Inherited from ResourceData)
IsDynamic

True if this is associated with a dynamically added rule.

Kind

Kind of resource.

Level

Level of impact indicating how critical this rule is.

Message

Localized name of the rule (Good for UI).

Name

The name of the resource.

(Inherited from ResourceData)
RecommendationId

Recommendation ID of an associated recommendation object tied to the rule, if exists. If such an object doesn't exist, it is set to null.

RecommendationName

Unique name of the rule.

ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

(Inherited from ResourceData)
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from ResourceData)

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<RecommendationRuleData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<RecommendationRuleData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<RecommendationRuleData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RecommendationRuleData>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<RecommendationRuleData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to