类org.springframework.boot.actuate.audit.AuditEventsEndpoint源码实例Demo

下面列出了怎么用org.springframework.boot.actuate.audit.AuditEventsEndpoint的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: ssh-shell-spring-boot   文件: ActuatorCommand.java
public ActuatorCommand(ApplicationContext applicationContext, Environment environment,
                       SshShellProperties properties, SshShellHelper helper,
                       @Lazy AuditEventsEndpoint audit, @Lazy BeansEndpoint beans,
                       @Lazy ConditionsReportEndpoint conditions,
                       @Lazy ConfigurationPropertiesReportEndpoint configprops, @Lazy EnvironmentEndpoint env,
                       @Lazy HealthEndpoint health,
                       @Lazy HttpTraceEndpoint httptrace, @Lazy InfoEndpoint info, @Lazy LoggersEndpoint loggers,
                       @Lazy MetricsEndpoint metrics,
                       @Lazy MappingsEndpoint mappings, @Lazy ScheduledTasksEndpoint scheduledtasks,
                       @Lazy ShutdownEndpoint shutdown,
                       @Lazy ThreadDumpEndpoint threaddump) {
    this.applicationContext = applicationContext;
    this.environment = environment;
    this.properties = properties;
    this.helper = helper;
    this.audit = audit;
    this.beans = beans;
    this.conditions = conditions;
    this.configprops = configprops;
    this.env = env;
    this.health = health;
    this.httptrace = httptrace;
    this.info = info;
    this.loggers = loggers;
    this.metrics = metrics;
    this.mappings = mappings;
    this.scheduledtasks = scheduledtasks;
    this.shutdown = shutdown;
    this.threaddump = threaddump;
}
 
源代码2 项目: ssh-shell-spring-boot   文件: ActuatorCommand.java
/**
 * Audit method
 *
 * @param principal principal to filter with
 * @param type      to filter with
 * @return audit
 */
@ShellMethod(key = "audit", value = "Display audit endpoint.")
@ShellMethodAvailability("auditAvailability")
public AuditEventsEndpoint.AuditEventsDescriptor audit(
        @ShellOption(value = {"-p", "--principal"}, defaultValue = ShellOption.NULL, help = "Principal to filter " +
                "on") String principal,
        @ShellOption(value = {"-t", "--type"}, defaultValue = ShellOption.NULL, help = "Type to filter on") String type) {
    return audit.events(principal, null, type);
}
 
源代码3 项目: ssh-shell-spring-boot   文件: ActuatorCommand.java
/**
 * @return whether `audit` command is available
 */
public Availability auditAvailability() {
    return availability("audit", AuditEventsEndpoint.class);
}
 
AuditEventsCommand(@Value("${sshd.system.command.roles.auditEvents}") String[] systemRoles,
        AuditEventsEndpoint auditEventsEndpoint) {
    super(systemRoles);
    this.auditEventsEndpoint = auditEventsEndpoint;
}
 
 类所在包
 类方法
 同包方法