template_metrics
Creates, updates, deletes, gets or lists a template_metrics resource.
Overview​
| Name | template_metrics |
| Type | Resource |
| Id | railway.templates.template_metrics |
Fields​
The following fields are returned by SELECT queries:
- get
One TemplateMetrics row.
| Name | Datatype | Description |
|---|---|---|
active_deployments | integer | |
deployments_last90_days | integer | |
earnings_last30_days | number | |
earnings_last90_days | number | |
eligible_for_support_bonus | boolean | |
support_health | number | |
template_health | number | |
total_deployments | integer | |
total_earnings | number |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | id | Get the metrics for a template. Backed by the Railway GraphQL query templateMetrics. |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
id | string |
SELECT examples​
- get
Get the metrics for a template. Backed by the Railway GraphQL query templateMetrics.
SELECT
active_deployments,
deployments_last90_days,
earnings_last30_days,
earnings_last90_days,
eligible_for_support_bonus,
support_health,
template_health,
total_deployments,
total_earnings
FROM railway.templates.template_metrics
WHERE id = '{{ id }}' -- required
;