// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package components

type PrometheusResponseActiveTarget struct {
	DiscoveredLabels *PrometheusResponseActiveTargetDiscoveredLabels `json:"discovered_labels,omitempty"`
	// Whether target is up or down.
	Health *string                               `json:"health,omitempty"`
	Labels *PrometheusResponseActiveTargetLabels `json:"labels,omitempty"`
	// Last error that occurred within target.
	LastError *string `json:"last_error,omitempty"`
	// Last time Prometheus scraped target.
	LastScrape *string `json:"last_scrape,omitempty"`
	// URL that Prometheus scraped.
	ScrapeURL *string `json:"scrape_url,omitempty"`
}

func (o *PrometheusResponseActiveTarget) GetDiscoveredLabels() *PrometheusResponseActiveTargetDiscoveredLabels {
	if o == nil {
		return nil
	}
	return o.DiscoveredLabels
}

func (o *PrometheusResponseActiveTarget) GetHealth() *string {
	if o == nil {
		return nil
	}
	return o.Health
}

func (o *PrometheusResponseActiveTarget) GetLabels() *PrometheusResponseActiveTargetLabels {
	if o == nil {
		return nil
	}
	return o.Labels
}

func (o *PrometheusResponseActiveTarget) GetLastError() *string {
	if o == nil {
		return nil
	}
	return o.LastError
}

func (o *PrometheusResponseActiveTarget) GetLastScrape() *string {
	if o == nil {
		return nil
	}
	return o.LastScrape
}

func (o *PrometheusResponseActiveTarget) GetScrapeURL() *string {
	if o == nil {
		return nil
	}
	return o.ScrapeURL
}
