common/downtime.c File Reference

#include "../include/config.h"
#include "../include/common.h"
#include "../include/comments.h"
#include "../include/downtime.h"
#include "../include/objects.h"
#include "../include/statusdata.h"
#include "../xdata/xdddefault.h"

Functions

int add_host_downtime (char *host_name, time_t entry_time, char *author, char *comment_data, time_t start_time, time_t end_time, int fixed, unsigned long triggered_by, unsigned long duration, unsigned long downtime_id, int is_in_effect)
int add_service_downtime (char *host_name, char *svc_description, time_t entry_time, char *author, char *comment_data, time_t start_time, time_t end_time, int fixed, unsigned long triggered_by, unsigned long duration, unsigned long downtime_id, int is_in_effect)
int add_downtime (int downtime_type, char *host_name, char *svc_description, time_t entry_time, char *author, char *comment_data, time_t start_time, time_t end_time, int fixed, unsigned long triggered_by, unsigned long duration, unsigned long downtime_id, int is_in_effect)
static int downtime_compar (const void *p1, const void *p2)
int sort_downtime (void)
scheduled_downtimefind_downtime (int type, unsigned long downtime_id)
scheduled_downtimefind_host_downtime (unsigned long downtime_id)
scheduled_downtimefind_service_downtime (unsigned long downtime_id)
scheduled_downtimefind_downtime_by_similar_content (int type, char *host_name, char *service_description, char *author, char *comment_data, time_t start_time, time_t end_time, int fixed, unsigned long duration)
void free_downtime_data (void)

Variables

scheduled_downtimescheduled_downtime_list = NULL
int defer_downtime_sorting = 0

Function Documentation

int add_downtime ( int  downtime_type,
char *  host_name,
char *  svc_description,
time_t  entry_time,
char *  author,
char *  comment_data,
time_t  start_time,
time_t  end_time,
int  fixed,
unsigned long  triggered_by,
unsigned long  duration,
unsigned long  downtime_id,
int  is_in_effect 
)

int add_host_downtime ( char *  host_name,
time_t  entry_time,
char *  author,
char *  comment_data,
time_t  start_time,
time_t  end_time,
int  fixed,
unsigned long  triggered_by,
unsigned long  duration,
unsigned long  downtime_id,
int  is_in_effect 
)

int add_service_downtime ( char *  host_name,
char *  svc_description,
time_t  entry_time,
char *  author,
char *  comment_data,
time_t  start_time,
time_t  end_time,
int  fixed,
unsigned long  triggered_by,
unsigned long  duration,
unsigned long  downtime_id,
int  is_in_effect 
)

static int downtime_compar ( const void *  p1,
const void *  p2 
) [static]

scheduled_downtime* find_downtime ( int  type,
unsigned long  downtime_id 
)

scheduled_downtime* find_downtime_by_similar_content ( int  type,
char *  host_name,
char *  service_description,
char *  author,
char *  comment_data,
time_t  start_time,
time_t  end_time,
int  fixed,
unsigned long  duration 
)

scheduled_downtime* find_host_downtime ( unsigned long  downtime_id  ) 

scheduled_downtime* find_service_downtime ( unsigned long  downtime_id  ) 

void free_downtime_data ( void   ) 

int sort_downtime ( void   ) 


Variable Documentation

int defer_downtime_sorting = 0

scheduled_downtime* scheduled_downtime_list = NULL


Generated on Wed Mar 30 17:22:22 2011 for icinga-core by  doxygen 1.4.7