Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Event Query Examples

Tom Valine edited this page Oct 15, 2016 · 8 revisions

Examples & Screencasts


Argus Web

This example illustrates how to display event annotations alongside metrics within your dashboards. The use of the ag-flags element containing an annotation query, will retrieve the events of interest to display on your chart.

Argus SDK

This simple example illustrates how to retrieve annotations.

int maxConnections = 10;
try (
    ArgusService service = ArgusService.getInstance(
      "https://argus.mycompany.com/argusws",
      maxConnections)
) {
    service.getAuthService().login("aUsername", "aPassword");
    List<String> expressions = Arrays.asList(
      new String[] {
        "-1d:TestScope:TestMetric{TestTag=TagValue}:TestType:TestUser"
    });
    List<Annotation> result = service.getAnnotationService().getAnnotations(expressions);
    service.getAuthService().logout();
}
Clone this wiki locally