Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the GCP Monitoring API
func NewClientForTesting ¶
NewClientForTesting creates a Client with a custom base URL and HTTP client. For use in tests only.
func (*Client) HTTPClient ¶
HTTPClient returns the underlying authenticated HTTP client. It can be reused to call other GCP APIs (e.g., Cloud SQL Admin API).
func (*Client) QueryTimeSeries ¶
func (c *Client) QueryTimeSeries(ctx context.Context, req QueryTimeSeriesRequest) (*QueryTimeSeriesResponse, error)
QueryTimeSeries executes a PromQL query
type QueryTimeSeriesRequest ¶
type QueryTimeSeriesRequest struct {
Project string
Query string
StartTime time.Time
EndTime time.Time
}
QueryTimeSeriesRequest represents a query request
type QueryTimeSeriesResponse ¶
type QueryTimeSeriesResponse struct {
TimeSeries []interface{} // Raw time series from API
}
QueryTimeSeriesResponse wraps the API response
Click to show internal directories.
Click to hide internal directories.