Uses of Class
io.nosqlbench.engine.clients.grafana.By

Packages that use By
Package
Description
 
  • Uses of By in io.nosqlbench.engine.clients.grafana

    Modifier and Type
    Method
    Description
    static By
    By.alertId(String id)
    Find annotations for a specified alert.
    static By
    By.from(long epoch)
    epoch datetime in milliseconds
    static By
    By.id(int id)
     
    static By
    By.limit(long limit)
    number.
    static By
    By.panelId(String panelId)
     
    static By
    By.tag(String tag)
    Add one tag at a time, in either "tag" or "tag:value" form.
    static By
    By.to(long epoch)
    epoch datetime in milliseconds
    static By
     
    static By
     
    static By
    By.userId(String userId)
     
    Methods in io.nosqlbench.engine.clients.grafana with parameters of type By
    Modifier and Type
    Method
    Description
    static String
    By.fields(By... by)
     
    GrafanaClient.findAnnotations(By... by)
    GET /api/annotations?from=1506676478816&to=1507281278816&tags=tag1&tags=tag2&limit=100 Example Request: GET /api/annotations?from=1506676478816&to=1507281278816&tags=tag1&tags=tag2&limit=100 HTTP/1.1 Accept: application/json Content-Type: application/json Authorization: Basic YWRtaW46YWRtaW4= Query Parameters: from: epoch datetime in milliseconds. Optional. to: epoch datetime in milliseconds. Optional. limit: number. Optional - default is 100. Max limit for results returned. alertId: number. Optional. Find annotations for a specified alert. dashboardId: number. Optional. Find annotations that are scoped to a specific dashboard panelId: number. Optional. Find annotations that are scoped to a specific panel userId: number. Optional. Find annotations created by a specific user type: string. Optional. alert|annotation Return alerts or user created annotations tags: string. Optional. Use this to filter global annotations. Global annotations are annotations from an annotation data source that are not connected specifically to a dashboard or panel. To do an “AND” filtering with multiple tags, specify the tags parameter multiple times e.g. tags=tag1&tags=tag2. Example Response: HTTP/1.1 200 Content-Type: application/json [ { "id": 1124, "alertId": 0, "dashboardId": 468, "panelId": 2, "userId": 1, "userName": "", "newState": "", "prevState": "", "time": 1507266395000, "timeEnd": 1507266395000, "text": "test", "metric": "", "type": "event", "tags": [ "tag1", "tag2" ], "data": {} }, { "id": 1123, "alertId": 0, "dashboardId": 468, "panelId": 2, "userId": 1, "userName": "", "newState": "", "prevState": "", "time": 1507265111000, "text": "test", "metric": "", "type": "event", "tags": [ "tag1", "tag2" ], "data": {} } ]
    static String
    By.urlEncoded(By... bys)