# GetPageSpeed Amplify

> Watch your servers' NGINX metrics, security findings, alerts and website uptime in GetPageSpeed Amplify.

App · 16 actions. Web page: https://docs.lodol.com/docs/integrations/getpagespeed-amplify

## Actions

### Get account

See your Amplify plan, its limits and how much of it you use.

**Inputs**: None.

**Outputs**

- `data` (object): The response from GetPageSpeed Amplify.

**Example output**

```json
{
  "data": {
    "email": "ops@example.com",
    "login": "acme",
    "plan": {
      "host_limit": 25,
      "id": "pro",
      "name": "Pro",
      "retention_hours": 720,
      "website_limit": 50
    },
    "rate_limit": {
      "burst": 30,
      "requests_per_minute": 120
    },
    "usage": {
      "hosts": 3,
      "websites": 4
    }
  }
}
```

### Get host

Get one monitored server.

**Inputs**

- Host (`uuid`, text, required): The server to read. Pick one, or use a host ID from List hosts.

**Outputs**

- `data` (object): The response from GetPageSpeed Amplify.

**Example output**

```json
{
  "data": {
    "agent_version": "1.8.18",
    "allowed": true,
    "created_at": "2026-01-14T10:02:11Z",
    "hostname": "web1.example.com",
    "last_seen": "2026-10-07T08:29:41Z",
    "online": true,
    "server_kinds": [
      "nginx"
    ],
    "tags": [
      "env:production",
      "client:acme"
    ],
    "type": "system",
    "uuid": "6b8283f365bc4d9c82289f3ef23e5125"
  }
}
```

### Get latest metric value

Get the latest value of one of a server's metrics.

**Inputs**

- Host (`uuid`, text, required): The server to read. Pick one, or use a host ID from List hosts.
- Metric (`name`, text, required): The metric name, such as system.cpu.user. List host metrics shows them all.

**Outputs**

- `data` (object): The response from GetPageSpeed Amplify.

**Example output**

```json
{
  "data": {
    "host_uuid": "6b8283f365bc4d9c82289f3ef23e5125",
    "name": "system.cpu.user",
    "timestamp": "2026-10-07T08:29:00Z",
    "type": "gauge",
    "value": 12.4
  }
}
```

### Get metric history

Get the values of one or more of a server's metrics over a recent time window.

**Inputs**

- Host (`uuid`, text, required): The server to read. Pick one, or use a host ID from List hosts.
- Metrics (`names`, list, required): The metric names to read, such as nginx.http.request.count or system.cpu.user. List host metrics shows them all.
- Time window (`since`, text): How far back to read. Leave empty for the last hour. One of: `15m` (Last 15 minutes), `30m` (Last 30 minutes), `1h` (Last hour), `4h` (Last 4 hours), `12h` (Last 12 hours), `24h` (Last 24 hours), `2d` (Last 2 days), `7d` (Last 7 days), `30d` (Last 30 days), `90d` (Last 90 days).

**Outputs**

- `data` (object): The response from GetPageSpeed Amplify.

**Example output**

```json
{
  "data": {
    "host_uuid": "6b8283f365bc4d9c82289f3ef23e5125",
    "interval": 60,
    "series": {
      "nginx.http.request.count": [
        {
          "timestamp": "2026-10-07T04:30:00Z",
          "value": 1243
        }
      ],
      "system.cpu.user": [
        {
          "timestamp": "2026-10-07T04:30:00Z",
          "value": 12.4
        }
      ]
    },
    "since": "2026-10-07T04:30:00Z"
  }
}
```

### Get NGINX configuration findings

Get the security problems Gixy found in a server's NGINX configuration, with suggested fixes.

**Inputs**

- Host (`uuid`, text, required): The server to read. Pick one, or use a host ID from List hosts.

**Outputs**

- `data` (object): The response from GetPageSpeed Amplify.

**Example output**

