where.go 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729
  1. // Code generated by ent, DO NOT EDIT.
  2. package channelmonitordailyrollup
  3. import (
  4. "time"
  5. "entgo.io/ent/dialect/sql"
  6. "entgo.io/ent/dialect/sql/sqlgraph"
  7. "github.com/Wei-Shaw/sub2api/ent/predicate"
  8. )
  9. // ID filters vertices based on their ID field.
  10. func ID(id int64) predicate.ChannelMonitorDailyRollup {
  11. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldID, id))
  12. }
  13. // IDEQ applies the EQ predicate on the ID field.
  14. func IDEQ(id int64) predicate.ChannelMonitorDailyRollup {
  15. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldID, id))
  16. }
  17. // IDNEQ applies the NEQ predicate on the ID field.
  18. func IDNEQ(id int64) predicate.ChannelMonitorDailyRollup {
  19. return predicate.ChannelMonitorDailyRollup(sql.FieldNEQ(FieldID, id))
  20. }
  21. // IDIn applies the In predicate on the ID field.
  22. func IDIn(ids ...int64) predicate.ChannelMonitorDailyRollup {
  23. return predicate.ChannelMonitorDailyRollup(sql.FieldIn(FieldID, ids...))
  24. }
  25. // IDNotIn applies the NotIn predicate on the ID field.
  26. func IDNotIn(ids ...int64) predicate.ChannelMonitorDailyRollup {
  27. return predicate.ChannelMonitorDailyRollup(sql.FieldNotIn(FieldID, ids...))
  28. }
  29. // IDGT applies the GT predicate on the ID field.
  30. func IDGT(id int64) predicate.ChannelMonitorDailyRollup {
  31. return predicate.ChannelMonitorDailyRollup(sql.FieldGT(FieldID, id))
  32. }
  33. // IDGTE applies the GTE predicate on the ID field.
  34. func IDGTE(id int64) predicate.ChannelMonitorDailyRollup {
  35. return predicate.ChannelMonitorDailyRollup(sql.FieldGTE(FieldID, id))
  36. }
  37. // IDLT applies the LT predicate on the ID field.
  38. func IDLT(id int64) predicate.ChannelMonitorDailyRollup {
  39. return predicate.ChannelMonitorDailyRollup(sql.FieldLT(FieldID, id))
  40. }
  41. // IDLTE applies the LTE predicate on the ID field.
  42. func IDLTE(id int64) predicate.ChannelMonitorDailyRollup {
  43. return predicate.ChannelMonitorDailyRollup(sql.FieldLTE(FieldID, id))
  44. }
  45. // MonitorID applies equality check predicate on the "monitor_id" field. It's identical to MonitorIDEQ.
  46. func MonitorID(v int64) predicate.ChannelMonitorDailyRollup {
  47. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldMonitorID, v))
  48. }
  49. // Model applies equality check predicate on the "model" field. It's identical to ModelEQ.
  50. func Model(v string) predicate.ChannelMonitorDailyRollup {
  51. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldModel, v))
  52. }
  53. // BucketDate applies equality check predicate on the "bucket_date" field. It's identical to BucketDateEQ.
  54. func BucketDate(v time.Time) predicate.ChannelMonitorDailyRollup {
  55. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldBucketDate, v))
  56. }
  57. // TotalChecks applies equality check predicate on the "total_checks" field. It's identical to TotalChecksEQ.
  58. func TotalChecks(v int) predicate.ChannelMonitorDailyRollup {
  59. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldTotalChecks, v))
  60. }
  61. // OkCount applies equality check predicate on the "ok_count" field. It's identical to OkCountEQ.
  62. func OkCount(v int) predicate.ChannelMonitorDailyRollup {
  63. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldOkCount, v))
  64. }
  65. // OperationalCount applies equality check predicate on the "operational_count" field. It's identical to OperationalCountEQ.
  66. func OperationalCount(v int) predicate.ChannelMonitorDailyRollup {
  67. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldOperationalCount, v))
  68. }
  69. // DegradedCount applies equality check predicate on the "degraded_count" field. It's identical to DegradedCountEQ.
  70. func DegradedCount(v int) predicate.ChannelMonitorDailyRollup {
  71. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldDegradedCount, v))
  72. }
  73. // FailedCount applies equality check predicate on the "failed_count" field. It's identical to FailedCountEQ.
  74. func FailedCount(v int) predicate.ChannelMonitorDailyRollup {
  75. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldFailedCount, v))
  76. }
  77. // ErrorCount applies equality check predicate on the "error_count" field. It's identical to ErrorCountEQ.
  78. func ErrorCount(v int) predicate.ChannelMonitorDailyRollup {
  79. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldErrorCount, v))
  80. }
  81. // SumLatencyMs applies equality check predicate on the "sum_latency_ms" field. It's identical to SumLatencyMsEQ.
  82. func SumLatencyMs(v int64) predicate.ChannelMonitorDailyRollup {
  83. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldSumLatencyMs, v))
  84. }
  85. // CountLatency applies equality check predicate on the "count_latency" field. It's identical to CountLatencyEQ.
  86. func CountLatency(v int) predicate.ChannelMonitorDailyRollup {
  87. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldCountLatency, v))
  88. }
  89. // SumPingLatencyMs applies equality check predicate on the "sum_ping_latency_ms" field. It's identical to SumPingLatencyMsEQ.
  90. func SumPingLatencyMs(v int64) predicate.ChannelMonitorDailyRollup {
  91. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldSumPingLatencyMs, v))
  92. }
  93. // CountPingLatency applies equality check predicate on the "count_ping_latency" field. It's identical to CountPingLatencyEQ.
  94. func CountPingLatency(v int) predicate.ChannelMonitorDailyRollup {
  95. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldCountPingLatency, v))
  96. }
  97. // ComputedAt applies equality check predicate on the "computed_at" field. It's identical to ComputedAtEQ.
  98. func ComputedAt(v time.Time) predicate.ChannelMonitorDailyRollup {
  99. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldComputedAt, v))
  100. }
  101. // MonitorIDEQ applies the EQ predicate on the "monitor_id" field.
  102. func MonitorIDEQ(v int64) predicate.ChannelMonitorDailyRollup {
  103. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldMonitorID, v))
  104. }
  105. // MonitorIDNEQ applies the NEQ predicate on the "monitor_id" field.
  106. func MonitorIDNEQ(v int64) predicate.ChannelMonitorDailyRollup {
  107. return predicate.ChannelMonitorDailyRollup(sql.FieldNEQ(FieldMonitorID, v))
  108. }
  109. // MonitorIDIn applies the In predicate on the "monitor_id" field.
  110. func MonitorIDIn(vs ...int64) predicate.ChannelMonitorDailyRollup {
  111. return predicate.ChannelMonitorDailyRollup(sql.FieldIn(FieldMonitorID, vs...))
  112. }
  113. // MonitorIDNotIn applies the NotIn predicate on the "monitor_id" field.
  114. func MonitorIDNotIn(vs ...int64) predicate.ChannelMonitorDailyRollup {
  115. return predicate.ChannelMonitorDailyRollup(sql.FieldNotIn(FieldMonitorID, vs...))
  116. }
  117. // ModelEQ applies the EQ predicate on the "model" field.
  118. func ModelEQ(v string) predicate.ChannelMonitorDailyRollup {
  119. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldModel, v))
  120. }
  121. // ModelNEQ applies the NEQ predicate on the "model" field.
  122. func ModelNEQ(v string) predicate.ChannelMonitorDailyRollup {
  123. return predicate.ChannelMonitorDailyRollup(sql.FieldNEQ(FieldModel, v))
  124. }
  125. // ModelIn applies the In predicate on the "model" field.
  126. func ModelIn(vs ...string) predicate.ChannelMonitorDailyRollup {
  127. return predicate.ChannelMonitorDailyRollup(sql.FieldIn(FieldModel, vs...))
  128. }
  129. // ModelNotIn applies the NotIn predicate on the "model" field.
  130. func ModelNotIn(vs ...string) predicate.ChannelMonitorDailyRollup {
  131. return predicate.ChannelMonitorDailyRollup(sql.FieldNotIn(FieldModel, vs...))
  132. }
  133. // ModelGT applies the GT predicate on the "model" field.
  134. func ModelGT(v string) predicate.ChannelMonitorDailyRollup {
  135. return predicate.ChannelMonitorDailyRollup(sql.FieldGT(FieldModel, v))
  136. }
  137. // ModelGTE applies the GTE predicate on the "model" field.
  138. func ModelGTE(v string) predicate.ChannelMonitorDailyRollup {
  139. return predicate.ChannelMonitorDailyRollup(sql.FieldGTE(FieldModel, v))
  140. }
  141. // ModelLT applies the LT predicate on the "model" field.
  142. func ModelLT(v string) predicate.ChannelMonitorDailyRollup {
  143. return predicate.ChannelMonitorDailyRollup(sql.FieldLT(FieldModel, v))
  144. }
  145. // ModelLTE applies the LTE predicate on the "model" field.
  146. func ModelLTE(v string) predicate.ChannelMonitorDailyRollup {
  147. return predicate.ChannelMonitorDailyRollup(sql.FieldLTE(FieldModel, v))
  148. }
  149. // ModelContains applies the Contains predicate on the "model" field.
  150. func ModelContains(v string) predicate.ChannelMonitorDailyRollup {
  151. return predicate.ChannelMonitorDailyRollup(sql.FieldContains(FieldModel, v))
  152. }
  153. // ModelHasPrefix applies the HasPrefix predicate on the "model" field.
  154. func ModelHasPrefix(v string) predicate.ChannelMonitorDailyRollup {
  155. return predicate.ChannelMonitorDailyRollup(sql.FieldHasPrefix(FieldModel, v))
  156. }
  157. // ModelHasSuffix applies the HasSuffix predicate on the "model" field.
  158. func ModelHasSuffix(v string) predicate.ChannelMonitorDailyRollup {
  159. return predicate.ChannelMonitorDailyRollup(sql.FieldHasSuffix(FieldModel, v))
  160. }
  161. // ModelEqualFold applies the EqualFold predicate on the "model" field.
  162. func ModelEqualFold(v string) predicate.ChannelMonitorDailyRollup {
  163. return predicate.ChannelMonitorDailyRollup(sql.FieldEqualFold(FieldModel, v))
  164. }
  165. // ModelContainsFold applies the ContainsFold predicate on the "model" field.
  166. func ModelContainsFold(v string) predicate.ChannelMonitorDailyRollup {
  167. return predicate.ChannelMonitorDailyRollup(sql.FieldContainsFold(FieldModel, v))
  168. }
  169. // BucketDateEQ applies the EQ predicate on the "bucket_date" field.
  170. func BucketDateEQ(v time.Time) predicate.ChannelMonitorDailyRollup {
  171. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldBucketDate, v))
  172. }
  173. // BucketDateNEQ applies the NEQ predicate on the "bucket_date" field.
  174. func BucketDateNEQ(v time.Time) predicate.ChannelMonitorDailyRollup {
  175. return predicate.ChannelMonitorDailyRollup(sql.FieldNEQ(FieldBucketDate, v))
  176. }
  177. // BucketDateIn applies the In predicate on the "bucket_date" field.
  178. func BucketDateIn(vs ...time.Time) predicate.ChannelMonitorDailyRollup {
  179. return predicate.ChannelMonitorDailyRollup(sql.FieldIn(FieldBucketDate, vs...))
  180. }
  181. // BucketDateNotIn applies the NotIn predicate on the "bucket_date" field.
  182. func BucketDateNotIn(vs ...time.Time) predicate.ChannelMonitorDailyRollup {
  183. return predicate.ChannelMonitorDailyRollup(sql.FieldNotIn(FieldBucketDate, vs...))
  184. }
  185. // BucketDateGT applies the GT predicate on the "bucket_date" field.
  186. func BucketDateGT(v time.Time) predicate.ChannelMonitorDailyRollup {
  187. return predicate.ChannelMonitorDailyRollup(sql.FieldGT(FieldBucketDate, v))
  188. }
  189. // BucketDateGTE applies the GTE predicate on the "bucket_date" field.
  190. func BucketDateGTE(v time.Time) predicate.ChannelMonitorDailyRollup {
  191. return predicate.ChannelMonitorDailyRollup(sql.FieldGTE(FieldBucketDate, v))
  192. }
  193. // BucketDateLT applies the LT predicate on the "bucket_date" field.
  194. func BucketDateLT(v time.Time) predicate.ChannelMonitorDailyRollup {
  195. return predicate.ChannelMonitorDailyRollup(sql.FieldLT(FieldBucketDate, v))
  196. }
  197. // BucketDateLTE applies the LTE predicate on the "bucket_date" field.
  198. func BucketDateLTE(v time.Time) predicate.ChannelMonitorDailyRollup {
  199. return predicate.ChannelMonitorDailyRollup(sql.FieldLTE(FieldBucketDate, v))
  200. }
  201. // TotalChecksEQ applies the EQ predicate on the "total_checks" field.
  202. func TotalChecksEQ(v int) predicate.ChannelMonitorDailyRollup {
  203. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldTotalChecks, v))
  204. }
  205. // TotalChecksNEQ applies the NEQ predicate on the "total_checks" field.
  206. func TotalChecksNEQ(v int) predicate.ChannelMonitorDailyRollup {
  207. return predicate.ChannelMonitorDailyRollup(sql.FieldNEQ(FieldTotalChecks, v))
  208. }
  209. // TotalChecksIn applies the In predicate on the "total_checks" field.
  210. func TotalChecksIn(vs ...int) predicate.ChannelMonitorDailyRollup {
  211. return predicate.ChannelMonitorDailyRollup(sql.FieldIn(FieldTotalChecks, vs...))
  212. }
  213. // TotalChecksNotIn applies the NotIn predicate on the "total_checks" field.
  214. func TotalChecksNotIn(vs ...int) predicate.ChannelMonitorDailyRollup {
  215. return predicate.ChannelMonitorDailyRollup(sql.FieldNotIn(FieldTotalChecks, vs...))
  216. }
  217. // TotalChecksGT applies the GT predicate on the "total_checks" field.
  218. func TotalChecksGT(v int) predicate.ChannelMonitorDailyRollup {
  219. return predicate.ChannelMonitorDailyRollup(sql.FieldGT(FieldTotalChecks, v))
  220. }
  221. // TotalChecksGTE applies the GTE predicate on the "total_checks" field.
  222. func TotalChecksGTE(v int) predicate.ChannelMonitorDailyRollup {
  223. return predicate.ChannelMonitorDailyRollup(sql.FieldGTE(FieldTotalChecks, v))
  224. }
  225. // TotalChecksLT applies the LT predicate on the "total_checks" field.
  226. func TotalChecksLT(v int) predicate.ChannelMonitorDailyRollup {
  227. return predicate.ChannelMonitorDailyRollup(sql.FieldLT(FieldTotalChecks, v))
  228. }
  229. // TotalChecksLTE applies the LTE predicate on the "total_checks" field.
  230. func TotalChecksLTE(v int) predicate.ChannelMonitorDailyRollup {
  231. return predicate.ChannelMonitorDailyRollup(sql.FieldLTE(FieldTotalChecks, v))
  232. }
  233. // OkCountEQ applies the EQ predicate on the "ok_count" field.
  234. func OkCountEQ(v int) predicate.ChannelMonitorDailyRollup {
  235. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldOkCount, v))
  236. }
  237. // OkCountNEQ applies the NEQ predicate on the "ok_count" field.
  238. func OkCountNEQ(v int) predicate.ChannelMonitorDailyRollup {
  239. return predicate.ChannelMonitorDailyRollup(sql.FieldNEQ(FieldOkCount, v))
  240. }
  241. // OkCountIn applies the In predicate on the "ok_count" field.
  242. func OkCountIn(vs ...int) predicate.ChannelMonitorDailyRollup {
  243. return predicate.ChannelMonitorDailyRollup(sql.FieldIn(FieldOkCount, vs...))
  244. }
  245. // OkCountNotIn applies the NotIn predicate on the "ok_count" field.
  246. func OkCountNotIn(vs ...int) predicate.ChannelMonitorDailyRollup {
  247. return predicate.ChannelMonitorDailyRollup(sql.FieldNotIn(FieldOkCount, vs...))
  248. }
  249. // OkCountGT applies the GT predicate on the "ok_count" field.
  250. func OkCountGT(v int) predicate.ChannelMonitorDailyRollup {
  251. return predicate.ChannelMonitorDailyRollup(sql.FieldGT(FieldOkCount, v))
  252. }
  253. // OkCountGTE applies the GTE predicate on the "ok_count" field.
  254. func OkCountGTE(v int) predicate.ChannelMonitorDailyRollup {
  255. return predicate.ChannelMonitorDailyRollup(sql.FieldGTE(FieldOkCount, v))
  256. }
  257. // OkCountLT applies the LT predicate on the "ok_count" field.
  258. func OkCountLT(v int) predicate.ChannelMonitorDailyRollup {
  259. return predicate.ChannelMonitorDailyRollup(sql.FieldLT(FieldOkCount, v))
  260. }
  261. // OkCountLTE applies the LTE predicate on the "ok_count" field.
  262. func OkCountLTE(v int) predicate.ChannelMonitorDailyRollup {
  263. return predicate.ChannelMonitorDailyRollup(sql.FieldLTE(FieldOkCount, v))
  264. }
  265. // OperationalCountEQ applies the EQ predicate on the "operational_count" field.
  266. func OperationalCountEQ(v int) predicate.ChannelMonitorDailyRollup {
  267. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldOperationalCount, v))
  268. }
  269. // OperationalCountNEQ applies the NEQ predicate on the "operational_count" field.
  270. func OperationalCountNEQ(v int) predicate.ChannelMonitorDailyRollup {
  271. return predicate.ChannelMonitorDailyRollup(sql.FieldNEQ(FieldOperationalCount, v))
  272. }
  273. // OperationalCountIn applies the In predicate on the "operational_count" field.
  274. func OperationalCountIn(vs ...int) predicate.ChannelMonitorDailyRollup {
  275. return predicate.ChannelMonitorDailyRollup(sql.FieldIn(FieldOperationalCount, vs...))
  276. }
  277. // OperationalCountNotIn applies the NotIn predicate on the "operational_count" field.
  278. func OperationalCountNotIn(vs ...int) predicate.ChannelMonitorDailyRollup {
  279. return predicate.ChannelMonitorDailyRollup(sql.FieldNotIn(FieldOperationalCount, vs...))
  280. }
  281. // OperationalCountGT applies the GT predicate on the "operational_count" field.
  282. func OperationalCountGT(v int) predicate.ChannelMonitorDailyRollup {
  283. return predicate.ChannelMonitorDailyRollup(sql.FieldGT(FieldOperationalCount, v))
  284. }
  285. // OperationalCountGTE applies the GTE predicate on the "operational_count" field.
  286. func OperationalCountGTE(v int) predicate.ChannelMonitorDailyRollup {
  287. return predicate.ChannelMonitorDailyRollup(sql.FieldGTE(FieldOperationalCount, v))
  288. }
  289. // OperationalCountLT applies the LT predicate on the "operational_count" field.
  290. func OperationalCountLT(v int) predicate.ChannelMonitorDailyRollup {
  291. return predicate.ChannelMonitorDailyRollup(sql.FieldLT(FieldOperationalCount, v))
  292. }
  293. // OperationalCountLTE applies the LTE predicate on the "operational_count" field.
  294. func OperationalCountLTE(v int) predicate.ChannelMonitorDailyRollup {
  295. return predicate.ChannelMonitorDailyRollup(sql.FieldLTE(FieldOperationalCount, v))
  296. }
  297. // DegradedCountEQ applies the EQ predicate on the "degraded_count" field.
  298. func DegradedCountEQ(v int) predicate.ChannelMonitorDailyRollup {
  299. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldDegradedCount, v))
  300. }
  301. // DegradedCountNEQ applies the NEQ predicate on the "degraded_count" field.
  302. func DegradedCountNEQ(v int) predicate.ChannelMonitorDailyRollup {
  303. return predicate.ChannelMonitorDailyRollup(sql.FieldNEQ(FieldDegradedCount, v))
  304. }
  305. // DegradedCountIn applies the In predicate on the "degraded_count" field.
  306. func DegradedCountIn(vs ...int) predicate.ChannelMonitorDailyRollup {
  307. return predicate.ChannelMonitorDailyRollup(sql.FieldIn(FieldDegradedCount, vs...))
  308. }
  309. // DegradedCountNotIn applies the NotIn predicate on the "degraded_count" field.
  310. func DegradedCountNotIn(vs ...int) predicate.ChannelMonitorDailyRollup {
  311. return predicate.ChannelMonitorDailyRollup(sql.FieldNotIn(FieldDegradedCount, vs...))
  312. }
  313. // DegradedCountGT applies the GT predicate on the "degraded_count" field.
  314. func DegradedCountGT(v int) predicate.ChannelMonitorDailyRollup {
  315. return predicate.ChannelMonitorDailyRollup(sql.FieldGT(FieldDegradedCount, v))
  316. }
  317. // DegradedCountGTE applies the GTE predicate on the "degraded_count" field.
  318. func DegradedCountGTE(v int) predicate.ChannelMonitorDailyRollup {
  319. return predicate.ChannelMonitorDailyRollup(sql.FieldGTE(FieldDegradedCount, v))
  320. }
  321. // DegradedCountLT applies the LT predicate on the "degraded_count" field.
  322. func DegradedCountLT(v int) predicate.ChannelMonitorDailyRollup {
  323. return predicate.ChannelMonitorDailyRollup(sql.FieldLT(FieldDegradedCount, v))
  324. }
  325. // DegradedCountLTE applies the LTE predicate on the "degraded_count" field.
  326. func DegradedCountLTE(v int) predicate.ChannelMonitorDailyRollup {
  327. return predicate.ChannelMonitorDailyRollup(sql.FieldLTE(FieldDegradedCount, v))
  328. }
  329. // FailedCountEQ applies the EQ predicate on the "failed_count" field.
  330. func FailedCountEQ(v int) predicate.ChannelMonitorDailyRollup {
  331. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldFailedCount, v))
  332. }
  333. // FailedCountNEQ applies the NEQ predicate on the "failed_count" field.
  334. func FailedCountNEQ(v int) predicate.ChannelMonitorDailyRollup {
  335. return predicate.ChannelMonitorDailyRollup(sql.FieldNEQ(FieldFailedCount, v))
  336. }
  337. // FailedCountIn applies the In predicate on the "failed_count" field.
  338. func FailedCountIn(vs ...int) predicate.ChannelMonitorDailyRollup {
  339. return predicate.ChannelMonitorDailyRollup(sql.FieldIn(FieldFailedCount, vs...))
  340. }
  341. // FailedCountNotIn applies the NotIn predicate on the "failed_count" field.
  342. func FailedCountNotIn(vs ...int) predicate.ChannelMonitorDailyRollup {
  343. return predicate.ChannelMonitorDailyRollup(sql.FieldNotIn(FieldFailedCount, vs...))
  344. }
  345. // FailedCountGT applies the GT predicate on the "failed_count" field.
  346. func FailedCountGT(v int) predicate.ChannelMonitorDailyRollup {
  347. return predicate.ChannelMonitorDailyRollup(sql.FieldGT(FieldFailedCount, v))
  348. }
  349. // FailedCountGTE applies the GTE predicate on the "failed_count" field.
  350. func FailedCountGTE(v int) predicate.ChannelMonitorDailyRollup {
  351. return predicate.ChannelMonitorDailyRollup(sql.FieldGTE(FieldFailedCount, v))
  352. }
  353. // FailedCountLT applies the LT predicate on the "failed_count" field.
  354. func FailedCountLT(v int) predicate.ChannelMonitorDailyRollup {
  355. return predicate.ChannelMonitorDailyRollup(sql.FieldLT(FieldFailedCount, v))
  356. }
  357. // FailedCountLTE applies the LTE predicate on the "failed_count" field.
  358. func FailedCountLTE(v int) predicate.ChannelMonitorDailyRollup {
  359. return predicate.ChannelMonitorDailyRollup(sql.FieldLTE(FieldFailedCount, v))
  360. }
  361. // ErrorCountEQ applies the EQ predicate on the "error_count" field.
  362. func ErrorCountEQ(v int) predicate.ChannelMonitorDailyRollup {
  363. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldErrorCount, v))
  364. }
  365. // ErrorCountNEQ applies the NEQ predicate on the "error_count" field.
  366. func ErrorCountNEQ(v int) predicate.ChannelMonitorDailyRollup {
  367. return predicate.ChannelMonitorDailyRollup(sql.FieldNEQ(FieldErrorCount, v))
  368. }
  369. // ErrorCountIn applies the In predicate on the "error_count" field.
  370. func ErrorCountIn(vs ...int) predicate.ChannelMonitorDailyRollup {
  371. return predicate.ChannelMonitorDailyRollup(sql.FieldIn(FieldErrorCount, vs...))
  372. }
  373. // ErrorCountNotIn applies the NotIn predicate on the "error_count" field.
  374. func ErrorCountNotIn(vs ...int) predicate.ChannelMonitorDailyRollup {
  375. return predicate.ChannelMonitorDailyRollup(sql.FieldNotIn(FieldErrorCount, vs...))
  376. }
  377. // ErrorCountGT applies the GT predicate on the "error_count" field.
  378. func ErrorCountGT(v int) predicate.ChannelMonitorDailyRollup {
  379. return predicate.ChannelMonitorDailyRollup(sql.FieldGT(FieldErrorCount, v))
  380. }
  381. // ErrorCountGTE applies the GTE predicate on the "error_count" field.
  382. func ErrorCountGTE(v int) predicate.ChannelMonitorDailyRollup {
  383. return predicate.ChannelMonitorDailyRollup(sql.FieldGTE(FieldErrorCount, v))
  384. }
  385. // ErrorCountLT applies the LT predicate on the "error_count" field.
  386. func ErrorCountLT(v int) predicate.ChannelMonitorDailyRollup {
  387. return predicate.ChannelMonitorDailyRollup(sql.FieldLT(FieldErrorCount, v))
  388. }
  389. // ErrorCountLTE applies the LTE predicate on the "error_count" field.
  390. func ErrorCountLTE(v int) predicate.ChannelMonitorDailyRollup {
  391. return predicate.ChannelMonitorDailyRollup(sql.FieldLTE(FieldErrorCount, v))
  392. }
  393. // SumLatencyMsEQ applies the EQ predicate on the "sum_latency_ms" field.
  394. func SumLatencyMsEQ(v int64) predicate.ChannelMonitorDailyRollup {
  395. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldSumLatencyMs, v))
  396. }
  397. // SumLatencyMsNEQ applies the NEQ predicate on the "sum_latency_ms" field.
  398. func SumLatencyMsNEQ(v int64) predicate.ChannelMonitorDailyRollup {
  399. return predicate.ChannelMonitorDailyRollup(sql.FieldNEQ(FieldSumLatencyMs, v))
  400. }
  401. // SumLatencyMsIn applies the In predicate on the "sum_latency_ms" field.
  402. func SumLatencyMsIn(vs ...int64) predicate.ChannelMonitorDailyRollup {
  403. return predicate.ChannelMonitorDailyRollup(sql.FieldIn(FieldSumLatencyMs, vs...))
  404. }
  405. // SumLatencyMsNotIn applies the NotIn predicate on the "sum_latency_ms" field.
  406. func SumLatencyMsNotIn(vs ...int64) predicate.ChannelMonitorDailyRollup {
  407. return predicate.ChannelMonitorDailyRollup(sql.FieldNotIn(FieldSumLatencyMs, vs...))
  408. }
  409. // SumLatencyMsGT applies the GT predicate on the "sum_latency_ms" field.
  410. func SumLatencyMsGT(v int64) predicate.ChannelMonitorDailyRollup {
  411. return predicate.ChannelMonitorDailyRollup(sql.FieldGT(FieldSumLatencyMs, v))
  412. }
  413. // SumLatencyMsGTE applies the GTE predicate on the "sum_latency_ms" field.
  414. func SumLatencyMsGTE(v int64) predicate.ChannelMonitorDailyRollup {
  415. return predicate.ChannelMonitorDailyRollup(sql.FieldGTE(FieldSumLatencyMs, v))
  416. }
  417. // SumLatencyMsLT applies the LT predicate on the "sum_latency_ms" field.
  418. func SumLatencyMsLT(v int64) predicate.ChannelMonitorDailyRollup {
  419. return predicate.ChannelMonitorDailyRollup(sql.FieldLT(FieldSumLatencyMs, v))
  420. }
  421. // SumLatencyMsLTE applies the LTE predicate on the "sum_latency_ms" field.
  422. func SumLatencyMsLTE(v int64) predicate.ChannelMonitorDailyRollup {
  423. return predicate.ChannelMonitorDailyRollup(sql.FieldLTE(FieldSumLatencyMs, v))
  424. }
  425. // CountLatencyEQ applies the EQ predicate on the "count_latency" field.
  426. func CountLatencyEQ(v int) predicate.ChannelMonitorDailyRollup {
  427. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldCountLatency, v))
  428. }
  429. // CountLatencyNEQ applies the NEQ predicate on the "count_latency" field.
  430. func CountLatencyNEQ(v int) predicate.ChannelMonitorDailyRollup {
  431. return predicate.ChannelMonitorDailyRollup(sql.FieldNEQ(FieldCountLatency, v))
  432. }
  433. // CountLatencyIn applies the In predicate on the "count_latency" field.
  434. func CountLatencyIn(vs ...int) predicate.ChannelMonitorDailyRollup {
  435. return predicate.ChannelMonitorDailyRollup(sql.FieldIn(FieldCountLatency, vs...))
  436. }
  437. // CountLatencyNotIn applies the NotIn predicate on the "count_latency" field.
  438. func CountLatencyNotIn(vs ...int) predicate.ChannelMonitorDailyRollup {
  439. return predicate.ChannelMonitorDailyRollup(sql.FieldNotIn(FieldCountLatency, vs...))
  440. }
  441. // CountLatencyGT applies the GT predicate on the "count_latency" field.
  442. func CountLatencyGT(v int) predicate.ChannelMonitorDailyRollup {
  443. return predicate.ChannelMonitorDailyRollup(sql.FieldGT(FieldCountLatency, v))
  444. }
  445. // CountLatencyGTE applies the GTE predicate on the "count_latency" field.
  446. func CountLatencyGTE(v int) predicate.ChannelMonitorDailyRollup {
  447. return predicate.ChannelMonitorDailyRollup(sql.FieldGTE(FieldCountLatency, v))
  448. }
  449. // CountLatencyLT applies the LT predicate on the "count_latency" field.
  450. func CountLatencyLT(v int) predicate.ChannelMonitorDailyRollup {
  451. return predicate.ChannelMonitorDailyRollup(sql.FieldLT(FieldCountLatency, v))
  452. }
  453. // CountLatencyLTE applies the LTE predicate on the "count_latency" field.
  454. func CountLatencyLTE(v int) predicate.ChannelMonitorDailyRollup {
  455. return predicate.ChannelMonitorDailyRollup(sql.FieldLTE(FieldCountLatency, v))
  456. }
  457. // SumPingLatencyMsEQ applies the EQ predicate on the "sum_ping_latency_ms" field.
  458. func SumPingLatencyMsEQ(v int64) predicate.ChannelMonitorDailyRollup {
  459. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldSumPingLatencyMs, v))
  460. }
  461. // SumPingLatencyMsNEQ applies the NEQ predicate on the "sum_ping_latency_ms" field.
  462. func SumPingLatencyMsNEQ(v int64) predicate.ChannelMonitorDailyRollup {
  463. return predicate.ChannelMonitorDailyRollup(sql.FieldNEQ(FieldSumPingLatencyMs, v))
  464. }
  465. // SumPingLatencyMsIn applies the In predicate on the "sum_ping_latency_ms" field.
  466. func SumPingLatencyMsIn(vs ...int64) predicate.ChannelMonitorDailyRollup {
  467. return predicate.ChannelMonitorDailyRollup(sql.FieldIn(FieldSumPingLatencyMs, vs...))
  468. }
  469. // SumPingLatencyMsNotIn applies the NotIn predicate on the "sum_ping_latency_ms" field.
  470. func SumPingLatencyMsNotIn(vs ...int64) predicate.ChannelMonitorDailyRollup {
  471. return predicate.ChannelMonitorDailyRollup(sql.FieldNotIn(FieldSumPingLatencyMs, vs...))
  472. }
  473. // SumPingLatencyMsGT applies the GT predicate on the "sum_ping_latency_ms" field.
  474. func SumPingLatencyMsGT(v int64) predicate.ChannelMonitorDailyRollup {
  475. return predicate.ChannelMonitorDailyRollup(sql.FieldGT(FieldSumPingLatencyMs, v))
  476. }
  477. // SumPingLatencyMsGTE applies the GTE predicate on the "sum_ping_latency_ms" field.
  478. func SumPingLatencyMsGTE(v int64) predicate.ChannelMonitorDailyRollup {
  479. return predicate.ChannelMonitorDailyRollup(sql.FieldGTE(FieldSumPingLatencyMs, v))
  480. }
  481. // SumPingLatencyMsLT applies the LT predicate on the "sum_ping_latency_ms" field.
  482. func SumPingLatencyMsLT(v int64) predicate.ChannelMonitorDailyRollup {
  483. return predicate.ChannelMonitorDailyRollup(sql.FieldLT(FieldSumPingLatencyMs, v))
  484. }
  485. // SumPingLatencyMsLTE applies the LTE predicate on the "sum_ping_latency_ms" field.
  486. func SumPingLatencyMsLTE(v int64) predicate.ChannelMonitorDailyRollup {
  487. return predicate.ChannelMonitorDailyRollup(sql.FieldLTE(FieldSumPingLatencyMs, v))
  488. }
  489. // CountPingLatencyEQ applies the EQ predicate on the "count_ping_latency" field.
  490. func CountPingLatencyEQ(v int) predicate.ChannelMonitorDailyRollup {
  491. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldCountPingLatency, v))
  492. }
  493. // CountPingLatencyNEQ applies the NEQ predicate on the "count_ping_latency" field.
  494. func CountPingLatencyNEQ(v int) predicate.ChannelMonitorDailyRollup {
  495. return predicate.ChannelMonitorDailyRollup(sql.FieldNEQ(FieldCountPingLatency, v))
  496. }
  497. // CountPingLatencyIn applies the In predicate on the "count_ping_latency" field.
  498. func CountPingLatencyIn(vs ...int) predicate.ChannelMonitorDailyRollup {
  499. return predicate.ChannelMonitorDailyRollup(sql.FieldIn(FieldCountPingLatency, vs...))
  500. }
  501. // CountPingLatencyNotIn applies the NotIn predicate on the "count_ping_latency" field.
  502. func CountPingLatencyNotIn(vs ...int) predicate.ChannelMonitorDailyRollup {
  503. return predicate.ChannelMonitorDailyRollup(sql.FieldNotIn(FieldCountPingLatency, vs...))
  504. }
  505. // CountPingLatencyGT applies the GT predicate on the "count_ping_latency" field.
  506. func CountPingLatencyGT(v int) predicate.ChannelMonitorDailyRollup {
  507. return predicate.ChannelMonitorDailyRollup(sql.FieldGT(FieldCountPingLatency, v))
  508. }
  509. // CountPingLatencyGTE applies the GTE predicate on the "count_ping_latency" field.
  510. func CountPingLatencyGTE(v int) predicate.ChannelMonitorDailyRollup {
  511. return predicate.ChannelMonitorDailyRollup(sql.FieldGTE(FieldCountPingLatency, v))
  512. }
  513. // CountPingLatencyLT applies the LT predicate on the "count_ping_latency" field.
  514. func CountPingLatencyLT(v int) predicate.ChannelMonitorDailyRollup {
  515. return predicate.ChannelMonitorDailyRollup(sql.FieldLT(FieldCountPingLatency, v))
  516. }
  517. // CountPingLatencyLTE applies the LTE predicate on the "count_ping_latency" field.
  518. func CountPingLatencyLTE(v int) predicate.ChannelMonitorDailyRollup {
  519. return predicate.ChannelMonitorDailyRollup(sql.FieldLTE(FieldCountPingLatency, v))
  520. }
  521. // ComputedAtEQ applies the EQ predicate on the "computed_at" field.
  522. func ComputedAtEQ(v time.Time) predicate.ChannelMonitorDailyRollup {
  523. return predicate.ChannelMonitorDailyRollup(sql.FieldEQ(FieldComputedAt, v))
  524. }
  525. // ComputedAtNEQ applies the NEQ predicate on the "computed_at" field.
  526. func ComputedAtNEQ(v time.Time) predicate.ChannelMonitorDailyRollup {
  527. return predicate.ChannelMonitorDailyRollup(sql.FieldNEQ(FieldComputedAt, v))
  528. }
  529. // ComputedAtIn applies the In predicate on the "computed_at" field.
  530. func ComputedAtIn(vs ...time.Time) predicate.ChannelMonitorDailyRollup {
  531. return predicate.ChannelMonitorDailyRollup(sql.FieldIn(FieldComputedAt, vs...))
  532. }
  533. // ComputedAtNotIn applies the NotIn predicate on the "computed_at" field.
  534. func ComputedAtNotIn(vs ...time.Time) predicate.ChannelMonitorDailyRollup {
  535. return predicate.ChannelMonitorDailyRollup(sql.FieldNotIn(FieldComputedAt, vs...))
  536. }
  537. // ComputedAtGT applies the GT predicate on the "computed_at" field.
  538. func ComputedAtGT(v time.Time) predicate.ChannelMonitorDailyRollup {
  539. return predicate.ChannelMonitorDailyRollup(sql.FieldGT(FieldComputedAt, v))
  540. }
  541. // ComputedAtGTE applies the GTE predicate on the "computed_at" field.
  542. func ComputedAtGTE(v time.Time) predicate.ChannelMonitorDailyRollup {
  543. return predicate.ChannelMonitorDailyRollup(sql.FieldGTE(FieldComputedAt, v))
  544. }
  545. // ComputedAtLT applies the LT predicate on the "computed_at" field.
  546. func ComputedAtLT(v time.Time) predicate.ChannelMonitorDailyRollup {
  547. return predicate.ChannelMonitorDailyRollup(sql.FieldLT(FieldComputedAt, v))
  548. }
  549. // ComputedAtLTE applies the LTE predicate on the "computed_at" field.
  550. func ComputedAtLTE(v time.Time) predicate.ChannelMonitorDailyRollup {
  551. return predicate.ChannelMonitorDailyRollup(sql.FieldLTE(FieldComputedAt, v))
  552. }
  553. // HasMonitor applies the HasEdge predicate on the "monitor" edge.
  554. func HasMonitor() predicate.ChannelMonitorDailyRollup {
  555. return predicate.ChannelMonitorDailyRollup(func(s *sql.Selector) {
  556. step := sqlgraph.NewStep(
  557. sqlgraph.From(Table, FieldID),
  558. sqlgraph.Edge(sqlgraph.M2O, true, MonitorTable, MonitorColumn),
  559. )
  560. sqlgraph.HasNeighbors(s, step)
  561. })
  562. }
  563. // HasMonitorWith applies the HasEdge predicate on the "monitor" edge with a given conditions (other predicates).
  564. func HasMonitorWith(preds ...predicate.ChannelMonitor) predicate.ChannelMonitorDailyRollup {
  565. return predicate.ChannelMonitorDailyRollup(func(s *sql.Selector) {
  566. step := newMonitorStep()
  567. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  568. for _, p := range preds {
  569. p(s)
  570. }
  571. })
  572. })
  573. }
  574. // And groups predicates with the AND operator between them.
  575. func And(predicates ...predicate.ChannelMonitorDailyRollup) predicate.ChannelMonitorDailyRollup {
  576. return predicate.ChannelMonitorDailyRollup(sql.AndPredicates(predicates...))
  577. }
  578. // Or groups predicates with the OR operator between them.
  579. func Or(predicates ...predicate.ChannelMonitorDailyRollup) predicate.ChannelMonitorDailyRollup {
  580. return predicate.ChannelMonitorDailyRollup(sql.OrPredicates(predicates...))
  581. }
  582. // Not applies the not operator on the given predicate.
  583. func Not(p predicate.ChannelMonitorDailyRollup) predicate.ChannelMonitorDailyRollup {
  584. return predicate.ChannelMonitorDailyRollup(sql.NotPredicates(p))
  585. }