-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathconfig_sample.yml
59 lines (59 loc) · 1.95 KB
/
config_sample.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
integration_name: com.newrelic.labs.sfdc.eventlogfiles
run_as_service: False
cron_interval_minutes: 60
service_schedule:
hour: "*"
minute: "0,15,30,45"
instances:
- name: sfdc-logs
arguments:
api_ver: "55.0"
token_url: "https://test.salesforce.com/services/oauth2/token"
auth:
grant_type: password
client_id: "ABCDEFG"
client_secret: "ABCD1234"
username: salesforce_user
password: "MY_SALESFORCE_PASSWORD"
auth_env_prefix: MY_
cache_enabled: False
redis:
host: my.redis.test
port: 6379
db_number: 0
password: "MY_REDIS_PASSWORD"
ssl: True
expire_days: 2
date_field: LogDate
generation_interval: Hourly
time_lag_minutes: 300
queries:
- query: "SELECT * FROM Account"
- query: "SELECT * FROM SetupAuditTrail"
limits:
api_ver: "55.0"
names:
- ActiveScratchOrgs
- DailyApiRequests
logs_enabled: yes
labels:
environment: production
queries:
- query: "SELECT Id,EventType,CreatedDate,LogDate,LogFile,Interval FROM EventLogFile WHERE CreatedDate>={from_timestamp} AND EventType='API' AND Interval='{log_interval_type}'"
- query: "SELECT Id,Action,CreatedDate,DelegateUser,Display FROM SetupAuditTrail WHERE CreatedDate>={from_timestamp}"
timestamp_attr: CreatedDate
rename_timestamp: actualTimestamp
api_ver: "58.0"
- query: "SELECT EventName, EventType, UsageType, Client, Value, StartDate, EndDate FROM PlatformEventUsageMetric WHERE TimeSegment='FifteenMinutes' AND StartDate >= {start_date} AND EndDate <= {end_date}"
env:
end_date: "now()"
start_date: "now(timedelta(minutes=-60))"
api_ver: "58.0"
timestamp_attr: StartDate
- query: "SELECT FullName FROM EntityDefinition WHERE Label='Opportunity'"
api_name: tooling
newrelic:
data_format: events
api_endpoint: US
account_id: "MY_NEW_RELIC_ACCOUNT_ID"
license_key: "MY_NEW_RELIC_LICENSE_KEY"