Skip to main content

IMoBroItem

The IMoBroItem interface defines an item that can be registered with MoBro. All registrable types — Metric, MetricType, Category, Group, Resource and Action — implement this interface.

See also: Registering Items

Properties

PropertyTypeRestrictionsDescription
IdstringRequired
Length: 1 - 256
Pattern: ^[\w\.\-]+$
The unique item ID.

ID Requirements

  • IDs must be unique within the scope of the plugin.
  • IDs may only contain letters, digits, underscores (_), dots (.) and hyphens (-).
    Spaces, colons or slashes — common in the sensor paths of hardware libraries — are not allowed, so sanitize such values before using them as an ID.

Items that violate these rules are not registered. See Registering Items: Validation and Limits.

Automatic Mapping

IDs exceeding 36 characters are automatically mapped to a 128-bit hash value for internal use by MoBro.

  • The plugin continues to use its original, self-defined IDs as usual.
  • The shorter hash is only used internally by MoBro.
  • This mapping happens automatically and requires no additional handling by the plugin.
  • The hashes also appear when checking the IDs of metrics on the plugin's overview page in MoBro.