Condividi tramite


RecommendationInner Class

public final class RecommendationInner
extends ProxyOnlyResource

Represents a recommendation result generated by the recommendation engine.

Method Summary

Modifier and Type Method and Description
String actionName()

Get the actionName property: Name of action recommended by this object.

String bladeName()

Get the bladeName property: Deep link to a blade on the portal.

List<String> categoryTags()

Get the categoryTags property: The list of category tags that this recommendation belongs to.

Channels channels()

Get the channels property: List of channels that this recommendation can apply.

OffsetDateTime creationTime()

Get the creationTime property: Timestamp when this instance was created.

String displayName()

Get the displayName property: UI friendly name of the rule (may not be unique).

Integer enabled()

Get the enabled property: True if this recommendation is still valid (i.e.

OffsetDateTime endTime()

Get the endTime property: The end time in UTC of a range that the recommendation refers to.

String extensionName()

Get the extensionName property: Extension name of the portal if exists.

String forwardLink()

Get the forwardLink property: Forward link to an external document associated with the rule.

static RecommendationInner fromJson(JsonReader jsonReader)

Reads an instance of RecommendationInner from the JsonReader.

String id()

Get the id property: Resource Id.

Boolean isDynamic()

Get the isDynamic property: True if this is associated with a dynamically added rule.

NotificationLevel level()

Get the level property: Level indicating how critical this recommendation can impact.

String message()

Get the message property: Recommendation text.

String name()

Get the name property: Resource Name.

OffsetDateTime nextNotificationTime()

Get the nextNotificationTime property: When to notify this recommendation next in UTC.

OffsetDateTime notificationExpirationTime()

Get the notificationExpirationTime property: Date and time in UTC when this notification expires.

OffsetDateTime notifiedTime()

Get the notifiedTime property: Last timestamp in UTC this instance was actually notified.

UUID recommendationId()

Get the recommendationId property: A GUID value that each recommendation object is associated with.

String resourceId()

Get the resourceId property: Full ARM resource ID string that this recommendation object is associated with.

ResourceScopeType resourceScope()

Get the resourceScope property: Name of a resource type this recommendation applies, e.g.

String ruleName()

Get the ruleName property: Unique name of the rule.

Double score()

Get the score property: A metric value measured by the rule.

OffsetDateTime startTime()

Get the startTime property: The beginning time in UTC of a range that the recommendation refers to.

List<String> states()

Get the states property: The list of states of this recommendation.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

void validate()

Validates the instance.

Methods inherited from ProxyOnlyResource

Methods inherited from java.lang.Object

Method Details

actionName

public String actionName()

Get the actionName property: Name of action recommended by this object.

Returns:

the actionName value.

bladeName

public String bladeName()

Get the bladeName property: Deep link to a blade on the portal.

Returns:

the bladeName value.

categoryTags

public List<String> categoryTags()

Get the categoryTags property: The list of category tags that this recommendation belongs to.

Returns:

the categoryTags value.

channels

public Channels channels()

Get the channels property: List of channels that this recommendation can apply.

Returns:

the channels value.

creationTime

public OffsetDateTime creationTime()

Get the creationTime property: Timestamp when this instance was created.

Returns:

the creationTime value.

displayName

public String displayName()

Get the displayName property: UI friendly name of the rule (may not be unique).

Returns:

the displayName value.

enabled

public Integer enabled()

Get the enabled property: True if this recommendation is still valid (i.e. "actionable"). False if it is invalid.

Returns:

the enabled value.

endTime

public OffsetDateTime endTime()

Get the endTime property: The end time in UTC of a range that the recommendation refers to.

Returns:

the endTime value.

extensionName

public String extensionName()

Get the extensionName property: Extension name of the portal if exists.

Returns:

the extensionName value.

forwardLink

public String forwardLink()

Get the forwardLink property: Forward link to an external document associated with the rule.

Returns:

the forwardLink value.

fromJson

public static RecommendationInner fromJson(JsonReader jsonReader)

Reads an instance of RecommendationInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RecommendationInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the RecommendationInner.

id

public String id()

Get the id property: Resource Id.

Overrides:

RecommendationInner.id()

Returns:

the id value.

isDynamic

public Boolean isDynamic()

Get the isDynamic property: True if this is associated with a dynamically added rule.

Returns:

the isDynamic value.

level

public NotificationLevel level()

Get the level property: Level indicating how critical this recommendation can impact.

Returns:

the level value.

message

public String message()

Get the message property: Recommendation text.

Returns:

the message value.

name

public String name()

Get the name property: Resource Name.

Overrides:

RecommendationInner.name()

Returns:

the name value.

nextNotificationTime

public OffsetDateTime nextNotificationTime()

Get the nextNotificationTime property: When to notify this recommendation next in UTC. Null means that this will never be notified anymore.

Returns:

the nextNotificationTime value.

notificationExpirationTime

public OffsetDateTime notificationExpirationTime()

Get the notificationExpirationTime property: Date and time in UTC when this notification expires.

Returns:

the notificationExpirationTime value.

notifiedTime

public OffsetDateTime notifiedTime()

Get the notifiedTime property: Last timestamp in UTC this instance was actually notified. Null means that this recommendation hasn't been notified yet.

Returns:

the notifiedTime value.

recommendationId

public UUID recommendationId()

Get the recommendationId property: A GUID value that each recommendation object is associated with.

Returns:

the recommendationId value.

resourceId

public String resourceId()

Get the resourceId property: Full ARM resource ID string that this recommendation object is associated with.

Returns:

the resourceId value.

resourceScope

public ResourceScopeType resourceScope()

Get the resourceScope property: Name of a resource type this recommendation applies, e.g. Subscription, ServerFarm, Site.

Returns:

the resourceScope value.

ruleName

public String ruleName()

Get the ruleName property: Unique name of the rule.

Returns:

the ruleName value.

score

public Double score()

Get the score property: A metric value measured by the rule.

Returns:

the score value.

startTime

public OffsetDateTime startTime()

Get the startTime property: The beginning time in UTC of a range that the recommendation refers to.

Returns:

the startTime value.

states

public List<String> states()

Get the states property: The list of states of this recommendation. If it's null then it should be considered "Active".

Returns:

the states value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RecommendationInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type.

Overrides:

RecommendationInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

RecommendationInner.validate()

Applies to