49 lines
815 B
Protocol Buffer
49 lines
815 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package tsdb;
|
|
option go_package = ".;tsdb";
|
|
|
|
//========================================================================
|
|
//
|
|
// Metadata
|
|
//
|
|
//========================================================================
|
|
|
|
message Series {
|
|
string Key = 1;
|
|
repeated Tag Tags = 2;
|
|
}
|
|
|
|
message Tag {
|
|
string Key = 1;
|
|
string Value = 2;
|
|
}
|
|
|
|
message MeasurementFields {
|
|
bytes Name = 1;
|
|
repeated Field Fields = 2;
|
|
}
|
|
|
|
message Field {
|
|
bytes Name = 1;
|
|
int32 Type = 2;
|
|
}
|
|
|
|
message MeasurementFieldSet {
|
|
repeated MeasurementFields Measurements = 1;
|
|
}
|
|
|
|
enum ChangeType {
|
|
AddMeasurementField = 0;
|
|
DeleteMeasurement = 1;
|
|
}
|
|
|
|
message MeasurementFieldChange {
|
|
bytes Measurement = 1;
|
|
Field Field = 2;
|
|
ChangeType Change = 3;
|
|
}
|
|
|
|
message FieldChangeSet {
|
|
repeated MeasurementFieldChange Changes = 1;
|
|
} |