syntax = "proto3"; option go_package = "github.com/metaprov/modelaapi/services/watcherd/v1"; package github.com.metaprov.modelaapi.services.watcherd.v1; import "github.com/metaprov/modelaapi/pkg/apis/training/v1alpha1/generated.proto"; import "github.com/metaprov/modelaapi/pkg/apis/data/v1alpha1/generated.proto"; import "github.com/metaprov/modelaapi/pkg/apis/infra/v1alpha1/generated.proto"; import "github.com/metaprov/modelaapi/pkg/apis/inference/v1alpha1/generated.proto"; import "github.com/metaprov/modelaapi/pkg/apis/catalog/v1alpha1/generated.proto"; import "github.com/metaprov/modelaapi/pkg/apis/genai/v1alpha1/generated.proto"; import "github.com/metaprov/modelaapi/pkg/apis/team/v1alpha1/generated.proto"; import "k8s.io/api/core/v1/generated.proto"; enum EventType { EVENT_UPDATE = 0; EVENT_DELETE = 1; } service WatcherdService { rpc WatchDataPipeline (WatchRequestOptions) returns (WatchDataPipelineResponse) {} rpc WatchDataPipelineRun (WatchRequestOptions) returns (WatchDataPipelineRunResponse) {} rpc WatchDataProduct (WatchRequestOptions) returns (WatchDataProductResponse) {} rpc WatchEntity (WatchRequestOptions) returns (WatchEntityResponse) {} rpc WatchFeatureHistogram (WatchRequestOptions) returns (WatchFeatureHistogramResponse) {} rpc WatchFeatureGroup (WatchRequestOptions) returns (WatchFeatureGroupResponse) {} rpc WatchRecipe (WatchRequestOptions) returns (WatchRecipeResponse) {} rpc WatchRecipeRun (WatchRequestOptions) returns (WatchRecipeRunResponse) {} rpc WatchDataset (WatchRequestOptions) returns (WatchDatasetResponse) {} rpc WatchDatasetSnapshot (WatchRequestOptions) returns (WatchDatasetSnapshotResponse) {} rpc WatchDataSource (WatchRequestOptions) returns (WatchDataSourceResponse) {} rpc WatchModel (WatchRequestOptions) returns (WatchModelResponse) {} rpc WatchModelClass (WatchRequestOptions) returns (WatchModelClassResponse) {} rpc WatchModelClassRun (WatchRequestOptions) returns (WatchModelClassRunResponse) {} rpc WatchReport (WatchRequestOptions) returns (WatchReportResponse) {} rpc WatchStudy (WatchRequestOptions) returns (WatchStudyResponse) {} rpc WatchStudyRun (WatchRequestOptions) returns (WatchStudyRunResponse) {} rpc WatchAccount (WatchRequestOptions) returns (WatchAccountResponse) {} rpc WatchAlert (WatchRequestOptions) returns (WatchAlertResponse) {} rpc WatchAttachment (WatchRequestOptions) returns (WatchAttachmentResponse) {} rpc WatchConnection (WatchRequestOptions) returns (WatchConnectionResponse) {} rpc WatchLab (WatchRequestOptions) returns (WatchLabResponse) {} rpc WatchLicense (WatchRequestOptions) returns (WatchLicenseResponse) {} rpc WatchNotifier (WatchRequestOptions) returns (WatchNotifierResponse) {} rpc WatchServingSite (WatchRequestOptions) returns (WatchServingSiteResponse) {} rpc WatchTenant (WatchRequestOptions) returns (WatchTenantResponse) {} rpc WatchUserRoleClass (WatchRequestOptions) returns (WatchUserRoleClassResponse) {} rpc WatchVirtualBucket (WatchRequestOptions) returns (WatchVirtualBucketResponse) {} rpc WatchDataApp (WatchRequestOptions) returns (WatchDataAppResponse) {} rpc WatchPrediction (WatchRequestOptions) returns (WatchPredictionResponse) {} rpc WatchPredictionRun (WatchRequestOptions) returns (WatchPredictionRunResponse) {} rpc WatchPredictor (WatchRequestOptions) returns (WatchPredictorResponse) {} rpc WatchPostmortem (WatchRequestOptions) returns (WatchPostmortemResponse) {} rpc WatchReview (WatchRequestOptions) returns (WatchReviewResponse) {} rpc WatchRunbook (WatchRequestOptions) returns (WatchRunbookResponse) {} rpc WatchTodo (WatchRequestOptions) returns (WatchTodoResponse) {} rpc WatchKnowledgeBase (WatchRequestOptions) returns (WatchKnowledgeBaseResponse) {} rpc WatchLLMServer (WatchRequestOptions) returns (WatchLLMServerResponse) {} rpc WatchAPIKeyGroup (WatchRequestOptions) returns (WatchAPIKeyGroupResponse) {} } message WatchRequestOptions { uint64 generation = 1; string namespace = 2; // Latest indicates if we should instantly respond with // all the events from the previous generation, or respond with nothing. bool latest = 3; } message WatchDataPipelineResponse { message DataPipelineEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.data.v1alpha1.DataPipeline object = 2; } uint64 generation = 1; repeated DataPipelineEvent events = 2; } message WatchDataPipelineRunResponse { message DataPipelineRunEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.data.v1alpha1.DataPipelineRun object = 2; } uint64 generation = 1; repeated DataPipelineRunEvent events = 2; } message WatchDataProductResponse { message DataProductEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.data.v1alpha1.DataProduct object = 2; } uint64 generation = 1; repeated DataProductEvent events = 2; } message WatchEntityResponse { message EntityEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.data.v1alpha1.Entity object = 2; } uint64 generation = 1; repeated EntityEvent events = 2; } message WatchFeatureHistogramResponse { message FeatureHistogramEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.data.v1alpha1.FeatureHistogram object = 2; } uint64 generation = 1; repeated FeatureHistogramEvent events = 2; } message WatchFeatureGroupResponse { message FeatureGroupEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.data.v1alpha1.FeatureGroup object = 2; } uint64 generation = 1; repeated FeatureGroupEvent events = 2; } message WatchRecipeResponse { message RecipeEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.data.v1alpha1.Recipe object = 2; } uint64 generation = 1; repeated RecipeEvent events = 2; } message WatchRecipeRunResponse { message RecipeRunEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.data.v1alpha1.RecipeRun object = 2; } uint64 generation = 1; repeated RecipeRunEvent events = 2; } message WatchDatasetResponse { message DatasetEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.data.v1alpha1.Dataset object = 2; } uint64 generation = 1; repeated DatasetEvent events = 2; } message WatchDatasetSnapshotResponse { message DatasetSnapshotEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.data.v1alpha1.DatasetSnapshot object = 2; } uint64 generation = 1; repeated DatasetSnapshotEvent events = 2; } message WatchDataSourceResponse { message DataSourceEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.data.v1alpha1.DataSource object = 2; } uint64 generation = 1; repeated DataSourceEvent events = 2; } message WatchModelResponse { message ModelEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.training.v1alpha1.Model object = 2; } uint64 generation = 1; repeated ModelEvent events = 2; } message WatchModelClassResponse { message ModelClassEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.training.v1alpha1.ModelClass object = 2; } uint64 generation = 1; repeated ModelClassEvent events = 2; } message WatchModelClassRunResponse { message ModelClassRunEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.training.v1alpha1.ModelClassRun object = 2; } uint64 generation = 1; repeated ModelClassRunEvent events = 2; } message WatchReportResponse { message ReportEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.training.v1alpha1.Report object = 2; } uint64 generation = 1; repeated ReportEvent events = 2; } message WatchStudyResponse { message StudyEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.training.v1alpha1.Study object = 2; } uint64 generation = 1; repeated StudyEvent events = 2; } message WatchStudyRunResponse { message StudyRunEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.training.v1alpha1.StudyRun object = 2; } uint64 generation = 1; repeated StudyRunEvent events = 2; } message WatchAccountResponse { message AccountEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.infra.v1alpha1.Account object = 2; } uint64 generation = 1; repeated AccountEvent events = 2; } message WatchAlertResponse { message AlertEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.infra.v1alpha1.Alert object = 2; } uint64 generation = 1; repeated AlertEvent events = 2; } message WatchAttachmentResponse { message AttachmentEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.infra.v1alpha1.Attachment object = 2; } uint64 generation = 1; repeated AttachmentEvent events = 2; } message WatchConnectionResponse { message ConnectionEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.infra.v1alpha1.Connection object = 2; } uint64 generation = 1; repeated ConnectionEvent events = 2; } message WatchLabResponse { message LabEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.infra.v1alpha1.Lab object = 2; } uint64 generation = 1; repeated LabEvent events = 2; } message WatchLicenseResponse { message LicenseEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.infra.v1alpha1.License object = 2; } uint64 generation = 1; repeated LicenseEvent events = 2; } message WatchNotifierResponse { message NotifierEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.infra.v1alpha1.Notifier object = 2; } uint64 generation = 1; repeated NotifierEvent events = 2; } message WatchServingSiteResponse { message ServingSiteEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.infra.v1alpha1.ServingSite object = 2; } uint64 generation = 1; repeated ServingSiteEvent events = 2; } message WatchTenantResponse { message TenantEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.infra.v1alpha1.Tenant object = 2; } uint64 generation = 1; repeated TenantEvent events = 2; } message WatchUserRoleClassResponse { message UserRoleClassEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.infra.v1alpha1.UserRoleClass object = 2; } uint64 generation = 1; repeated UserRoleClassEvent events = 2; } message WatchVirtualBucketResponse { message VirtualBucketEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.infra.v1alpha1.VirtualBucket object = 2; } uint64 generation = 1; repeated VirtualBucketEvent events = 2; } message WatchDataAppResponse { message DataAppEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.inference.v1alpha1.DataApp object = 2; } uint64 generation = 1; repeated DataAppEvent events = 2; } message WatchPredictionResponse { message PredictionEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.inference.v1alpha1.Prediction object = 2; } uint64 generation = 1; repeated PredictionEvent events = 2; } message WatchPredictionRunResponse { message PredictionRunEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.inference.v1alpha1.PredictionRun object = 2; } uint64 generation = 1; repeated PredictionRunEvent events = 2; } message WatchPredictorResponse { message PredictorEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.inference.v1alpha1.Predictor object = 2; } uint64 generation = 1; repeated PredictorEvent events = 2; } message WatchPostmortemResponse { message PostmortemEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.team.v1alpha1.PostMortem object = 2; } uint64 generation = 1; repeated PostmortemEvent events = 2; } message WatchReviewResponse { message ReviewEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.team.v1alpha1.Review object = 2; } uint64 generation = 1; repeated ReviewEvent events = 2; } message WatchRunbookResponse { message RunbookEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.team.v1alpha1.RunBook object = 2; } uint64 generation = 1; repeated RunbookEvent events = 2; } message WatchTodoResponse { message TodoEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.team.v1alpha1.Todo object = 2; } uint64 generation = 1; repeated TodoEvent events = 2; } message WatchKnowledgeBaseResponse { message KnowledgeBaseEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.genai.v1alpha1.KnowledgeBase object = 2; } uint64 generation = 1; repeated KnowledgeBaseEvent events = 2; } message WatchLLMServerResponse { message LLMServerEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.genai.v1alpha1.LLMServer object = 2; } uint64 generation = 1; repeated LLMServerEvent events = 2; } message WatchAPIKeyGroupResponse { message APIKeyGroupEvent { EventType event = 1; github.com.metaprov.modelaapi.pkg.apis.genai.v1alpha1.APIKeyGroup object = 2; } uint64 generation = 1; repeated APIKeyGroupEvent events = 2; }