Skip to main content
Glama

metoro-mcp-server

Official
by metoro-io
model_timeseries_specifier_traces.go4.74 kB
/* Metoro Alerts API API for managing alerts in the Metoro observability platform. API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package model import ( "encoding/json" ) // checks if the TimeseriesSpecifierTraces type satisfies the MappedNullable interface at compile time var _ MappedNullable = &TimeseriesSpecifierTraces{} // TimeseriesSpecifierTraces Configuration for a traces timeseries type TimeseriesSpecifierTraces struct { // Regular expressions to match traces Regexes []string `json:"regexes,omitempty"` // Regular expressions to exclude traces ExcludeRegexes []string `json:"excludeRegexes,omitempty"` } // NewTimeseriesSpecifierTraces instantiates a new TimeseriesSpecifierTraces object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed func NewTimeseriesSpecifierTraces() *TimeseriesSpecifierTraces { this := TimeseriesSpecifierTraces{} return &this } // NewTimeseriesSpecifierTracesWithDefaults instantiates a new TimeseriesSpecifierTraces object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set func NewTimeseriesSpecifierTracesWithDefaults() *TimeseriesSpecifierTraces { this := TimeseriesSpecifierTraces{} return &this } // GetRegexes returns the Regexes field value if set, zero value otherwise. func (o *TimeseriesSpecifierTraces) GetRegexes() []string { if o == nil || IsNil(o.Regexes) { var ret []string return ret } return o.Regexes } // GetRegexesOk returns a tuple with the Regexes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TimeseriesSpecifierTraces) GetRegexesOk() ([]string, bool) { if o == nil || IsNil(o.Regexes) { return nil, false } return o.Regexes, true } // HasRegexes returns a boolean if a field has been set. func (o *TimeseriesSpecifierTraces) HasRegexes() bool { if o != nil && !IsNil(o.Regexes) { return true } return false } // SetRegexes gets a reference to the given []string and assigns it to the Regexes field. func (o *TimeseriesSpecifierTraces) SetRegexes(v []string) { o.Regexes = v } // GetExcludeRegexes returns the ExcludeRegexes field value if set, zero value otherwise. func (o *TimeseriesSpecifierTraces) GetExcludeRegexes() []string { if o == nil || IsNil(o.ExcludeRegexes) { var ret []string return ret } return o.ExcludeRegexes } // GetExcludeRegexesOk returns a tuple with the ExcludeRegexes field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TimeseriesSpecifierTraces) GetExcludeRegexesOk() ([]string, bool) { if o == nil || IsNil(o.ExcludeRegexes) { return nil, false } return o.ExcludeRegexes, true } // HasExcludeRegexes returns a boolean if a field has been set. func (o *TimeseriesSpecifierTraces) HasExcludeRegexes() bool { if o != nil && !IsNil(o.ExcludeRegexes) { return true } return false } // SetExcludeRegexes gets a reference to the given []string and assigns it to the ExcludeRegexes field. func (o *TimeseriesSpecifierTraces) SetExcludeRegexes(v []string) { o.ExcludeRegexes = v } func (o TimeseriesSpecifierTraces) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o TimeseriesSpecifierTraces) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Regexes) { toSerialize["regexes"] = o.Regexes } if !IsNil(o.ExcludeRegexes) { toSerialize["excludeRegexes"] = o.ExcludeRegexes } return toSerialize, nil } type NullableTimeseriesSpecifierTraces struct { value *TimeseriesSpecifierTraces isSet bool } func (v NullableTimeseriesSpecifierTraces) Get() *TimeseriesSpecifierTraces { return v.value } func (v *NullableTimeseriesSpecifierTraces) Set(val *TimeseriesSpecifierTraces) { v.value = val v.isSet = true } func (v NullableTimeseriesSpecifierTraces) IsSet() bool { return v.isSet } func (v *NullableTimeseriesSpecifierTraces) Unset() { v.value = nil v.isSet = false } func NewNullableTimeseriesSpecifierTraces(val *TimeseriesSpecifierTraces) *NullableTimeseriesSpecifierTraces { return &NullableTimeseriesSpecifierTraces{value: val, isSet: true} } func (v NullableTimeseriesSpecifierTraces) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableTimeseriesSpecifierTraces) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/metoro-io/metoro-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server