node.proto 757 B

123456789101112131415161718192021222324252627
  1. syntax = "proto3";
  2. import "kubemodel/diagnostic.proto";
  3. import "google/protobuf/timestamp.proto";
  4. package kubemodel;
  5. option go_package = "github.com/opencost/opencost/core/pkg/model/pb/kubemodel";
  6. // Node represents a Kubernetes worker node (provisioned resource)
  7. message Node {
  8. // Identification
  9. string ID = 1;
  10. string clusterID = 2;
  11. // Properties
  12. string providerResourceID = 3;
  13. string name = 4;
  14. map<string, string> labels = 5;
  15. map<string, string> annotations = 6;
  16. // Resource lifecycle (only when different from cluster window)
  17. optional google.protobuf.Timestamp creationTime = 7;
  18. optional google.protobuf.Timestamp deletionTime = 8;
  19. // Diagnostic information about this resource
  20. optional DiagnosticResult diagnostic = 99;
  21. }