You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@eagle.apache.org by "Zhao, Qingwen (JIRA)" <ji...@apache.org> on 2017/07/10 13:49:00 UTC
[jira] [Updated] (EAGLE-1055) Improve policy prototype apis
[ https://issues.apache.org/jira/browse/EAGLE-1055?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zhao, Qingwen updated EAGLE-1055:
---------------------------------
Description:
1. create a policy prototype from a policy
{code}
API: POST /rest/policyProto/create?needPolicyCreated=true
Payload: PolicyEntity (policyDefinition + alertPublishmentIds)
public class PolicyEntity extends PersistenceEntity {
String name; // auto created
PolicyDefinition definition;
List<String> alertPublishmentIds = new ArrayList<>();
}
{code}
2. create a policy prototype by policy name
{code}
API: POST /rest/policyProto/create/{policyId}
{code}
3. create policies for site from a list of policy protoypes
{code}
API: POST /rest/policyProto/export/{site}
Payload: List<PolicyEntity>
{code}
4. create policies for site from a list of prototypes
{code}
API: POST /rest/policyProto/exportByName/{site}
Payload: List<String>
{code}
5. delete a prototype
{code}
API: DELETE /rest/policyProto/{uuid}
{code}
was:
1. create a policy prototype from a policy
{code}
API: /rest/policyProto/create?needPolicyCreated=true
Payload: PolicyEntity (policy + alertPublishmentIds)
{code}
2. create a policy prototype by policy name
{code}
API: /rest/policyProto/create/\{policyId\}
{code}
3. create policies for site from a list of policy protoypes
{code}
API: /rest/policyProto/export/\{site\}
Payload: List<PolicyEntity>
{code}
4. create policies for site from a list of prototypes
{code}
API: /rest/policyProto/exportByName/\{site\}
Payload: List<String>
{code}
> Improve policy prototype apis
> ------------------------------
>
> Key: EAGLE-1055
> URL: https://issues.apache.org/jira/browse/EAGLE-1055
> Project: Eagle
> Issue Type: Improvement
> Affects Versions: v0.6.0
> Reporter: Zhao, Qingwen
> Assignee: Zhao, Qingwen
>
> 1. create a policy prototype from a policy
> {code}
> API: POST /rest/policyProto/create?needPolicyCreated=true
> Payload: PolicyEntity (policyDefinition + alertPublishmentIds)
> public class PolicyEntity extends PersistenceEntity {
> String name; // auto created
> PolicyDefinition definition;
> List<String> alertPublishmentIds = new ArrayList<>();
> }
> {code}
> 2. create a policy prototype by policy name
> {code}
> API: POST /rest/policyProto/create/{policyId}
> {code}
> 3. create policies for site from a list of policy protoypes
> {code}
> API: POST /rest/policyProto/export/{site}
> Payload: List<PolicyEntity>
> {code}
> 4. create policies for site from a list of prototypes
> {code}
> API: POST /rest/policyProto/exportByName/{site}
> Payload: List<String>
> {code}
> 5. delete a prototype
> {code}
> API: DELETE /rest/policyProto/{uuid}
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)