@@ -53,6 +53,18 @@ service RunService {
5353 };
5454 }
5555
56+ // Create adhoc run, this is used to create a run after the data has been ingested
57+ rpc CreateAdhocRun (CreateAdhocRunRequest ) returns (CreateAdhocRunResponse ) {
58+ option (google.api.http ) = {
59+ post : "/api/v2/runs:adhoc"
60+ body : "*"
61+ };
62+ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation ) = {
63+ summary : "CreateAdhocRun"
64+ description : "Create an adhoc run."
65+ };
66+ }
67+
5668 // Updates an existing run using using the list of fields specified in `update_mask`.
5769 rpc UpdateRun (UpdateRunRequest ) returns (UpdateRunResponse ) {
5870 option (google.api.http ) = {
@@ -118,6 +130,7 @@ message Run {
118130 repeated sift.metadata.v1.MetadataValue metadata = 15 [(google.api.field_behavior ) = REQUIRED ];
119131 repeated string asset_ids = 16 [(google.api.field_behavior ) = REQUIRED ];
120132 optional google.protobuf.Timestamp archived_date = 17 [(google.api.field_behavior ) = OPTIONAL ];
133+ bool is_adhoc = 18 [(google.api.field_behavior ) = REQUIRED ];
121134}
122135
123136// The request for a call to `RunService_GetRun` to retrieve run.
@@ -148,8 +161,8 @@ message ListRunsRequest {
148161 string page_token = 2 [(google.api.field_behavior ) = OPTIONAL ];
149162
150163 // A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string.
151- // Available fields to filter by are `run_id`, `organization_id`, `name`, `description`, `created_by_user_id`, `modified_by_user_id`,
152- // `created_date`, `modified_date`, `start_time`, `stop_time`, `client_key `, `is_pinned `, `asset_id `, `asset_name `, `archived_date`,
164+ // Available fields to filter by are `run_id` `organization_id`, `asset_id`, `asset_name`, `client_key `, `name`, `description`, `created_by_user_id`, `modified_by_user_id`,
165+ // `created_date`, `modified_date`, `start_time`, `stop_time`, `tag_id `, `asset_tag_id `, `duration `, `annotation_comments_count`, `annotation_state `, `archived_date`,
153166 // and `metadata`. Metadata can be used in filters by using `metadata.{metadata_key_name}` as the field name.
154167 // For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions).
155168 // For more information about the fields used for filtering, please refer to [this definition](/docs/api/grpc/protocol-buffers/runs#run). Optional.
@@ -203,11 +216,39 @@ message CreateRunRequest {
203216 repeated sift.metadata.v1.MetadataValue metadata = 9 [(google.api.field_behavior ) = OPTIONAL ];
204217}
205218
206- // The response of a call to `RunService_CreateRuns` containing the newly created run.
207219message CreateRunResponse {
208220 Run run = 1 [(google.api.field_behavior ) = REQUIRED ];
209221}
210222
223+ // The request for a call to `RunService_CreateAdhocRun` to create an adhoc run.
224+ message CreateAdhocRunRequest {
225+ // The name that will be assigned to the new run.
226+ string name = 1 [(google.api.field_behavior ) = REQUIRED ];
227+ // A description about the new run.
228+ string description = 2 [(google.api.field_behavior ) = REQUIRED ];
229+ // The time at which data ingestion began for this new run. It must be before the `stop_time`
230+ google.protobuf.Timestamp start_time = 3 [(google.api.field_behavior ) = REQUIRED ];
231+ // The time at which data ingestion concluded for this new run.
232+ google.protobuf.Timestamp stop_time = 4 [(google.api.field_behavior ) = REQUIRED ];
233+ // A list of asset IDs to associate with the new run.
234+ repeated string asset_ids = 5 [(google.api.field_behavior ) = REQUIRED ];
235+ // Tags to associate with the new run.
236+ repeated string tags = 6 [(google.api.field_behavior ) = OPTIONAL ];
237+ // The metadata values associated with this run.
238+ repeated sift.metadata.v1.MetadataValue metadata = 7 [(google.api.field_behavior ) = OPTIONAL ];
239+ // An arbitrary user-chosen key that uniquely identifies this run. Optional, though it is recommended to provide.
240+ optional string client_key = 8 [
241+ (google.api.field_behavior ) = OPTIONAL
242+ ];
243+ }
244+
245+
246+ // The response of a call to `RunService_CreateAdhocRun` containing the newly created adhoc run.
247+ message CreateAdhocRunResponse {
248+ Run run = 1 [(google.api.field_behavior ) = REQUIRED ];
249+ }
250+
251+
211252// The request for a call to `RunService_UpdateRun` to update an existing run.
212253message UpdateRunRequest {
213254 // The run to update. The run's `run_id` field is used to identify the run to update
0 commit comments