Perfmon alerts
perfmon_alertGet the currently triggered perfmon alerts (both threshold and fluctuation) for one or more accounts as JSONL. Perfmon keeps no history, so this is the current state. A THRESHOLD alert means a monitored metric crossed a configured limit; a FLUCTUATION alert means it moved too far vs the previous period. Each line carries: Metric + ApiType, MetricType (Threshold/Fluctuation), AlertLevel (AboveThreshold/BelowThreshold for threshold, Increase/Decrease for fluctuation), CurrentValue, PreviousValue (fluctuation only), DefinitionLimit (threshold: the raw limit on the metric's scale; fluctuation: the allowed swing as a fraction where 1 = 100%), ChangeValue, PercentageChange (a fraction where 1 = 100%, e.g. 6.95 = 695%; vs the limit for threshold, vs the previous value for fluctuation), Priority + PriorityNum, TimeRangeDays, and the target AccountIds/CampaignIds. Defaults to High + Critical only (pass minPriority to widen); pass metricType to return only one kind. Each alert's PerfmonId + PerfmonDefinitionMetricId identify the underlying per-campaign metric rows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountIds | No | Optional TrueClicks account ids to filter (the numeric Id field from the account listing, not the platform customer id). Omit or leave empty to return all accounts accessible by the connector. | |
| metricType | No | Optional. Return only this kind of alert (1=Fluctuation, 2=Threshold). Omit to return both. | |
| campaignIds | No | Optional. Use this ONLY to focus on / analyze specific campaign(s). Pass the campaign id(s) you care about and only alerts scoped to those campaigns are returned (a single-campaign alert on any of them, or a campaign-group alert whose campaigns are all within your set). Account-level alerts and alerts touching other campaigns are excluded. Omit to get all alerts for the account(s). | |
| minPriority | No | Minimum priority to include. Priority scale: 1=Insight, 2=Low, 3=Medium, 4=High, 5=Critical. Defaults to 4 (High) so only High + Critical are returned; pass 1 (Insight) to return all priorities. | High |