Skip to content

Commit

Permalink
Merge pull request #4 from bufferapp/task/update-funnel-schemas
Browse files Browse the repository at this point in the history
Updated funnel schemas
  • Loading branch information
michael-erasmus committed Jul 7, 2017
2 parents a621f1d + 9513f3c commit 7a3daed
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 11 deletions.
17 changes: 6 additions & 11 deletions buda/entities/funnel.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,13 @@ syntax = "proto3";

package buda.entities;

import "buda/entities/uuid.proto";
import "google/protobuf/timestamp.proto";

message FunnelEvent {
string id = 1;
string user_id = 2;
message Funnel {
Uuid id = 1;
Uuid user_id = 2;
google.protobuf.Timestamp created_at = 3;
string funnel_id = 4;
string funnel_event_id = 5;
repeated FunnelTag tags = 6;
}

message FunnelTag {
string key = 1;
string value = 2;
string name = 4;
map<string, string> tags = 5;
}
18 changes: 18 additions & 0 deletions buda/entities/funnel_event.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
syntax = "proto3";

package buda.entities;

import "buda/entities/uuid.proto";
import "buda/entities/link.proto";
import "google/protobuf/timestamp.proto";

message FunnelEvent {
Uuid id = 1;
Uuid funnel_id = 2;
Uuid funnel_step_id = 3;
Uuid user_id = 4;
google.protobuf.Timestamp created_at = 5;
map<string, string> tags = 6;
bool funnel_end = 16;
repeated Link links = 17;
}
10 changes: 10 additions & 0 deletions buda/entities/link.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
syntax = "proto3";

package buda.entities;

import "buda/entities/uuid.proto";

message Link {
string target = 1;
Uuid target_id = 2;
}
7 changes: 7 additions & 0 deletions buda/entities/uuid.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
syntax = "proto3";

package buda.entities;

message Uuid {
string id = 1;
}
2 changes: 2 additions & 0 deletions buda/services/events_collector.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ syntax = "proto3";
package buda.services;

import "buda/entities/funnel.proto";
import "buda/entities/funnel_event.proto";

service EventsCollector {
rpc CollectFunnel (buda.entities.Funnel) returns (Response) {}
rpc CollectFunnelEvent (buda.entities.FunnelEvent) returns (Response) {}
}

Expand Down

0 comments on commit 7a3daed

Please sign in to comment.