# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: alert_conditions.proto

import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
  name='alert_conditions.proto',
  package='monitor',
  syntax='proto3',
  serialized_options=_b('ZAgo.easyops.local/contracts/protorepo-models/easyops/model/monitor'),
  serialized_pb=_b('\n\x16\x61lert_conditions.proto\x12\x07monitor\x1a\x1cgoogle/protobuf/struct.proto\"\x83\x02\n\x0f\x41lertConditions\x12\x12\n\nalert_type\x18\x01 \x01(\t\x12\x16\n\x0e\x61lert_sub_type\x18\x02 \x01(\t\x12\x13\n\x0b\x61lert_table\x18\x03 \x01(\t\x12\x0f\n\x07\x61ttr_id\x18\x04 \x01(\t\x12\x0c\n\x04unit\x18\x05 \x01(\t\x12\x39\n\x0b\x63omparators\x18\x06 \x03(\x0b\x32$.monitor.AlertConditions.Comparators\x1aU\n\x0b\x43omparators\x12\x0c\n\x04type\x18\x01 \x01(\t\x12)\n\tthreshold\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value\x12\r\n\x05level\x18\x03 \x01(\x05\x42\x43ZAgo.easyops.local/contracts/protorepo-models/easyops/model/monitorb\x06proto3')
  ,
  dependencies=[google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,])




_ALERTCONDITIONS_COMPARATORS = _descriptor.Descriptor(
  name='Comparators',
  full_name='monitor.AlertConditions.Comparators',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='type', full_name='monitor.AlertConditions.Comparators.type', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='threshold', full_name='monitor.AlertConditions.Comparators.threshold', index=1,
      number=2, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='level', full_name='monitor.AlertConditions.Comparators.level', index=2,
      number=3, type=5, cpp_type=1, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=240,
  serialized_end=325,
)

_ALERTCONDITIONS = _descriptor.Descriptor(
  name='AlertConditions',
  full_name='monitor.AlertConditions',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='alert_type', full_name='monitor.AlertConditions.alert_type', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='alert_sub_type', full_name='monitor.AlertConditions.alert_sub_type', index=1,
      number=2, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='alert_table', full_name='monitor.AlertConditions.alert_table', index=2,
      number=3, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='attr_id', full_name='monitor.AlertConditions.attr_id', index=3,
      number=4, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='unit', full_name='monitor.AlertConditions.unit', index=4,
      number=5, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='comparators', full_name='monitor.AlertConditions.comparators', index=5,
      number=6, type=11, cpp_type=10, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[_ALERTCONDITIONS_COMPARATORS, ],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=66,
  serialized_end=325,
)

_ALERTCONDITIONS_COMPARATORS.fields_by_name['threshold'].message_type = google_dot_protobuf_dot_struct__pb2._VALUE
_ALERTCONDITIONS_COMPARATORS.containing_type = _ALERTCONDITIONS
_ALERTCONDITIONS.fields_by_name['comparators'].message_type = _ALERTCONDITIONS_COMPARATORS
DESCRIPTOR.message_types_by_name['AlertConditions'] = _ALERTCONDITIONS
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

AlertConditions = _reflection.GeneratedProtocolMessageType('AlertConditions', (_message.Message,), {

  'Comparators' : _reflection.GeneratedProtocolMessageType('Comparators', (_message.Message,), {
    'DESCRIPTOR' : _ALERTCONDITIONS_COMPARATORS,
    '__module__' : 'alert_conditions_pb2'
    # @@protoc_insertion_point(class_scope:monitor.AlertConditions.Comparators)
    })
  ,
  'DESCRIPTOR' : _ALERTCONDITIONS,
  '__module__' : 'alert_conditions_pb2'
  # @@protoc_insertion_point(class_scope:monitor.AlertConditions)
  })
_sym_db.RegisterMessage(AlertConditions)
_sym_db.RegisterMessage(AlertConditions.Comparators)


DESCRIPTOR._options = None
# @@protoc_insertion_point(module_scope)
