-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: Update protofetch.toml * fix: common was broken --------- Co-authored-by: Github Actions <github@coralogix.com>
- Loading branch information
Showing
19 changed files
with
1,757 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
136 changes: 136 additions & 0 deletions
136
proto/com/coralogix/dataprime/background_queries/v1/background_query.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
syntax = "proto3"; | ||
|
||
package com.coralogix.dataprime.background_queries.v1; | ||
|
||
import "com/coralogix/dataprime/v1/compile.proto"; | ||
import "com/coralogix/dataprime/v1/query.proto"; | ||
import "com/coralogix/dataprime/v1/warnings.proto"; | ||
|
||
import "google/protobuf/timestamp.proto"; | ||
import "google/protobuf/wrappers.proto"; | ||
|
||
message RunQueryRequest { | ||
google.protobuf.StringValue name = 1; | ||
optional google.protobuf.StringValue description = 2; | ||
com.coralogix.dataprime.v1.QuerySyntax syntax = 3; | ||
com.coralogix.dataprime.v1.QueryPayload query = 4; | ||
google.protobuf.StringValue raw_query = 5; | ||
google.protobuf.Timestamp from_date = 6; | ||
google.protobuf.Timestamp to_date = 7; | ||
repeated google.protobuf.StringValue application_filters = 8; | ||
repeated google.protobuf.StringValue severity_filters = 9; | ||
repeated google.protobuf.StringValue subsystem_filters = 10; | ||
optional google.protobuf.StringValue widget_id = 11; | ||
optional google.protobuf.StringValue request_params_hash = 12; | ||
optional OutputSchema tsv_output_schema = 13; | ||
// contextual `now` for the query, default: current time | ||
optional google.protobuf.Timestamp now_date = 14; | ||
} | ||
|
||
message BackgroundQueryResult { | ||
google.protobuf.StringValue result = 1; | ||
} | ||
|
||
message OutputSchema { | ||
// empty means default fields | ||
repeated OutputSchemaField fields = 1; | ||
} | ||
|
||
message OutputSchemaField { | ||
repeated google.protobuf.StringValue path = 1; | ||
} | ||
|
||
message RunQueryResponse { | ||
BackgroundQuery background_query = 1; | ||
} | ||
|
||
message ListQueriesRequest { | ||
reserved 4; // formerly request_params_hash | ||
int32 page = 1; | ||
int32 size = 2; | ||
google.protobuf.StringValue filter = 3; | ||
Ordering ordering = 5; | ||
reserved 6; | ||
|
||
enum Ordering { | ||
ORDERING_DESC_UNSPECIFIED = 0; | ||
ORDERING_ASC = 1; | ||
} | ||
} | ||
|
||
message ListQueriesResponse { | ||
reserved 3; // formerly request_params_hash | ||
repeated BackgroundQuery background_queries = 1; | ||
int32 total_count = 2; | ||
} | ||
|
||
message ListQueryNamesRequest { | ||
int32 limit = 1; | ||
optional google.protobuf.StringValue contains_filter = 2; | ||
} | ||
|
||
message ListQueryNamesResponse { | ||
repeated QueryName query_names = 1; | ||
} | ||
|
||
message QueryName { | ||
google.protobuf.StringValue query_name = 1; | ||
} | ||
|
||
message QueryResultRequest { | ||
google.protobuf.StringValue archive_query_id = 1; | ||
optional com.coralogix.dataprime.v1.QueryPayload query = 2; | ||
optional int32 page = 3; | ||
optional int32 size = 4; | ||
optional Format format = 5; | ||
|
||
enum Format { | ||
FORMAT_JSON_UNSPECIFIED = 0; | ||
FORMAT_CSV = 1; | ||
} | ||
} | ||
|
||
message QueryResultResponse { | ||
BackgroundQueryResult result = 1; | ||
} | ||
|
||
message GetQueryRequest { | ||
string id = 1; | ||
} | ||
|
||
message GetQueryResponse { | ||
optional BackgroundQuery background_query = 1; | ||
} | ||
|
||
message BackgroundQuery { | ||
enum Status { | ||
STATUS_PENDING_UNSPECIFIED = 0; | ||
STATUS_IN_PROGRESS = 1; | ||
STATUS_COMPLETED = 2; | ||
STATUS_FAILED = 3; | ||
} | ||
|
||
google.protobuf.StringValue id = 1; | ||
google.protobuf.StringValue name = 2; | ||
optional google.protobuf.StringValue description = 3; | ||
com.coralogix.dataprime.v1.QuerySyntax syntax = 4; | ||
google.protobuf.StringValue query = 5; | ||
google.protobuf.Timestamp from_date = 6; | ||
google.protobuf.Timestamp to_date = 7; | ||
repeated google.protobuf.StringValue application_filters = 8; | ||
repeated google.protobuf.StringValue severity_filters = 9; | ||
repeated google.protobuf.StringValue subsystem_filters = 10; | ||
Status status = 11; | ||
google.protobuf.StringValue created_by = 12; | ||
optional google.protobuf.Timestamp started_at = 13; | ||
optional google.protobuf.Timestamp completed_at = 14; | ||
optional google.protobuf.Timestamp expires_at = 15; | ||
optional google.protobuf.StringValue status_failed_description = 16; | ||
int64 rows_total_count = 17; | ||
optional google.protobuf.StringValue widget_id = 18; | ||
bool scan_limit_reached = 19; | ||
bool blocks_limit_reached = 20; | ||
com.coralogix.dataprime.v1.ArchiveWarning archive_warning = 21; | ||
optional OutputSchema tsv_output_schema = 22; | ||
bool shuffle_file_size_limit_reached = 23; | ||
} |
36 changes: 36 additions & 0 deletions
36
proto/com/coralogix/dataprime/background_queries/v1/background_query_service.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
syntax = "proto3"; | ||
|
||
package com.coralogix.dataprime.background_queries.v1; | ||
|
||
import "com/coralogix/dataprime/v1/audit_log.proto"; | ||
import "com/coralogix/dataprime/background_queries/v1/background_query.proto"; | ||
|
||
import "google/api/annotations.proto"; | ||
import "google/protobuf/descriptor.proto"; | ||
|
||
service BackgroundQueryService { | ||
rpc RunQuery(RunQueryRequest) returns (RunQueryResponse) { | ||
option (com.coralogix.dataprime.v1.audit_log_description).description = "Run background query"; | ||
option (google.api.http) = {post: "/api/v1/query/background/run"}; | ||
} | ||
|
||
rpc ListQueries(ListQueriesRequest) returns (ListQueriesResponse) { | ||
option (com.coralogix.dataprime.v1.audit_log_description).description = "List background queries"; | ||
option (google.api.http) = {get: "/api/v1/query/background/list"}; | ||
} | ||
|
||
rpc ListQueryNames(ListQueryNamesRequest) returns (ListQueryNamesResponse) { | ||
option (com.coralogix.dataprime.v1.audit_log_description).description = "List background query names"; | ||
option (google.api.http) = {get: "/api/v1/query/background/list/names"}; | ||
} | ||
|
||
rpc GetQuery(GetQueryRequest) returns (GetQueryResponse) { | ||
option (com.coralogix.dataprime.v1.audit_log_description).description = "Get query by id"; | ||
option (google.api.http) = {get: "/api/v1/query/background"}; | ||
} | ||
|
||
rpc QueryResult(QueryResultRequest) returns (stream QueryResultResponse) { | ||
option (com.coralogix.dataprime.v1.audit_log_description).description = "Query result"; | ||
option (google.api.http) = {get: "/api/v1/query/background/result"}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
syntax = "proto3"; | ||
|
||
package grpc.gateway.protoc_gen_openapiv2.options; | ||
|
||
import "google/protobuf/descriptor.proto"; | ||
import "protoc-gen-openapiv2/options/openapiv2.proto"; | ||
|
||
option go_package = "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"; | ||
|
||
extend google.protobuf.FileOptions { | ||
// ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project. | ||
// | ||
// All IDs are the same, as assigned. It is okay that they are the same, as they extend | ||
// different descriptor messages. | ||
Swagger openapiv2_swagger = 1042; | ||
} | ||
extend google.protobuf.MethodOptions { | ||
// ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project. | ||
// | ||
// All IDs are the same, as assigned. It is okay that they are the same, as they extend | ||
// different descriptor messages. | ||
Operation openapiv2_operation = 1042; | ||
} | ||
extend google.protobuf.MessageOptions { | ||
// ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project. | ||
// | ||
// All IDs are the same, as assigned. It is okay that they are the same, as they extend | ||
// different descriptor messages. | ||
Schema openapiv2_schema = 1042; | ||
} | ||
extend google.protobuf.ServiceOptions { | ||
// ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project. | ||
// | ||
// All IDs are the same, as assigned. It is okay that they are the same, as they extend | ||
// different descriptor messages. | ||
Tag openapiv2_tag = 1042; | ||
} | ||
extend google.protobuf.FieldOptions { | ||
// ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project. | ||
// | ||
// All IDs are the same, as assigned. It is okay that they are the same, as they extend | ||
// different descriptor messages. | ||
JSONSchema openapiv2_field = 1042; | ||
} |
Oops, something went wrong.