Package com.netflix.simianarmy.basic

Examples of com.netflix.simianarmy.basic.BasicRecorderEvent


    private MonkeyRecorder.Event mkEvent(String instance) {
        final MonkeyType monkeyType = ChaosMonkey.Type.CHAOS;
        final EventType eventType = ChaosMonkey.EventTypes.CHAOS_TERMINATION;
        // SUPPRESS CHECKSTYLE MagicNumber
        return new BasicRecorderEvent(monkeyType, eventType, "region", "id", 1330538400000L)
        .addField("instanceId", instance).addField("groupType", "ASG").addField("groupName", "testGroup");
    }
View Full Code Here


    }

    /** {@inheritDoc} */
    @Override
    public Event newEvent(MonkeyType monkeyType, EventType eventType, String reg, String id) {
        return new BasicRecorderEvent(monkeyType, eventType, reg, id);
    }
View Full Code Here

                String eid = res.get(Keys.id.name());
                String ereg = res.get(Keys.region.name());
                MonkeyType monkeyType = valueToEnum(MonkeyType.class, res.get(Keys.monkeyType.name()));
                EventType eventType = valueToEnum(EventType.class, res.get(Keys.eventType.name()));
                long eventTime = Long.parseLong(res.get(Keys.eventTime.name()));
                list.add(new BasicRecorderEvent(monkeyType, eventType, ereg, eid, eventTime).addFields(fields));
            }
        } while (result.getNextToken() != null);
        return list;
    }
View Full Code Here

TOP

Related Classes of com.netflix.simianarmy.basic.BasicRecorderEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.