github.com/cloudwan/edgelq-sdk@v1.15.4/logging/proto/v1alpha2/log_custom.proto (about) 1 syntax = "proto3"; 2 3 package ntt.logging.v1alpha2; 4 5 import "edgelq-sdk/common/rpc/status.proto"; 6 import "edgelq-sdk/logging/proto/v1alpha2/common.proto"; 7 import "edgelq-sdk/logging/proto/v1alpha2/log.proto"; 8 9 option go_package = "github.com/cloudwan/edgelq-sdk/logging/client/v1alpha2/log;log_client"; 10 option java_multiple_files = false; 11 option java_outer_classname = "LogCustomProto"; 12 option java_package = "com.ntt.logging.pb.v1alpha2"; 13 14 // Request message for method 15 // [ListLogs][ntt.logging.v1alpha2.ListLogs] 16 message ListLogsRequest { 17 // Parent references of ntt.logging.v1alpha2.Log 18 repeated string parents = 1; 19 20 // Filter that specifies which logs should be returned 21 string filter = 2; 22 23 // The time interval for which results should be returned. Only logs 24 // that contain data points in the specified interval are included 25 // in the response. 26 TimeInterval interval = 3; 27 28 // Cap on a number of log entries to be included in a response. 29 // Number of logs in an actual response can be higher, since logs are 30 // read in bulk with second precision - exceed logs above the limit will share 31 // same timestamp as the logs below the limit. 32 // 33 // Results will be adjusted to the "end time" taken from interval field 34 // (adjusted also by page_token if provided). 35 int32 page_size = 5; 36 37 // Token which identifies next page with further results. Token should be 38 // taken from 39 // [ListLogsResponse.next_page_token][ntt.logging.v1alpha2.ListLogsResponse.next_page_token]. 40 string page_token = 6; 41 } 42 43 // Response message for method 44 // [ListLogs][ntt.logging.v1alpha2.ListLogs] 45 message ListLogsResponse { 46 // Logs that match the filter included in the request. 47 repeated Log logs = 1; 48 49 // If there are more results than have been returned, then this field is set 50 // to a non-empty value. To see the additional results, 51 // use that value as `pageToken` in the next call to this method. 52 string next_page_token = 2; 53 54 // Query execution errors that may have caused the logs data returned 55 // to be incomplete. 56 repeated ntt.rpc.Status execution_errors = 3; 57 58 // ErrorDetails is used when one of the queried regions fails to produce 59 // results. It is used in execution_errors field (see subfield 60 // ntt.rpc.Status.details). 61 message ErrorDetails { 62 // region id which failed to give results. 63 string region_id = 1; 64 } 65 } 66 67 // Request message for method 68 // [CreateLogs][ntt.logging.v1alpha2.CreateLogs] 69 message CreateLogsRequest { 70 // Parent reference of ntt.logging.v1alpha2.Log 71 string parent = 1; 72 73 // List of logs to create/append. If they have specified name 74 // field, it must match provided parent field. 75 repeated Log logs = 2; 76 } 77 78 // Response message for method 79 // [CreateLogs][ntt.logging.v1alpha2.CreateLogs] 80 message CreateLogsResponse { 81 // Log names indexed by Create position. All logs, except 82 // failed ones will be present. If all logs were written successfully, 83 // then map will have keys all from 0 to N-1. 84 map<uint32, string> log_names = 1; 85 86 // Logs that failed to be created 87 repeated CreateError failed_logs = 2; 88 89 // Describes the result of a failed request to write logs. 90 message CreateError { 91 // All logs that failed to be written. This field provides all of 92 // the context that would be needed to retry the operation. 93 repeated Log logs = 1; 94 95 // The status of the requested write operation. 96 ntt.rpc.Status status = 2; 97 } 98 }