Skip to content

Commit a974b62

Browse files
feat: add way of defining an attribute from first class field (#82)
1 parent caef0e4 commit a974b62

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

attribute-service-api/src/main/proto/org/hypertrace/core/attribute/service/v1/attribute_metadata.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@ message AttributeDefinition {
144144
oneof value {
145145
Projection projection = 1;
146146
string source_path = 2;
147+
SourceField source_field = 3;
148+
}
149+
150+
enum SourceField {
151+
SOURCE_FIELD_UNSET = 0;
152+
SOURCE_FIELD_START_TIME = 1;
153+
SOURCE_FIELD_END_TIME = 2;
147154
}
148155
}
149156

0 commit comments

Comments
 (0)