Package com.netflix.simianarmy.MonkeyRecorder

Examples of com.netflix.simianarmy.MonkeyRecorder.Event.addField()


    /** {@inheritDoc} */
    @Override
    public Event recordTermination(InstanceGroup group, String instance, ChaosType chaosType) {
        Event evt = context().recorder().newEvent(Type.CHAOS, EventTypes.CHAOS_TERMINATION, group.region(), instance);
        evt.addField("groupType", group.type().name());
        evt.addField("groupName", group.name());
        evt.addField("chaosType", chaosType.getKey());
        context().recorder().recordEvent(evt);
        return evt;
    }
View Full Code Here


    /** {@inheritDoc} */
    @Override
    public Event recordTermination(InstanceGroup group, String instance, ChaosType chaosType) {
        Event evt = context().recorder().newEvent(Type.CHAOS, EventTypes.CHAOS_TERMINATION, group.region(), instance);
        evt.addField("groupType", group.type().name());
        evt.addField("groupName", group.name());
        evt.addField("chaosType", chaosType.getKey());
        context().recorder().recordEvent(evt);
        return evt;
    }

View Full Code Here

    @Override
    public Event recordTermination(InstanceGroup group, String instance, ChaosType chaosType) {
        Event evt = context().recorder().newEvent(Type.CHAOS, EventTypes.CHAOS_TERMINATION, group.region(), instance);
        evt.addField("groupType", group.type().name());
        evt.addField("groupName", group.name());
        evt.addField("chaosType", chaosType.getKey());
        context().recorder().recordEvent(evt);
        return evt;
    }

    /** {@inheritDoc} */
 
View Full Code Here

        return evts.size();
    }

    private Event createEvent(EventTypes chaosTermination, InstanceGroup group, String instance) {
        Event evt = context().recorder().newEvent(Type.CHAOS, chaosTermination, group.region(), instance);
        evt.addField("groupType", group.type().name());
        evt.addField("groupName", group.name());
        return evt;
    }

    /**
 
View Full Code Here

    }

    private Event createEvent(EventTypes chaosTermination, InstanceGroup group, String instance) {
        Event evt = context().recorder().newEvent(Type.CHAOS, chaosTermination, group.region(), instance);
        evt.addField("groupType", group.type().name());
        evt.addField("groupName", group.name());
        return evt;
    }

    /**
     * Gets the effective probability value, returns 0 if the group is not enabled. Otherwise calls
View Full Code Here

        } else {
            try {
                awsClient.createTagsForResources(janitorTags, volume.getVolumeId());
                evt = context().recorder().newEvent(type(), EventTypes.TAGGING_JANITOR,
                        awsClient.region(), volume.getVolumeId());
                evt.addField(JanitorMonkey.JANITOR_META_TAG, meta);
            } catch (Exception e) {
                LOGGER.error(String.format("Failed to update the tag for volume %s", volume.getVolumeId()));
            }
        }
        return evt;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.