Skip to main content

ErrorEvent

messagestringrequired

The error message.

Example: Failed to stage changes for resourceA
diagnostics object[]

A list of diagnostics extracted from an error during change staging or deployment, this will be present if there are validation errors when loading the blueprint document.

  • Array [
  • messagestringrequired

    The message of the diagnostic.

    Example: Incorrect blueprint version
    levelintegerrequired

    The level of the diagnostic.

    Example: 1
    range object
    start object

    The start position of the range.

    lineinteger

    The line number of the source position.

    Example: 1
    columninteger

    The column number of the source position.

    Example: 1
    endPosition objectnullable

    An optional end position for the location where the location represents a range that identifies a particular item in a document.

    lineinteger

    The line number of the source position.

    Example: 1
    columninteger

    The column number of the source position.

    Example: 1
    end object

    The end position of the range.

    lineinteger

    The line number of the source position.

    Example: 1
    columninteger

    The column number of the source position.

    Example: 1
    endPosition objectnullable

    An optional end position for the location where the location represents a range that identifies a particular item in a document.

    lineinteger

    The line number of the source position.

    Example: 1
    columninteger

    The column number of the source position.

    Example: 1
    columnAccuracyinteger

    The column accuracy of the range in the host document.

    Possible values: [1, 2]

    Example: 1
  • ]
  • timestampintegerrequired

    The unix timestamp of the event in seconds.

    Example: 1678901234
    ErrorEvent
    {
    "message": "Failed to stage changes for resourceA",
    "diagnostics": [
    {
    "message": "Incorrect blueprint version",
    "level": 1,
    "range": {
    "start": {
    "line": 1,
    "column": 1,
    "endPosition": {
    "line": 1,
    "column": 1
    }
    },
    "end": {
    "line": 1,
    "column": 1,
    "endPosition": {
    "line": 1,
    "column": 1
    }
    },
    "columnAccuracy": 1
    }
    }
    ],
    "timestamp": 1678901234
    }