go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/swarming/server/notifications/taskspb/notifications.proto (about)

     1  // Copyright 2024 The LUCI Authors. All rights reserved.
     2  // Use of this source code is governed under the Apache License, Version 2.0
     3  // that can be found in the LICENSE file.
     4  
     5  syntax = "proto3";
     6  
     7  package swarming.notifications.tasks;
     8  
     9  option go_package = "go.chromium.org/luci/swarming/server/notifications/taskspb;taskspb";
    10  
    11  import "google/protobuf/timestamp.proto";
    12  import "go.chromium.org/luci/swarming/proto/api_v2/swarming.proto";
    13  
    14  
    15  // A Cloud task for sending PubSub notification about the task completion.
    16  message PubSubNofityTask {
    17    // Swarming Task ID.
    18    string task_id = 1;
    19  
    20    // The pubsub topic that the notification needs to be sent.
    21    string topic = 2;
    22  
    23    // Auth Token.
    24    string auth_token = 3;
    25  
    26    // The user provided data which will be sent back to users.
    27    string userdata = 4;
    28  
    29    // TaskResultSummary tags.
    30    repeated string tags = 5;
    31  
    32    // TaskResultSummary state.
    33    swarming.v2.TaskState state = 6;
    34  
    35    // The point in time when this Cloud task was enqueued.
    36    google.protobuf.Timestamp start_time = 7;
    37  }
    38  
    39  // A Cloud task for sending updates to Buildbucket about the task status.
    40  message BuildbucketNofityTask {
    41    // Swarming Task ID.
    42    string task_id = 1;
    43  
    44    // TaskResultSummary state.
    45    swarming.v2.TaskState state = 2;
    46  
    47    // int timestamp in nano seconds for when the update was made.
    48    int64 update_id = 3;
    49  }