From 745199b802581a25b390d626db54157c5ee3356d Mon Sep 17 00:00:00 2001 From: Yutong Wang Date: Thu, 29 Dec 2022 13:02:07 -0800 Subject: [PATCH] Create a insights message data class Summary: As per https://docs.google.com/document/d/1kGIWymzYeI-pxOpEYZCnKs4CAVbeVrkGFAPO5Nu1vj8/edit#heading=h.vtzjal6i40dj this class is for structured messages Differential Revision: D42278184 fbshipit-source-id: 22cecda26b0bf769d7d6fd80f0adfad3f9d7b164 --- fbpcp/entity/insights_message.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 fbpcp/entity/insights_message.py diff --git a/fbpcp/entity/insights_message.py b/fbpcp/entity/insights_message.py new file mode 100644 index 00000000..e65f95b1 --- /dev/null +++ b/fbpcp/entity/insights_message.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + +# pyre-strict +from dataclasses import dataclass + + +@dataclass +class InsightsMessage: + time: float + cluster_name: str + instance_id: str + status: str