/*
 * 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 com.aliyuncs.emas_appmonitor.model.v20190611;

import java.util.List;
import java.util.Map;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.emas_appmonitor.transform.v20190611.QueryLaunchTimeDistributionResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
 * @author auto create
 * @version 
 */
public class QueryLaunchTimeDistributionResponse extends AcsResponse {

	private String requestId;

	private List<MetricResultItem> metricResultList;

	public String getRequestId() {
		return this.requestId;
	}

	public void setRequestId(String requestId) {
		this.requestId = requestId;
	}

	public List<MetricResultItem> getMetricResultList() {
		return this.metricResultList;
	}

	public void setMetricResultList(List<MetricResultItem> metricResultList) {
		this.metricResultList = metricResultList;
	}

	public static class MetricResultItem {

		private Map<Object,Object> tags;

		private List<Point> data;

		public Map<Object,Object> getTags() {
			return this.tags;
		}

		public void setTags(Map<Object,Object> tags) {
			this.tags = tags;
		}

		public List<Point> getData() {
			return this.data;
		}

		public void setData(List<Point> data) {
			this.data = data;
		}

		public static class Point {

			private Long time;

			private List<CentroidItem> centroidItemList;

			public Long getTime() {
				return this.time;
			}

			public void setTime(Long time) {
				this.time = time;
			}

			public List<CentroidItem> getCentroidItemList() {
				return this.centroidItemList;
			}

			public void setCentroidItemList(List<CentroidItem> centroidItemList) {
				this.centroidItemList = centroidItemList;
			}

			public static class CentroidItem {

				private String range;

				private Float rate;

				private Float value;

				public String getRange() {
					return this.range;
				}

				public void setRange(String range) {
					this.range = range;
				}

				public Float getRate() {
					return this.rate;
				}

				public void setRate(Float rate) {
					this.rate = rate;
				}

				public Float getValue() {
					return this.value;
				}

				public void setValue(Float value) {
					this.value = value;
				}
			}
		}
	}

	@Override
	public QueryLaunchTimeDistributionResponse getInstance(UnmarshallerContext context) {
		return	QueryLaunchTimeDistributionResponseUnmarshaller.unmarshall(this, context);
	}

	@Override
	public boolean checkShowJsonItemName() {
		return false;
	}
}
