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 15syntax = "proto3"; 16 17package google.cloud.aiplatform.logging; 18 19import "google/rpc/status.proto"; 20 21option go_package = "cloud.google.com/go/aiplatform/logging/loggingpb;loggingpb"; 22option java_multiple_files = true; 23option java_outer_classname = "PredictionProto"; 24option java_package = "com.google.cloud.aiplatform.logging"; 25 26// The access log entry definition of online prediction. 27message OnlinePredictionLogEntry { 28 // The resource name of the endpoint as referred to in the original request. 29 // For example, projects/12323/locations/us-central1/endpoints/123. 30 string endpoint = 1; 31 32 // The ID of the deployed model used to serve this predict request. 33 string deployed_model_id = 2; 34 35 // The number of instances in the prediction request. 36 int64 instance_count = 3; 37 38 // The number of successfully predicted instances in the response. 39 // Populated when prediction succeeds. 40 int64 prediction_count = 4; 41 42 // The error code and message. 43 // Populated when prediction fails. 44 google.rpc.Status error = 5; 45} 46