Skip to content
This repository was archived by the owner on Jan 12, 2021. It is now read-only.

Latest commit

 

History

History
100 lines (66 loc) · 2.06 KB

File metadata and controls

100 lines (66 loc) · 2.06 KB

MetadataApi

All URIs are relative to http://localhost/

Method HTTP request Description
forAlert GET api/v2/alerts/{alert_id}/metadata.json_api Show the metadata for an alert
show GET api/v2/metadata/{id}.json_api Show a single Metadata

forAlert

Metadata forAlert(alertId)

Show the metadata for an alert

Example

// Import classes:
//import io.evident.EspSdk.ApiException;
//import io.evident.api.MetadataApi;


MetadataApi apiInstance = new MetadataApi();
Integer alertId = 56; // Integer | Alert Id
try {
    Metadata result = apiInstance.forAlert(alertId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling MetadataApi#forAlert");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
alertId Integer Alert Id

Return type

Metadata

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/vnd.api+json
  • Accept: application/vnd.api+json

show

Metadata show(id)

Show a single Metadata

Example

// Import classes:
//import io.evident.EspSdk.ApiException;
//import io.evident.api.MetadataApi;


MetadataApi apiInstance = new MetadataApi();
Integer id = 56; // Integer | Metadata ID
try {
    Metadata result = apiInstance.show(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling MetadataApi#show");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Integer Metadata ID

Return type

Metadata

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/vnd.api+json
  • Accept: application/vnd.api+json