forked from newrelic/nri-flex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
http-json-example.yml
25 lines (25 loc) · 952 Bytes
/
http-json-example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
### basic http json example
---
integrations:
- name: nri-flex
# interval: 30s
config:
name: httpExample
# global: ###can set global parameters or nested beneath each API set under apis, nested will override the global setting for that api endpoint,
# ## useful for different auth mechanisms per endpoint
# base_url: http://127.0.0.1/v1/ ### if used, the URLs built under apis will be, base_url (from global) + url (from API)
# headers:
# myHeader: myValue
# user: hi
# pass: bye
custom_attributes: # applies to all apis
myCustAttr: myCustVal
apis:
- event_type: httpSampleABC
url: https://jsonplaceholder.typicode.com/todos/1
custom_attributes:
nestedCustAttr: nestedCustVal # nested custom attributes specific to each api
# headers:
# myHeader: myValue
# user: hi
# pass: bye