90fc172e19
Add LogRateLimitIntervalSec= and LogRateLimitBurst= options for services. If provided, these values get passed to the journald client context, and those values are used in the rate limiting function in the journal over the the journald.conf values. Part of #10230
11 lines
363 B
C
11 lines
363 B
C
/* SPDX-License-Identifier: LGPL-2.1+ */
|
|
#pragma once
|
|
|
|
#include "util.h"
|
|
|
|
typedef struct JournalRateLimit JournalRateLimit;
|
|
|
|
JournalRateLimit *journal_rate_limit_new(void);
|
|
void journal_rate_limit_free(JournalRateLimit *r);
|
|
int journal_rate_limit_test(JournalRateLimit *r, const char *id, usec_t rl_interval, unsigned rl_burst, int priority, uint64_t available);
|