prediction.proto 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Copyright 2020 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.aiplatform.logging;
  16. import "google/rpc/status.proto";
  17. option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/logging;logging";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "PredictionProto";
  20. option java_package = "com.google.cloud.aiplatform.logging";
  21. // The access log entry definition of online prediction.
  22. message OnlinePredictionLogEntry {
  23. // The resource name of the endpoint as referred to in the original request.
  24. // For example, projects/12323/locations/us-central1/endpoints/123.
  25. string endpoint = 1;
  26. // The ID of the deployed model used to serve this predict request.
  27. string deployed_model_id = 2;
  28. // The number of instances in the prediction request.
  29. int64 instance_count = 3;
  30. // The number of successfully predicted instances in the response.
  31. // Populated when prediction succeeds.
  32. int64 prediction_count = 4;
  33. // The error code and message.
  34. // Populated when prediction fails.
  35. google.rpc.Status error = 5;
  36. }