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
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
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
10 changes: 10 additions & 0 deletions src/bitdrift_public/fbs/issue-reporting/v1/report.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ enum JavaScriptEngine : int8 {
Hermes = 2, // Hermes (Used by React Native on Android and iOS)
}

enum MemoryPressureLevel : int8 {
Unknown = 0,
Normal = 1,
Warning = 2,
Critical = 3,
}

struct Timestamp {
seconds:uint64;
nanos:uint32;
Expand Down Expand Up @@ -143,6 +150,9 @@ table AppMetrics {

// JavaScript engine used by the application (only relevant for React Native/JS apps)
javascript_engine:JavaScriptEngine;

// Memory pressure level at the time of the crash, as reported by the OS.
memory_pressure_level:MemoryPressureLevel;
}

table OSBuild {
Expand Down
Loading