Skip to main content

module.proto

path kilroy/module/v1alpha/module.proto

package kilroy.module.v1alpha

Definitions for module service.


Messages

FitReinforcedRequest

Request for FitReinforced.

NameTypeDescription
contentstringThe content of the post as a JSON string.
metadatastringThe metadata of the post as a JSON string.
scoredoubleThe score of the post.

FitReinforcedResponse

Response from FitReinforced.

NameTypeDescription

FitSupervisedRequest

Request for FitSupervised.

NameTypeDescription
contentstringThe content of the post as a JSON string.
scoredoubleThe score of the post.

FitSupervisedResponse

Response from FitSupervised.

NameTypeDescription

GenerateRequest

Request for Generate.

NameTypeDescription
quantityuint64The quantity of posts to generate.

GenerateResponse

Response from Generate.

NameTypeDescription
contentstringThe content of the post as a JSON string.
metadatastringThe metadata of the post as a JSON string.

GetConfigRequest

Request for GetConfig.

NameTypeDescription

GetConfigResponse

Response from GetConfig.

NameTypeDescription
configstringThe config of the module as a JSON string.

GetConfigSchemaRequest

Request for GetConfigSchema.

NameTypeDescription

GetConfigSchemaResponse

Response from GetConfigSchema.

NameTypeDescription
schemastringThe schema of the config as a JSON string.

GetMetadataRequest

Request for GetMetadata.

NameTypeDescription

GetMetadataResponse

Response from GetMetadata.

NameTypeDescription
keystringThe key of the module.
descriptionstringThe description of the module.

GetMetricsConfigRequest

Request for GetMetricsConfig.

NameTypeDescription

GetMetricsConfigResponse

Response from GetMetricsConfig.

NameTypeDescription
configsMetricConfigThe configs of the metrics.

GetPostSchemaRequest

Request for GetPostSchema.

NameTypeDescription

GetPostSchemaResponse

Response from GetPostSchema.

NameTypeDescription
schemastringThe schema of a post as a JSON string.

GetStatusRequest

Request for GetStatus.

NameTypeDescription

GetStatusResponse

Response from GetStatus.

NameTypeDescription
statusStatusThe status of the module.

MetricConfig

Metric configuration data.

NameTypeDescription
idstringThe ID of the metric.
labelstringThe label of the metric.
configstringThe config of the metric as a JSON string.
tagsstringThe tags of the metric.

ResetRequest

Request for Reset.

NameTypeDescription

ResetResponse

Response from Reset.

NameTypeDescription

SaveRequest

Request for Save.

NameTypeDescription

SaveResponse

Response from Save.

NameTypeDescription

SetConfigRequest

Request for SetConfig.

NameTypeDescription
configstringThe config of the module as a JSON string.

SetConfigResponse

Response from SetConfig.

NameTypeDescription
configstringThe config of the module as a JSON string.

WatchConfigRequest

Request for WatchConfig.

NameTypeDescription

WatchConfigResponse

Response from WatchConfig.

NameTypeDescription
configstringThe config of the module as a JSON string.

WatchMetricsRequest

Request for WatchMetrics.

NameTypeDescription

WatchMetricsResponse

Response from WatchMetrics.

NameTypeDescription
metric_idstringThe ID of the metric.
dataset_iduint64The ID of the dataset.
datastringThe data of the metric as a JSON string.

WatchStatusRequest

Request for WatchStatus.

NameTypeDescription

WatchStatusResponse

Response from WatchStatus.

NameTypeDescription
statusStatusThe status of the module.

Enums

Status

Possible module statuses.

NameNumberDescription
STATUS_UNSPECIFIED0Unspecified status.
STATUS_LOADING1The module is loading.
STATUS_READY2The module is ready.

Services

ModuleService

Module service.

GetMetadata

MethodGetMetadata
RequestGetMetadataRequest
ResponseGetMetadataResponse
DescriptionReturns the metadata of the module.

GetPostSchema

MethodGetPostSchema
RequestGetPostSchemaRequest
ResponseGetPostSchemaResponse
DescriptionReturns the schema of a post.

GetStatus

MethodGetStatus
RequestGetStatusRequest
ResponseGetStatusResponse
DescriptionReturns the status of the module.

WatchStatus

MethodWatchStatus
RequestWatchStatusRequest
ResponseWatchStatusResponse stream
DescriptionReturns an infinite stream of status updates.

GetConfigSchema

MethodGetConfigSchema
RequestGetConfigSchemaRequest
ResponseGetConfigSchemaResponse
DescriptionReturns the schema of the config.

GetConfig

MethodGetConfig
RequestGetConfigRequest
ResponseGetConfigResponse
DescriptionReturns the config of the module.

WatchConfig

MethodWatchConfig
RequestWatchConfigRequest
ResponseWatchConfigResponse stream
DescriptionReturns an infinite stream of config updates.

SetConfig

MethodSetConfig
RequestSetConfigRequest
ResponseSetConfigResponse
DescriptionSets the config of the module.

Generate

MethodGenerate
RequestGenerateRequest
ResponseGenerateResponse stream
DescriptionGenerates posts.

FitSupervised

MethodFitSupervised
RequestFitSupervisedRequest stream
ResponseFitSupervisedResponse
DescriptionFits supervised.

FitReinforced

MethodFitReinforced
RequestFitReinforcedRequest stream
ResponseFitReinforcedResponse
DescriptionFits reinforced.

GetMetricsConfig

MethodGetMetricsConfig
RequestGetMetricsConfigRequest
ResponseGetMetricsConfigResponse
DescriptionReturns the configs of the metrics.

WatchMetrics

MethodWatchMetrics
RequestWatchMetricsRequest
ResponseWatchMetricsResponse stream
DescriptionReturns an infinite stream of metric updates.

Reset

MethodReset
RequestResetRequest
ResponseResetResponse
DescriptionResets the module.

Save

MethodSave
RequestSaveRequest
ResponseSaveResponse
DescriptionSaves the module.