# groundcover

> Read Kubernetes resources, dashboards, alert workflows and monitor definitions in groundcover.

App · 9 actions. Web page: https://docs.lodol.com/docs/integrations/groundcover

## Actions

### Get a dashboard

Get the configuration of a saved dashboard.

**Inputs**

- ID (`id`, text, required): The dashboard ID.

**Outputs**

- `data` (object): The response from groundcover.

**Example output**

```json
{
  "data": {
    "name": "Service overview",
    "uuid": "dashboard-1"
  }
}
```

### List alert workflows

List configured workflows and their most recent execution status.

**Inputs**: None.

**Outputs**

- `data` (object): The response from groundcover.

**Example output**

```json
{
  "data": {
    "workflows": [
      {
        "created_by": "user@company.com",
        "creation_time": "2025-07-02T09:42:13.334103Z",
        "description": "Sends an API to MS Teams alerts endpoint",
        "id": "12345678-1234-1234-1234-123456789abc",
        "interval": 0,
        "invalid": false,
        "last_execution_started": null,
        "last_execution_status": null,
        "last_execution_time": null,
        "last_updated": "2025-07-03T08:57:09.881806Z",
        "name": "ms-teams-alerts-workflow",
        "providers": [
          {
            "id": "provider123456789abcdef",
            "installed": true,
            "name": "teams-integration",
            "type": "webhook"
          },
          {
            "id": null,
            "installed": false,
            "name": "backup-teams-integration",
            "type": "webhook"
          }
        ],
        "revision": 11,
        "triggers": [
          {
            "type": "alert"
          }
        ],
        "workflow_raw": "id: teams-webhook\ndescription: Sends an API to MS Teams alerts endpoint\ntriggers:\n- type: alert\n  filters:\n  - key: annotations.ms-teams-alerts-workflow\n    value: enabled\nname: ms-teams-alerts-workflow\n...",
        "workflow_raw_id": "teams-webhook"
      },
      {
        "created_by": "admin@company.com",
        "creation_time": "2025-06-19T12:49:37.630392Z",
        "description": "Workflow for sending alerts to custom webhook",
        "id": "87654321-4321-4321-4321-987654321def",
        "interval": 0,
        "invalid": false,
        "last_execution_started": null,
        "last_execution_status": null,
        "last_execution_time": null,
        "last_updated": "2025-06-19T12:51:24.643393Z",
        "name": "webhook-alerts-workflow",
        "providers": [
          {
            "id": "webhook987654321fedcba",
            "installed": true,
            "name": "custom-webhook",
            "type": "webhook"
          }
        ],
        "revision": 2,
        "triggers": [
          {
            "type": "alert"
          }
        ],
        "workflow_raw": "id: webhook-alerts\ndescription: Workflow for sending alerts to custom webhook\n...",
        "workflow_raw_id": "webhook-alerts"
      }
    ]
  }
}
```

### List dashboards

List saved dashboards accessible in your groundcover backend.

**Inputs**: None.

**Outputs**

- `data` (list): The response from groundcover.

**Example output**

```json
{
  "data": [
    {
      "name": "Service overview",
      "uuid": "dashboard-1"
    }
  ]
}
```

### List Kubernetes clusters

List Kubernetes clusters and their current resource usage.

**Inputs**

- Sources (`sources`, list): Data source filters in groundcover’s source filter format.

**Outputs**

- `data` (object): The response from groundcover.

**Example output**

```json
{
  "data": {
    "clusters": [
      {
        "cloudProvider": "AWS",
        "cpuAllocatable": 302820,
        "cpuLimit": 289800,
        "cpuLimitAllocatablePercent": 95.7,
        "cpuRequest": 187975,
        "cpuRequestAllocatablePercent": 62.07,
        "cpuUsage": 126640,
        "cpuUsageAllocatablePercent": 41.82,
        "cpuUsageLimitPercent": 43.7,
        "cpuUsageRequestPercent": 67.37,
        "creationTimestamp": "2021-11-01T14:37:31Z",
        "env": "prod",
        "issueCount": 1,
        "kubernetesVersion": "v1.30.14-eks-931bdca",
        "memoryAllocatable": 1227361431552,
        "memoryLimit": 604262891520,
        "memoryLimitAllocatablePercent": 49.23,
        "memoryRequest": 495549677568,
        "memoryRequestAllocatablePercent": 40.38,
        "memoryUsage": 242994409472,
        "memoryUsageAllocatablePercent": 19.8,
        "memoryUsageLimitPercent": 40.21,
        "memoryUsageRequestPercent": 49.04,
        "name": "production-cluster",
        "nodesCount": 6,
        "pods": {
          "Running": 109,
          "Succeeded": 3
        }
      }
    ],
    "totalCount": 116
  }
}
```

### List Kubernetes deployments

List Kubernetes deployments with replica counts and operational conditions.

**Inputs**

- Start (`start`, date and time, required): The start of the observation window.
- End (`end`, date and time, required): The end of the observation window.
- Namespaces (`namespaces`, list): Namespaces to include.
- Sources (`sources`, list): Data source filters in groundcover’s source filter format.

**Outputs**

- `data` (object): The response from groundcover.

**Example output**

