Azure Monitor: Support request timeout configuration (#105487)
Support request timeout configuration
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user