```json
{
  "data": {
    "analyzed_at": "2026-10-07T06:00:00Z",
    "auto_gixy": true,
    "gixy_version": "0.2.7",
    "host_uuid": "6b8283f365bc4d9c82289f3ef23e5125",
    "issues": [
      {
        "description": "add_header in a nested block replaces the headers set in the parent block.",
        "file": "/etc/nginx/conf.d/site.conf",
        "fixes": [
          {
            "description": "Add the parent block's headers to this location.",
            "replace": "add_header Cache-Control no-cache;\nadd_header X-Frame-Options SAMEORIGIN;",
            "search": "add_header Cache-Control no-cache;",
            "title": "Repeat the parent headers"
          }
        ],
        "line": 42,
        "plugin": "add_header_redefinition",
        "reason": "Parent headers are not inherited by this location.",
        "reference": "https://github.com/dvershinin/gixy/blob/master/docs/en/plugins/addheaderredefinition.md",
        "severity": "MEDIUM",
        "summary": "Nested add_header drops parent headers."
      }
    ],
    "nginx_version": "1.26.2",
    "no_config": false,
    "not_analyzed": false,
    "plan": "pro",
    "summary": {
      "high": 0,
      "low": 0,
      "medium": 1,
      "total": 1
    }
  }
}
```

### Get NGINX vulnerabilities

List the known CVEs that affect the NGINX version a server runs.

**Inputs**

- Host (`uuid`, text, required): The server to read. Pick one, or use a host ID from List hosts.

**Outputs**

- `data` (object): The response from GetPageSpeed Amplify.

**Example output**

```json
{
  "data": {
    "cves": [
      {
        "cve_id": "CVE-2024-7347",
        "fixed_in": "1.27.1",
        "nginx_version": "1.26.1",
        "nickname": "mp4 module",
        "reason": "1.26.1 is before 1.27.1",
        "reference": "https://nginx.org/en/security_advisories.html",
        "severity": "medium"
      }
    ],
    "host_uuid": "6b8283f365bc4d9c82289f3ef23e5125",
    "summary": {
      "high": 0,
      "medium": 1,
      "other": 0,
      "total": 1
    }
  }
}
```

### Get PHP runtimes

List the PHP-FPM versions on a server, whether they're still supported, and the CVEs that affect them.

**Inputs**

- Host (`uuid`, text, required): The server to read. Pick one, or use a host ID from List hosts.

**Outputs**

- `data` (object): The response from GetPageSpeed Amplify.

**Example output**

```json
{
  "data": {
    "agent_upgrade_needed": false,
    "host_uuid": "6b8283f365bc4d9c82289f3ef23e5125",
    "runtimes": [
      {
        "active_support_until": "2021-11-28",
        "bin_path": "/opt/remi/php74/root/usr/sbin/php-fpm",
        "branch": "7.4",
        "eol": true,
        "eol_date": "2022-11-28",
        "findings": [
          {
            "cve": "CVE-2024-4577",
            "fixed_in": "8.1.29",
            "nickname": "CGI argument injection",
            "reason": "7.4.33 is end of life",
            "reference": "https://www.php.net/ChangeLog-8.php",
            "severity": "high",
            "status": "vulnerable",
            "summary": "Argument injection in PHP-CGI on Windows."
          }
        ],
        "lifecycle_status": "eol",
        "package": "php74-php-fpm",
        "remediation": {
          "article_url": "https://www.getpagespeed.com/",
          "commands": [
            "yum upgrade php74-*"
          ],
          "package_glob": "php74-*",
          "repo": "getpagespeed-extras",
          "same_branch": true,
          "service": "php74-php-fpm"
        },
        "status": "vulnerable",
        "version": "7.4.33"
      }
    ]
  }
}
```

### Get security overview

See every server's NGINX CVEs, configuration findings and PHP status in one list, with those that need attention marked.

**Inputs**: None.

**Outputs**

- `data` (object): The response from GetPageSpeed Amplify.

**Example output**

```json
{
  "data": {
    "hosts": [
      {
        "attention_needed": true,
        "gixy": {
          "analyzed": true,
          "analyzed_at": "2026-10-07T06:00:00Z",
          "summary": {
            "high": 0,
            "low": 0,
            "medium": 1,
            "total": 1
          }
        },
        "hostname": "web1.example.com",
        "nginx_cves": {
          "high": 0,
          "medium": 1,
          "other": 0,
          "total": 1
        },
        "online": true,
        "php_status": "vulnerable",
        "php_versions": [
          "7.4.33"
        ],
        "uuid": "6b8283f365bc4d9c82289f3ef23e5125"
      }
    ],
    "needs_attention": 1,
    "total": 1
  }
}
```

