Class RecommenderGrpc.RecommenderBlockingStub (2.4.1)

public static final class RecommenderGrpc.RecommenderBlockingStub extends AbstractBlockingStub<RecommenderGrpc.RecommenderBlockingStub>

Provides insights and recommendations for cloud customers for various categories like performance optimization, cost savings, reliability, feature discovery, etc. Insights and recommendations are generated automatically based on analysis of user resources, configuration and monitoring metrics.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > RecommenderGrpc.RecommenderBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

protected RecommenderGrpc.RecommenderBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
RecommenderGrpc.RecommenderBlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

getInsight(GetInsightRequest request)

public Insight getInsight(GetInsightRequest request)

Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type.

Parameter
NameDescription
requestGetInsightRequest
Returns
TypeDescription
Insight

getRecommendation(GetRecommendationRequest request)

public Recommendation getRecommendation(GetRecommendationRequest request)

Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.

Parameter
NameDescription
requestGetRecommendationRequest
Returns
TypeDescription
Recommendation

listInsights(ListInsightsRequest request)

public ListInsightsResponse listInsights(ListInsightsRequest request)

Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type.

Parameter
NameDescription
requestListInsightsRequest
Returns
TypeDescription
ListInsightsResponse

listRecommendations(ListRecommendationsRequest request)

public ListRecommendationsResponse listRecommendations(ListRecommendationsRequest request)

Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.

Parameter
NameDescription
requestListRecommendationsRequest
Returns
TypeDescription
ListRecommendationsResponse

markInsightAccepted(MarkInsightAcceptedRequest request)

public Insight markInsightAccepted(MarkInsightAcceptedRequest request)

Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.

Parameter
NameDescription
requestMarkInsightAcceptedRequest
Returns
TypeDescription
Insight

markRecommendationClaimed(MarkRecommendationClaimedRequest request)

public Recommendation markRecommendationClaimed(MarkRecommendationClaimedRequest request)

Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED, SUCCEEDED, FAILED, or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.

Parameter
NameDescription
requestMarkRecommendationClaimedRequest
Returns
TypeDescription
Recommendation

markRecommendationFailed(MarkRecommendationFailedRequest request)

public Recommendation markRecommendationFailed(MarkRecommendationFailedRequest request)

Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.

Parameter
NameDescription
requestMarkRecommendationFailedRequest
Returns
TypeDescription
Recommendation

markRecommendationSucceeded(MarkRecommendationSucceededRequest request)

public Recommendation markRecommendationSucceeded(MarkRecommendationSucceededRequest request)

Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.

Parameter
NameDescription
requestMarkRecommendationSucceededRequest
Returns
TypeDescription
Recommendation