```json
{
  "data": {
    "deployments": [
      {
        "available": 1,
        "cluster": "string",
        "conditions": [
          {
            "lastHeartbeatTime": null,
            "lastProbeTime": null,
            "lastTransitionTime": "string",
            "message": "string",
            "reason": "string",
            "status": "string",
            "type": "string"
          }
        ],
        "creationTime": "2023-08-30T18:27:01Z",
        "desired": 1,
        "env": "string",
        "id": "string",
        "name": "string",
        "namespace": "string",
        "ready": 1,
        "resourceVersion": 0,
        "warnings": [],
        "workloadName": "string"
      }
    ]
  }
}
```

### List Kubernetes namespaces

List namespaces seen during the selected time window.

**Inputs**

- Start (`start`, date and time, required): The start of the observation window.
- End (`end`, date and time, required): The end of the observation window.
- Sources (`sources`, list): Data source filters in groundcover’s source filter format.

**Outputs**

- `data` (object): The response from groundcover.

**Example output**

```json
{
  "data": {
    "namespaces": [
      "groundcover",
      "monitoring",
      "kube-system",
      "default"
    ]
  }
}
```

### List Kubernetes nodes

List Kubernetes nodes with CPU, memory and resource capacity.

**Inputs**

- Start (`start`, date and time, required): The start of the observation window.
- End (`end`, date and time, required): The end of the observation window.
- Limit (`limit`, number): Maximum number of nodes to return. At least 1.
- Sources (`sources`, list): Data source filters in groundcover’s source filter format.

**Outputs**

- `data` (object): The response from groundcover.

**Example output**

```json
{
  "data": {
    "nodes": [
      {
        "addresses": [
          {
            "address": "10.0.1.100",
            "type": "InternalIP"
          },
          {
            "address": "203.0.113.100",
            "type": "ExternalIP"
          }
        ],
        "allocatable": {
          "cpu": "1940m",
          "memory": "7Gi",
          "pods": "110"
        },
        "capacity": {
          "cpu": "2",
          "memory": "8Gi",
          "pods": "110"
        },
        "cluster": "cluster-name",
        "conditions": [
          {
            "lastTransitionTime": "2025-01-01T10:05:00Z",
            "message": "kubelet is posting ready status",
            "reason": "KubeletReady",
            "status": "True",
            "type": "Ready"
          }
        ],
        "creationTimestamp": "2025-01-01T10:00:00Z",
        "env": "environment-name",
        "labels": {
          "kubernetes.io/arch": "amd64",
          "kubernetes.io/os": "linux",
          "node.kubernetes.io/instance-type": "t3.medium"
        },
        "name": "node-name",
        "nodeInfo": {
          "architecture": "amd64",
          "containerRuntimeVersion": "containerd://1.6.0",
          "kernelVersion": "5.4.0-91-generic",
          "kubeProxyVersion": "v1.24.0",
          "kubeletVersion": "v1.24.0",
          "operatingSystem": "linux",
          "osImage": "Ubuntu 20.04.3 LTS"
        },
        "ready": true,
        "uid": "node-uid",
        "usage": {
          "cpu": "500m",
          "memory": "3Gi"
        }
      }
    ]
  }
}
```

### List Kubernetes workloads

List workloads with resource usage and request rates.

**Inputs**

- Conditions (`conditions`, list): Filter conditions in groundcover’s condition format.
- Limit (`limit`, number): Maximum workloads per request. From 1 to 1000.
- Skip (`skip`, number): Number of records to skip. At least 0.
- Order (`order`, text): Sort direction. One of: `asc`, `desc`.
- Sort by (`sort_by`, text): Workload metric used to sort the response. One of: `rps`, `cpuUsage`, `memoryUsage`.
- Sources (`sources`, list): Data source filters in groundcover’s source filter format.

**Outputs**

- `data` (object): The response from groundcover.

**Example output**

```json
{
  "data": {
    "total": 6314,
    "workloads": [
      {
        "cluster": "akamai-lk41ok",
        "cpuLimit": 0,
        "cpuUsage": 50510.15252730218,
        "env": "ga",
        "envType": "k8s",
        "errorRate": 0,
        "issueCount": 0,
        "kind": "ReplicaSet",
        "memoryLimit": 214748364800,
        "memoryUsage": 46527352832,
        "namespace": "groundcover-incloud",
        "p50": 0.0005824280087836087,
        "p95": 0.005730729550123215,
        "p99": 0.0327172689139843,
        "podsCount": 5,
        "ready": true,
        "resourceVersion": 651723275,
        "rps": 5526.0027359781125,
        "uid": "824b00bf-db68-47b5-8a53-9abd98bf7c0a",
        "workload": "groundcover-incloud-vector"
      }
    ]
  }
}
```

### Search monitors

Search monitor definitions using a groundcover query. Use a stable sort to page through results.

**Inputs**

- Query (`query`, text, required): A groundcover monitor search query.

**Outputs**

- `data` (object): The response from groundcover.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "is_paused": true,
        "name": "Checkout error logs",
        "type": "logs",
        "uuid": "00000000-0000-4000-8000-000000000001"
      }
    ],
    "valueFieldHints": []
  }
}
```
