Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterExplorerServiceServer(s grpc.ServiceRegistrar, srv ExplorerServiceServer)
- type DatasourceType
- func (DatasourceType) Descriptor() protoreflect.EnumDescriptor
- func (x DatasourceType) Enum() *DatasourceType
- func (DatasourceType) EnumDescriptor() ([]byte, []int)deprecated
- func (x DatasourceType) Number() protoreflect.EnumNumber
- func (x DatasourceType) String() string
- func (DatasourceType) Type() protoreflect.EnumType
- type ExplorerServiceClient
- type ExplorerServiceServer
- type ExportFormat
- func (ExportFormat) Descriptor() protoreflect.EnumDescriptor
- func (x ExportFormat) Enum() *ExportFormat
- func (ExportFormat) EnumDescriptor() ([]byte, []int)deprecated
- func (x ExportFormat) Number() protoreflect.EnumNumber
- func (x ExportFormat) String() string
- func (ExportFormat) Type() protoreflect.EnumType
- type GetWeeksOfDataRequest
- func (*GetWeeksOfDataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetWeeksOfDataRequest) GetOrgId() string
- func (*GetWeeksOfDataRequest) ProtoMessage()
- func (x *GetWeeksOfDataRequest) ProtoReflect() protoreflect.Message
- func (x *GetWeeksOfDataRequest) Reset()
- func (x *GetWeeksOfDataRequest) String() string
- type GetWeeksOfDataResponse
- func (*GetWeeksOfDataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetWeeksOfDataResponse) GetAccessStartDate() *timestamppb.Timestamp
- func (x *GetWeeksOfDataResponse) GetWeeksOfData() int32
- func (*GetWeeksOfDataResponse) ProtoMessage()
- func (x *GetWeeksOfDataResponse) ProtoReflect() protoreflect.Message
- func (x *GetWeeksOfDataResponse) Reset()
- func (x *GetWeeksOfDataResponse) String() string
- type ListDatasourceSchemasRequest
- func (*ListDatasourceSchemasRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListDatasourceSchemasRequest) GetDatasourceNames() []string
- func (x *ListDatasourceSchemasRequest) GetDatasourceType() DatasourceType
- func (*ListDatasourceSchemasRequest) ProtoMessage()
- func (x *ListDatasourceSchemasRequest) ProtoReflect() protoreflect.Message
- func (x *ListDatasourceSchemasRequest) Reset()
- func (x *ListDatasourceSchemasRequest) String() string
- type ListDatasourceSchemasResponse
- func (*ListDatasourceSchemasResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListDatasourceSchemasResponse) GetSchemas() []*Schema
- func (*ListDatasourceSchemasResponse) ProtoMessage()
- func (x *ListDatasourceSchemasResponse) ProtoReflect() protoreflect.Message
- func (x *ListDatasourceSchemasResponse) Reset()
- func (x *ListDatasourceSchemasResponse) String() string
- type Parameters
- type Parameters_Parameter
- func (*Parameters_Parameter) Descriptor() ([]byte, []int)deprecated
- func (x *Parameters_Parameter) GetDataType() string
- func (x *Parameters_Parameter) GetValue() string
- func (*Parameters_Parameter) ProtoMessage()
- func (x *Parameters_Parameter) ProtoReflect() protoreflect.Message
- func (x *Parameters_Parameter) Reset()
- func (x *Parameters_Parameter) String() string
- type QueryExplainRequest
- func (*QueryExplainRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryExplainRequest) GetQueryRequest() *QueryRequest
- func (*QueryExplainRequest) ProtoMessage()
- func (x *QueryExplainRequest) ProtoReflect() protoreflect.Message
- func (x *QueryExplainRequest) Reset()
- func (x *QueryExplainRequest) String() string
- type QueryExplainResponse
- func (*QueryExplainResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryExplainResponse) GetExplain() string
- func (x *QueryExplainResponse) GetPrql() string
- func (x *QueryExplainResponse) GetResultSizeBytes() int64
- func (x *QueryExplainResponse) GetResultUrl() string
- func (x *QueryExplainResponse) GetSql() string
- func (*QueryExplainResponse) ProtoMessage()
- func (x *QueryExplainResponse) ProtoReflect() protoreflect.Message
- func (x *QueryExplainResponse) Reset()
- func (x *QueryExplainResponse) String() string
- type QueryRequest
- func (*QueryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRequest) GetComment() string
- func (x *QueryRequest) GetDatasourceName() string
- func (x *QueryRequest) GetDatasourceType() DatasourceType
- func (x *QueryRequest) GetEndTime() *timestamppb.Timestamp
- func (x *QueryRequest) GetFormat() ExportFormat
- func (x *QueryRequest) GetOrgIds() []string
- func (x *QueryRequest) GetPipeline() string
- func (x *QueryRequest) GetPipelineParameters() *Parameters
- func (x *QueryRequest) GetPrql() string
- func (m *QueryRequest) GetQuery() isQueryRequest_Query
- func (x *QueryRequest) GetStartTime() *timestamppb.Timestamp
- func (x *QueryRequest) GetTimezone() string
- func (x *QueryRequest) GetUiTraceId() string
- func (*QueryRequest) ProtoMessage()
- func (x *QueryRequest) ProtoReflect() protoreflect.Message
- func (x *QueryRequest) Reset()
- func (x *QueryRequest) String() string
- type QueryRequest_Pipeline
- type QueryRequest_Prql
- type QueryResponse
- func (*QueryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryResponse) GetResultSizeBytes() int64
- func (x *QueryResponse) GetResultUrl() string
- func (*QueryResponse) ProtoMessage()
- func (x *QueryResponse) ProtoReflect() protoreflect.Message
- func (x *QueryResponse) Reset()
- func (x *QueryResponse) String() string
- type Schema
- func (*Schema) Descriptor() ([]byte, []int)deprecated
- func (x *Schema) GetCategory() string
- func (x *Schema) GetDatasourceType() DatasourceType
- func (x *Schema) GetFields() []*SchemaField
- func (x *Schema) GetName() string
- func (x *Schema) GetSubCategory() string
- func (x *Schema) GetTableDescription() string
- func (*Schema) ProtoMessage()
- func (x *Schema) ProtoReflect() protoreflect.Message
- func (x *Schema) Reset()
- func (x *Schema) String() string
- type SchemaField
- func (*SchemaField) Descriptor() ([]byte, []int)deprecated
- func (x *SchemaField) GetColumnDescription() string
- func (x *SchemaField) GetColumnType() SchemaType
- func (x *SchemaField) GetIsDefaultTimeFilter() bool
- func (x *SchemaField) GetIsLowCardinality() bool
- func (x *SchemaField) GetIsPrimaryKey() bool
- func (x *SchemaField) GetIsTimeFilter() bool
- func (x *SchemaField) GetName() string
- func (*SchemaField) ProtoMessage()
- func (x *SchemaField) ProtoReflect() protoreflect.Message
- func (x *SchemaField) Reset()
- func (x *SchemaField) String() string
- type SchemaType
- type SupportQueryRequest
- func (*SupportQueryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SupportQueryRequest) GetDebug() bool
- func (x *SupportQueryRequest) GetQueryRequest() *QueryRequest
- func (*SupportQueryRequest) ProtoMessage()
- func (x *SupportQueryRequest) ProtoReflect() protoreflect.Message
- func (x *SupportQueryRequest) Reset()
- func (x *SupportQueryRequest) String() string
- type SupportQueryResponse
- func (*SupportQueryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SupportQueryResponse) GetExplain() string
- func (x *SupportQueryResponse) GetPrql() string
- func (x *SupportQueryResponse) GetResultSizeBytes() int64
- func (x *SupportQueryResponse) GetResultUrl() string
- func (x *SupportQueryResponse) GetSql() string
- func (*SupportQueryResponse) ProtoMessage()
- func (x *SupportQueryResponse) ProtoReflect() protoreflect.Message
- func (x *SupportQueryResponse) Reset()
- func (x *SupportQueryResponse) String() string
- type UnimplementedExplorerServiceServer
- func (UnimplementedExplorerServiceServer) GetQueryExplain(context.Context, *QueryExplainRequest) (*QueryExplainResponse, error)
- func (UnimplementedExplorerServiceServer) GetSupportQuery(context.Context, *SupportQueryRequest) (*SupportQueryResponse, error)
- func (UnimplementedExplorerServiceServer) GetWeeksOfData(context.Context, *GetWeeksOfDataRequest) (*GetWeeksOfDataResponse, error)
- func (UnimplementedExplorerServiceServer) ListDatasourceSchemas(context.Context, *ListDatasourceSchemasRequest) (*ListDatasourceSchemasResponse, error)
- func (UnimplementedExplorerServiceServer) Query(context.Context, *QueryRequest) (*QueryResponse, error)
- type UnsafeExplorerServiceServer
Constants ¶
const ( ExplorerService_ListDatasourceSchemas_FullMethodName = "/api.v1alpha1.explorer.ExplorerService/ListDatasourceSchemas" ExplorerService_Query_FullMethodName = "/api.v1alpha1.explorer.ExplorerService/Query" ExplorerService_GetSupportQuery_FullMethodName = "/api.v1alpha1.explorer.ExplorerService/GetSupportQuery" ExplorerService_GetQueryExplain_FullMethodName = "/api.v1alpha1.explorer.ExplorerService/GetQueryExplain" ExplorerService_GetWeeksOfData_FullMethodName = "/api.v1alpha1.explorer.ExplorerService/GetWeeksOfData" )
Variables ¶
var ( ExportFormat_name = map[int32]string{ 0: "REPORT_FORMAT_UNSPECIFIED", 1: "REPORT_FORMAT_CSV", 2: "REPORT_FORMAT_PARQUET", } ExportFormat_value = map[string]int32{ "REPORT_FORMAT_UNSPECIFIED": 0, "REPORT_FORMAT_CSV": 1, "REPORT_FORMAT_PARQUET": 2, } )
Enum value maps for ExportFormat.
var ( SchemaType_name = map[int32]string{ 0: "SCHEMA_TYPE_UNSPECIFIED", 2: "SCHEMA_TYPE_INT", 3: "SCHEMA_TYPE_FLOAT", 5: "SCHEMA_TYPE_STRING", 6: "SCHEMA_TYPE_BOOL", 7: "SCHEMA_TYPE_TIMESTAMP", 8: "SCHEMA_TYPE_INT_ARRAY", 9: "SCHEMA_TYPE_FLOAT_ARRAY", 10: "SCHEMA_TYPE_STRING_ARRAY", 11: "SCHEMA_TYPE_BOOL_ARRAY", 12: "SCHEMA_TYPE_MAP", } SchemaType_value = map[string]int32{ "SCHEMA_TYPE_UNSPECIFIED": 0, "SCHEMA_TYPE_INT": 2, "SCHEMA_TYPE_FLOAT": 3, "SCHEMA_TYPE_STRING": 5, "SCHEMA_TYPE_BOOL": 6, "SCHEMA_TYPE_TIMESTAMP": 7, "SCHEMA_TYPE_INT_ARRAY": 8, "SCHEMA_TYPE_FLOAT_ARRAY": 9, "SCHEMA_TYPE_STRING_ARRAY": 10, "SCHEMA_TYPE_BOOL_ARRAY": 11, "SCHEMA_TYPE_MAP": 12, } )
Enum value maps for SchemaType.
var ( DatasourceType_name = map[int32]string{ 0: "DATASOURCE_TYPE_UNSPECIFIED", 1: "DATASOURCE_TYPE_VFS", 2: "DATASOURCE_TYPE_CLICKHOUSE", } DatasourceType_value = map[string]int32{ "DATASOURCE_TYPE_UNSPECIFIED": 0, "DATASOURCE_TYPE_VFS": 1, "DATASOURCE_TYPE_CLICKHOUSE": 2, } )
Enum value maps for DatasourceType.
var ExplorerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.v1alpha1.explorer.ExplorerService", HandlerType: (*ExplorerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListDatasourceSchemas", Handler: _ExplorerService_ListDatasourceSchemas_Handler, }, { MethodName: "Query", Handler: _ExplorerService_Query_Handler, }, { MethodName: "GetSupportQuery", Handler: _ExplorerService_GetSupportQuery_Handler, }, { MethodName: "GetQueryExplain", Handler: _ExplorerService_GetQueryExplain_Handler, }, { MethodName: "GetWeeksOfData", Handler: _ExplorerService_GetWeeksOfData_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1alpha1/explorer/service.proto", }
ExplorerService_ServiceDesc is the grpc.ServiceDesc for ExplorerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_v1alpha1_explorer_entities_proto protoreflect.FileDescriptor
var File_api_v1alpha1_explorer_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterExplorerServiceServer ¶
func RegisterExplorerServiceServer(s grpc.ServiceRegistrar, srv ExplorerServiceServer)
Types ¶
type DatasourceType ¶
type DatasourceType int32
DatasourceType is an enum for the type of a datasource.
const ( DatasourceType_DATASOURCE_TYPE_UNSPECIFIED DatasourceType = 0 DatasourceType_DATASOURCE_TYPE_VFS DatasourceType = 1 DatasourceType_DATASOURCE_TYPE_CLICKHOUSE DatasourceType = 2 )
func (DatasourceType) Descriptor ¶
func (DatasourceType) Descriptor() protoreflect.EnumDescriptor
func (DatasourceType) Enum ¶
func (x DatasourceType) Enum() *DatasourceType
func (DatasourceType) EnumDescriptor
deprecated
func (DatasourceType) EnumDescriptor() ([]byte, []int)
Deprecated: Use DatasourceType.Descriptor instead.
func (DatasourceType) Number ¶
func (x DatasourceType) Number() protoreflect.EnumNumber
func (DatasourceType) String ¶
func (x DatasourceType) String() string
func (DatasourceType) Type ¶
func (DatasourceType) Type() protoreflect.EnumType
type ExplorerServiceClient ¶
type ExplorerServiceClient interface { // ListDatasourceSchemas lists all accessible datasources and their schemas. ListDatasourceSchemas(ctx context.Context, in *ListDatasourceSchemasRequest, opts ...grpc.CallOption) (*ListDatasourceSchemasResponse, error) // Query queries a datasource. Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error) GetSupportQuery(ctx context.Context, in *SupportQueryRequest, opts ...grpc.CallOption) (*SupportQueryResponse, error) GetQueryExplain(ctx context.Context, in *QueryExplainRequest, opts ...grpc.CallOption) (*QueryExplainResponse, error) // GetWeeksOfData returns the number of weeks of data an org is limited to and the cutoff date. GetWeeksOfData(ctx context.Context, in *GetWeeksOfDataRequest, opts ...grpc.CallOption) (*GetWeeksOfDataResponse, error) }
ExplorerServiceClient is the client API for ExplorerService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
ExplorerService is the service for the explorer API.
func NewExplorerServiceClient ¶
func NewExplorerServiceClient(cc grpc.ClientConnInterface) ExplorerServiceClient
type ExplorerServiceServer ¶
type ExplorerServiceServer interface { // ListDatasourceSchemas lists all accessible datasources and their schemas. ListDatasourceSchemas(context.Context, *ListDatasourceSchemasRequest) (*ListDatasourceSchemasResponse, error) // Query queries a datasource. Query(context.Context, *QueryRequest) (*QueryResponse, error) GetSupportQuery(context.Context, *SupportQueryRequest) (*SupportQueryResponse, error) GetQueryExplain(context.Context, *QueryExplainRequest) (*QueryExplainResponse, error) // GetWeeksOfData returns the number of weeks of data an org is limited to and the cutoff date. GetWeeksOfData(context.Context, *GetWeeksOfDataRequest) (*GetWeeksOfDataResponse, error) // contains filtered or unexported methods }
ExplorerServiceServer is the server API for ExplorerService service. All implementations must embed UnimplementedExplorerServiceServer for forward compatibility.
ExplorerService is the service for the explorer API.
type ExportFormat ¶ added in v1.8.13
type ExportFormat int32
ExportFormat is an enum for the format of a report.
const ( ExportFormat_REPORT_FORMAT_UNSPECIFIED ExportFormat = 0 ExportFormat_REPORT_FORMAT_CSV ExportFormat = 1 ExportFormat_REPORT_FORMAT_PARQUET ExportFormat = 2 )
func (ExportFormat) Descriptor ¶ added in v1.8.13
func (ExportFormat) Descriptor() protoreflect.EnumDescriptor
func (ExportFormat) Enum ¶ added in v1.8.13
func (x ExportFormat) Enum() *ExportFormat
func (ExportFormat) EnumDescriptor
deprecated
added in
v1.8.13
func (ExportFormat) EnumDescriptor() ([]byte, []int)
Deprecated: Use ExportFormat.Descriptor instead.
func (ExportFormat) Number ¶ added in v1.8.13
func (x ExportFormat) Number() protoreflect.EnumNumber
func (ExportFormat) String ¶ added in v1.8.13
func (x ExportFormat) String() string
func (ExportFormat) Type ¶ added in v1.8.13
func (ExportFormat) Type() protoreflect.EnumType
type GetWeeksOfDataRequest ¶ added in v1.9.6
type GetWeeksOfDataRequest struct { // org_id to retrieve value for OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` // contains filtered or unexported fields }
GetWeeksOfDataRequest is the request to get the number of weeks of data.
func (*GetWeeksOfDataRequest) Descriptor
deprecated
added in
v1.9.6
func (*GetWeeksOfDataRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetWeeksOfDataRequest.ProtoReflect.Descriptor instead.
func (*GetWeeksOfDataRequest) GetOrgId ¶ added in v1.9.6
func (x *GetWeeksOfDataRequest) GetOrgId() string
func (*GetWeeksOfDataRequest) ProtoMessage ¶ added in v1.9.6
func (*GetWeeksOfDataRequest) ProtoMessage()
func (*GetWeeksOfDataRequest) ProtoReflect ¶ added in v1.9.6
func (x *GetWeeksOfDataRequest) ProtoReflect() protoreflect.Message
func (*GetWeeksOfDataRequest) Reset ¶ added in v1.9.6
func (x *GetWeeksOfDataRequest) Reset()
func (*GetWeeksOfDataRequest) String ¶ added in v1.9.6
func (x *GetWeeksOfDataRequest) String() string
type GetWeeksOfDataResponse ¶ added in v1.9.6
type GetWeeksOfDataResponse struct { // number of weeks of data WeeksOfData int32 `protobuf:"varint,1,opt,name=weeks_of_data,json=weeksOfData,proto3" json:"weeks_of_data,omitempty"` // access_start_date is the start date of the data AccessStartDate *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=access_start_date,json=accessStartDate,proto3" json:"access_start_date,omitempty"` // contains filtered or unexported fields }
GetWeeksOfDataResponse contains the number of weeks of data.
func (*GetWeeksOfDataResponse) Descriptor
deprecated
added in
v1.9.6
func (*GetWeeksOfDataResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetWeeksOfDataResponse.ProtoReflect.Descriptor instead.
func (*GetWeeksOfDataResponse) GetAccessStartDate ¶ added in v1.9.6
func (x *GetWeeksOfDataResponse) GetAccessStartDate() *timestamppb.Timestamp
func (*GetWeeksOfDataResponse) GetWeeksOfData ¶ added in v1.9.6
func (x *GetWeeksOfDataResponse) GetWeeksOfData() int32
func (*GetWeeksOfDataResponse) ProtoMessage ¶ added in v1.9.6
func (*GetWeeksOfDataResponse) ProtoMessage()
func (*GetWeeksOfDataResponse) ProtoReflect ¶ added in v1.9.6
func (x *GetWeeksOfDataResponse) ProtoReflect() protoreflect.Message
func (*GetWeeksOfDataResponse) Reset ¶ added in v1.9.6
func (x *GetWeeksOfDataResponse) Reset()
func (*GetWeeksOfDataResponse) String ¶ added in v1.9.6
func (x *GetWeeksOfDataResponse) String() string
type ListDatasourceSchemasRequest ¶
type ListDatasourceSchemasRequest struct { // datasource_names is a table name filter for the datasources to list. DatasourceNames []string `protobuf:"bytes,1,rep,name=datasource_names,json=datasourceNames,proto3" json:"datasource_names,omitempty"` // datasource_type is the type of the datasource to list. // If not specified, all datasources will be listed. DatasourceType DatasourceType `` /* 146-byte string literal not displayed */ // contains filtered or unexported fields }
ListDatasourceSchemasRequest is the request to list datasource schemas.
func (*ListDatasourceSchemasRequest) Descriptor
deprecated
func (*ListDatasourceSchemasRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListDatasourceSchemasRequest.ProtoReflect.Descriptor instead.
func (*ListDatasourceSchemasRequest) GetDatasourceNames ¶ added in v1.8.13
func (x *ListDatasourceSchemasRequest) GetDatasourceNames() []string
func (*ListDatasourceSchemasRequest) GetDatasourceType ¶ added in v1.8.13
func (x *ListDatasourceSchemasRequest) GetDatasourceType() DatasourceType
func (*ListDatasourceSchemasRequest) ProtoMessage ¶
func (*ListDatasourceSchemasRequest) ProtoMessage()
func (*ListDatasourceSchemasRequest) ProtoReflect ¶
func (x *ListDatasourceSchemasRequest) ProtoReflect() protoreflect.Message
func (*ListDatasourceSchemasRequest) Reset ¶
func (x *ListDatasourceSchemasRequest) Reset()
func (*ListDatasourceSchemasRequest) String ¶
func (x *ListDatasourceSchemasRequest) String() string
type ListDatasourceSchemasResponse ¶
type ListDatasourceSchemasResponse struct { // list of schemas Schemas []*Schema `protobuf:"bytes,1,rep,name=schemas,proto3" json:"schemas,omitempty"` // contains filtered or unexported fields }
ListDatasourceSchemasResponse contains datasources and their schemas.
func (*ListDatasourceSchemasResponse) Descriptor
deprecated
func (*ListDatasourceSchemasResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListDatasourceSchemasResponse.ProtoReflect.Descriptor instead.
func (*ListDatasourceSchemasResponse) GetSchemas ¶
func (x *ListDatasourceSchemasResponse) GetSchemas() []*Schema
func (*ListDatasourceSchemasResponse) ProtoMessage ¶
func (*ListDatasourceSchemasResponse) ProtoMessage()
func (*ListDatasourceSchemasResponse) ProtoReflect ¶
func (x *ListDatasourceSchemasResponse) ProtoReflect() protoreflect.Message
func (*ListDatasourceSchemasResponse) Reset ¶
func (x *ListDatasourceSchemasResponse) Reset()
func (*ListDatasourceSchemasResponse) String ¶
func (x *ListDatasourceSchemasResponse) String() string
type Parameters ¶
type Parameters struct { Parameters map[string]*Parameters_Parameter `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
Parameter is a parameter for a query.
func (*Parameters) Descriptor
deprecated
func (*Parameters) Descriptor() ([]byte, []int)
Deprecated: Use Parameters.ProtoReflect.Descriptor instead.
func (*Parameters) GetParameters ¶
func (x *Parameters) GetParameters() map[string]*Parameters_Parameter
func (*Parameters) ProtoMessage ¶
func (*Parameters) ProtoMessage()
func (*Parameters) ProtoReflect ¶
func (x *Parameters) ProtoReflect() protoreflect.Message
func (*Parameters) Reset ¶
func (x *Parameters) Reset()
func (*Parameters) String ¶
func (x *Parameters) String() string
type Parameters_Parameter ¶
type Parameters_Parameter struct { Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` DataType string `protobuf:"bytes,3,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` // contains filtered or unexported fields }
func (*Parameters_Parameter) Descriptor
deprecated
func (*Parameters_Parameter) Descriptor() ([]byte, []int)
Deprecated: Use Parameters_Parameter.ProtoReflect.Descriptor instead.
func (*Parameters_Parameter) GetDataType ¶
func (x *Parameters_Parameter) GetDataType() string
func (*Parameters_Parameter) GetValue ¶
func (x *Parameters_Parameter) GetValue() string
func (*Parameters_Parameter) ProtoMessage ¶
func (*Parameters_Parameter) ProtoMessage()
func (*Parameters_Parameter) ProtoReflect ¶
func (x *Parameters_Parameter) ProtoReflect() protoreflect.Message
func (*Parameters_Parameter) Reset ¶
func (x *Parameters_Parameter) Reset()
func (*Parameters_Parameter) String ¶
func (x *Parameters_Parameter) String() string
type QueryExplainRequest ¶ added in v1.9.0
type QueryExplainRequest struct { QueryRequest *QueryRequest `protobuf:"bytes,1,opt,name=query_request,json=queryRequest,proto3" json:"query_request,omitempty"` // contains filtered or unexported fields }
QueryExplainRequest is the request to retrieve debug data for a query.
func (*QueryExplainRequest) Descriptor
deprecated
added in
v1.9.0
func (*QueryExplainRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryExplainRequest.ProtoReflect.Descriptor instead.
func (*QueryExplainRequest) GetQueryRequest ¶ added in v1.9.0
func (x *QueryExplainRequest) GetQueryRequest() *QueryRequest
func (*QueryExplainRequest) ProtoMessage ¶ added in v1.9.0
func (*QueryExplainRequest) ProtoMessage()
func (*QueryExplainRequest) ProtoReflect ¶ added in v1.9.0
func (x *QueryExplainRequest) ProtoReflect() protoreflect.Message
func (*QueryExplainRequest) Reset ¶ added in v1.9.0
func (x *QueryExplainRequest) Reset()
func (*QueryExplainRequest) String ¶ added in v1.9.0
func (x *QueryExplainRequest) String() string
type QueryExplainResponse ¶ added in v1.9.0
type QueryExplainResponse struct { // result_url is the URL to the result of the query. ResultUrl string `protobuf:"bytes,1,opt,name=result_url,json=resultUrl,proto3" json:"result_url,omitempty"` // result_size_bytes is the size of the result in bytes. ResultSizeBytes int64 `protobuf:"varint,2,opt,name=result_size_bytes,json=resultSizeBytes,proto3" json:"result_size_bytes,omitempty"` // the prql query string Prql string `protobuf:"bytes,3,opt,name=prql,proto3" json:"prql,omitempty"` // the sql query string Sql string `protobuf:"bytes,4,opt,name=sql,proto3" json:"sql,omitempty"` // the sql explain string Explain string `protobuf:"bytes,5,opt,name=explain,proto3" json:"explain,omitempty"` // contains filtered or unexported fields }
QueryExplainResponse contains the result of a query explain.
func (*QueryExplainResponse) Descriptor
deprecated
added in
v1.9.0
func (*QueryExplainResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryExplainResponse.ProtoReflect.Descriptor instead.
func (*QueryExplainResponse) GetExplain ¶ added in v1.9.0
func (x *QueryExplainResponse) GetExplain() string
func (*QueryExplainResponse) GetPrql ¶ added in v1.9.0
func (x *QueryExplainResponse) GetPrql() string
func (*QueryExplainResponse) GetResultSizeBytes ¶ added in v1.9.0
func (x *QueryExplainResponse) GetResultSizeBytes() int64
func (*QueryExplainResponse) GetResultUrl ¶ added in v1.9.0
func (x *QueryExplainResponse) GetResultUrl() string
func (*QueryExplainResponse) GetSql ¶ added in v1.9.0
func (x *QueryExplainResponse) GetSql() string
func (*QueryExplainResponse) ProtoMessage ¶ added in v1.9.0
func (*QueryExplainResponse) ProtoMessage()
func (*QueryExplainResponse) ProtoReflect ¶ added in v1.9.0
func (x *QueryExplainResponse) ProtoReflect() protoreflect.Message
func (*QueryExplainResponse) Reset ¶ added in v1.9.0
func (x *QueryExplainResponse) Reset()
func (*QueryExplainResponse) String ¶ added in v1.9.0
func (x *QueryExplainResponse) String() string
type QueryRequest ¶
type QueryRequest struct { // datasource_name is the name of the datasource to query. DatasourceName string `protobuf:"bytes,1,opt,name=datasource_name,json=datasourceName,proto3" json:"datasource_name,omitempty"` // datasource_type is the type of the datasource to query. DatasourceType DatasourceType `` /* 146-byte string literal not displayed */ // query is the query to execute. // // Types that are assignable to Query: // // *QueryRequest_Pipeline // *QueryRequest_Prql Query isQueryRequest_Query `protobuf_oneof:"query"` // org_id for ownership of the data OrgIds []string `protobuf:"bytes,5,rep,name=org_ids,json=orgIds,proto3" json:"org_ids,omitempty"` // start_time is the start time of the query. StartTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // end_time is the end time of the query. EndTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // timezone is IESG timezone name // this is how the timezone is represented in the query Timezone string `protobuf:"bytes,8,opt,name=timezone,proto3" json:"timezone,omitempty"` // pipeline_parameters is the parameters for the pipeline. PipelineParameters *Parameters `protobuf:"bytes,9,opt,name=pipeline_parameters,json=pipelineParameters,proto3" json:"pipeline_parameters,omitempty"` // ui_trace_id is the trace id of the query. UiTraceId string `protobuf:"bytes,10,opt,name=ui_trace_id,json=uiTraceId,proto3" json:"ui_trace_id,omitempty"` // comment is the comment for the query. Comment string `protobuf:"bytes,11,opt,name=comment,proto3" json:"comment,omitempty"` // format is the format of the result. Format ExportFormat `protobuf:"varint,12,opt,name=format,proto3,enum=api.v1alpha1.explorer.ExportFormat" json:"format,omitempty"` // contains filtered or unexported fields }
QueryRequest is the request to query a datasource.
func (*QueryRequest) Descriptor
deprecated
func (*QueryRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead.
func (*QueryRequest) GetComment ¶
func (x *QueryRequest) GetComment() string
func (*QueryRequest) GetDatasourceName ¶
func (x *QueryRequest) GetDatasourceName() string
func (*QueryRequest) GetDatasourceType ¶
func (x *QueryRequest) GetDatasourceType() DatasourceType
func (*QueryRequest) GetEndTime ¶
func (x *QueryRequest) GetEndTime() *timestamppb.Timestamp
func (*QueryRequest) GetFormat ¶ added in v1.8.13
func (x *QueryRequest) GetFormat() ExportFormat
func (*QueryRequest) GetOrgIds ¶
func (x *QueryRequest) GetOrgIds() []string
func (*QueryRequest) GetPipeline ¶
func (x *QueryRequest) GetPipeline() string
func (*QueryRequest) GetPipelineParameters ¶
func (x *QueryRequest) GetPipelineParameters() *Parameters
func (*QueryRequest) GetPrql ¶
func (x *QueryRequest) GetPrql() string
func (*QueryRequest) GetQuery ¶
func (m *QueryRequest) GetQuery() isQueryRequest_Query
func (*QueryRequest) GetStartTime ¶
func (x *QueryRequest) GetStartTime() *timestamppb.Timestamp
func (*QueryRequest) GetTimezone ¶
func (x *QueryRequest) GetTimezone() string
func (*QueryRequest) GetUiTraceId ¶
func (x *QueryRequest) GetUiTraceId() string
func (*QueryRequest) ProtoMessage ¶
func (*QueryRequest) ProtoMessage()
func (*QueryRequest) ProtoReflect ¶
func (x *QueryRequest) ProtoReflect() protoreflect.Message
func (*QueryRequest) Reset ¶
func (x *QueryRequest) Reset()
func (*QueryRequest) String ¶
func (x *QueryRequest) String() string
type QueryRequest_Pipeline ¶
type QueryRequest_Pipeline struct { // pipeline to be compiled to prql Pipeline string `protobuf:"bytes,3,opt,name=pipeline,proto3,oneof"` }
type QueryRequest_Prql ¶
type QueryRequest_Prql struct { // prql query to execute Prql string `protobuf:"bytes,4,opt,name=prql,proto3,oneof"` }
type QueryResponse ¶
type QueryResponse struct { // result_url is the URL to the result of the query. ResultUrl string `protobuf:"bytes,1,opt,name=result_url,json=resultUrl,proto3" json:"result_url,omitempty"` // result_size_bytes is the size of the result in bytes. ResultSizeBytes int64 `protobuf:"varint,2,opt,name=result_size_bytes,json=resultSizeBytes,proto3" json:"result_size_bytes,omitempty"` // contains filtered or unexported fields }
QueryResponse contains the result of a datasource query.
func (*QueryResponse) Descriptor
deprecated
func (*QueryResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryResponse.ProtoReflect.Descriptor instead.
func (*QueryResponse) GetResultSizeBytes ¶
func (x *QueryResponse) GetResultSizeBytes() int64
func (*QueryResponse) GetResultUrl ¶
func (x *QueryResponse) GetResultUrl() string
func (*QueryResponse) ProtoMessage ¶
func (*QueryResponse) ProtoMessage()
func (*QueryResponse) ProtoReflect ¶
func (x *QueryResponse) ProtoReflect() protoreflect.Message
func (*QueryResponse) Reset ¶
func (x *QueryResponse) Reset()
func (*QueryResponse) String ¶
func (x *QueryResponse) String() string
type Schema ¶
type Schema struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` DatasourceType DatasourceType `` /* 146-byte string literal not displayed */ Fields []*SchemaField `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty"` TableDescription string `protobuf:"bytes,4,opt,name=table_description,json=tableDescription,proto3" json:"table_description,omitempty"` Category string `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty"` SubCategory string `protobuf:"bytes,6,opt,name=sub_category,json=subCategory,proto3" json:"sub_category,omitempty"` // contains filtered or unexported fields }
Schema is a schema for a datasource.
func (*Schema) Descriptor
deprecated
func (*Schema) GetCategory ¶ added in v1.9.0
func (*Schema) GetDatasourceType ¶
func (x *Schema) GetDatasourceType() DatasourceType
func (*Schema) GetFields ¶
func (x *Schema) GetFields() []*SchemaField
func (*Schema) GetSubCategory ¶ added in v1.9.0
func (*Schema) GetTableDescription ¶ added in v1.8.13
func (*Schema) ProtoMessage ¶
func (*Schema) ProtoMessage()
func (*Schema) ProtoReflect ¶
func (x *Schema) ProtoReflect() protoreflect.Message
type SchemaField ¶
type SchemaField struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` ColumnType SchemaType `` /* 130-byte string literal not displayed */ IsPrimaryKey bool `protobuf:"varint,3,opt,name=is_primary_key,json=isPrimaryKey,proto3" json:"is_primary_key,omitempty"` IsLowCardinality bool `protobuf:"varint,4,opt,name=is_low_cardinality,json=isLowCardinality,proto3" json:"is_low_cardinality,omitempty"` ColumnDescription string `protobuf:"bytes,5,opt,name=column_description,json=columnDescription,proto3" json:"column_description,omitempty"` IsTimeFilter bool `protobuf:"varint,6,opt,name=is_time_filter,json=isTimeFilter,proto3" json:"is_time_filter,omitempty"` IsDefaultTimeFilter bool `protobuf:"varint,7,opt,name=is_default_time_filter,json=isDefaultTimeFilter,proto3" json:"is_default_time_filter,omitempty"` // contains filtered or unexported fields }
SchemaField is a field in a schema.
func (*SchemaField) Descriptor
deprecated
func (*SchemaField) Descriptor() ([]byte, []int)
Deprecated: Use SchemaField.ProtoReflect.Descriptor instead.
func (*SchemaField) GetColumnDescription ¶ added in v1.8.13
func (x *SchemaField) GetColumnDescription() string
func (*SchemaField) GetColumnType ¶
func (x *SchemaField) GetColumnType() SchemaType
func (*SchemaField) GetIsDefaultTimeFilter ¶ added in v1.9.0
func (x *SchemaField) GetIsDefaultTimeFilter() bool
func (*SchemaField) GetIsLowCardinality ¶
func (x *SchemaField) GetIsLowCardinality() bool
func (*SchemaField) GetIsPrimaryKey ¶
func (x *SchemaField) GetIsPrimaryKey() bool
func (*SchemaField) GetIsTimeFilter ¶ added in v1.9.0
func (x *SchemaField) GetIsTimeFilter() bool
func (*SchemaField) GetName ¶
func (x *SchemaField) GetName() string
func (*SchemaField) ProtoMessage ¶
func (*SchemaField) ProtoMessage()
func (*SchemaField) ProtoReflect ¶
func (x *SchemaField) ProtoReflect() protoreflect.Message
func (*SchemaField) Reset ¶
func (x *SchemaField) Reset()
func (*SchemaField) String ¶
func (x *SchemaField) String() string
type SchemaType ¶
type SchemaType int32
SchemaType is an enum for the type of a schema field.
const ( SchemaType_SCHEMA_TYPE_UNSPECIFIED SchemaType = 0 SchemaType_SCHEMA_TYPE_INT SchemaType = 2 SchemaType_SCHEMA_TYPE_FLOAT SchemaType = 3 SchemaType_SCHEMA_TYPE_STRING SchemaType = 5 SchemaType_SCHEMA_TYPE_BOOL SchemaType = 6 SchemaType_SCHEMA_TYPE_TIMESTAMP SchemaType = 7 SchemaType_SCHEMA_TYPE_INT_ARRAY SchemaType = 8 SchemaType_SCHEMA_TYPE_FLOAT_ARRAY SchemaType = 9 SchemaType_SCHEMA_TYPE_STRING_ARRAY SchemaType = 10 SchemaType_SCHEMA_TYPE_BOOL_ARRAY SchemaType = 11 SchemaType_SCHEMA_TYPE_MAP SchemaType = 12 )
func (SchemaType) Descriptor ¶
func (SchemaType) Descriptor() protoreflect.EnumDescriptor
func (SchemaType) Enum ¶
func (x SchemaType) Enum() *SchemaType
func (SchemaType) EnumDescriptor
deprecated
func (SchemaType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SchemaType.Descriptor instead.
func (SchemaType) Number ¶
func (x SchemaType) Number() protoreflect.EnumNumber
func (SchemaType) String ¶
func (x SchemaType) String() string
func (SchemaType) Type ¶
func (SchemaType) Type() protoreflect.EnumType
type SupportQueryRequest ¶ added in v1.9.0
type SupportQueryRequest struct { // query_request is the query to execute. QueryRequest *QueryRequest `protobuf:"bytes,1,opt,name=query_request,json=queryRequest,proto3" json:"query_request,omitempty"` // include debug information in the response Debug bool `protobuf:"varint,2,opt,name=debug,proto3" json:"debug,omitempty"` // contains filtered or unexported fields }
SupportQueryRequest is the request to query a datasource with support permissions.
func (*SupportQueryRequest) Descriptor
deprecated
added in
v1.9.0
func (*SupportQueryRequest) Descriptor() ([]byte, []int)
Deprecated: Use SupportQueryRequest.ProtoReflect.Descriptor instead.
func (*SupportQueryRequest) GetDebug ¶ added in v1.9.1
func (x *SupportQueryRequest) GetDebug() bool
func (*SupportQueryRequest) GetQueryRequest ¶ added in v1.9.0
func (x *SupportQueryRequest) GetQueryRequest() *QueryRequest
func (*SupportQueryRequest) ProtoMessage ¶ added in v1.9.0
func (*SupportQueryRequest) ProtoMessage()
func (*SupportQueryRequest) ProtoReflect ¶ added in v1.9.0
func (x *SupportQueryRequest) ProtoReflect() protoreflect.Message
func (*SupportQueryRequest) Reset ¶ added in v1.9.0
func (x *SupportQueryRequest) Reset()
func (*SupportQueryRequest) String ¶ added in v1.9.0
func (x *SupportQueryRequest) String() string
type SupportQueryResponse ¶ added in v1.9.0
type SupportQueryResponse struct { // result_url is the URL to the result of the query. ResultUrl string `protobuf:"bytes,1,opt,name=result_url,json=resultUrl,proto3" json:"result_url,omitempty"` // result_size_bytes is the size of the result in bytes. ResultSizeBytes int64 `protobuf:"varint,2,opt,name=result_size_bytes,json=resultSizeBytes,proto3" json:"result_size_bytes,omitempty"` // the prql query string Prql string `protobuf:"bytes,3,opt,name=prql,proto3" json:"prql,omitempty"` // the sql query string Sql string `protobuf:"bytes,4,opt,name=sql,proto3" json:"sql,omitempty"` // the sql explain string Explain string `protobuf:"bytes,5,opt,name=explain,proto3" json:"explain,omitempty"` // contains filtered or unexported fields }
SupportQueryResponse contains the result of a datasource query with support permissions.
func (*SupportQueryResponse) Descriptor
deprecated
added in
v1.9.0
func (*SupportQueryResponse) Descriptor() ([]byte, []int)
Deprecated: Use SupportQueryResponse.ProtoReflect.Descriptor instead.
func (*SupportQueryResponse) GetExplain ¶ added in v1.9.1
func (x *SupportQueryResponse) GetExplain() string
func (*SupportQueryResponse) GetPrql ¶ added in v1.9.1
func (x *SupportQueryResponse) GetPrql() string
func (*SupportQueryResponse) GetResultSizeBytes ¶ added in v1.9.0
func (x *SupportQueryResponse) GetResultSizeBytes() int64
func (*SupportQueryResponse) GetResultUrl ¶ added in v1.9.0
func (x *SupportQueryResponse) GetResultUrl() string
func (*SupportQueryResponse) GetSql ¶ added in v1.9.1
func (x *SupportQueryResponse) GetSql() string
func (*SupportQueryResponse) ProtoMessage ¶ added in v1.9.0
func (*SupportQueryResponse) ProtoMessage()
func (*SupportQueryResponse) ProtoReflect ¶ added in v1.9.0
func (x *SupportQueryResponse) ProtoReflect() protoreflect.Message
func (*SupportQueryResponse) Reset ¶ added in v1.9.0
func (x *SupportQueryResponse) Reset()
func (*SupportQueryResponse) String ¶ added in v1.9.0
func (x *SupportQueryResponse) String() string
type UnimplementedExplorerServiceServer ¶
type UnimplementedExplorerServiceServer struct{}
UnimplementedExplorerServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedExplorerServiceServer) GetQueryExplain ¶ added in v1.9.0
func (UnimplementedExplorerServiceServer) GetQueryExplain(context.Context, *QueryExplainRequest) (*QueryExplainResponse, error)
func (UnimplementedExplorerServiceServer) GetSupportQuery ¶ added in v1.9.0
func (UnimplementedExplorerServiceServer) GetSupportQuery(context.Context, *SupportQueryRequest) (*SupportQueryResponse, error)
func (UnimplementedExplorerServiceServer) GetWeeksOfData ¶ added in v1.9.6
func (UnimplementedExplorerServiceServer) GetWeeksOfData(context.Context, *GetWeeksOfDataRequest) (*GetWeeksOfDataResponse, error)
func (UnimplementedExplorerServiceServer) ListDatasourceSchemas ¶
func (UnimplementedExplorerServiceServer) ListDatasourceSchemas(context.Context, *ListDatasourceSchemasRequest) (*ListDatasourceSchemasResponse, error)
func (UnimplementedExplorerServiceServer) Query ¶
func (UnimplementedExplorerServiceServer) Query(context.Context, *QueryRequest) (*QueryResponse, error)
type UnsafeExplorerServiceServer ¶
type UnsafeExplorerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeExplorerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ExplorerServiceServer will result in compilation errors.