Skip to content

Commit

Permalink
Add mixed metric request to be used for inserting multiple types of m…
Browse files Browse the repository at this point in the history
…etrics.
  • Loading branch information
Stefan Negrea committed Apr 20, 2015
1 parent 4130c17 commit 94a8d26
Showing 1 changed file with 62 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/*
* Copyright 2014-2015 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.hawkular.metrics.core.impl.request;

import java.util.ArrayList;
import java.util.List;

import org.hawkular.metrics.core.api.Availability;
import org.hawkular.metrics.core.api.Guage;

import com.google.common.base.Objects;
import com.wordnik.swagger.annotations.ApiModel;

/**
* @author Stefan Negrea
*/
@ApiModel
public class MixedMetricsRequest {

private List<Guage> guageMetrics = new ArrayList<>();
private List<Availability> availabilityMetrics = new ArrayList<>();


public List<Guage> getGuageMetrics() {
return guageMetrics;
}

public void setGuageMetric(List<Guage> guageMetrics) {
this.guageMetrics = guageMetrics;
}

public List<Availability> getAvailabilityMetrics() {
return availabilityMetrics;
}

public void setAvailabilityMetrics(List<Availability> availabilityMetrics) {
this.availabilityMetrics = availabilityMetrics;
}


@Override
public String toString() {
return Objects.toStringHelper(this)
.add("guageMetrics", guageMetrics)
.add("availibilityMetrics", availabilityMetrics)
.toString();
}
}

0 comments on commit 94a8d26

Please sign in to comment.