Package com.google.cloud.recommender.v1
Class RecommenderGrpc.RecommenderBlockingStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<RecommenderGrpc.RecommenderBlockingStub>
-
- com.google.cloud.recommender.v1.RecommenderGrpc.RecommenderBlockingStub
-
- Enclosing class:
- RecommenderGrpc
public static final class RecommenderGrpc.RecommenderBlockingStub extends io.grpc.stub.AbstractBlockingStub<RecommenderGrpc.RecommenderBlockingStub>
A stub to allow clients to do synchronous rpc calls to service Recommender.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.
-
-
Method Summary
-
-
-
Method Detail
-
build
protected RecommenderGrpc.RecommenderBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<RecommenderGrpc.RecommenderBlockingStub>
-
listInsights
public ListInsightsResponse listInsights(ListInsightsRequest request)
Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type.
-
getInsight
public Insight getInsight(GetInsightRequest request)
Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type.
-
markInsightAccepted
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.
-
listRecommendations
public ListRecommendationsResponse listRecommendations(ListRecommendationsRequest request)
Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.
-
getRecommendation
public Recommendation getRecommendation(GetRecommendationRequest request)
Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.
-
markRecommendationDismissed
public Recommendation markRecommendationDismissed(MarkRecommendationDismissedRequest request)
Mark the Recommendation State as Dismissed. Users can use this method to indicate to the Recommender API that an ACTIVE recommendation has to be marked back as DISMISSED. MarkRecommendationDismissed can be applied to recommendations in ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
-
markRecommendationClaimed
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.
-
markRecommendationSucceeded
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.
-
markRecommendationFailed
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.
-
getRecommenderConfig
public RecommenderConfig getRecommenderConfig(GetRecommenderConfigRequest request)
Gets the requested Recommender Config. There is only one instance of the config for each Recommender.
-
updateRecommenderConfig
public RecommenderConfig updateRecommenderConfig(UpdateRecommenderConfigRequest request)
Updates a Recommender Config. This will create a new revision of the config.
-
getInsightTypeConfig
public InsightTypeConfig getInsightTypeConfig(GetInsightTypeConfigRequest request)
Gets the requested InsightTypeConfig. There is only one instance of the config for each InsightType.
-
updateInsightTypeConfig
public InsightTypeConfig updateInsightTypeConfig(UpdateInsightTypeConfigRequest request)
Updates an InsightTypeConfig change. This will create a new revision of the config.
-
-