Quick Start
This guide walks you through creating your first PRISM document and calculating a health score.
1. Initialize a Document
Create a new PRISM document with default settings:
This creates a document with operations metrics.
2. Edit Your Metrics
Open prism.json and customize the metrics. Each metric requires:
- id - Unique identifier
- name - Human-readable name
- domain -
securityoroperations - stage -
design,build,test,runtime, orresponse - category -
prevention,detection,response,reliability,efficiency, orquality - metricType -
coverage,rate,latency,ratio,count,distribution, orscore - current - Current value
- target - Target value
Example metric:
{
"id": "ops-availability",
"name": "Service Availability",
"domain": "operations",
"stage": "runtime",
"category": "reliability",
"metricType": "rate",
"unit": "%",
"current": 99.95,
"target": 99.99,
"slo": {
"target": ">=99.99%",
"operator": "gte",
"value": 99.99,
"window": "30d"
}
}
3. Validate Your Document
Check that your document is valid:
If there are errors, the CLI will display them with field paths.
4. Calculate Your Score
Get your PRISM score:
For a detailed breakdown:
For JSON output (useful for automation):
5. View Available Constants
List all valid domains, stages, categories, and metric types:
Next Steps
- Create Your First Document - Detailed walkthrough
- Schema Reference - Complete schema documentation
- PRISM Score - Understanding the scoring formula