diva.monitoring package

Submodules

diva.monitoring.api_service_reliability module

class diva.monitoring.api_service_reliability.DataRequest(*, location_name_orig: str, location_name: str, addresstype: str, start_date: str, end_date: str)[source]

Bases: BaseModel

addresstype: str
end_date: str
location_name: str
location_name_orig: str
model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'addresstype': FieldInfo(annotation=str, required=True), 'end_date': FieldInfo(annotation=str, required=True), 'location_name': FieldInfo(annotation=str, required=True), 'location_name_orig': FieldInfo(annotation=str, required=True), 'start_date': FieldInfo(annotation=str, required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

start_date: str
class diva.monitoring.api_service_reliability.GraphRequest(*, starttime: str, endtime: str, location: str, elementofinterest: str, graph_type: str, aggreg_type: str)[source]

Bases: BaseModel

aggreg_type: str
elementofinterest: str
endtime: str
graph_type: str
location: str
model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'aggreg_type': FieldInfo(annotation=str, required=True), 'elementofinterest': FieldInfo(annotation=str, required=True), 'endtime': FieldInfo(annotation=str, required=True), 'graph_type': FieldInfo(annotation=str, required=True), 'location': FieldInfo(annotation=str, required=True), 'starttime': FieldInfo(annotation=str, required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

starttime: str
class diva.monitoring.api_service_reliability.PromptRequest(*, prompt: str)[source]

Bases: BaseModel

model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'prompt': FieldInfo(annotation=str, required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

prompt: str
async diva.monitoring.api_service_reliability.generate_graph(request: GraphRequest)[source]
async diva.monitoring.api_service_reliability.get_data(request: DataRequest)[source]
async diva.monitoring.api_service_reliability.llm_prompt(request: PromptRequest)[source]
diva.monitoring.api_service_reliability.run_api()[source]

Module contents