Tool: list_fleet_health_issues
This tool provides statistics about various health issues and signals detected across the database fleet. It helps in identifying the number of resources affected by different types of issues, categorized by signal types.
The following sample demonstrate how to use curl to invoke the list_fleet_health_issues MCP tool.
| Curl Request |
|---|
curl --location 'https://databasecenter.googleapis.com/mcp' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/call", "params": { "name": "list_fleet_health_issues", "arguments": { // provide these details according to the tool's MCP specification } }, "jsonrpc": "2.0", "id": 1 }' |
Input Schema
AggregateIssueStatsRequest represents the input to the AggregateIssueStats method.
AggregateIssueStatsRequest
| JSON representation |
|---|
{ "parent": string, "filter": string, "signalTypeGroups": [ { object ( |
| Fields | |
|---|---|
parent |
Required. Parent can be a project, a folder, or an organization. The search is limited to the resources within the The allowed values are:
|
filter |
Optional. The expression to filter resources. Supported fields are: The expression is a list of zero or more restrictions combined via logical operators Example: |
signalTypeGroups[] |
Optional. Lists of signal types that are issues. |
Union field
|
|
baselineDate |
Optional. The baseline date w.r.t. which the delta counts are calculated. If not set, delta counts are not included in the response and the response indicates the current state of the fleet. |
SignalTypeGroup
| JSON representation |
|---|
{
"displayName": string,
"signalTypes": [
enum ( |
| Fields | |
|---|---|
displayName |
Required. The display name of a signal group. |
signalTypes[] |
Optional. List of signal types present in the group. |
Date
| JSON representation |
|---|
{ "year": integer, "month": integer, "day": integer } |
| Fields | |
|---|---|
year |
Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. |
month |
Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. |
day |
Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. |
Output Schema
The response message containing one of more group of relevant health issues for database resources.
AggregateIssueStatsResponse
| JSON representation |
|---|
{
"issueGroupStats": [
{
object ( |
| Fields | |
|---|---|
issueGroupStats[] |
List of issue group stats where each group contains stats for resources having a particular combination of relevant issues. |
totalResourcesCount |
Total count of the resources filtered in based on the user given filter. |
totalResourceGroupsCount |
Total count of the resource filtered in based on the user given filter. |
unreachable[] |
Unordered list. List of unreachable regions from where data could not be retrieved. |
IssueGroupStats
| JSON representation |
|---|
{
"displayName": string,
"resourceGroupsCount": integer,
"resourcesCount": integer,
"healthyResourceGroupsCount": integer,
"healthyResourcesCount": integer,
"issueStats": [
{
object ( |
| Fields | |
|---|---|
displayName |
Database resource level health card name. This will corresponds to one of the requested input group names. |
resourceGroupsCount |
Total count of the groups of resources returned by the filter that also have one or more resources for which any of the specified issues are applicable. |
resourcesCount |
Total count of resources returned by the filter for which any of the specified issues are applicable. |
healthyResourceGroupsCount |
The number of resource groups from the total groups as defined above that are healthy with respect to all of the specified issues. |
healthyResourcesCount |
The number of resources from the total defined above in field total_resources_count that are healthy with respect to all of the specified issues. |
issueStats[] |
List of issues stats containing count of resources having particular issue category. |
IssueStats
| JSON representation |
|---|
{ "signalType": enum ( |
| Fields | |
|---|---|
signalType |
Type of signal which is an issue. |
resourceCount |
Number of resources having issues of a given type. |
Union field
|
|
deltaDetails |
Optional. Delta counts and details of resources for which issue was raised or fixed. |
Union field
|
|
issueSeverity |
Severity of the issue. |
DeltaDetails
| JSON representation |
|---|
{ "increasedResources": [ { object ( |
| Fields | |
|---|---|
increasedResources[] |
Details of resources that have increased. |
decreasedResources[] |
Details of resources that have decreased. |
ResourceDetails
| JSON representation |
|---|
{
"fullResourceName": string,
"container": string,
"product": {
object ( |
| Fields | |
|---|---|
fullResourceName |
Full resource name of the resource. |
container |
Specifies where the resource is created. For Google Cloud resources, it is the full name of the project. |
product |
Product type of the resource. |
location |
Location of the resource. |
Product
| JSON representation |
|---|
{ "type": enum ( |
| Fields | |
|---|---|
type |
Optional. Type of specific database product. It could be CloudSQL, AlloyDB etc.. |
engine |
Optional. The specific engine that the underlying database is running. |
version |
Optional. Version of the underlying database engine. Example values: For MySQL, it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" etc. |
minorVersion |
Optional. Minor version of the underlying database engine. Example values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be "14.4", "15.5" etc. |
Tool Annotations
Destructive Hint: ❌ | Idempotent Hint: ✅ | Read Only Hint: ✅ | Open World Hint: ❌