Skip to content

Commit

Permalink
feat: added SqlCondition in AlertPolicy
Browse files Browse the repository at this point in the history
feat: added PrometheusQueryLanguageCondition.disable_metric_validation
feat: deprecated QueryTimeSeries (MQL query endpoint)
feat: added TimeSeries.description for input only
docs: TimeSeries.unit allows limited updating by CreateTimeSeries
docs: ServiceLevelObjective.goal must be <= 0.9999
docs: ServiceAgentAuthentication supports generating an OAuth token

For more information about the status of MQL, see the [MQL deprecation notice](https://cloud.google.com/stackdriver/docs/deprecations/mql).

PiperOrigin-RevId: 706010293

Source-Link: googleapis/googleapis@f4eff54

Source-Link: googleapis/googleapis-gen@adad43e
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuTW9uaXRvcmluZy5WMy8uT3dsQm90LnlhbWwiLCJoIjoiYWRhZDQzZWJlMGM5NTk5MTdhNWQ5MzM0OGMyMmI5NWRiNjJlNjVhMSJ9
  • Loading branch information
gcf-owl-bot[bot] authored and amanda-tarafa committed Dec 14, 2024
1 parent b94ea2a commit 7468d5b
Show file tree
Hide file tree
Showing 14 changed files with 2,391 additions and 432 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,13 @@ public async Task QueryTimeSeriesRequestObjectAsync()
// Create client
QueryServiceClient queryServiceClient = await QueryServiceClient.CreateAsync();
// Initialize request argument(s)
QueryTimeSeriesRequest request = new QueryTimeSeriesRequest { Name = "", Query = "", };
#pragma warning disable CS0612
QueryTimeSeriesRequest request = new QueryTimeSeriesRequest { };
#pragma warning restore CS0612
// Make the request
#pragma warning disable CS0612
PagedAsyncEnumerable<QueryTimeSeriesResponse, TimeSeriesData> response = queryServiceClient.QueryTimeSeriesAsync(request);
#pragma warning restore CS0612

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TimeSeriesData item) =>
Expand All @@ -50,7 +54,9 @@ await response.ForEachAsync((TimeSeriesData item) =>
});

// Or iterate over pages (of server-defined size), performing one RPC per page
#pragma warning disable CS0612
await response.AsRawResponses().ForEachAsync((QueryTimeSeriesResponse page) =>
#pragma warning restore CS0612
{
// Do something with each page of items
Console.WriteLine("A page of results:");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,13 @@ public void QueryTimeSeriesRequestObject()
// Create client
QueryServiceClient queryServiceClient = QueryServiceClient.Create();
// Initialize request argument(s)
QueryTimeSeriesRequest request = new QueryTimeSeriesRequest { Name = "", Query = "", };
#pragma warning disable CS0612
QueryTimeSeriesRequest request = new QueryTimeSeriesRequest { };
#pragma warning restore CS0612
// Make the request
#pragma warning disable CS0612
PagedEnumerable<QueryTimeSeriesResponse, TimeSeriesData> response = queryServiceClient.QueryTimeSeries(request);
#pragma warning restore CS0612

// Iterate over all response items, lazily performing RPCs as required
foreach (TimeSeriesData item in response)
Expand All @@ -48,7 +52,9 @@ public void QueryTimeSeriesRequestObject()
}

// Or iterate over pages (of server-defined size), performing one RPC per page
#pragma warning disable CS0612
foreach (QueryTimeSeriesResponse page in response.AsRawResponses())
#pragma warning restore CS0612
{
// Do something with each page of items
Console.WriteLine("A page of results:");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13661,12 +13661,12 @@
"segments": [
{
"start": 20,
"end": 75,
"end": 81,
"type": "FULL"
},
{
"start": 36,
"end": 73,
"end": 79,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -13710,12 +13710,12 @@
"segments": [
{
"start": 20,
"end": 77,
"end": 83,
"type": "FULL"
},
{
"start": 38,
"end": 75,
"end": 81,
"type": "SHORT"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@ public void QueryTimeSeriesRequestObject()
// Create client
QueryServiceClient queryServiceClient = QueryServiceClient.Create();
// Initialize request argument(s)
QueryTimeSeriesRequest request = new QueryTimeSeriesRequest { Name = "", Query = "", };
#pragma warning disable CS0612
QueryTimeSeriesRequest request = new QueryTimeSeriesRequest { };
#pragma warning restore CS0612
// Make the request
#pragma warning disable CS0612
PagedEnumerable<QueryTimeSeriesResponse, TimeSeriesData> response = queryServiceClient.QueryTimeSeries(request);
#pragma warning restore CS0612

// Iterate over all response items, lazily performing RPCs as required
foreach (TimeSeriesData item in response)
Expand All @@ -44,7 +48,9 @@ public void QueryTimeSeriesRequestObject()
}

// Or iterate over pages (of server-defined size), performing one RPC per page
#pragma warning disable CS0612
foreach (QueryTimeSeriesResponse page in response.AsRawResponses())
#pragma warning restore CS0612
{
// Do something with each page of items
Console.WriteLine("A page of results:");
Expand Down Expand Up @@ -77,9 +83,13 @@ public async Task QueryTimeSeriesRequestObjectAsync()
// Create client
QueryServiceClient queryServiceClient = await QueryServiceClient.CreateAsync();
// Initialize request argument(s)
QueryTimeSeriesRequest request = new QueryTimeSeriesRequest { Name = "", Query = "", };
#pragma warning disable CS0612
QueryTimeSeriesRequest request = new QueryTimeSeriesRequest { };
#pragma warning restore CS0612
// Make the request
#pragma warning disable CS0612
PagedAsyncEnumerable<QueryTimeSeriesResponse, TimeSeriesData> response = queryServiceClient.QueryTimeSeriesAsync(request);
#pragma warning restore CS0612

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((TimeSeriesData item) =>
Expand All @@ -89,7 +99,9 @@ await response.ForEachAsync((TimeSeriesData item) =>
});

// Or iterate over pages (of server-defined size), performing one RPC per page
#pragma warning disable CS0612
await response.AsRawResponses().ForEachAsync((QueryTimeSeriesResponse page) =>
#pragma warning restore CS0612
{
// Do something with each page of items
Console.WriteLine("A page of results:");
Expand Down
Loading

0 comments on commit 7468d5b

Please sign in to comment.