syntax = "proto3"; package model; import "google/protobuf/timestamp.proto"; // Sets the golang package for the protobuf generated code option go_package = "github.com/opencost/opencost/core/pkg/model/pb"; // Resolution represents the time granularity for data aggregation enum Resolution { RESOLUTION_10M = 0; // 10 minutes RESOLUTION_1H = 1; // 1 hour RESOLUTION_1D = 2; // 1 day } // Window defines a unit of time by a resolution and a start time message Window { // resolution defines the time granularity Resolution resolution = 1; // the start time of the window described google.protobuf.Timestamp start = 2; }