All Downloads are FREE. Search and download functionalities are using the official Maven repository.

e.cantor.cantor-grpc-protos.0.4.22.source-code.events.proto Maven / Gradle / Ivy

There is a newer version: 0.5.14
Show newest version
syntax = "proto3";

option java_multiple_files = true;
option java_package = "com.salesforce.cantor.grpc.events";
option java_outer_classname = "Events";
option objc_class_prefix = "EventsProtos";

package com.salesforce.cantor.grpc.events;

message VoidResponse {}

message NamespacesRequest {}

message NamespacesResponse {
    repeated string namespaces = 1;
}

message EventProto {
    uint64 timestamp_millis = 1;
    map metadata = 2;
    map dimensions = 3;
    bytes payload = 4;
}

// events.create()
message CreateRequest {
    string namespace = 1;
}

// events.drop()
message DropRequest {
    string namespace = 1;
}

// events.store()
message StoreRequest {
    string namespace = 1;
    repeated EventProto batch = 2;
}

// events.get()
message GetRequest {
    string namespace = 1;
    uint64 start_timestamp_millis = 2;
    uint64 end_timestamp_millis = 3;
    map metadata_query = 4;
    map dimensions_query = 5;
    bool include_payloads = 6;
    bool ascending = 7;
    int32 limit = 8;
}

message GetResponse {
    repeated EventProto results = 1;
}

// events.metadata()
message MetadataRequest {
    string namespace = 1;
    string metadata_key = 2;
    uint64 start_timestamp_millis = 3;
    uint64 end_timestamp_millis = 4;
    map metadata_query = 5;
    map dimensions_query = 6;
}

message MetadataResponse {
    repeated string values = 1;
}

// events.dimension()
message DimensionRequest {
    string namespace = 1;
    string dimension_key = 2;
    uint64 start_timestamp_millis = 3;
    uint64 end_timestamp_millis = 4;
    map metadata_query = 5;
    map dimensions_query = 6;
}

message DimensionResponse {
    repeated EventProto values = 1;
}

// events.expire()
message ExpireRequest {
    string namespace = 1;
    uint64 end_timestamp_millis = 2;
}

service EventsService {
    rpc namespaces (NamespacesRequest) returns (NamespacesResponse) {}
    rpc get (GetRequest) returns (GetResponse) {}
    rpc create (CreateRequest) returns (VoidResponse) {}
    rpc drop (DropRequest) returns (VoidResponse) {}
    rpc store (StoreRequest) returns (VoidResponse) {}
    rpc metadata (MetadataRequest) returns (MetadataResponse) {}
    rpc dimension (DimensionRequest) returns (DimensionResponse) {}
    rpc expire (ExpireRequest) returns (VoidResponse) {}
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy