Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Path:/rest/alerts
Example URI:/rest/alerts
Example output:


Code Block
[{
	"id": "e1a8ea66-b292-445e-8e70-4298ba0d3f9f",
	"alertingDefinition": {
		"id": "a024830a-a980-4493-82c8-d11a62913b15",
		"name": "Sync. Loading SLA",
		"description": null,
		"createdDate": 1507272286739,
		"updatedDate": 1507272452893,
		"importDate": null,
		"threshold": 100.0,
		"field": "duration",
		"thresholdType": "UPPER_THRESHOLD",
		"measurement": "businessTransactions",
		"tags": {
			"businessTxName": "Sync. Loading",
			"applicationName": "Demo Application"
		},
		"notificationEmailAddresses": ["mario.mann@novaec-gmbh.dealert@example.org"]
	},
	"startTimestamp": 1507272605248,
	"stopTimestamp": -1,
	"closingReason": null,
	"open": true
}]

 

...

Path:/rest/alerts/open
Example URI:/rest/alerts/open
Example output:


Code Block
[{
	"id": "e1a8ea66-b292-445e-8e70-4298ba0d3f9f",
	"alertingDefinition": {
		"id": "a024830a-a980-4493-82c8-d11a62913b15",
		"name": "Sync. Loading SLA",
		"description": null,
		"createdDate": 1507272286739,
		"updatedDate": 1507272452893,
		"importDate": null,
		"threshold": 100.0,
		"field": "duration",
		"thresholdType": "UPPER_THRESHOLD",
		"measurement": "businessTransactions",
		"tags": {
			"businessTxName": "Sync. Loading",
			"applicationName": "Demo Application"
		},
		"notificationEmailAddresses": ["mario.mann@novaec-gmbh.dealert@example.org"]
	},
	"startTimestamp": 1507272605248,
	"stopTimestamp": -1,
	"closingReason": null,
	"open": true
}]


...

Path:/rest/alerts/closed
Example URI:/rest/alerts/closed
Example output:


Code Block
[
  {
    "id": 28766,
    "timeStamp": 1468054985881,
    "packageName": "info.novatec.inspectitsamples.calculator",
    "className": "Calculator",
    "methodName": "processEquals",
    "parameters": [],
    "returnType": "void",
    "modifiers": 268435456,
    "active": true
  },
  {
    "id": 28770,
    "timeStamp": 1468054985895,
    "packageName": "info.novatec.inspectitsamples.calculator",
    "className": "Calculator",
    "methodName": "setDisplayString",
    "parameters": [
      "java.lang.String"
    ],
    "returnType": "void",
    "modifiers": 268435456,
    "active": true
  },
  {
    "id": 28768,
    "timeStamp": 1468054985888,
    "packageName": "info.novatec.inspectitsamples.calculator",
    "className": "Calculator",
    "methodName": "processOperator",
    "parameters": [
      "java.lang.String"
    ],
    "returnType": "void",
    "modifiers": 268435456,
    "active": true
  }
]


4. Get alert
Anchor
alertId
alertId

Path:/rest/alerts/{alertId}
Parameters:
  1. alertId (String value, required) - Id of the alert to get.
Example URI:/rest/alerts/e1a8ea66-b292-445e-8e70-4298ba0d3f9f
Example output:


Code Block
[
  {
    	"id": 28759,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.method.jdbc.ConnectionSensor"
  },
  {
    "id": 28756,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.platform.RuntimeInformation"
  },
  {
    "id": 28762,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.method.jdbc.PreparedStatementParameterSensor"
  },
  {
    "id": 28758,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.platform.ThreadInformation"
  },
  {
    "id": 28753,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.platform.CompilationInformation"
  },
  {
    "id": 28760,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.method.http.HttpSensor"
  },
  {
    "id": 28757,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.platform.SystemInformation"
  },
  {
    "id": 28754,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.platform.CpuInformation"
  },
  {
    "id": 28765,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.method.timer.TimerSensor"
  },
  {
    "id": 28767,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.exception.ExceptionSensor"
  },
  {
    "id": 28763,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.method.jdbc.PreparedStatementSensor"
  },
  {
    "id": 28755,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.platform.MemoryInformation"
  },
  {
    "id": 28761,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.method.invocationsequence.InvocationSequenceSensor"
  },
  {
    "id": 28764,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.method.jdbc.StatementSensor"
  },
  {
    "id": 28766,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.method.logging.Log4JLoggingSensor"
  },
  {
    "id": 28768,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.jmx.JmxSensor"
  },
  {
    "id": 28752,
    "fullyQualifiedClassName": "rocks.inspectit.agent.java.sensor.platform.ClassLoadingInformation"
  }
]"e1a8ea66-b292-445e-8e70-4298ba0d3f9f",
	"alertingDefinition": {
		"id": "a024830a-a980-4493-82c8-d11a62913b15",
		"name": "Sync. Loading SLA",
		"description": null,
		"createdDate": 1507272286739,
		"updatedDate": 1507272452893,
		"importDate": null,
		"threshold": 100.0,
		"field": "duration",
		"thresholdType": "UPPER_THRESHOLD",
		"measurement": "businessTransactions",
		"tags": {
			"businessTxName": "Sync. Loading",
			"applicationName": "Demo Application"
		},
		"notificationEmailAddresses": ["alert@example.org"]
	},
	"startTimestamp": 1507272605248,
	"stopTimestamp": -1,
	"closingReason": null,
	"open": true
}