public static final class RecommenderGrpc.RecommenderStub extends io.grpc.stub.AbstractStub<RecommenderGrpc.RecommenderStub>
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.
| Modifier and Type | Method and Description |
|---|---|
protected RecommenderGrpc.RecommenderStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
void |
getRecommendation(GetRecommendationRequest request,
io.grpc.stub.StreamObserver<Recommendation> responseObserver)
Gets the requested recommendation.
|
void |
listRecommendations(ListRecommendationsRequest request,
io.grpc.stub.StreamObserver<ListRecommendationsResponse> responseObserver)
Lists recommendations for a Cloud project.
|
void |
markRecommendationClaimed(MarkRecommendationClaimedRequest request,
io.grpc.stub.StreamObserver<Recommendation> responseObserver)
Marks the Recommendation State as Claimed.
|
void |
markRecommendationFailed(MarkRecommendationFailedRequest request,
io.grpc.stub.StreamObserver<Recommendation> responseObserver)
Marks the Recommendation State as Failed.
|
void |
markRecommendationSucceeded(MarkRecommendationSucceededRequest request,
io.grpc.stub.StreamObserver<Recommendation> responseObserver)
Marks the Recommendation State as Succeeded.
|
getCallOptions, getChannel, newStub, newStub, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReadyprotected RecommenderGrpc.RecommenderStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<RecommenderGrpc.RecommenderStub>public void listRecommendations(ListRecommendationsRequest request, io.grpc.stub.StreamObserver<ListRecommendationsResponse> responseObserver)
Lists recommendations for a Cloud project. Requires the recommender.*.list IAM permission for the specified recommender.
public void getRecommendation(GetRecommendationRequest request, io.grpc.stub.StreamObserver<Recommendation> responseObserver)
Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.
public void markRecommendationClaimed(MarkRecommendationClaimedRequest request, io.grpc.stub.StreamObserver<Recommendation> responseObserver)
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 or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
public void markRecommendationSucceeded(MarkRecommendationSucceededRequest request, io.grpc.stub.StreamObserver<Recommendation> responseObserver)
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.
public void markRecommendationFailed(MarkRecommendationFailedRequest request, io.grpc.stub.StreamObserver<Recommendation> responseObserver)
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.
Copyright © 2020 Google LLC. All rights reserved.