mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-25 08:48:13 +02:00
feat: add logs in campaigns for failure or pausing (#265)
* feat: add logs in campaigns on failure * chore: bump pipecat * chore: update format.sh * chore: fix github workflow * fix: fix formatting errors
This commit is contained in:
parent
abfb678b4d
commit
d4b6afb020
77 changed files with 1001 additions and 245 deletions
File diff suppressed because one or more lines are too long
|
|
@ -346,6 +346,39 @@ export type CampaignDefaultsResponse = {
|
|||
last_campaign_settings?: LastCampaignSettingsResponse | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* CampaignLogEntryResponse
|
||||
*
|
||||
* A single timestamped entry from the campaign's append-only log.
|
||||
*
|
||||
* Surfaced in the UI so operators can see why a campaign moved to
|
||||
* paused / failed without digging through server logs.
|
||||
*/
|
||||
export type CampaignLogEntryResponse = {
|
||||
/**
|
||||
* Ts
|
||||
*/
|
||||
ts: string;
|
||||
/**
|
||||
* Level
|
||||
*/
|
||||
level: string;
|
||||
/**
|
||||
* Event
|
||||
*/
|
||||
event: string;
|
||||
/**
|
||||
* Message
|
||||
*/
|
||||
message: string;
|
||||
/**
|
||||
* Details
|
||||
*/
|
||||
details?: {
|
||||
[key: string]: unknown;
|
||||
} | null;
|
||||
};
|
||||
|
||||
/**
|
||||
* CampaignProgressResponse
|
||||
*/
|
||||
|
|
@ -481,6 +514,10 @@ export type CampaignResponse = {
|
|||
* Telephony Configuration Name
|
||||
*/
|
||||
telephony_configuration_name?: string | null;
|
||||
/**
|
||||
* Logs
|
||||
*/
|
||||
logs?: Array<CampaignLogEntryResponse>;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue