Skip to content

Commit

Permalink
Compressed a rather verbose section - #20
Browse files Browse the repository at this point in the history
  • Loading branch information
DivineOmega committed Aug 31, 2015
1 parent e6dfce9 commit b73c07c
Showing 1 changed file with 5 additions and 27 deletions.
32 changes: 5 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,34 +29,12 @@ $cachetInstance = CachetInstanceFactory::create('https://demo.cachethq.io/api/v1

Retrieving data from the various elements of your Cachet instance is easy. Just call the appropriate getter method on your ```$cachetInstance``` object. The Cachet install will be contacted and an array of request appropriate objects be returned.

#### Components

```php
$components = $cachetInstance->getAllComponents();
```

#### Incidents

```php
$incidents = $cachetInstance->getAllIncidents();
```

#### Metrics

```php
$metrics = $cachetInstance->getAllMetrics();
```

#### Metric Points

```php
$metricPoints = $metrics[0]->getAllMetricPoints();
```

#### Subscribers

```php
$subscribers = $cachetInstance->getAllSubscribers();
$components = $cachetInstance->getAllComponents(); // Components
$incidents = $cachetInstance->getAllIncidents(); // Incidents
$metrics = $cachetInstance->getAllMetrics(); // Metrics
$metricPoints = $metrics[0]->getAllMetricPoints(); // Metric Points
$subscribers = $cachetInstance->getAllSubscribers(); // Subscribers
```

### Sorting Cachet elements
Expand Down

0 comments on commit b73c07c

Please sign in to comment.