Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/bitdrift/public/unary/dashboards/v1/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ message ChartData {

// Contains an error message when chart data could not be retrieved.
string error = 6;

// Set to true if the chart is not found.
bool chart_not_found = 12 [(validate.rules).bool = {const: true}];
}
}

Expand Down
6 changes: 6 additions & 0 deletions src/bitdrift/public/unary/issues/v1/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,10 @@ service IssueService {

// Updates the assignees for an issue group.
rpc UpdateIssueGroupAssignees(.bitdrift.public.unary.issues.v1.UpdateIssueGroupAssigneesRequest) returns (.bitdrift.public.unary.issues.v1.UpdateIssueGroupAssigneesResponse);

// Updates ancillary attributes for an issue group, such as custom tags or metadata.
rpc UpdateIssueGroupAttributes(.bitdrift.public.unary.issues.v1.UpdateIssueGroupAttributesRequest) returns (.bitdrift.public.unary.issues.v1.UpdateIssueGroupAttributesResponse);

// Retrieves ancillary attributes for an issue group, such as custom tags or metadata.
rpc GetIssueGroupAttributes(.bitdrift.public.unary.issues.v1.GetIssueGroupAttributesRequest) returns (.bitdrift.public.unary.issues.v1.GetIssueGroupAttributesResponse);
}
9 changes: 9 additions & 0 deletions src/bitdrift/public/unary/issues/v1/crash.proto
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ message Report {
}

message AppMetrics {
enum MemoryPressureLevel {
MEMORY_PRESSURE_UNKNOWN = 0;
MEMORY_PRESSURE_NORMAL = 1;
MEMORY_PRESSURE_WARNING = 2;
MEMORY_PRESSURE_CRITICAL = 3;
}

string app_id = 1 [(validate.rules).string = {min_len: 1}];

string version = 2 [(validate.rules).string = {min_len: 1}];
Expand All @@ -105,6 +112,8 @@ message Report {

int64 version_code = 4;
}

optional .bitdrift.public.unary.issues.v1.Report.AppMetrics.MemoryPressureLevel memory_pressure_level = 5 [(validate.rules).enum = {defined_only: true}];
}

message DeviceMetrics {
Expand Down
60 changes: 60 additions & 0 deletions src/bitdrift/public/unary/issues/v1/issues.proto
Original file line number Diff line number Diff line change
Expand Up @@ -530,3 +530,63 @@ message ListPossibleAssigneesResponse {
// Total number of possible assignees matching the filter criteria.
uint32 total = 2;
}

message UpdateIssueGroupAttributesRequest {
message UpdateAttributeOperation {
enum OperationType {
OPERATION_TYPE_UNSPECIFIED = 0;
UPSERT = 1;
REMOVE = 2;
}

// The type of update operation to perform.
.bitdrift.public.unary.issues.v1.UpdateIssueGroupAttributesRequest.UpdateAttributeOperation.OperationType operation_type = 1 [(validate.rules).enum = {
defined_only: true
not_in: [0]
}];

// The attribute key to update. For example, "priority" or "customer_impact".
string key = 2 [(validate.rules).string = {
min_len: 1
max_len: 100
}];

// The new value for the attribute. This is required for the UPSERT operation, and should be
// left empty for REMOVE operations.
string value = 3 [(validate.rules).string = {max_len: 1024}];
}

// The identifier for the issue group.
string id = 1 [(validate.rules).string = {
min_len: 1
max_len: 100
}];

// The list of attribute update operations to perform on the issue group. The operations will be
// performed in the order they are provided in the list. For example, if the list contains an
// UPSERT operation for the "priority" attribute followed by a REMOVE operation for the "priority"
// attribute, the final result will be that the "priority" attribute is removed from the issue
// group.
repeated .bitdrift.public.unary.issues.v1.UpdateIssueGroupAttributesRequest.UpdateAttributeOperation operations = 2 [(validate.rules).repeated = {max_items: 100}];
}

message UpdateIssueGroupAttributesResponse {}

message GetIssueGroupAttributesRequest {
// The unique identifier for the issue group.
string id = 1 [(validate.rules).string = {
min_len: 1
max_len: 100
}];
}

message GetIssueGroupAttributesResponse {
message Attribute {
string key = 1 [(validate.rules).string = {min_len: 1}];

string value = 2 [(validate.rules).string = {min_len: 1}];
}

// The list of attributes for the issue group.
repeated .bitdrift.public.unary.issues.v1.GetIssueGroupAttributesResponse.Attribute attributes = 1;
}
9 changes: 9 additions & 0 deletions src/bitdrift/public/webhook/v1/notification.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ message WebhookNotification {
// A workflow session capture notification.
.bitdrift.public.webhook.v1.SessionCaptureNotification session_capture = 3;

// An entity recording request completed.
.bitdrift.public.webhook.v1.EntityRecordingCompletedNotification entity_recording_completed = 8;

// A workflow alert fired.
.bitdrift.public.webhook.v1.AlertNotification alert = 4;

Expand Down Expand Up @@ -60,6 +63,12 @@ message SessionCaptureNotification {
string rule_title = 7;
}

// Describes a webhook notification for a completed entity recording request.
message EntityRecordingCompletedNotification {
// Entity identifier for the completed recording.
string entity_id = 1;
}

// Describes a webhook notification for a workflow alert.
message AlertNotification {
// Alert name.
Expand Down
Loading