The invention relates to the triazolopyridine carboxamide derivative and trizolopyrimidine carboxamide derivative of general Formula (I): Wherein X, R1 and R2 are as defined herein. The invention further relates to preparation methods and therapeutic use thereof.