blob: 138c022428047e767efbfd0a55fb6d93b496f1fb [file] [log] [blame]
// Copyright 2021 The LUCI Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package buildbucket.v2;
option go_package = "go.chromium.org/luci/buildbucket/proto;buildbucketpb";
import "go.chromium.org/luci/common/bq/pb/options.proto";
// A pRPC request log.
message PRPCRequestLog {
// An ID associated with this request log.
string id = 1;
// Any parent ID associated with this request log.
// Typically a parent will be the batch request containing this request.
string parent = 2;
// When the request being logged was received (microseconds since epoch).
int64 creation_time = 3 [(bqschema.options).bq_type = "TIMESTAMP"];
// Duration of the request in microseconds.
int64 duration = 4;
// Method called. e.g. "Builds.GetBuild".
string method = 5;
// Caller auth identity (e.g. "<kind>:<id>"). Only set when the caller is a
// robot or anonymous.
string user = 6;
}