Search in sources :

Example 1 with TestAnonymizationRuleResponse

use of com.sequenceiq.environment.api.v1.telemetry.model.response.TestAnonymizationRuleResponse in project cloudbreak by hortonworks.

the class AccountTelemetryController method testRulePattern.

@Override
@CheckPermissionByAccount(action = AuthorizationResourceAction.POWERUSER_ONLY)
public TestAnonymizationRuleResponse testRulePattern(TestAnonymizationRuleRequest request) {
    TestAnonymizationRuleResponse response = new TestAnonymizationRuleResponse();
    response.setOutput(accountTelemetryService.testRulePatterns(request.getRules(), request.getInput()));
    return response;
}
Also used : TestAnonymizationRuleResponse(com.sequenceiq.environment.api.v1.telemetry.model.response.TestAnonymizationRuleResponse) CheckPermissionByAccount(com.sequenceiq.authorization.annotation.CheckPermissionByAccount)

Aggregations

CheckPermissionByAccount (com.sequenceiq.authorization.annotation.CheckPermissionByAccount)1 TestAnonymizationRuleResponse (com.sequenceiq.environment.api.v1.telemetry.model.response.TestAnonymizationRuleResponse)1