window.proto 641 B

1234567891011121314151617181920212223
  1. syntax = "proto3";
  2. package model;
  3. import "google/protobuf/timestamp.proto";
  4. // Sets the golang package for the protobuf generated code
  5. option go_package = "github.com/opencost/opencost/core/pkg/model/pb";
  6. // Resolution represents the time granularity for data aggregation
  7. enum Resolution {
  8. RESOLUTION_10M = 0; // 10 minutes
  9. RESOLUTION_1H = 1; // 1 hour
  10. RESOLUTION_1D = 2; // 1 day
  11. }
  12. // Window defines a unit of time by a resolution and a start time
  13. message Window {
  14. // resolution defines the time granularity
  15. Resolution resolution = 1;
  16. // the start time of the window described
  17. google.protobuf.Timestamp start = 2;
  18. }