Class: Fastly::DomainInspectorMeasurements
- Inherits:
-
Object
- Object
- Fastly::DomainInspectorMeasurements
- Defined in:
- lib/fastly/models/domain_inspector_measurements.rb
Overview
A measurements object provides a count of the total number of ‘requests` received by Fastly for your domain in the reported time period and for the relevant POP, as specified in the [entry](#entry-data-model). It also includes the number of responses for specific HTTP response status codes and for status code ranges. This dataset is sparse: only the keys with non-zero values will be included in the record. Where a specific status code does not have a field in this model (e.g., `429 Too Many Requests`), any responses with that code will be counted as part of the range count (`4xx` in this case) but will not be separately identified in the data.
Instance Attribute Summary collapse
-
#bandwidth ⇒ Object
Total bytes delivered (‘resp_header_bytes` + `resp_body_bytes` + `bereq_header_bytes` + `bereq_body_bytes`).
-
#bereq_body_bytes ⇒ Object
Total body bytes sent to origin.
-
#bereq_header_bytes ⇒ Object
Total header bytes sent to origin.
-
#edge_hit_ratio ⇒ Object
Ratio of cache hits to cache misses at the edge, between 0 and 1 (‘edge_hit_requests` / (`edge_hit_requests` + `edge_miss_requests`)).
-
#edge_hit_requests ⇒ Object
Number of requests sent by end users to Fastly that resulted in a hit at the edge.
-
#edge_miss_requests ⇒ Object
Number of requests sent by end users to Fastly that resulted in a miss at the edge.
-
#edge_requests ⇒ Object
Number of requests sent by end users to Fastly.
-
#edge_resp_body_bytes ⇒ Object
Total body bytes delivered from Fastly to the end user.
-
#edge_resp_header_bytes ⇒ Object
Total header bytes delivered from Fastly to the end user.
-
#origin_fetch_resp_body_bytes ⇒ Object
Total body bytes received from origin.
-
#origin_fetch_resp_header_bytes ⇒ Object
Total header bytes received from origin.
-
#origin_fetches ⇒ Object
Number of requests sent to origin.
-
#origin_offload ⇒ Object
Origin Offload measures the ratio of bytes served to end users that were cached by Fastly, over the bytes served to end users, between 0 and 1.
-
#origin_status_1xx ⇒ Object
Number of "Informational" category status codes received from origin.
-
#origin_status_200 ⇒ Object
Number of responses received from origin with status code 200 (Success).
-
#origin_status_204 ⇒ Object
Number of responses received from origin with status code 204 (No Content).
-
#origin_status_206 ⇒ Object
Number of responses received from origin with status code 206 (Partial Content).
-
#origin_status_2xx ⇒ Object
Number of "Success" status codes received from origin.
-
#origin_status_301 ⇒ Object
Number of responses received from origin with status code 301 (Moved Permanently).
-
#origin_status_302 ⇒ Object
Number of responses received from origin with status code 302 (Found).
-
#origin_status_304 ⇒ Object
Number of responses received from origin with status code 304 (Not Modified).
-
#origin_status_3xx ⇒ Object
Number of "Redirection" codes received from origin.
-
#origin_status_400 ⇒ Object
Number of responses received from origin with status code 400 (Bad Request).
-
#origin_status_401 ⇒ Object
Number of responses received from origin with status code 401 (Unauthorized).
-
#origin_status_403 ⇒ Object
Number of responses received from origin with status code 403 (Forbidden).
-
#origin_status_404 ⇒ Object
Number of responses received from origin with status code 404 (Not Found).
-
#origin_status_416 ⇒ Object
Number of responses received from origin with status code 416 (Range Not Satisfiable).
-
#origin_status_429 ⇒ Object
Number of responses received from origin with status code 429 (Too Many Requests).
-
#origin_status_4xx ⇒ Object
Number of "Client Error" codes received from origin.
-
#origin_status_500 ⇒ Object
Number of responses received from origin with status code 500 (Internal Server Error).
-
#origin_status_501 ⇒ Object
Number of responses received from origin with status code 501 (Not Implemented).
-
#origin_status_502 ⇒ Object
Number of responses received from origin with status code 502 (Bad Gateway).
-
#origin_status_503 ⇒ Object
Number of responses received from origin with status code 503 (Service Unavailable).
-
#origin_status_504 ⇒ Object
Number of responses received from origin with status code 504 (Gateway Timeout).
-
#origin_status_505 ⇒ Object
Number of responses received from origin with status code 505 (HTTP Version Not Supported).
-
#origin_status_5xx ⇒ Object
Number of "Server Error" codes received from origin.
-
#requests ⇒ Object
Number of requests processed.
-
#resp_body_bytes ⇒ Object
Total body bytes delivered.
-
#resp_header_bytes ⇒ Object
Total header bytes delivered.
-
#status_1xx ⇒ Object
Number of 1xx "Informational" category status codes delivered.
-
#status_200 ⇒ Object
Number of responses delivered with status code 200 (Success).
-
#status_204 ⇒ Object
Number of responses delivered with status code 204 (No Content).
-
#status_206 ⇒ Object
Number of responses delivered with status code 206 (Partial Content).
-
#status_2xx ⇒ Object
Number of 2xx "Success" status codes delivered.
-
#status_301 ⇒ Object
Number of responses delivered with status code 301 (Moved Permanently).
-
#status_302 ⇒ Object
Number of responses delivered with status code 302 (Found).
-
#status_304 ⇒ Object
Number of responses delivered with status code 304 (Not Modified).
-
#status_3xx ⇒ Object
Number of 3xx "Redirection" codes delivered.
-
#status_400 ⇒ Object
Number of responses delivered with status code 400 (Bad Request).
-
#status_401 ⇒ Object
Number of responses delivered with status code 401 (Unauthorized).
-
#status_403 ⇒ Object
Number of responses delivered with status code 403 (Forbidden).
-
#status_404 ⇒ Object
Number of responses delivered with status code 404 (Not Found).
-
#status_416 ⇒ Object
Number of responses delivered with status code 416 (Range Not Satisfiable).
-
#status_429 ⇒ Object
Number of responses delivered with status code 429 (Too Many Requests).
-
#status_4xx ⇒ Object
Number of 4xx "Client Error" codes delivered.
-
#status_500 ⇒ Object
Number of responses delivered with status code 500 (Internal Server Error).
-
#status_501 ⇒ Object
Number of responses delivered with status code 501 (Not Implemented).
-
#status_502 ⇒ Object
Number of responses delivered with status code 502 (Bad Gateway).
-
#status_503 ⇒ Object
Number of responses delivered with status code 503 (Service Unavailable).
-
#status_504 ⇒ Object
Number of responses delivered with status code 504 (Gateway Timeout).
-
#status_505 ⇒ Object
Number of responses delivered with status code 505 (HTTP Version Not Supported).
-
#status_5xx ⇒ Object
Number of 5xx "Server Error" codes delivered.
Class Method Summary collapse
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about.
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.fastly_nullable ⇒ Object
List of attributes with nullable: true.
-
.fastly_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ DomainInspectorMeasurements
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ DomainInspectorMeasurements
Initializes the object
352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 352 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::DomainInspectorMeasurements` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::DomainInspectorMeasurements`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'edge_requests') self.edge_requests = attributes[:'edge_requests'] end if attributes.key?(:'edge_resp_header_bytes') self.edge_resp_header_bytes = attributes[:'edge_resp_header_bytes'] end if attributes.key?(:'edge_resp_body_bytes') self.edge_resp_body_bytes = attributes[:'edge_resp_body_bytes'] end if attributes.key?(:'status_1xx') self.status_1xx = attributes[:'status_1xx'] end if attributes.key?(:'status_2xx') self.status_2xx = attributes[:'status_2xx'] end if attributes.key?(:'status_3xx') self.status_3xx = attributes[:'status_3xx'] end if attributes.key?(:'status_4xx') self.status_4xx = attributes[:'status_4xx'] end if attributes.key?(:'status_5xx') self.status_5xx = attributes[:'status_5xx'] end if attributes.key?(:'status_200') self.status_200 = attributes[:'status_200'] end if attributes.key?(:'status_204') self.status_204 = attributes[:'status_204'] end if attributes.key?(:'status_206') self.status_206 = attributes[:'status_206'] end if attributes.key?(:'status_301') self.status_301 = attributes[:'status_301'] end if attributes.key?(:'status_302') self.status_302 = attributes[:'status_302'] end if attributes.key?(:'status_304') self.status_304 = attributes[:'status_304'] end if attributes.key?(:'status_400') self.status_400 = attributes[:'status_400'] end if attributes.key?(:'status_401') self.status_401 = attributes[:'status_401'] end if attributes.key?(:'status_403') self.status_403 = attributes[:'status_403'] end if attributes.key?(:'status_404') self.status_404 = attributes[:'status_404'] end if attributes.key?(:'status_416') self.status_416 = attributes[:'status_416'] end if attributes.key?(:'status_429') self.status_429 = attributes[:'status_429'] end if attributes.key?(:'status_500') self.status_500 = attributes[:'status_500'] end if attributes.key?(:'status_501') self.status_501 = attributes[:'status_501'] end if attributes.key?(:'status_502') self.status_502 = attributes[:'status_502'] end if attributes.key?(:'status_503') self.status_503 = attributes[:'status_503'] end if attributes.key?(:'status_504') self.status_504 = attributes[:'status_504'] end if attributes.key?(:'status_505') self.status_505 = attributes[:'status_505'] end if attributes.key?(:'requests') self.requests = attributes[:'requests'] end if attributes.key?(:'resp_header_bytes') self.resp_header_bytes = attributes[:'resp_header_bytes'] end if attributes.key?(:'resp_body_bytes') self.resp_body_bytes = attributes[:'resp_body_bytes'] end if attributes.key?(:'bereq_header_bytes') self.bereq_header_bytes = attributes[:'bereq_header_bytes'] end if attributes.key?(:'bereq_body_bytes') self.bereq_body_bytes = attributes[:'bereq_body_bytes'] end if attributes.key?(:'edge_hit_requests') self.edge_hit_requests = attributes[:'edge_hit_requests'] end if attributes.key?(:'edge_miss_requests') self.edge_miss_requests = attributes[:'edge_miss_requests'] end if attributes.key?(:'origin_fetches') self.origin_fetches = attributes[:'origin_fetches'] end if attributes.key?(:'origin_fetch_resp_header_bytes') self.origin_fetch_resp_header_bytes = attributes[:'origin_fetch_resp_header_bytes'] end if attributes.key?(:'origin_fetch_resp_body_bytes') self.origin_fetch_resp_body_bytes = attributes[:'origin_fetch_resp_body_bytes'] end if attributes.key?(:'bandwidth') self.bandwidth = attributes[:'bandwidth'] end if attributes.key?(:'edge_hit_ratio') self.edge_hit_ratio = attributes[:'edge_hit_ratio'] end if attributes.key?(:'origin_offload') self.origin_offload = attributes[:'origin_offload'] end if attributes.key?(:'origin_status_200') self.origin_status_200 = attributes[:'origin_status_200'] end if attributes.key?(:'origin_status_204') self.origin_status_204 = attributes[:'origin_status_204'] end if attributes.key?(:'origin_status_206') self.origin_status_206 = attributes[:'origin_status_206'] end if attributes.key?(:'origin_status_301') self.origin_status_301 = attributes[:'origin_status_301'] end if attributes.key?(:'origin_status_302') self.origin_status_302 = attributes[:'origin_status_302'] end if attributes.key?(:'origin_status_304') self.origin_status_304 = attributes[:'origin_status_304'] end if attributes.key?(:'origin_status_400') self.origin_status_400 = attributes[:'origin_status_400'] end if attributes.key?(:'origin_status_401') self.origin_status_401 = attributes[:'origin_status_401'] end if attributes.key?(:'origin_status_403') self.origin_status_403 = attributes[:'origin_status_403'] end if attributes.key?(:'origin_status_404') self.origin_status_404 = attributes[:'origin_status_404'] end if attributes.key?(:'origin_status_416') self.origin_status_416 = attributes[:'origin_status_416'] end if attributes.key?(:'origin_status_429') self.origin_status_429 = attributes[:'origin_status_429'] end if attributes.key?(:'origin_status_500') self.origin_status_500 = attributes[:'origin_status_500'] end if attributes.key?(:'origin_status_501') self.origin_status_501 = attributes[:'origin_status_501'] end if attributes.key?(:'origin_status_502') self.origin_status_502 = attributes[:'origin_status_502'] end if attributes.key?(:'origin_status_503') self.origin_status_503 = attributes[:'origin_status_503'] end if attributes.key?(:'origin_status_504') self.origin_status_504 = attributes[:'origin_status_504'] end if attributes.key?(:'origin_status_505') self.origin_status_505 = attributes[:'origin_status_505'] end if attributes.key?(:'origin_status_1xx') self.origin_status_1xx = attributes[:'origin_status_1xx'] end if attributes.key?(:'origin_status_2xx') self.origin_status_2xx = attributes[:'origin_status_2xx'] end if attributes.key?(:'origin_status_3xx') self.origin_status_3xx = attributes[:'origin_status_3xx'] end if attributes.key?(:'origin_status_4xx') self.origin_status_4xx = attributes[:'origin_status_4xx'] end if attributes.key?(:'origin_status_5xx') self.origin_status_5xx = attributes[:'origin_status_5xx'] end end |
Instance Attribute Details
#bandwidth ⇒ Object
Total bytes delivered (‘resp_header_bytes` + `resp_body_bytes` + `bereq_header_bytes` + `bereq_body_bytes`).
126 127 128 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 126 def bandwidth @bandwidth end |
#bereq_body_bytes ⇒ Object
Total body bytes sent to origin.
108 109 110 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 108 def bereq_body_bytes @bereq_body_bytes end |
#bereq_header_bytes ⇒ Object
Total header bytes sent to origin.
105 106 107 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 105 def bereq_header_bytes @bereq_header_bytes end |
#edge_hit_ratio ⇒ Object
Ratio of cache hits to cache misses at the edge, between 0 and 1 (‘edge_hit_requests` / (`edge_hit_requests` + `edge_miss_requests`)).
129 130 131 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 129 def edge_hit_ratio @edge_hit_ratio end |
#edge_hit_requests ⇒ Object
Number of requests sent by end users to Fastly that resulted in a hit at the edge.
111 112 113 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 111 def edge_hit_requests @edge_hit_requests end |
#edge_miss_requests ⇒ Object
Number of requests sent by end users to Fastly that resulted in a miss at the edge.
114 115 116 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 114 def edge_miss_requests @edge_miss_requests end |
#edge_requests ⇒ Object
Number of requests sent by end users to Fastly.
18 19 20 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 18 def edge_requests @edge_requests end |
#edge_resp_body_bytes ⇒ Object
Total body bytes delivered from Fastly to the end user.
24 25 26 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 24 def edge_resp_body_bytes @edge_resp_body_bytes end |
#edge_resp_header_bytes ⇒ Object
Total header bytes delivered from Fastly to the end user.
21 22 23 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 21 def edge_resp_header_bytes @edge_resp_header_bytes end |
#origin_fetch_resp_body_bytes ⇒ Object
Total body bytes received from origin.
123 124 125 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 123 def origin_fetch_resp_body_bytes @origin_fetch_resp_body_bytes end |
#origin_fetch_resp_header_bytes ⇒ Object
Total header bytes received from origin.
120 121 122 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 120 def origin_fetch_resp_header_bytes @origin_fetch_resp_header_bytes end |
#origin_fetches ⇒ Object
Number of requests sent to origin.
117 118 119 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 117 def origin_fetches @origin_fetches end |
#origin_offload ⇒ Object
Origin Offload measures the ratio of bytes served to end users that were cached by Fastly, over the bytes served to end users, between 0 and 1. ((‘edge_resp_body_bytes` + `edge_resp_header_bytes`) - (`origin_fetch_resp_body_bytes` + `origin_fetch_resp_header_bytes`)) / (`edge_resp_body_bytes` + `edge_resp_header_bytes`). Previously, Origin Offload used a different formula. [Learn more](www.fastly.com/documentation/reference/changes/2024/06/add-origin_offload-metric).
132 133 134 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 132 def origin_offload @origin_offload end |
#origin_status_1xx ⇒ Object
Number of "Informational" category status codes received from origin.
189 190 191 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 189 def origin_status_1xx @origin_status_1xx end |
#origin_status_200 ⇒ Object
Number of responses received from origin with status code 200 (Success).
135 136 137 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 135 def origin_status_200 @origin_status_200 end |
#origin_status_204 ⇒ Object
Number of responses received from origin with status code 204 (No Content).
138 139 140 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 138 def origin_status_204 @origin_status_204 end |
#origin_status_206 ⇒ Object
Number of responses received from origin with status code 206 (Partial Content).
141 142 143 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 141 def origin_status_206 @origin_status_206 end |
#origin_status_2xx ⇒ Object
Number of "Success" status codes received from origin.
192 193 194 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 192 def origin_status_2xx @origin_status_2xx end |
#origin_status_301 ⇒ Object
Number of responses received from origin with status code 301 (Moved Permanently).
144 145 146 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 144 def origin_status_301 @origin_status_301 end |
#origin_status_302 ⇒ Object
Number of responses received from origin with status code 302 (Found).
147 148 149 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 147 def origin_status_302 @origin_status_302 end |
#origin_status_304 ⇒ Object
Number of responses received from origin with status code 304 (Not Modified).
150 151 152 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 150 def origin_status_304 @origin_status_304 end |
#origin_status_3xx ⇒ Object
Number of "Redirection" codes received from origin.
195 196 197 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 195 def origin_status_3xx @origin_status_3xx end |
#origin_status_400 ⇒ Object
Number of responses received from origin with status code 400 (Bad Request).
153 154 155 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 153 def origin_status_400 @origin_status_400 end |
#origin_status_401 ⇒ Object
Number of responses received from origin with status code 401 (Unauthorized).
156 157 158 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 156 def origin_status_401 @origin_status_401 end |
#origin_status_403 ⇒ Object
Number of responses received from origin with status code 403 (Forbidden).
159 160 161 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 159 def origin_status_403 @origin_status_403 end |
#origin_status_404 ⇒ Object
Number of responses received from origin with status code 404 (Not Found).
162 163 164 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 162 def origin_status_404 @origin_status_404 end |
#origin_status_416 ⇒ Object
Number of responses received from origin with status code 416 (Range Not Satisfiable).
165 166 167 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 165 def origin_status_416 @origin_status_416 end |
#origin_status_429 ⇒ Object
Number of responses received from origin with status code 429 (Too Many Requests).
168 169 170 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 168 def origin_status_429 @origin_status_429 end |
#origin_status_4xx ⇒ Object
Number of "Client Error" codes received from origin.
198 199 200 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 198 def origin_status_4xx @origin_status_4xx end |
#origin_status_500 ⇒ Object
Number of responses received from origin with status code 500 (Internal Server Error).
171 172 173 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 171 def origin_status_500 @origin_status_500 end |
#origin_status_501 ⇒ Object
Number of responses received from origin with status code 501 (Not Implemented).
174 175 176 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 174 def origin_status_501 @origin_status_501 end |
#origin_status_502 ⇒ Object
Number of responses received from origin with status code 502 (Bad Gateway).
177 178 179 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 177 def origin_status_502 @origin_status_502 end |
#origin_status_503 ⇒ Object
Number of responses received from origin with status code 503 (Service Unavailable).
180 181 182 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 180 def origin_status_503 @origin_status_503 end |
#origin_status_504 ⇒ Object
Number of responses received from origin with status code 504 (Gateway Timeout).
183 184 185 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 183 def origin_status_504 @origin_status_504 end |
#origin_status_505 ⇒ Object
Number of responses received from origin with status code 505 (HTTP Version Not Supported).
186 187 188 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 186 def origin_status_505 @origin_status_505 end |
#origin_status_5xx ⇒ Object
Number of "Server Error" codes received from origin.
201 202 203 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 201 def origin_status_5xx @origin_status_5xx end |
#requests ⇒ Object
Number of requests processed.
96 97 98 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 96 def requests @requests end |
#resp_body_bytes ⇒ Object
Total body bytes delivered.
102 103 104 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 102 def resp_body_bytes @resp_body_bytes end |
#resp_header_bytes ⇒ Object
Total header bytes delivered.
99 100 101 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 99 def resp_header_bytes @resp_header_bytes end |
#status_1xx ⇒ Object
Number of 1xx "Informational" category status codes delivered.
27 28 29 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 27 def status_1xx @status_1xx end |
#status_200 ⇒ Object
Number of responses delivered with status code 200 (Success).
42 43 44 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 42 def status_200 @status_200 end |
#status_204 ⇒ Object
Number of responses delivered with status code 204 (No Content).
45 46 47 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 45 def status_204 @status_204 end |
#status_206 ⇒ Object
Number of responses delivered with status code 206 (Partial Content).
48 49 50 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 48 def status_206 @status_206 end |
#status_2xx ⇒ Object
Number of 2xx "Success" status codes delivered.
30 31 32 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 30 def status_2xx @status_2xx end |
#status_301 ⇒ Object
Number of responses delivered with status code 301 (Moved Permanently).
51 52 53 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 51 def status_301 @status_301 end |
#status_302 ⇒ Object
Number of responses delivered with status code 302 (Found).
54 55 56 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 54 def status_302 @status_302 end |
#status_304 ⇒ Object
Number of responses delivered with status code 304 (Not Modified).
57 58 59 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 57 def status_304 @status_304 end |
#status_3xx ⇒ Object
Number of 3xx "Redirection" codes delivered.
33 34 35 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 33 def status_3xx @status_3xx end |
#status_400 ⇒ Object
Number of responses delivered with status code 400 (Bad Request).
60 61 62 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 60 def status_400 @status_400 end |
#status_401 ⇒ Object
Number of responses delivered with status code 401 (Unauthorized).
63 64 65 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 63 def status_401 @status_401 end |
#status_403 ⇒ Object
Number of responses delivered with status code 403 (Forbidden).
66 67 68 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 66 def status_403 @status_403 end |
#status_404 ⇒ Object
Number of responses delivered with status code 404 (Not Found).
69 70 71 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 69 def status_404 @status_404 end |
#status_416 ⇒ Object
Number of responses delivered with status code 416 (Range Not Satisfiable).
72 73 74 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 72 def status_416 @status_416 end |
#status_429 ⇒ Object
Number of responses delivered with status code 429 (Too Many Requests).
75 76 77 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 75 def status_429 @status_429 end |
#status_4xx ⇒ Object
Number of 4xx "Client Error" codes delivered.
36 37 38 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 36 def status_4xx @status_4xx end |
#status_500 ⇒ Object
Number of responses delivered with status code 500 (Internal Server Error).
78 79 80 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 78 def status_500 @status_500 end |
#status_501 ⇒ Object
Number of responses delivered with status code 501 (Not Implemented).
81 82 83 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 81 def status_501 @status_501 end |
#status_502 ⇒ Object
Number of responses delivered with status code 502 (Bad Gateway).
84 85 86 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 84 def status_502 @status_502 end |
#status_503 ⇒ Object
Number of responses delivered with status code 503 (Service Unavailable).
87 88 89 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 87 def status_503 @status_503 end |
#status_504 ⇒ Object
Number of responses delivered with status code 504 (Gateway Timeout).
90 91 92 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 90 def status_504 @status_504 end |
#status_505 ⇒ Object
Number of responses delivered with status code 505 (HTTP Version Not Supported).
93 94 95 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 93 def status_505 @status_505 end |
#status_5xx ⇒ Object
Number of 5xx "Server Error" codes delivered.
39 40 41 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 39 def status_5xx @status_5xx end |
Class Method Details
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
272 273 274 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 272 def self.acceptable_attributes attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 204 def self.attribute_map { :'edge_requests' => :'edge_requests', :'edge_resp_header_bytes' => :'edge_resp_header_bytes', :'edge_resp_body_bytes' => :'edge_resp_body_bytes', :'status_1xx' => :'status_1xx', :'status_2xx' => :'status_2xx', :'status_3xx' => :'status_3xx', :'status_4xx' => :'status_4xx', :'status_5xx' => :'status_5xx', :'status_200' => :'status_200', :'status_204' => :'status_204', :'status_206' => :'status_206', :'status_301' => :'status_301', :'status_302' => :'status_302', :'status_304' => :'status_304', :'status_400' => :'status_400', :'status_401' => :'status_401', :'status_403' => :'status_403', :'status_404' => :'status_404', :'status_416' => :'status_416', :'status_429' => :'status_429', :'status_500' => :'status_500', :'status_501' => :'status_501', :'status_502' => :'status_502', :'status_503' => :'status_503', :'status_504' => :'status_504', :'status_505' => :'status_505', :'requests' => :'requests', :'resp_header_bytes' => :'resp_header_bytes', :'resp_body_bytes' => :'resp_body_bytes', :'bereq_header_bytes' => :'bereq_header_bytes', :'bereq_body_bytes' => :'bereq_body_bytes', :'edge_hit_requests' => :'edge_hit_requests', :'edge_miss_requests' => :'edge_miss_requests', :'origin_fetches' => :'origin_fetches', :'origin_fetch_resp_header_bytes' => :'origin_fetch_resp_header_bytes', :'origin_fetch_resp_body_bytes' => :'origin_fetch_resp_body_bytes', :'bandwidth' => :'bandwidth', :'edge_hit_ratio' => :'edge_hit_ratio', :'origin_offload' => :'origin_offload', :'origin_status_200' => :'origin_status_200', :'origin_status_204' => :'origin_status_204', :'origin_status_206' => :'origin_status_206', :'origin_status_301' => :'origin_status_301', :'origin_status_302' => :'origin_status_302', :'origin_status_304' => :'origin_status_304', :'origin_status_400' => :'origin_status_400', :'origin_status_401' => :'origin_status_401', :'origin_status_403' => :'origin_status_403', :'origin_status_404' => :'origin_status_404', :'origin_status_416' => :'origin_status_416', :'origin_status_429' => :'origin_status_429', :'origin_status_500' => :'origin_status_500', :'origin_status_501' => :'origin_status_501', :'origin_status_502' => :'origin_status_502', :'origin_status_503' => :'origin_status_503', :'origin_status_504' => :'origin_status_504', :'origin_status_505' => :'origin_status_505', :'origin_status_1xx' => :'origin_status_1xx', :'origin_status_2xx' => :'origin_status_2xx', :'origin_status_3xx' => :'origin_status_3xx', :'origin_status_4xx' => :'origin_status_4xx', :'origin_status_5xx' => :'origin_status_5xx' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
711 712 713 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 711 def self.build_from_hash(attributes) new.build_from_hash(attributes) end |
.fastly_nullable ⇒ Object
List of attributes with nullable: true
345 346 347 348 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 345 def self.fastly_nullable Set.new([ ]) end |
.fastly_types ⇒ Object
Attribute type mapping.
277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 277 def self.fastly_types { :'edge_requests' => :'Integer', :'edge_resp_header_bytes' => :'Integer', :'edge_resp_body_bytes' => :'Integer', :'status_1xx' => :'Integer', :'status_2xx' => :'Integer', :'status_3xx' => :'Integer', :'status_4xx' => :'Integer', :'status_5xx' => :'Integer', :'status_200' => :'Integer', :'status_204' => :'Integer', :'status_206' => :'Integer', :'status_301' => :'Integer', :'status_302' => :'Integer', :'status_304' => :'Integer', :'status_400' => :'Integer', :'status_401' => :'Integer', :'status_403' => :'Integer', :'status_404' => :'Integer', :'status_416' => :'Integer', :'status_429' => :'Integer', :'status_500' => :'Integer', :'status_501' => :'Integer', :'status_502' => :'Integer', :'status_503' => :'Integer', :'status_504' => :'Integer', :'status_505' => :'Integer', :'requests' => :'Integer', :'resp_header_bytes' => :'Integer', :'resp_body_bytes' => :'Integer', :'bereq_header_bytes' => :'Integer', :'bereq_body_bytes' => :'Integer', :'edge_hit_requests' => :'Integer', :'edge_miss_requests' => :'Integer', :'origin_fetches' => :'Integer', :'origin_fetch_resp_header_bytes' => :'Integer', :'origin_fetch_resp_body_bytes' => :'Integer', :'bandwidth' => :'Integer', :'edge_hit_ratio' => :'Float', :'origin_offload' => :'Float', :'origin_status_200' => :'Integer', :'origin_status_204' => :'Integer', :'origin_status_206' => :'Integer', :'origin_status_301' => :'Integer', :'origin_status_302' => :'Integer', :'origin_status_304' => :'Integer', :'origin_status_400' => :'Integer', :'origin_status_401' => :'Integer', :'origin_status_403' => :'Integer', :'origin_status_404' => :'Integer', :'origin_status_416' => :'Integer', :'origin_status_429' => :'Integer', :'origin_status_500' => :'Integer', :'origin_status_501' => :'Integer', :'origin_status_502' => :'Integer', :'origin_status_503' => :'Integer', :'origin_status_504' => :'Integer', :'origin_status_505' => :'Integer', :'origin_status_1xx' => :'Integer', :'origin_status_2xx' => :'Integer', :'origin_status_3xx' => :'Integer', :'origin_status_4xx' => :'Integer', :'origin_status_5xx' => :'Integer' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 629 def ==(o) return true if self.equal?(o) self.class == o.class && edge_requests == o.edge_requests && edge_resp_header_bytes == o.edge_resp_header_bytes && edge_resp_body_bytes == o.edge_resp_body_bytes && status_1xx == o.status_1xx && status_2xx == o.status_2xx && status_3xx == o.status_3xx && status_4xx == o.status_4xx && status_5xx == o.status_5xx && status_200 == o.status_200 && status_204 == o.status_204 && status_206 == o.status_206 && status_301 == o.status_301 && status_302 == o.status_302 && status_304 == o.status_304 && status_400 == o.status_400 && status_401 == o.status_401 && status_403 == o.status_403 && status_404 == o.status_404 && status_416 == o.status_416 && status_429 == o.status_429 && status_500 == o.status_500 && status_501 == o.status_501 && status_502 == o.status_502 && status_503 == o.status_503 && status_504 == o.status_504 && status_505 == o.status_505 && requests == o.requests && resp_header_bytes == o.resp_header_bytes && resp_body_bytes == o.resp_body_bytes && bereq_header_bytes == o.bereq_header_bytes && bereq_body_bytes == o.bereq_body_bytes && edge_hit_requests == o.edge_hit_requests && edge_miss_requests == o.edge_miss_requests && origin_fetches == o.origin_fetches && origin_fetch_resp_header_bytes == o.origin_fetch_resp_header_bytes && origin_fetch_resp_body_bytes == o.origin_fetch_resp_body_bytes && bandwidth == o.bandwidth && edge_hit_ratio == o.edge_hit_ratio && origin_offload == o.origin_offload && origin_status_200 == o.origin_status_200 && origin_status_204 == o.origin_status_204 && origin_status_206 == o.origin_status_206 && origin_status_301 == o.origin_status_301 && origin_status_302 == o.origin_status_302 && origin_status_304 == o.origin_status_304 && origin_status_400 == o.origin_status_400 && origin_status_401 == o.origin_status_401 && origin_status_403 == o.origin_status_403 && origin_status_404 == o.origin_status_404 && origin_status_416 == o.origin_status_416 && origin_status_429 == o.origin_status_429 && origin_status_500 == o.origin_status_500 && origin_status_501 == o.origin_status_501 && origin_status_502 == o.origin_status_502 && origin_status_503 == o.origin_status_503 && origin_status_504 == o.origin_status_504 && origin_status_505 == o.origin_status_505 && origin_status_1xx == o.origin_status_1xx && origin_status_2xx == o.origin_status_2xx && origin_status_3xx == o.origin_status_3xx && origin_status_4xx == o.origin_status_4xx && origin_status_5xx == o.origin_status_5xx end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 741 def _deserialize(type, value) case type.to_sym when :Time Time.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model # models (e.g. Pet) or oneOf klass = Fastly.const_get(type) klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
812 813 814 815 816 817 818 819 820 821 822 823 824 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 812 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 718 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.fastly_types.each_pair do |key, type| if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key) self.send("#{key}=", nil) elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end end self end |
#eql?(o) ⇒ Boolean
698 699 700 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 698 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
704 705 706 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 704 def hash [edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, status_200, status_204, status_206, status_301, status_302, status_304, status_400, status_401, status_403, status_404, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, requests, resp_header_bytes, resp_body_bytes, bereq_header_bytes, bereq_body_bytes, edge_hit_requests, edge_miss_requests, origin_fetches, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, bandwidth, edge_hit_ratio, origin_offload, origin_status_200, origin_status_204, origin_status_206, origin_status_301, origin_status_302, origin_status_304, origin_status_400, origin_status_401, origin_status_403, origin_status_404, origin_status_416, origin_status_429, origin_status_500, origin_status_501, origin_status_502, origin_status_503, origin_status_504, origin_status_505, origin_status_1xx, origin_status_2xx, origin_status_3xx, origin_status_4xx, origin_status_5xx].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
616 617 618 619 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 616 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
788 789 790 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 788 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
794 795 796 797 798 799 800 801 802 803 804 805 806 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 794 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = self.class.fastly_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
782 783 784 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 782 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
623 624 625 |
# File 'lib/fastly/models/domain_inspector_measurements.rb', line 623 def valid? true end |