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

Latest commit

 

History

History
59 lines (39 loc) · 1.82 KB

AttributionApi.md

File metadata and controls

59 lines (39 loc) · 1.82 KB

esp_sdk.AttributionApi

All URIs are relative to https://api.evident.io

Method HTTP request Description
show GET /api/v2/alerts/{alert_id}/attribution.json_api Show the attribution for an alert

show

Attribution show(alert_id, include=include)

Show the attribution for an alert

Example

from __future__ import print_statement
import time
import esp_sdk
from esp_sdk.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = esp_sdk.AttributionApi()
alert_id = 56 # int | The ID of the alert to retrieve user attribution for
include = 'include_example' # str | Related objects that can be included in the response:  alert See Including Objects for more information. (optional)

try: 
    # Show the attribution for an alert
    api_response = api_instance.show(alert_id, include=include)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AttributionApi->show: %s\n" % e)

Parameters

Name Type Description Notes
alert_id int The ID of the alert to retrieve user attribution for
include str Related objects that can be included in the response: alert See Including Objects for more information. [optional]

Return type

Attribution

Authorization

See https://github.com/EvidentSecurity/esp-sdk-python#set-your-hmac-security-keys

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]