### Get website

Get a website's uptime, response times, TLS details, alert settings and last 5 checks.

**Inputs**

- Website (`id`, text, required): The website monitor to read. Pick one, or use an ID from List websites.

**Outputs**

- `data` (object): The response from GetPageSpeed Amplify.

**Example output**

```json
{
  "data": {
    "alert_cert_expiry": true,
    "alert_compression_loss": false,
    "alert_http_downgrade": false,
    "alert_on_down": true,
    "alert_ttfb_threshold": 1000,
    "avg_ttfb_24h_ms": 201,
    "baseline_http_version": "3",
    "cert_days_remaining": 61,
    "check_html_complete": false,
    "check_interval_seconds": 60,
    "enabled": true,
    "id": 42,
    "is_up": true,
    "last_checked": "2026-10-07T08:25:00Z",
    "last_content_encoding": "br",
    "last_http_version": "3",
    "last_ttfb_ms": 187,
    "max_ttfb_24h_ms": 420,
    "min_ttfb_24h_ms": 150,
    "name": "acme.com",
    "recent_checks": [
      {
        "cert_days_remaining": 61,
        "cf_cache_status": "HIT",
        "cf_datacenter": "LIS",
        "checked_at": "2026-10-07T08:25:00Z",
        "dns_lookup": 4,
        "error": "",
        "has_csp": false,
        "has_hsts": true,
        "has_permissions_policy": false,
        "has_referrer_policy": true,
        "has_x_content_type_options": true,
        "has_x_frame_options": true,
        "http_version": "3",
        "id": 998877,
        "security_score": 83,
        "status_code": 200,
        "success": true,
        "tls_handshake": 38,
        "tls_version": "TLS 1.3",
        "ttfb_ms": 187
      }
    ],
    "tls_version": "TLS 1.3",
    "uptime_24h": 99.93,
    "uptime_7d": 99.98,
    "url": "https://acme.com/"
  }
}
```

### List alert rules

List your alert rules, with whether each is firing.

**Inputs**: None.

**Outputs**

- `data` (object): The response from GetPageSpeed Amplify.

**Example output**

```json
{
  "data": {
    "alerts": [
      {
        "created_at": "2026-02-01T09:00:00Z",
        "host_name": "web1.example.com",
        "host_uuid": "6b8283f365bc4d9c82289f3ef23e5125",
        "id": 7,
        "last_triggered": "2026-10-06T21:03:55Z",
        "metric_name": "system.cpu.user",
        "muted": false,
        "name": "High CPU",
        "operator": "gt",
        "operator_symbol": ">",
        "status": "ok",
        "subscribers": [
          "ops@example.com"
        ],
        "threshold": 90,
        "time_period": 300,
        "time_period_label": "5 minutes",
        "webhook_ids": [
          3
        ]
      }
    ]
  }
}
```

### List host components

List the NGINX, PHP-FPM, MySQL and Varnish instances found on a server, with their versions.

**Inputs**

- Host (`uuid`, text, required): The server to read. Pick one, or use a host ID from List hosts.

**Outputs**

- `data` (object): The response from GetPageSpeed Amplify.

**Example output**

```json
{
  "data": {
    "components": [
      {
        "active": true,
        "id": 12,
        "pool_name": "www",
        "type": "phpfpm",
        "version": "8.3.12"
      }
    ],
    "host_uuid": "6b8283f365bc4d9c82289f3ef23e5125"
  }
}
```

### List host metrics

List the names of the metrics a server reports, grouped by what they measure.

**Inputs**

- Host (`uuid`, text, required): The server to read. Pick one, or use a host ID from List hosts.

**Outputs**

- `data` (object): The response from GetPageSpeed Amplify.

**Example output**

```json
{
  "data": {
    "groups": {
      "nginx": [
        "nginx.http.request.count"
      ],
      "system": [
        "system.cpu.user"
      ]
    },
    "host_uuid": "6b8283f365bc4d9c82289f3ef23e5125",
    "metrics": [
      "nginx.http.request.count",
      "system.cpu.user"
    ],
    "total": 2
  }
}
```

### List hosts

List the servers Amplify monitors, with whether each is online.

**Inputs**: None.

**Outputs**

- `data` (object): The response from GetPageSpeed Amplify.

**Example output**

```json
{
  "data": {
    "hosts": [
      {
        "agent_version": "1.8.18",
        "allowed": true,
        "created_at": "2026-01-14T10:02:11Z",
        "hostname": "web1.example.com",
        "last_seen": "2026-10-07T08:29:41Z",
        "online": true,
        "server_kinds": [
          "nginx"
        ],
        "tags": [
          "env:production",
          "client:acme"
        ],
        "type": "system",
        "uuid": "6b8283f365bc4d9c82289f3ef23e5125"
      }
    ],
    "total": 1
  }
}
```

### List recent alerts

List the latest website outages and alert rule firings, newest first.

**Inputs**

- Limit (`limit`, number): The most alerts to return, up to 200. Leave empty for 100. From 1 to 200.
- Time window (`since`, text): Only alerts in this window. Leave empty for no window. One of: `15m` (Last 15 minutes), `30m` (Last 30 minutes), `1h` (Last hour), `4h` (Last 4 hours), `12h` (Last 12 hours), `24h` (Last 24 hours), `2d` (Last 2 days), `7d` (Last 7 days), `30d` (Last 30 days), `90d` (Last 90 days).

**Outputs**

- `data` (object): The response from GetPageSpeed Amplify.

**Example output**

```json
{
  "data": {
    "alerts": [
      {
        "host_uuid": "6b8283f365bc4d9c82289f3ef23e5125",
        "hostname": "web1.example.com",
        "id": 7,
        "message": "system.cpu.user > 90 for 5 minutes",
        "occurred_at": "2026-10-06T21:03:55Z",
        "source_id": 7,
        "source_name": "High CPU",
        "type": "host_alert"
      }
    ]
  }
}
```

### List website checks

List a website's check results, such as status code, response time and certificate days left.

**Inputs**

- Website (`id`, text, required): The website monitor to read. Pick one, or use an ID from List websites.
- Limit (`limit`, number): The most checks to return, up to 500. Leave empty for 100. From 1 to 500.
- Time window (`since`, text): Only checks in this window, oldest first. Leave empty for the newest checks, newest first. One of: `15m` (Last 15 minutes), `30m` (Last 30 minutes), `1h` (Last hour), `4h` (Last 4 hours), `12h` (Last 12 hours), `24h` (Last 24 hours), `2d` (Last 2 days), `7d` (Last 7 days), `30d` (Last 30 days), `90d` (Last 90 days).

**Outputs**

- `data` (object): The response from GetPageSpeed Amplify.

**Example output**

```json
{
  "data": {
    "checks": [
      {
        "cert_days_remaining": 61,
        "cf_cache_status": "HIT",
        "cf_datacenter": "LIS",
        "checked_at": "2026-10-07T08:25:00Z",
        "dns_lookup": 4,
        "error": "",
        "has_csp": false,
        "has_hsts": true,
        "has_permissions_policy": false,
        "has_referrer_policy": true,
        "has_x_content_type_options": true,
        "has_x_frame_options": true,
        "http_version": "3",
        "id": 998877,
        "security_score": 83,
        "status_code": 200,
        "success": true,
        "tls_handshake": 38,
        "tls_version": "TLS 1.3",
        "ttfb_ms": 187
      }
    ],
    "total": 1,
    "website_id": 42
  }
}
```

### List websites

List the websites Amplify checks, with their uptime and response time over the last day.

**Inputs**: None.

**Outputs**

- `data` (object): The response from GetPageSpeed Amplify.

**Example output**

```json
{
  "data": {
    "websites": [
      {
        "avg_ttfb_24h_ms": 201,
        "cert_days_remaining": 61,
        "check_interval_seconds": 60,
        "enabled": true,
        "id": 42,
        "is_up": true,
        "last_checked": "2026-10-07T08:25:00Z",
        "last_content_encoding": "br",
        "last_http_version": "3",
        "last_ttfb_ms": 187,
        "name": "acme.com",
        "uptime_24h": 99.93,
        "url": "https://acme.com/"
      }
    ]
  }
}
```
