OpenNMS.js - v2.6.2-SNAPSHOT
    Preparing search index...

    Class OnmsServer

    Represents a remote OpenNMS server.

    Index

    Constructors

    • Construct a new OnmsServer object representing a remote server.

      Parameters

      • serverBuilder: OnmsServerBuilder

        A builder for the server params, see [[OnmsServerBuilder]]

      Returns OnmsServer

      provide a pre-existing [[OnmsAuthConfig]] for auth ```javascript const server = new OnmsServer('Test', 'https://myserver/opennms/', auth); ```

    Properties

    The authorization configuration associated with the server.

    id: string

    A unique identifier for this server.

    metadata: ServerMetadata

    The capabilities of the server

    name?: string

    An optional name associated with this server.

    url: string

    The base URL to the server.

    Accessors

    • get host(): any

      Get the hostname portion of the URL associated with this server.

      Returns any

    Methods

    • Given a relative URL fragment, construct a URL for that fragment on the server.

      Parameters

      • OptionalforFragment: string

        The URL fragment to append to the server URL.

      • OptionalwithQuery: any

        Query parameters to be appended to the URL.

      Returns any

      A complete URL.

    • A string representation of this server suitable for display.

      Returns string