# Path: google/cloud/monitoring_dashboard_v1/types/metrics.py
# class SparkChartType(proto.Enum):
# class TimeSeriesQuery(proto.Message):
# class TimeSeriesFilter(proto.Message):
# class TimeSeriesFilterRatio(proto.Message):
#     class RatioPart(proto.Message):
# class Threshold(proto.Message):
#     class Color(proto.Enum):
#     class Direction(proto.Enum):
#     SPARK_CHART_TYPE_UNSPECIFIED = 0
#     SPARK_LINE = 1
#     SPARK_BAR = 2
#         COLOR_UNSPECIFIED = 0
#         YELLOW = 4
#         RED = 6
#         DIRECTION_UNSPECIFIED = 0
#         ABOVE = 1
#         BELOW = 2


import proto  # type: ignore
from google.cloud.monitoring_dashboard_v1.types import metrics
from google.protobuf import duration_pb2  # type: ignore

    Attributes:
        time_series_query (google.cloud.monitoring_dashboard_v1.types.TimeSeriesQuery):
            Required. Fields for querying time series
            data from the Stackdriver metrics API.
        gauge_view (google.cloud.monitoring_dashboard_v1.types.Scorecard.GaugeView):
            Will cause the scorecard to show a gauge
            chart.

            This field is a member of `oneof`_ ``data_view``.
        spark_chart_view (google.cloud.monitoring_dashboard_v1.types.Scorecard.SparkChartView):
            Will cause the scorecard to show a spark
            chart.

            This field is a member of `oneof`_ ``data_view``.
        thresholds (Sequence[google.cloud.monitoring_dashboard_v1.types.Threshold]):
            The thresholds used to determine the state of
            the scorecard given the time series' current
            value. For an actual value x, the scorecard is
            in a danger state if x is less than or equal to
            a danger threshold that triggers below, or
            greater than or equal to a danger threshold that
            triggers above. Similarly, if x is above/below a
            warning threshold that triggers above/below,
            then the scorecard is in a warning state -
            unless x also puts it in a danger state. (Danger
            trumps warning.)
            As an example, consider a scorecard with the
            following four thresholds: {
              value: 90,

# Path: google/cloud/monitoring_dashboard_v1/types/metrics.py
# class SparkChartType(proto.Enum):
# class TimeSeriesQuery(proto.Message):
# class TimeSeriesFilter(proto.Message):
# class TimeSeriesFilterRatio(proto.Message):
#     class RatioPart(proto.Message):
# class Threshold(proto.Message):
#     class Color(proto.Enum):
#     class Direction(proto.Enum):
#     SPARK_CHART_TYPE_UNSPECIFIED = 0
#     SPARK_LINE = 1
#     SPARK_BAR = 2
#         COLOR_UNSPECIFIED = 0
#         YELLOW = 4
#         RED = 6
#         DIRECTION_UNSPECIFIED = 0
#         ABOVE = 1
#         BELOW = 2


# Path: google/cloud/monitoring_dashboard_v1/types/scorecard.py
import proto  # type: ignore
from google.cloud.monitoring_dashboard_v1.types import metrics
from google.protobuf import duration_pb2  # type: ignore


    Attributes:
        time_series_query (google.cloud.monitoring_dashboard_v1.types.TimeSeriesQuery):
            Required. Fields for querying time series
            data from the Stackdriver metrics API.
        gauge_view (google.cloud.monitoring_dashboard_v1.types.Scorecard.GaugeView):
            Will cause the scorecard to show a gauge
            chart.

            This field is a member of `oneof`_ ``data_view``.
        spark_chart_view (google.cloud.monitoring_dashboard_v1.types.Scorecard.SparkChartView):
            Will cause the scorecard to show a spark
            chart.

            This field is a member of `oneof`_ ``data_view``.
        thresholds (Sequence[google.cloud.monitoring_dashboard_v1.types.Threshold]):
            The thresholds used to determine the state of
            the scorecard given the time series' current
            value. For an actual value x, the scorecard is
            in a danger state if x is less than or equal to
            a danger threshold that triggers below, or
            greater than or equal to a danger threshold that
            triggers above. Similarly, if x is above/below a
            warning threshold that triggers above/below,
            then the scorecard is in a warning state -
            unless x also puts it in a danger state. (Danger
            trumps warning.)
            As an example, consider a scorecard with the
            following four thresholds: {
              value: 90,

              category: 'DANGER',