public static final class RecommenderGrpc.RecommenderStub extends AbstractAsyncStub<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.
Inheritance
java.lang.Object >
io.grpc.stub.AbstractStub >
io.grpc.stub.AbstractAsyncStub >
RecommenderGrpc.RecommenderStub
Inherited Members
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withWaitForReady()
Methods
build(Channel channel, CallOptions callOptions)
protected RecommenderGrpc.RecommenderStub build(Channel channel, CallOptions callOptions)
Parameters
Name | Description |
channel | io.grpc.Channel
|
callOptions | io.grpc.CallOptions
|
Returns
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
getInsight(GetInsightRequest request, StreamObserver<Insight> responseObserver)
public void getInsight(GetInsightRequest request, StreamObserver<Insight> responseObserver)
Gets the requested insight. Requires the recommender.*.get IAM permission
for the specified insight type.
Parameters
getInsightTypeConfig(GetInsightTypeConfigRequest request, StreamObserver<InsightTypeConfig> responseObserver)
public void getInsightTypeConfig(GetInsightTypeConfigRequest request, StreamObserver<InsightTypeConfig> responseObserver)
Gets the requested InsightTypeConfig. There is only one instance of the
config for each InsightType.
Parameters
getRecommendation(GetRecommendationRequest request, StreamObserver<Recommendation> responseObserver)
public void getRecommendation(GetRecommendationRequest request, StreamObserver<Recommendation> responseObserver)
Gets the requested recommendation. Requires the recommender.*.get
IAM permission for the specified recommender.
Parameters
getRecommenderConfig(GetRecommenderConfigRequest request, StreamObserver<RecommenderConfig> responseObserver)
public void getRecommenderConfig(GetRecommenderConfigRequest request, StreamObserver<RecommenderConfig> responseObserver)
Gets the requested Recommender Config. There is only one instance of the
config for each Recommender.
Parameters
listInsights(ListInsightsRequest request, StreamObserver<ListInsightsResponse> responseObserver)
public void listInsights(ListInsightsRequest request, StreamObserver<ListInsightsResponse> responseObserver)
Lists insights for the specified Cloud Resource. Requires the
recommender.*.list IAM permission for the specified insight type.
Parameters
listRecommendations(ListRecommendationsRequest request, StreamObserver<ListRecommendationsResponse> responseObserver)
public void listRecommendations(ListRecommendationsRequest request, StreamObserver<ListRecommendationsResponse> responseObserver)
Lists recommendations for the specified Cloud Resource. Requires the
recommender.*.list IAM permission for the specified recommender.
Parameters
markInsightAccepted(MarkInsightAcceptedRequest request, StreamObserver<Insight> responseObserver)
public void markInsightAccepted(MarkInsightAcceptedRequest request, StreamObserver<Insight> responseObserver)
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.
Parameters
markRecommendationClaimed(MarkRecommendationClaimedRequest request, StreamObserver<Recommendation> responseObserver)
public void markRecommendationClaimed(MarkRecommendationClaimedRequest request, 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.
Parameters
markRecommendationFailed(MarkRecommendationFailedRequest request, StreamObserver<Recommendation> responseObserver)
public void markRecommendationFailed(MarkRecommendationFailedRequest request, 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.
Parameters
markRecommendationSucceeded(MarkRecommendationSucceededRequest request, StreamObserver<Recommendation> responseObserver)
public void markRecommendationSucceeded(MarkRecommendationSucceededRequest request, 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.
Parameters
updateInsightTypeConfig(UpdateInsightTypeConfigRequest request, StreamObserver<InsightTypeConfig> responseObserver)
public void updateInsightTypeConfig(UpdateInsightTypeConfigRequest request, StreamObserver<InsightTypeConfig> responseObserver)
Updates an InsightTypeConfig change. This will create a new revision of the
config.
Parameters
updateRecommenderConfig(UpdateRecommenderConfigRequest request, StreamObserver<RecommenderConfig> responseObserver)
public void updateRecommenderConfig(UpdateRecommenderConfigRequest request, StreamObserver<RecommenderConfig> responseObserver)
Updates a Recommender Config. This will create a new revision of the
config.
Parameters