When a heartbeat is created, your custom heartbeat plug-in is passed the following arguments by the Geographic Edition software:
The value of the Query-interval property, which defines the delay in seconds after which a heartbeat status request is declared a failure.
The mode for the plug-in startup, either Normal or Emergency.
The value of the Plugin-properties property that is configured for the heartbeat plug-in, if any.
For more information about the properties you can set, see Appendix A, Standard Geographic Edition Properties.
Your custom heartbeat plug-in is expected to check the heartbeat on the secondary cluster and return one of the following exit values:
Zero, if successful – Indicates that the secondary cluster is alive
Nonzero, on failure – Indicates that the secondary cluster did not respond to the heartbeat check