| syntax = "proto3"; |
| |
| package platforms_syshealth.collection.feed; |
| |
| import "feed_payload.proto"; |
| import "collection_entity.proto"; |
| import "client_subscription.proto"; |
| |
| message MetricSet { |
| optional CollectionEntityId entity_id = 1; |
| optional string policy_id = 2; |
| |
| // Payload depends on the source type, needs a flexible structure. |
| oneof data_payload { |
| HftPayload hft_payload = 4; |
| } |
| } |
| |
| message WriteMetricsRequest { |
| repeated MetricSet metric_sets = 1; |
| } |
| |
| message WriteMetricsResponse { |
| // Optional status, errors, etc. |
| } |
| |
| message EndpointIdentifier { |
| enum EndpointType { |
| ENDPOINT_TYPE_UNSPECIFIED = 0; |
| ENDPOINT_TYPE_ICID = 1; |
| ENDPOINT_TYPE_BMCWEB = 2; |
| ENDPOINT_TYPE_GSYS = 3; |
| ENDPOINT_TYPE_PICTOR = 4; |
| ENDPOINT_TYPE_UHMM = 5; |
| // Add more endpoint types here. |
| } |
| optional EndpointType endpoint_type = 1; |
| } |
| |
| message GetPoliciesRequest { |
| optional CollectionEntityId entity_id = 1; |
| optional EndpointIdentifier endpoint_identifier = 2; |
| } |
| |
| message GetPoliciesResponse { |
| repeated ClientSubscriptionPolicy subscription_policies = 1; |
| } |