Azure Monitor: Support request timeout configuration (#105487)

Support request timeout configuration
This commit is contained in:
Andreas Christou
2025-05-16 11:53:13 +01:00
committed by GitHub
parent fcb1e9c9e5
commit b886093fe6
7 changed files with 66 additions and 17 deletions
@@ -52,13 +52,15 @@ type AzureMonitorQuery struct {
Region *string `json:"region,omitempty"`
// Custom namespace used in template variable queries
CustomNamespace *string `json:"customNamespace,omitempty"`
// Used only for exemplar queries from Prometheus
Query *string `json:"query,omitempty"`
// For mixed data sources the selected datasource is on the query level.
// For non mixed scenarios this is undefined.
// TODO find a better way to do this ^ that's friendly to schema
// TODO this shouldn't be unknown but DataSourceRef | null
Datasource any `json:"datasource,omitempty"`
// Used only for exemplar queries from Prometheus
Query *string `json:"query,omitempty"`
// Used to configure the HTTP request timeout
Timeout *float64 `json:"timeout,omitempty"`
}
// NewAzureMonitorQuery creates a new AzureMonitorQuery object.