| syntax = "proto3"; |
| |
| package platforms_syshealth.collection.feed; |
| |
| import "feed_payload.proto"; |
| import "collection_entity.proto"; |
| import "client_subscription.proto"; |
| |
| message WriteMetricsRequest { |
| 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 WriteMetricsResponse { |
| // Optional status, errors, etc. |
| } |
| |
| message AgentIdentifier { |
| enum AgentType { |
| AGENT_TYPE_UNSPECIFIED = 0; |
| AGENT_TYPE_ICID = 1; |
| AGENT_TYPE_BMCWEB = 2; |
| AGENT_TYPE_GSYS = 3; |
| AGENT_TYPE_PICTOR = 4; |
| // Add more agent types here. |
| } |
| optional AgentType agent_type = 1; |
| } |
| |
| message GetPoliciesRequest { |
| optional CollectionEntityId entity_id = 1; |
| optional AgentIdentifier agent_identifier = 2; |
| } |
| |
| message GetPoliciesResponse { |
| repeated ClientSubscriptionPolicy subscription_policies = 1; |
| } |