# Path: google/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.monitoring.dashboard_v1.types import metrics
from google.protobuf import duration_pb2 as duration  # type: ignore
        )

    class Axis(proto.Message):
        r"""A chart axis.

        Attributes:
            label (str):
                The label of the axis.
            scale (~.xychart.XyChart.Axis.Scale):
                The axis scale. By default, a linear scale is
                used.
        """

        class Scale(proto.Enum):
            r"""Types of scales used in axes."""
            SCALE_UNSPECIFIED = 0
            LINEAR = 1
            LOG10 = 2

        label = proto.Field(proto.STRING, number=1)

        scale = proto.Field(proto.ENUM, number=2, enum="XyChart.Axis.Scale",)

    data_sets = proto.RepeatedField(proto.MESSAGE, number=1, message=DataSet,)

    timeshift_duration = proto.Field(
        proto.MESSAGE, number=4, message=duration.Duration,
    )

    thresholds = proto.RepeatedField(

# Path: google/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/monitoring/dashboard_v1/types/xychart.py
import proto  # type: ignore
from google.monitoring.dashboard_v1.types import metrics
from google.protobuf import duration_pb2 as duration  # type: ignore

        )

    class Axis(proto.Message):
        r"""A chart axis.

        Attributes:
            label (str):
                The label of the axis.
            scale (~.xychart.XyChart.Axis.Scale):
                The axis scale. By default, a linear scale is
                used.
        """

        class Scale(proto.Enum):
            r"""Types of scales used in axes."""
            SCALE_UNSPECIFIED = 0
            LINEAR = 1
            LOG10 = 2

        label = proto.Field(proto.STRING, number=1)

        scale = proto.Field(proto.ENUM, number=2, enum="XyChart.Axis.Scale",)

    data_sets = proto.RepeatedField(proto.MESSAGE, number=1, message=DataSet,)

    timeshift_duration = proto.Field(
        proto.MESSAGE, number=4, message=duration.Duration,
    )

    thresholds = proto.RepeatedField(

        proto.MESSAGE, number=5, message=metrics.Threshold,