Skip to main content

template_metrics

Creates, updates, deletes, gets or lists a template_metrics resource.

Overview​

Nametemplate_metrics
TypeResource
Idrailway.templates.template_metrics

Fields​

The following fields are returned by SELECT queries:

One TemplateMetrics row.

NameDatatypeDescription
active_deploymentsinteger
deployments_last90_daysinteger
earnings_last30_daysnumber
earnings_last90_daysnumber
eligible_for_support_bonusboolean
support_healthnumber
template_healthnumber
total_deploymentsinteger
total_earningsnumber

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectidGet 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.

NameDatatypeDescription
idstring

SELECT examples​

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
;