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
6 changes: 4 additions & 2 deletions odpf/assets/v1beta2/asset.proto
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ message Asset {
// Event schemas is defined in the common event schema.
odpf.assets.v1beta2.Event event = 100;

// The timestamp when the object was created.
// The timestamp when the asset was created.
// This information is expected to be maintained by the system.
google.protobuf.Timestamp create_time = 101;

// The timestamp when the object was last modified.
// The timestamp when the asset was last modified.
// This information is expected to be maintained by the system.
google.protobuf.Timestamp update_time = 102;
}
6 changes: 6 additions & 0 deletions odpf/assets/v1beta2/bucket.proto
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ message Bucket {

// List of attributes the model has.
google.protobuf.Struct attributes = 10;

// The timestamp of the bucket's creation.
google.protobuf.Timestamp create_time = 101;

// The timestamp when the bucket was last modified.
google.protobuf.Timestamp update_time = 102;
}

message Blob {
Expand Down
6 changes: 6 additions & 0 deletions odpf/assets/v1beta2/dashboard.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ message Dashboard {

// List of attributes the model has.
google.protobuf.Struct attributes = 8;

// The timestamp of the dashboard's creation.
google.protobuf.Timestamp create_time = 101;

// The timestamp when the dashboard was last modified.
google.protobuf.Timestamp update_time = 102;
}

message Chart {
Expand Down
7 changes: 7 additions & 0 deletions odpf/assets/v1beta2/job.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ syntax = "proto3";
package odpf.assets.v1beta2;

import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";

option go_package = "github.com/odpf/proton/assets/v1beta2;assetsv1beta2";
option java_outer_classname = "JobProto";
Expand All @@ -12,4 +13,10 @@ option java_package = "io.odpf.assets";
message Job {
// List of attributes the model has.
google.protobuf.Struct attributes = 10;

// The timestamp of the job's creation.
google.protobuf.Timestamp create_time = 101;

// The timestamp when the job was last modified.
google.protobuf.Timestamp update_time = 102;
}
7 changes: 7 additions & 0 deletions odpf/assets/v1beta2/table.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ syntax = "proto3";
package odpf.assets.v1beta2;

import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";

option go_package = "github.com/odpf/proton/assets/v1beta2;assetsv1beta2";
option java_outer_classname = "TableProto";
Expand All @@ -27,6 +28,12 @@ message Table {

// List of attributes the model has.
google.protobuf.Struct attributes = 10;

// The timestamp of the table's creation.
google.protobuf.Timestamp create_time = 101;

// The timestamp when the table was last modified.
google.protobuf.Timestamp update_time = 102;
}

// TableProfile is the metrics about the table.
Expand Down
11 changes: 9 additions & 2 deletions odpf/assets/v1beta2/topic.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ syntax = "proto3";
package odpf.assets.v1beta2;

import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";

option go_package = "github.com/odpf/proton/assets/v1beta2;assetsv1beta2";
option java_outer_classname = "TopicProto";
Expand All @@ -15,17 +16,23 @@ message Topic {
// For an example check out topic profile schema.
TopicProfile profile = 1;

// The schama of the topic.
// The schema of the topic.
// For an example check out topic schema.
TopicSchema schema = 2;

// List of attributes the model has.
google.protobuf.Struct attributes = 10;

// The timestamp of the topic's creation.
google.protobuf.Timestamp create_time = 101;

// The timestamp when the topic was last modified.
google.protobuf.Timestamp update_time = 102;
}

// TopicProfile is the profile of the topic.
message TopicProfile {
// The thrroughput of the topic.
// The throughput of the topic.
// Example: `1m/minute`.
string throughput = 1;

Expand Down
11 changes: 9 additions & 2 deletions odpf/assets/v1beta2/user.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ syntax = "proto3";
package odpf.assets.v1beta2;

import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";

option go_package = "github.com/odpf/proton/assets/v1beta2;assetsv1beta2";
option java_outer_classname = "UserProto";
Expand All @@ -12,7 +13,7 @@ option java_package = "io.odpf.assets";
// It can be a user of the system, or a user of a device.
// User is a resource that represents a user.
message User {
// The emai address of the user.
// The email address of the user.
// Example: `[email protected]`
string email = 3;

Expand All @@ -36,7 +37,7 @@ message User {
// Example: `John M. Doe`
string display_name = 8;

// The job title of the user,
// The job title of the user.
// Example: `data engineer`
string title = 9;

Expand All @@ -58,6 +59,12 @@ message User {

// List of attributes the model has.
google.protobuf.Struct attributes = 30;

// The timestamp of the user's account creation.
google.protobuf.Timestamp create_time = 101;

// The timestamp when the user's account details were last modified.
google.protobuf.Timestamp update_time = 102;
}

// Membership is a relationship between a user and a group.
Expand Down