@quorum-us/opsgenie-mcp
Version:
MCP server for Opsgenie alert management with comprehensive filtering, custom queries, and AI-friendly interface
69 lines (68 loc) • 1.41 kB
JavaScript
/**
* Type definitions and interfaces for Opsgenie MCP Server
*/
/**
* Supported alert states for filtering
*/
export const ALERT_STATES = {
OPEN: 'open',
ACKNOWLEDGED: 'acknowledged',
CLOSED: 'closed',
ALL: 'all'
};
/**
* Supported sort fields for alerts
*/
export const ALERT_SORT_FIELDS = {
CREATED_AT: 'createdAt',
UPDATED_AT: 'updatedAt',
TINY_ID: 'tinyId',
ALIAS: 'alias',
MESSAGE: 'message',
STATUS: 'status',
ACKNOWLEDGED: 'acknowledged',
IS_SEEN: 'isSeen',
SNOOZED: 'snoozed',
SNOOZED_UNTIL: 'snoozedUntil',
COUNT: 'count',
LAST_OCCURRED_AT: 'lastOccurredAt',
SOURCE: 'source',
OWNER: 'owner',
INTEGRATION_NAME: 'integration.name',
INTEGRATION_TYPE: 'integration.type',
REPORT_ACKNOWLEDGED_BY: 'report.acknowledgedBy',
REPORT_CLOSED_BY: 'report.closedBy'
};
/**
* Supported sort orders
*/
export const SORT_ORDERS = {
ASC: 'asc',
DESC: 'desc'
};
/**
* Supported search identifier types
*/
export const SEARCH_IDENTIFIER_TYPES = {
ID: 'id',
NAME: 'name'
};
/**
* Supported alert statuses for filtering
*/
export const ALERT_STATUSES = {
OPEN: 'open',
ACKNOWLEDGED: 'acknowledged',
CLOSED: 'closed',
ALL: 'all'
};
/**
* Supported alert priorities for filtering
*/
export const ALERT_PRIORITIES = {
P1: 'P1',
P2: 'P2',
P3: 'P3',
P4: 'P4',
P5: 'P5'
};