=== API Performance Monitor by Volade ===
Contributors: volade
Tags: api, performance, rest, monitoring, volade
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later

Self-hosted WordPress REST API performance monitor lite. Sample timings, endpoint ranking, alerts, presets, JSON export, REST apm/v1, WP-CLI wp apm.

== Description ==

API Performance Monitor by Volade captures sampled timings for `/wp-json/*` routes and stores local aggregates — without an external APM agent.

Features:
* Sampled request timings (route, method, status, duration_ms, memory, hashed IP)
* Endpoint ranking (avg/max ms, hits, errors)
* Alerts for slow requests and elevated error rates
* Audit events trail and JSON export
* Shortcodes: [apm_badge] / [apm_status] (healthy/degraded only when enabled)
* Presets: agency-fleet, woocommerce-api, headless-wp, debug-spike
* REST namespace: apm/v1 · WP-CLI: wp apm

Disclaimers:
* Not a New Relic / Datadog / Query Monitor replacement
* No distributed tracing / no external APM agent
* Sampling may miss rare spikes
* IP addresses are stored hashed only

== Installation ==

1. Upload the plugin folder to /wp-content/plugins/api-performance-monitor-by-volade/
2. Activate through the Plugins menu in WordPress
3. Open API Performance under Volade or Tools

== Frequently Asked Questions ==

= Does this replace New Relic or Datadog? =

No. It is a lightweight, self-hosted WordPress REST sampler.

= Does it include distributed tracing? =

No. There is no tracing or external agent.

= Are IP addresses stored? =

Only as salted SHA-256 hashes — never raw IPs.

= What are the command and namespace? =

WP-CLI command: wp apm
REST namespace: apm/v1

== Changelog ==

= 1.0.0 =
* Initial APM MVP for roadmap #78.
