MindSphere CLI: mdsp create-event Command

Syntax:

mdsp create-event

Help:

mdsp create-event --help

Alternative form:

mc create-event

(The CLI was using mc as default command name in older versions)

Description

create an event in the mindsphere (optional: passkey) *

Usage

Parameter list:

Usage: mc create-event|ce [options]

create an event in the mindsphere (optional: passkey) *

Options:
  -c, --config      config file with agent configuration
  -r, --cert [privatekey]        required for agents with RSA_3072 profile. create with: openssl genrsa -out private.key 3072
  -i, --assetid         mindsphere asset id  (default: send event to the agent)
  -y, --sourceType   Source Type (default: "MindConnect-Agent")
  -S, --sourceId       Source Id (default: "dev.ingenuity.rocks")
  -O, --source           Source (default: "MindConnect-NodeJs CLI")
  -V, --severity       Severity (20:Error, 30:Warning , 40:information) (default: "20")
  -d, --desc        Event description (default: "CLI created event")
  -t, --timestamp     Timestamp (default: "2022-04-24T02:05:18.889Z")
  -y, --retry            retry attempts before giving up (default: "3")
  -p, --passkey         passkey (optional, event creation uses service credentials *)
  -v, --verbose                  verbose output
  -h, --help                     display help for command

Examples

Here are some examples of how to use the mdsp create-event command:


  Examples:

    mc create-event 				 create error event with default values and current timestamp
    mc ce --desc Warning! --severity 30 	 create warning with description warning
    mc ce --desc "custom event" --i 123....4 	 create error event for asset with id 123....4

See MindSphere API documentation for more information about MindSphere APIs.

Further Information

The content of the community tools and libraries documentation pages is licensed under the MIT License.
Siemens API Notice applies.
Back to top