Class DefaultResourceStatusDelegate.Builder
java.lang.Object
com.inductiveautomation.ignition.gateway.config.DefaultResourceStatusDelegate.Builder
- Enclosing class:
- DefaultResourceStatusDelegate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()categoryHealthCheck(String alias, String categoryHealthCheck) Adds a category health check name.categoryMetric(String alias, String categoryMetricName) Adds a category metric name.instanceHealthCheck(String alias, String instanceHealthCheck) Adds a health check for a resource instance.instanceMetric(String alias, String instanceMetric) Adds a metric for a resource instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
categoryMetric
public DefaultResourceStatusDelegate.Builder categoryMetric(String alias, String categoryMetricName) Adds a category metric name. This a metric registered with the shared metric registry that represents a metric for the entire category of resources represented by this type.May be invoked multiple times to add multiple category metrics.
- Parameters:
alias- A short alias to use for the metriccategoryMetricName- The full name of the metric, as registered in the shared metric registry- See Also:
-
categoryHealthCheck
public DefaultResourceStatusDelegate.Builder categoryHealthCheck(String alias, String categoryHealthCheck) Adds a category health check name. This is a health check registered with the shared health check registry that represents a health check for the entire category of resources represented by this type.May be invoked multiple times to add multiple category health checks.
- Parameters:
alias- A short alias to use for the health checkcategoryHealthCheck- The full name of the health check, as registered in the shared health check registry- See Also:
-
instanceHealthCheck
public DefaultResourceStatusDelegate.Builder instanceHealthCheck(String alias, String instanceHealthCheck) Adds a health check for a resource instance. These are health checks registered with the shared health check registry for each instance of this resource typeMay be invoked multiple times to add multiple health checks.
Example:
builder.instanceHealthCheck( "connected", "mysubsystem.things.%s.connected" );- Parameters:
alias- A short alias to use for the health checkinstanceHealthCheck- A string pattern to derive the full name of the healthcheck, where%swill be replaced with the resource name. For example,mysubsystem.things.%s- See Also:
-
instanceMetric
Adds a metric for a resource instance. These are metrics registered with the shared metric registry for each instance of this resource type.May be invoked multiple times to add multiple metrics.
Example:
builder.instanceMetric( "messageThroughput", "mysubsystem.things.%s.messageThroughput" );- Parameters:
alias- A short alias to use for the metricinstanceMetric- A string pattern to derive the full name of the metric, where%swill be replaced with the resource name. For example,mysubsystem.things.%s- See Also:
-
build
-